]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: am642-evm: Add I2C nodes
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 6 May 2021 11:14:58 +0000 (16:44 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 12 May 2021 11:02:44 +0000 (16:32 +0530)
Add I2C nodes for AM64 and enable pinmux for i2c0 for reading eeprom data.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/dts/k3-am64-main.dtsi
arch/arm/dts/k3-am64.dtsi
arch/arm/dts/k3-am642-evm-u-boot.dtsi

index ff65857d1ebfa36ff41c22a35c4dc26ebdc929ad..4b6cd6cc9041ba545b4c27305cb6a30d1d00a7b9 100644 (file)
                clocks = <&k3_clks 78 0>;
                clock-names = "gpio";
        };
+
+       main_i2c0: i2c@20000000 {
+               compatible = "ti,am64-i2c", "ti,omap4-i2c";
+               reg = <0x0 0x20000000 0x0 0x100>;
+               interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               clock-names = "fck";
+               clocks = <&k3_clks 102 2>;
+               power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
+       };
+
+       main_i2c1: i2c@20010000 {
+               compatible = "ti,am64-i2c", "ti,omap4-i2c";
+               reg = <0x0 0x20010000 0x0 0x100>;
+               interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               clock-names = "fck";
+               clocks = <&k3_clks 103 2>;
+               power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
+       };
+
+       main_i2c2: i2c@20020000 {
+               compatible = "ti,am64-i2c", "ti,omap4-i2c";
+               reg = <0x00 0x20020000 0x0 0x100>;
+               interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               clock-names = "fck";
+               clocks = <&k3_clks 104 2>;
+               power-domains = <&k3_pds 104 TI_SCI_PD_EXCLUSIVE>;
+       };
+
+       main_i2c3: i2c@20030000 {
+               compatible = "ti,am64-i2c", "ti,omap4-i2c";
+               reg = <0x00 0x20030000 0x0 0x100>;
+               interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               clock-names = "fck";
+               clocks = <&k3_clks 105 2>;
+               power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>;
+       };
 };
index 0ae8c844c48242ffdc8fd50b242a34a85266683a..fde63463ca5c4e836b052fcfc4a7761be62bf057 100644 (file)
@@ -28,6 +28,8 @@
                serial6 = &main_uart4;
                serial7 = &main_uart5;
                serial8 = &main_uart6;
+               i2c0 = &main_i2c0;
+               i2c1 = &main_i2c1;
        };
 
        chosen { };
index 34e75ded13c5ecb4b6d96f8e26f3a1913f1d5308..6b0117a58a72acd0cf47ee9418cbb1dbbdcea872 100644 (file)
        };
 };
 
+&main_pmx0 {
+       u-boot,dm-spl;
+       main_i2c0_pins_default: main-i2c0-pins-default {
+               u-boot,dm-spl;
+               pinctrl-single,pins = <
+                       AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */
+                       AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */
+               >;
+       };
+};
+
+&main_i2c0 {
+       u-boot,dm-spl;
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_i2c0_pins_default>;
+       clock-frequency = <400000>;
+};
+
 &main_uart0 {
        u-boot,dm-spl;
 };