ARM: dts: am335x-bone-common: Add i2c2 definition
PATCH 1/1 ARM: dts: am335x-bone-common: Add i2c2 definition
Add missing i2c2 bus define to access various cape and prototype/breakout board devices.
--- arch/arm/boot/dts/am335x-bone-common.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/boot/dts/am335x-bone-common.dtsi +16 -0
@@ -84,6 +84,13 @@ >; }; + i2c2_pins: pinmux_i2c2_pins { + pinctrl-single,pins = < + 0x178 (PIN_INPUT_PULLUP | MUX_MODE3) /* i2c2_sda.uart1_ctsn */ + 0x17c (PIN_INPUT_PULLUP | MUX_MODE3) /* i2c2_scl.uart1_rtsn */ + >; + }; + uart0_pins: pinmux_uart0_pins { pinctrl-single,pins = < 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
@@ -222,6 +229,15 @@ }; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + + status = "okay"; + clock-frequency = <400000>; +}; + /include/ "tps65217.dtsi" &tps {
Signature · 1 line
1.8.3.2
Quoted 13 lines · Matt Ranostay
Add missing i2c2 bus define to access various cape and prototype/breakout board devices.
Signed-off-by Matt Ranostay <[email protected]>--- arch/arm/boot/dts/am335x-bone-common.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm/boot/dts/am335x-bone-common.dtsi +0
-0
arch/arm/boot/dts/am335x-bone-common.dtsi line 90
Quoted 7 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +4
-0@@ -84,6 +84,13 @@ >; }; + i2c2_pins: pinmux_i2c2_pins { + pinctrl-single,pins = < + 0x178 (PIN_INPUT_PULLUP | MUX_MODE3) /* i2c2_sda.uart1_ctsn */ + 0x17c (PIN_INPUT_PULLUP | MUX_MODE3) /* i2c2_scl.uart1_rtsn */
I dont understand the comment -> i2c2_sda is being muxed to uart1_cstsn?
Quoted 7 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +3
-0+ >; + }; + uart0_pins: pinmux_uart0_pins { pinctrl-single,pins = < 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
arch/arm/boot/dts/am335x-bone-common.dtsi line 238
Quoted 10 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +7
-0@@ -222,6 +229,15 @@ }; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + + status = "okay"; + clock-frequency = <400000>;
How did we decide on 400KHz -> do all all i2c2 devices on ALL capes work in full speed? OR should we consider a conservative 100KHz?
arch/arm/boot/dts/am335x-bone-common.dtsi line 243
Quoted 5 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +2
-0+}; + /include/ "tps65217.dtsi" &tps {
--
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 17 lines · Nishanth Menon
Quoted 16 lines · Matt Ranostay
Add missing i2c2 bus define to access various cape and prototype/breakout board devices.
Signed-off-by Matt Ranostay <[email protected]>--- arch/arm/boot/dts/am335x-bone-common.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm/boot/dts/am335x-bone-common.dtsi +0
-0@@ -84,6 +84,13 @@ >; };
Quoted 7 lines
arch/arm/boot/dts/am335x-bone-common.dtsi line 90
Quoted 4 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +4
-0+ i2c2_pins: pinmux_i2c2_pins { + pinctrl-single,pins = < + 0x178 (PIN_INPUT_PULLUP | MUX_MODE3) /* i2c2_sda.uart1_ctsn */ + 0x17c (PIN_INPUT_PULLUP | MUX_MODE3) /* i2c2_scl.uart1_rtsn */I dont understand the comment ->
i2c2_sdais being muxed touart1_cstsn?
Good catch I mixed up the ordering of the comment.
Quoted 10 lines
Quoted 10 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +3
-0+ >; + }; + uart0_pins: pinmux_uart0_pins { pinctrl-single,pins = < 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */@@ -222,6 +229,15 @@ };
Quoted 11 lines
arch/arm/boot/dts/am335x-bone-common.dtsi line 238
Quoted 7 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +7
-0+ +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + + status = "okay"; + clock-frequency = <400000>;How did we decide on 400KHz -> do all all i2c2 devices on ALL capes work in full speed? OR should we consider a conservative 100KHz?
Probably a better plan.
Will submit v2 this weekend.
Quoted 11 lines
arch/arm/boot/dts/am335x-bone-common.dtsi line 243
Quoted 5 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +2
-0+}; + /include/ "tps65217.dtsi" &tps {--
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html