ARM: at91: spl: Add boot device for boot from QSPI
[oweals/u-boot.git] / arch / arm / dts / am57xx-idk-common.dtsi
index 30118ed233f8f8c3360930dcd3a9969d26c50f95..97aa8e6a56da8f7c8722f5243e01fca0e944f629 100644 (file)
                regulator-always-on;
                regulator-boot-on;
        };
+
+       leds-iio {
+               status = "disabled";
+               compatible = "gpio-leds";
+               led-out0 {
+                       label = "out0";
+                       gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-out1 {
+                       label = "out1";
+                       gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-out2 {
+                       label = "out2";
+                       gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-out3 {
+                       label = "out3";
+                       gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-out4 {
+                       label = "out4";
+                       gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-out5 {
+                       label = "out5";
+                       gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-out6 {
+                       label = "out6";
+                       gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-out7 {
+                       label = "out7";
+                       gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+       };
+};
+
+&dra7_pmx_core {
+       dcan1_pins_default: dcan1_pins_default {
+               pinctrl-single,pins = <
+                       DRA7XX_CORE_IOPAD(0x37d0, PIN_OUTPUT_PULLUP | MUX_MODE0)        /* dcan1_tx */
+                       DRA7XX_CORE_IOPAD(0x37d4, PIN_INPUT_PULLUP | MUX_MODE0)         /* dcan1_rx */
+               >;
+       };
+
+       dcan1_pins_sleep: dcan1_pins_sleep {
+               pinctrl-single,pins = <
+                       DRA7XX_CORE_IOPAD(0x37d0, MUX_MODE15 | PULL_UP) /* dcan1_tx.off */
+                       DRA7XX_CORE_IOPAD(0x37d4, MUX_MODE15 | PULL_UP) /* dcan1_rx.off */
+               >;
+       };
 };
 
 &i2c1 {
                #interrupt-cells = <2>;
                interrupt-controller;
                ti,system-power-controller;
+               ti,palmas-override-powerhold;
 
                tps659038_pmic {
                        compatible = "ti,tps659038-pmic";
                        gpio-controller;
                        #gpio-cells = <2>;
                };
+
+               extcon_usb2: tps659038_usb {
+                       compatible = "ti,palmas-usb-vid";
+                       ti,enable-vbus-detection;
+                       ti,enable-id-detection;
+                       /* ID & VBUS GPIOs provided in board dts */
+               };
+       };
+
+       tpic2810: tpic2810@60 {
+               compatible = "ti,tpic2810";
+               reg = <0x60>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+};
+
+&mcspi3 {
+       status = "okay";
+       ti,pindir-d0-out-d1-in;
+
+       sn65hvs882: sn65hvs882@0 {
+               compatible = "pisosr-gpio";
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               reg = <0>;
+               spi-max-frequency = <1000000>;
+               spi-cpol;
        };
 };
 
 };
 
 &usb2 {
-       dr_mode = "otg";
+       dr_mode = "peripheral";
+};
+
+&mmc1 {
+       status = "okay";
+       vmmc-supply = <&v3_3d>;
+       vqmmc-supply = <&ldo1_reg>;
+       bus-width = <4>;
+       cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
 };
 
 &mmc2 {
        max-frequency = <96000000>;
 };
 
+&dcan1 {
+       status = "okay";
+       pinctrl-names = "default", "sleep", "active";
+       pinctrl-0 = <&dcan1_pins_sleep>;
+       pinctrl-1 = <&dcan1_pins_sleep>;
+       pinctrl-2 = <&dcan1_pins_default>;
+};
+
 &qspi {
        status = "okay";
 
        spi-max-frequency = <76800000>;
        m25p80@0 {
-               compatible = "s25fl256s1", "spi-flash", "jedec,spi-nor";
+               compatible = "s25fl256s1", "jedec,spi-nor";
                spi-max-frequency = <76800000>;
                reg = <0>;
                spi-tx-bus-width = <1>;