arm64: dts: ti: k3-am654: Enable main domain McSPI0
authorVignesh R <vigneshr@ti.com>
Sun, 9 Dec 2018 10:22:22 +0000 (15:52 +0530)
committerTero Kristo <t-kristo@ti.com>
Fri, 14 Dec 2018 07:57:11 +0000 (09:57 +0200)
Enable McSPI0 of main domain and add DT node for the SPI NOR flash
connected to CS0.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
arch/arm64/boot/dts/ti/k3-am654-base-board.dts

index 49ec2c3..e41fc3a 100644 (file)
                        AM65X_IOPAD(0x0070, PIN_INPUT, 5) /* (R25) GPMC0_CSn2.I2C2_SDA */
                >;
        };
+
+       main_spi0_pins_default: main-spi0-pins-default {
+               pinctrl-single,pins = <
+                       AM65X_IOPAD(0x01c4, PIN_INPUT, 0) /* (AH13) SPI0_CLK */
+                       AM65X_IOPAD(0x01c8, PIN_INPUT, 0) /* (AE13) SPI0_D0 */
+                       AM65X_IOPAD(0x01cc, PIN_INPUT, 0) /* (AD13) SPI0_D1 */
+                       AM65X_IOPAD(0x01bc, PIN_OUTPUT, 0) /* (AG13) SPI0_CS0 */
+               >;
+       };
 };
 
 &main_pmx1 {
        pinctrl-names = "default";
        pinctrl-0 = <&ecap0_pins_default>;
 };
+
+&main_spi0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_spi0_pins_default>;
+       #address-cells = <1>;
+       #size-cells= <0>;
+       ti,pindir-d0-out-d1-in = <1>;
+
+       flash@0{
+               compatible = "jedec,spi-nor";
+               reg = <0x0>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <1>;
+               spi-max-frequency = <48000000>;
+               #address-cells = <1>;
+               #size-cells= <1>;
+       };
+};