* [PATCH] arm: dts: k3-am654-base-board: Enable I2C nodes
@ 2020-02-17 7:52 Vignesh Raghavendra
2020-02-23 8:16 ` Lokesh Vutla
0 siblings, 1 reply; 2+ messages in thread
From: Vignesh Raghavendra @ 2020-02-17 7:52 UTC (permalink / raw)
To: u-boot
Add DT nodes for main domain I2Cs and its slave devices
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
---
arch/arm/dts/k3-am654-base-board.dts | 48 ++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/arch/arm/dts/k3-am654-base-board.dts b/arch/arm/dts/k3-am654-base-board.dts
index 375f1d089c7d..5058b6c88e96 100644
--- a/arch/arm/dts/k3-am654-base-board.dts
+++ b/arch/arm/dts/k3-am654-base-board.dts
@@ -64,6 +64,29 @@
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */
>;
};
+
+ main_i2c2_pins_default: main-i2c2-pins-default {
+ pinctrl-single,pins = <
+ AM65X_IOPAD(0x0074, PIN_INPUT, 5) /* (T27) GPMC0_CSn3.I2C2_SCL */
+ AM65X_IOPAD(0x0070, PIN_INPUT, 5) /* (R25) GPMC0_CSn2.I2C2_SDA */
+ >;
+ };
+};
+
+&main_pmx1 {
+ main_i2c0_pins_default: main-i2c0-pins-default {
+ pinctrl-single,pins = <
+ AM65X_IOPAD(0x0000, PIN_INPUT, 0) /* (D20) I2C0_SCL */
+ AM65X_IOPAD(0x0004, PIN_INPUT, 0) /* (C21) I2C0_SDA */
+ >;
+ };
+
+ main_i2c1_pins_default: main-i2c1-pins-default {
+ pinctrl-single,pins = <
+ AM65X_IOPAD(0x0008, PIN_INPUT, 0) /* (B21) I2C1_SCL */
+ AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */
+ >;
+ };
};
&wkup_pmx0 {
@@ -112,6 +135,31 @@
};
};
+&main_i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_i2c0_pins_default>;
+ clock-frequency = <400000>;
+
+ pca9555: gpio at 21 {
+ compatible = "nxp,pca9555";
+ reg = <0x21>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+};
+
+&main_i2c1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_i2c1_pins_default>;
+ clock-frequency = <400000>;
+};
+
+&main_i2c2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_i2c2_pins_default>;
+ clock-frequency = <400000>;
+};
+
&dwc3_1 {
status = "okay";
};
--
2.25.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] arm: dts: k3-am654-base-board: Enable I2C nodes
2020-02-17 7:52 [PATCH] arm: dts: k3-am654-base-board: Enable I2C nodes Vignesh Raghavendra
@ 2020-02-23 8:16 ` Lokesh Vutla
0 siblings, 0 replies; 2+ messages in thread
From: Lokesh Vutla @ 2020-02-23 8:16 UTC (permalink / raw)
To: u-boot
On 17/02/20 1:22 PM, Vignesh Raghavendra wrote:
> Add DT nodes for main domain I2Cs and its slave devices
>
> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Applied to u-boot-ti next branch.
Thanks and regards,
Lokesh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-23 8:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-17 7:52 [PATCH] arm: dts: k3-am654-base-board: Enable I2C nodes Vignesh Raghavendra
2020-02-23 8:16 ` Lokesh Vutla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.