arm: dts: k3-am654-base-board: Enable wkup_i2c0 across all boot stages
authorAndreas Dannenberg <dannenberg@ti.com>
Tue, 4 Jun 2019 23:08:15 +0000 (18:08 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 17 Jul 2019 15:13:18 +0000 (11:13 -0400)
To enable the use of an EEPROM-based board detection scheme we need to
be able to access the I2C bus associated with the EEPROMs across all
3 stages of U-Boot: R5 SPL, A53 SPL, and A53 U-Boot (proper). So go
ahead and add/update the wkup_i2c0 peripheral module DTS definitions
and its associated pinmux node accordingly.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/dts/k3-am65.dtsi
arch/arm/dts/k3-am654-base-board-u-boot.dtsi
arch/arm/dts/k3-am654-base-board.dts
arch/arm/dts/k3-am654-r5-base-board.dts

index 1de84fffab47dba31dbfa4d5dbb23d51e4db5653..47271938b38378e051559040c7bbf61459c79bd5 100644 (file)
@@ -8,6 +8,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/pinctrl/k3.h>
 
 / {
        model = "Texas Instruments K3 AM654 SoC";
index 5d9ecb669f5d26ce8ed00c593927513ee9d861c6..449b1ddd79281b66a9b407c053f57e25d73b7927 100644 (file)
        u-boot,dm-spl;
 };
 
+&wkup_pmx0 {
+       u-boot,dm-spl;
+
+       wkup_i2c0_pins_default {
+               u-boot,dm-spl;
+       };
+};
+
 &main_pmx0 {
        u-boot,dm-spl;
        main_uart0_pins_default: main_uart0_pins_default {
                reg-names = "gmii-sel";
        };
 };
+
+&wkup_i2c0 {
+       u-boot,dm-spl;
+};
index ab233916c60f2193b33c4227e6813b81ee0e2042..248d60e89b77575ab74d05f0d9fe7ef2a9d5847d 100644 (file)
        };
 };
 
+&wkup_pmx0 {
+       wkup_i2c0_pins_default: wkup-i2c0-pins-default {
+               pinctrl-single,pins = <
+                       AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */
+                       AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */
+               >;
+       };
+};
+
 &sdhci0 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc0_pins_default>;
@@ -62,3 +71,9 @@
        non-removable;
        ti,driver-strength-ohm = <50>;
 };
+
+&wkup_i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&wkup_i2c0_pins_default>;
+       clock-frequency = <400000>;
+};
index 8deda328d0c601a43ef6cc9e7fd155415f4430ab..9d9b3d585283b0c54b133a15c0d7f3d4ddbd1400 100644 (file)
                >;
                u-boot,dm-spl;
        };
+
+       wkup_i2c0_pins_default: wkup-i2c0-pins-default {
+               pinctrl-single,pins = <
+                       AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */
+                       AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */
+               >;
+       };
 };
 
 &main_pmx0 {
        /delete-property/ power-domains;
        ti,driver-strength-ohm = <50>;
 };
+
+&wkup_i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&wkup_i2c0_pins_default>;
+       clock-frequency = <400000>;
+};