44102352af8baa9d2dfe4436ba41dd7a122c7582
[openwrt/openwrt.git] / target / linux / oxnas / patches-5.15 / 010-pogoplug-series-3.patch
1 - add compatible string
2 - add console to bootargs
3 - add led aliases
4 - adjust nand partition table
5 ---
6 --- a/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
7 +++ b/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
8 @@ -11,10 +11,10 @@
9 / {
10 model = "Cloud Engines PogoPlug Series 3";
11
12 - compatible = "cloudengines,pogoplugv3", "oxsemi,ox820";
13 + compatible = "cloudengines,pogoplug-series-3", "cloudengines,pogoplugv3", "oxsemi,ox820";
14
15 chosen {
16 - bootargs = "earlyprintk";
17 + bootargs = "earlyprintk console=ttyS0,115200";
18 stdout-path = "serial0:115200n8";
19 };
20
21 @@ -27,24 +27,28 @@
22 serial0 = &uart0;
23 gpio0 = &gpio0;
24 gpio1 = &gpio1;
25 + led-boot = &led_status;
26 + led-failsafe = &led_warn;
27 + led-running = &led_act;
28 + led-upgrade = &led_warn;
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 - blue {
35 + led_status: blue {
36 label = "pogoplug:blue";
37 gpios = <&gpio0 2 0>;
38 default-state = "keep";
39 };
40
41 - orange {
42 + led_warn: orange {
43 label = "pogoplug:orange";
44 gpios = <&gpio1 16 1>;
45 default-state = "keep";
46 };
47
48 - green {
49 + led_act: green {
50 label = "pogoplug:green";
51 gpios = <&gpio1 17 1>;
52 default-state = "keep";
53 @@ -73,11 +77,27 @@
54 nand-ecc-algo = "hamming";
55
56 partition@0 {
57 - label = "boot";
58 - reg = <0x00000000 0x00e00000>;
59 + label = "stage1";
60 + reg = <0x00000000 0x00040000>;
61 read-only;
62 };
63
64 + partition@40000 {
65 + label = "u-boot";
66 + reg = <0x00040000 0x00380000>;
67 + read-only;
68 + };
69 +
70 + partition@3c0000 {
71 + label = "u-boot-env";
72 + reg = <0x003c0000 0x00080000>;
73 + };
74 +
75 + partition@440000 {
76 + label = "kernel";
77 + reg = <0x00440000 0x009c0000>;
78 + };
79 +
80 partition@e00000 {
81 label = "ubi";
82 reg = <0x00e00000 0x07200000>;