kirkwood: resize kernel partition for kirkwood devices
[openwrt/openwrt.git] / target / linux / kirkwood / files / arch / arm / boot / dts / kirkwood-ix4-200d.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "kirkwood.dtsi"
5 #include "kirkwood-6281.dtsi"
6 #include <dt-bindings/leds/common.h>
7
8 / {
9 model = "Iomega ix4-200d";
10 compatible = "iom,ix4-200d", "marvell,kirkwood-88f6281", "marvell,kirkwood";
11
12 aliases {
13 led-boot = &led_status_white;
14 led-failsafe = &led_status_red;
15 led-running = &led_power_white;
16 led-upgrade = &led_status_red;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200n8 earlyprintk";
21 stdout-path = &uart0;
22 };
23
24 memory {
25 device_type = "memory";
26 reg = <0x00000000 0x20000000>;
27 };
28
29 ocp@f1000000 {
30 i2c@11000 {
31 status = "okay";
32
33 adt7473@2e {
34 compatible = "adi,adt7473";
35 reg = <0x2e>;
36 };
37 };
38
39 pinctrl: pin-controller@10000 {
40 pmx_spi: pmx-spi {
41 marvell,pins = "mpp12", "mpp13", "mpp14";
42 marvell,function = "gpio";
43 };
44
45 pmx_keys: pmx-keys {
46 marvell,pins = "mpp16", "mpp29", "mpp47", "mpp49";
47 marvell,function = "gpio";
48 };
49 };
50
51 sata@80000 {
52 status = "okay";
53 nr-ports = <2>;
54 };
55
56 serial@12000 {
57 status = "okay";
58 };
59
60 spi3 {
61 compatible = "spi-gpio";
62 #address-cells = <0x1>;
63 ranges;
64 status = "okay";
65 sck-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
66 mosi-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
67 cs-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
68 num-chipselects = <1>;
69 #size-cells = <0>;
70
71 gpio_spi: gpio_spi@0 {
72 compatible = "fairchild,74hc595";
73 reg = <0>;
74 gpio-controller;
75 #gpio-cells = <2>;
76 registers-number = <1>;
77 spi-max-frequency = <100000>;
78 };
79 };
80
81 gpio-keys {
82 compatible = "gpio-keys";
83 pinctrl-0 = <&pmx_keys>;
84 pinctrl-names = "default";
85
86 button-0 {
87 label = "Next Button";
88 linux,code = <BTN_0>;
89 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
90 };
91
92 button-1 {
93 label = "Reset Button";
94 linux,code = <KEY_RESTART>;
95 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
96 };
97
98 button-2 {
99 label = "Cancel Button";
100 linux,code = <BTN_1>;
101 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
102 };
103
104 button-3 {
105 label = "Power Button";
106 linux,code = <KEY_POWER2>;
107 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
108 };
109 };
110
111 gpio-leds {
112 compatible = "gpio-leds";
113
114 led_status_white: led-0 {
115 function = LED_FUNCTION_STATUS;
116 color = <LED_COLOR_ID_WHITE>;
117 gpios = <&gpio_spi 4 GPIO_ACTIVE_LOW>;
118 };
119
120 led_status_red: led-1 {
121 function = LED_FUNCTION_STATUS;
122 color = <LED_COLOR_ID_RED>;
123 gpios = <&gpio_spi 5 GPIO_ACTIVE_LOW>;
124 };
125
126 led_power_white: led-2 {
127 function = LED_FUNCTION_POWER;
128 color = <LED_COLOR_ID_WHITE>;
129 gpios = <&gpio_spi 7 GPIO_ACTIVE_HIGH>;
130 };
131 };
132 };
133 };
134
135 &eth0 {
136 status = "okay";
137 ethernet0-port@0 {
138 phy-handle = <&ethphy0>;
139 };
140 };
141
142 &eth1 {
143 status = "okay";
144 ethernet1-port@0 {
145 phy-handle = <&ethphy1>;
146 };
147 };
148
149 &mdio {
150 status = "okay";
151
152 ethphy0: ethernet-phy@8 {
153 reg = <8>;
154 };
155
156 ethphy1: ethernet-phy@9 {
157 reg = <9>;
158 };
159 };
160
161 &nand {
162 status = "okay";
163
164 partitions {
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
167 #size-cells = <1>;
168
169 partition@0 {
170 label = "u-boot";
171 reg = <0x0000000 0x100000>;
172 read-only;
173 };
174
175 partition@a0000 {
176 label = "u-boot environment";
177 reg = <0xa0000 0x20000>;
178 read-only;
179 };
180
181 partition@100000 {
182 label = "kernel";
183 reg = <0x100000 0x400000>;
184 };
185
186 partition@500000 {
187 label = "ubi";
188 reg = <0x500000 0x1B00000>;
189 };
190 };
191 };
192
193 &pciec {
194 status = "okay";
195 };
196
197 &pcie0 {
198 status = "okay";
199 };