Using TI’s pinmux tool with the AM335x and ZCZ package we can configure E17/E18 as:
pinctrl-single,pins = <
AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE3) /* (E17) uart0_rtsn.I2C1_SCL */
AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE3) /* (E18) uart0_ctsn.I2C1_SDA */
>;
Clone repo:
git clone -b ti-linux-4.14.y https://github.com/RobertCNelson/ti-linux-kernel-dev.git
cd ./ti-linux-kernel-dev/
./build_kernel.sh
Hit ESC, ESC, and Ctrl-C after menuconfig loads, then patch this file, under the KERNEL directory
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
index 6e5b6ae03b59..ee4ba20d08a2 100644
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
@@ -79,6 +79,13 @@
>;
};
+ i2c1_pins: pinmux_i2c1_pins {
+ pinctrl-single,pins = <
+ AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE3) /* (E17) uart0_rtsn.I2C1_SCL */
+ AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE3) /* (E18) uart0_ctsn.I2C1_SDA */
+ >;
+ };
+
// i2c2_pins: pinmux_i2c2_pins {
// pinctrl-single,pins = <
// AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLUP, MUX_MODE3) /* uart1_ctsn.i2c2_sda */
@@ -283,6 +290,14 @@
};
};
+&i2c1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_pins>;
+
+ status = "okay";
+ clock-frequency = <100000>;
+};
+
&i2c2 {
pinctrl-names = "default";
//pinctrl-0 = <&i2c2_pins>;
Then finish the build:
./tools/rebuild.sh
Regards,