ARM: dts: kirkwood: set default pinctrl for SPI0
[cascardo/linux.git] / arch / arm / boot / dts / kirkwood-ts219.dtsi
1 / {
2         model = "QNAP TS219 family";
3         compatible = "qnap,ts219", "marvell,kirkwood";
4
5         memory {
6                 device_type = "memory";
7                 reg = <0x00000000 0x20000000>;
8         };
9
10         chosen {
11                 bootargs = "console=ttyS0,115200n8";
12                 stdout-path = &uart0;
13         };
14
15         mbus {
16                 pcie-controller {
17                         status = "okay";
18
19                         pcie@1,0 {
20                                 status = "okay";
21                         };
22                 };
23         };
24
25         ocp@f1000000 {
26                 i2c@11000 {
27                         status = "okay";
28                         clock-frequency = <400000>;
29                         pinctrl-0 = <&pmx_twsi0>;
30                         pinctrl-names = "default";
31
32                         s35390a: s35390a@30 {
33                                 compatible = "s35390a";
34                                 reg = <0x30>;
35                         };
36                 };
37                 serial@12000 {
38                         status = "okay";
39                 };
40                 serial@12100 {
41                         status = "okay";
42                 };
43                 poweroff@12100 {
44                         compatible = "qnap,power-off";
45                         reg = <0x12000 0x100>;
46                         clocks = <&gate_clk 7>;
47                 };
48                 spi@10600 {
49                         status = "okay";
50
51                         m25p128@0 {
52                                 #address-cells = <1>;
53                                 #size-cells = <1>;
54                                 compatible = "m25p128";
55                                 reg = <0>;
56                                 spi-max-frequency = <20000000>;
57                                 mode = <0>;
58
59                                 partition@0000000 {
60                                         reg = <0x00000000 0x00080000>;
61                                         label = "U-Boot";
62                                 };
63
64                                 partition@00200000 {
65                                         reg = <0x00200000 0x00200000>;
66                                         label = "Kernel";
67                                 };
68
69                                 partition@00400000 {
70                                         reg = <0x00400000 0x00900000>;
71                                         label = "RootFS1";
72                                 };
73                                 partition@00d00000 {
74                                         reg = <0x00d00000 0x00300000>;
75                                         label = "RootFS2";
76                                 };
77                                 partition@00040000 {
78                                         reg = <0x00080000 0x00040000>;
79                                         label = "U-Boot Config";
80                                 };
81                                 partition@000c0000 {
82                                         reg = <0x000c0000 0x00140000>;
83                                         label = "NAS Config";
84                                 };
85                         };
86                 };
87                 sata@80000 {
88                         pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
89                         pinctrl-names = "default";
90                         status = "okay";
91                         nr-ports = <2>;
92                 };
93         };
94 };
95
96 &mdio {
97         status = "okay";
98
99         ethphy0: ethernet-phy {
100                 /* overwrite reg property in board file */
101         };
102 };
103
104 &eth0 {
105         status = "okay";
106         ethernet0-port@0 {
107                 phy-handle = <&ethphy0>;
108         };
109 };