kirkwood: copy files to kernel 5.10
[openwrt/openwrt.git] / target / linux / kirkwood / patches-5.10 / 203-blackarmor-nas220.patch
1 --- a/arch/arm/boot/dts/kirkwood-blackarmor-nas220.dts
2 +++ b/arch/arm/boot/dts/kirkwood-blackarmor-nas220.dts
3 @@ -17,6 +17,13 @@
4 compatible = "seagate,blackarmor-nas220","marvell,kirkwood-88f6192",
5 "marvell,kirkwood";
6
7 + aliases {
8 + led-boot = &led_status_amber;
9 + led-failsafe = &led_status_amber;
10 + led-running = &led_status_blue;
11 + led-upgrade = &led_status_amber;
12 + };
13 +
14 memory { /* 128 MB */
15 device_type = "memory";
16 reg = <0x00000000 0x8000000>;
17 @@ -36,14 +43,14 @@
18 compatible = "gpio-keys";
19
20 reset {
21 - label = "Reset";
22 - linux,code = <KEY_POWER>;
23 + label = "Reset Button";
24 + linux,code = <KEY_RESTART>;
25 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
26 };
27
28 - button {
29 - label = "Power";
30 - linux,code = <KEY_SLEEP>;
31 + power {
32 + label = "Power Button";
33 + linux,code = <KEY_POWER>;
34 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
35 };
36 };
37 @@ -51,11 +58,27 @@
38 gpio-leds {
39 compatible = "gpio-leds";
40
41 - blue-power {
42 + led_power_blue: power_blue {
43 label = "nas220:blue:power";
44 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "default-on";
46 };
47 +
48 + disk_blue {
49 + label = "nas220:blue:disk";
50 + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
51 + linux,default-trigger = "disk-activity";
52 + };
53 +
54 + led_status_blue: status_blue {
55 + label = "nas220:blue:status";
56 + gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
57 + };
58 +
59 + led_status_amber: status_amber {
60 + label = "nas220:amber:status";
61 + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
62 + };
63 };
64
65 regulators {
66 @@ -153,6 +176,33 @@
67
68 &nand {
69 status = "okay";
70 +
71 + partitions {
72 + compatible = "fixed-partitions";
73 +
74 + partition@0 {
75 + label = "uboot";
76 + reg = <0x0 0xa0000>;
77 + read-only;
78 + };
79 +
80 + partition@a0000 {
81 + label = "uboot-env";
82 + reg = <0xa0000 0x10000>;
83 + read-only;
84 + };
85 +
86 + partition@b0000 {
87 + label = "reserved";
88 + reg = <0xb0000 0x10000>;
89 + read-only;
90 + };
91 +
92 + partition@c0000 {
93 + label = "ubi";
94 + reg = <0xc0000 0x1e80000>;
95 + };
96 + };
97 };
98
99 &mdio {