42da3e733225c472bd969e8de9bd8f3084c02c58
[openwrt/staging/wigyori.git] / target / linux / kirkwood / patches-4.14 / 108-on100.patch
1 --- /dev/null
2 +++ b/arch/arm/boot/dts/kirkwood-on100.dts
3 @@ -0,0 +1,164 @@
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 {
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 + #address-cells = <1>;
34 + #size-cells = <0>;
35 + pinctrl-0 = <&pmx_btn_reset>;
36 + pinctrl-names = "default";
37 +
38 + button@1 {
39 + label = "Reset Button";
40 + linux,code = <KEY_RESTART>;
41 + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
42 + };
43 + };
44 +
45 + gpio-leds {
46 + compatible = "gpio-leds";
47 + pinctrl-0 = < &pmx_led_health_r &pmx_led_health_g >;
48 + pinctrl-names = "default";
49 +
50 + led_health_green: health_green {
51 + label = "on100:green:health";
52 + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
53 + };
54 +
55 + led_health_red: health_red {
56 + label = "on100:red:health";
57 + gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
58 + };
59 +
60 + health2_green {
61 + label = "on100:green:health2";
62 + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
63 + };
64 +
65 + health2_red {
66 + label = "on100:red:health2";
67 + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
68 + };
69 + };
70 +};
71 +
72 +&eth0 {
73 + status = "okay";
74 +
75 + ethernet0-port@0 {
76 + phy-handle = <&ethphy0>;
77 + phy-connection-type = "rgmii-id";
78 + };
79 +};
80 +
81 +&eth1 {
82 + status = "okay";
83 +
84 + ethernet1-port@0 {
85 + phy-handle = <&ethphy1>;
86 + phy-connection-type = "rgmii-id";
87 + };
88 +};
89 +
90 +&mdio {
91 + status = "okay";
92 +
93 + ethphy0: ethernet-phy@0 {
94 + /* Marvell 88E1121R */
95 + compatible = "ethernet-phy-id0141.0cb0",
96 + "ethernet-phy-ieee802.3-c22";
97 + reg = <0>;
98 + };
99 +
100 + ethphy1: ethernet-phy@1 {
101 + /* Marvell 88E1121R */
102 + compatible = "ethernet-phy-id0141.0cb0",
103 + "ethernet-phy-ieee802.3-c22";
104 + reg = <1>;
105 + };
106 +};
107 +
108 +&nand {
109 + status = "okay";
110 +
111 + partition@0 {
112 + label = "u-boot";
113 + reg = <0x00000000 0x000a0000>;
114 + read-only;
115 + };
116 +
117 + partition@a0000 {
118 + label = "u-boot environment";
119 + reg = <0x000a0000 0x00020000>;
120 + read-only;
121 + };
122 +
123 + partition@c0000 {
124 + label = "kernel";
125 + reg = <0x000c0000 0x00540000>;
126 + };
127 +
128 + partition@600000 {
129 + label = "ubi";
130 + reg = <0x00600000 0x1fa00000>;
131 + };
132 +};
133 +
134 +&pinctrl {
135 + pmx_led_health_r: pmx-led-health-r {
136 + marvell,pins = "mpp45";
137 + marvell,function = "gpio";
138 + };
139 +
140 + pmx_led_health_g: pmx-led-health-g {
141 + marvell,pins = "mpp44";
142 + marvell,function = "gpio";
143 + };
144 +
145 + pmx_led_health2_r: pmx-led-health2-r {
146 + marvell,pins = "mpp47";
147 + marvell,function = "gpio";
148 + };
149 +
150 + pmx_led_health2_g: pmx-led-health2-g {
151 + marvell,pins = "mpp46";
152 + marvell,function = "gpio";
153 + };
154 +
155 + pmx_btn_reset: pmx-led-reset {
156 + marvell,pins = "mpp31";
157 + marvell,function = "gpio";
158 + };
159 +};
160 +
161 +&sdio {
162 + status = "okay";
163 +};
164 +
165 +&uart0 {
166 + status = "okay";
167 +};
168 --- a/arch/arm/boot/dts/Makefile
169 +++ b/arch/arm/boot/dts/Makefile
170 @@ -271,6 +271,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
171 kirkwood-nsa310b.dtb \
172 kirkwood-nsa320.dtb \
173 kirkwood-nsa325.dtb \
174 + kirkwood-on100.dtb \
175 kirkwood-openblocks_a6.dtb \
176 kirkwood-openblocks_a7.dtb \
177 kirkwood-openrd-base.dtb \