kirkwood: rename files-5.4 to files
[openwrt/staging/thess.git] / target / linux / kirkwood / files / arch / arm / boot / dts / kirkwood-on100.dts
1 /dts-v1/;
2
3 #include "kirkwood.dtsi"
4 #include "kirkwood-6282.dtsi"
5
6 / {
7 model = "Cisco Systems ON100";
8 compatible = "cisco,on100", "marvell,kirkwood-88f6282", "marvell,kirkwood";
9
10 memory@0 {
11 device_type = "memory";
12 reg = <0x00000000 0x20000000>;
13 };
14
15 aliases {
16 led-boot = &led_health_green;
17 led-failsafe = &led_health_red;
18 led-running = &led_health_green;
19 led-upgrade = &led_health_red;
20 serial0 = &uart0;
21 };
22
23 chosen {
24 bootargs = "console=ttyS0,115200n8 earlyprintk";
25 stdout-path = "serial0:115200n8";
26 };
27
28 gpio-keys {
29 compatible = "gpio-keys";
30
31 pinctrl-0 = <&pmx_btn_reset>;
32 pinctrl-names = "default";
33
34 reset {
35 label = "Reset Button";
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 gpio-leds {
42 compatible = "gpio-leds";
43
44 pinctrl-0 = <&pmx_led_health_red &pmx_led_health_green>;
45 pinctrl-names = "default";
46
47 led_health_green: health-green {
48 label = "on100:green:health";
49 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
50 default-state = "on";
51 };
52
53 led_health_red: health-red {
54 label = "on100:red:health";
55 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
56 };
57
58 health2-green {
59 label = "on100:green:health2";
60 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
61 };
62
63 health2-red {
64 label = "on100:red:health2";
65 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
66 };
67 };
68 };
69
70 &eth0 {
71 status = "okay";
72
73 ethernet0-port@0 {
74 phy-handle = <&ethphy0>;
75 phy-connection-type = "rgmii-id";
76 };
77 };
78
79 &eth1 {
80 status = "okay";
81
82 ethernet1-port@0 {
83 phy-handle = <&ethphy1>;
84 phy-connection-type = "rgmii-id";
85 };
86 };
87
88 &mdio {
89 status = "okay";
90
91 ethphy0: ethernet-phy@0 {
92 /* Marvell 88E1121R */
93 compatible = "ethernet-phy-id0141.0cb0",
94 "ethernet-phy-ieee802.3-c22";
95 reg = <0>;
96 };
97
98 ethphy1: ethernet-phy@1 {
99 /* Marvell 88E1121R */
100 compatible = "ethernet-phy-id0141.0cb0",
101 "ethernet-phy-ieee802.3-c22";
102 reg = <1>;
103 };
104 };
105
106 &nand {
107 status = "okay";
108
109 partition@0 {
110 label = "u-boot";
111 reg = <0x00000000 0x000a0000>;
112 read-only;
113 };
114
115 partition@a0000 {
116 label = "u-boot environment";
117 reg = <0x000a0000 0x00020000>;
118 read-only;
119 };
120
121 partition@c0000 {
122 label = "kernel";
123 reg = <0x000c0000 0x00540000>;
124 };
125
126 partition@600000 {
127 label = "ubi";
128 reg = <0x00600000 0x1fa00000>;
129 };
130 };
131
132 &pinctrl {
133 pmx_led_health_red: pmx-led-health-red {
134 marvell,pins = "mpp45";
135 marvell,function = "gpio";
136 };
137
138 pmx_led_health_green: pmx-led-health-green {
139 marvell,pins = "mpp44";
140 marvell,function = "gpio";
141 };
142
143 pmx_led_health2_red: pmx-led-health2-red {
144 marvell,pins = "mpp47";
145 marvell,function = "gpio";
146 };
147
148 pmx_led_health2_green: pmx-led-health2-green {
149 marvell,pins = "mpp46";
150 marvell,function = "gpio";
151 };
152
153 pmx_btn_reset: pmx-btn-reset {
154 marvell,pins = "mpp31";
155 marvell,function = "gpio";
156 };
157 };
158
159 &sdio {
160 status = "okay";
161 };
162
163 &uart0 {
164 status = "okay";
165 };