kirkwood: use generic diag.sh
[openwrt/staging/lynxis.git] / target / linux / kirkwood / patches-4.19 / 108-on100.patch
1 --- /dev/null
2 +++ b/arch/arm/boot/dts/kirkwood-on100.dts
3 @@ -0,0 +1,162 @@
4 +/dts-v1/;
5 +
6 +#include "kirkwood.dtsi"
7 +#include "kirkwood-6282.dtsi"
8 +
9 +/ {
10 + model = "Cisco Systems ON100";
11 + compatible = "cisco,on100", "marvell,kirkwood-88f6282", "marvell,kirkwood";
12 +
13 + memory@0 {
14 + device_type = "memory";
15 + reg = <0x00000000 0x20000000>;
16 + };
17 +
18 + aliases {
19 + led-boot = &led_health_green;
20 + led-failsafe = &led_health_red;
21 + led-running = &led_health_green;
22 + led-upgrade = &led_health_red;
23 + serial0 = &uart0;
24 + };
25 +
26 + chosen {
27 + bootargs = "console=ttyS0,115200n8 earlyprintk";
28 + stdout-path = "serial0:115200n8";
29 + };
30 +
31 + gpio_keys {
32 + compatible = "gpio-keys";
33 + pinctrl-0 = <&pmx_btn_reset>;
34 + pinctrl-names = "default";
35 +
36 + reset {
37 + label = "Reset Button";
38 + linux,code = <KEY_RESTART>;
39 + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
40 + };
41 + };
42 +
43 + gpio-leds {
44 + compatible = "gpio-leds";
45 + pinctrl-0 = < &pmx_led_health_r &pmx_led_health_g >;
46 + pinctrl-names = "default";
47 +
48 + led_health_green: health_green {
49 + label = "on100:green:health";
50 + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
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_r: pmx-led-health-r {
134 + marvell,pins = "mpp45";
135 + marvell,function = "gpio";
136 + };
137 +
138 + pmx_led_health_g: pmx-led-health-g {
139 + marvell,pins = "mpp44";
140 + marvell,function = "gpio";
141 + };
142 +
143 + pmx_led_health2_r: pmx-led-health2-r {
144 + marvell,pins = "mpp47";
145 + marvell,function = "gpio";
146 + };
147 +
148 + pmx_led_health2_g: pmx-led-health2-g {
149 + marvell,pins = "mpp46";
150 + marvell,function = "gpio";
151 + };
152 +
153 + pmx_btn_reset: pmx-led-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 +};
166 --- a/arch/arm/boot/dts/Makefile
167 +++ b/arch/arm/boot/dts/Makefile
168 @@ -290,6 +290,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
169 kirkwood-nsa310b.dtb \
170 kirkwood-nsa320.dtb \
171 kirkwood-nsa325.dtb \
172 + kirkwood-on100.dtb \
173 kirkwood-openblocks_a6.dtb \
174 kirkwood-openblocks_a7.dtb \
175 kirkwood-openrd-base.dtb \