lantiq: dts: define the SPI pins in {amazonse,ar9,vr9}.dtsi
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / amazonse.dtsi
index 33dc5612bf6d1870d868126ad0b2f16ff2f75ce3..6b5606d8ab3d605c8b27ca365fbe10812a979177 100644 (file)
                                        "spi_frm";
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&spi_pins>, <&spi_cs4_pins>;
                        status = "disabled";
                };
 
                                        lantiq,function = "mdio";
                                };
                        };
+
+                       spi_pins: spi {
+                               mux-0 {
+                                       lantiq,groups = "spi_di";
+                                       lantiq,function = "spi";
+                               };
+                               mux-1 {
+                                       lantiq,groups = "spi_do", "spi_clk";
+                                       lantiq,function = "spi";
+                                       lantiq,output = <1>;
+                               };
+                       };
+
+                       spi_cs4_pins: spi-cs4 {
+                               mux {
+                                       lantiq,groups = "spi_cs4";
+                                       lantiq,function = "spi";
+                                       lantiq,output = <1>;
+                               };
+                       };
                };
 
                asc1: serial@e100c00 {