1/* 2 * Copyright (c) 2018 Peter Bigot Consulting, LLC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* Add I2C1 support on Particle Mesh via nRF52840 TWI1 8 * 9 * NOTE: This file is replicated in particle_{argon,xenon}. 10 * Changes should be made in all instances. */ 11 12&pinctrl { 13 i2c1_default: i2c1_default { 14 group1 { 15 psels = <NRF_PSEL(TWIM_SDA, 1, 1)>, 16 <NRF_PSEL(TWIM_SCL, 1, 2)>; 17 }; 18 }; 19 20 i2c1_sleep: i2c1_sleep { 21 group1 { 22 psels = <NRF_PSEL(TWIM_SDA, 1, 1)>, 23 <NRF_PSEL(TWIM_SCL, 1, 2)>; 24 low-power-enable; 25 }; 26 }; 27}; 28 29&i2c1 { /* feather I2C1 */ 30 status = "okay"; 31 pinctrl-0 = <&i2c1_default>; 32 pinctrl-1 = <&i2c1_sleep>; 33 pinctrl-names = "default", "sleep"; 34}; 35