realtek: rename u-boot-env2 to board-name
[openwrt/staging/pepe2k.git] / target / linux / realtek / dts-5.10 / rtl8382_d-link_dgs-1210.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "rtl838x.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_power: power {
25 label = "green:power";
26 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
27 };
28 };
29 };
30
31 &gpio0 {
32 indirect-access-bus-id = <0>;
33 };
34
35 &spi0 {
36 status = "okay";
37 flash@0 {
38 compatible = "jedec,spi-nor";
39 reg = <0>;
40 spi-max-frequency = <10000000>;
41
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 partition@0 {
48 label = "u-boot";
49 reg = <0x00000000 0x80000>;
50 read-only;
51 };
52 partition@80000 {
53 label = "u-boot-env";
54 reg = <0x00080000 0x40000>;
55 read-only;
56 };
57 partition@c0000 {
58 label = "board-name";
59 reg = <0x000c0000 0x40000>;
60 };
61 partition@280000 {
62 label = "firmware";
63 compatible = "denx,uimage";
64 reg = <0x00100000 0xd80000>;
65 };
66 partition@be80000 {
67 label = "kernel2";
68 reg = <0x00e80000 0x180000>;
69 };
70 partition@1000000 {
71 label = "sysinfo";
72 reg = <0x01000000 0x40000>;
73 };
74 partition@1040000 {
75 label = "rootfs2";
76 reg = <0x01040000 0xc00000>;
77 };
78 partition@1c40000 {
79 label = "jffs2";
80 reg = <0x01c40000 0x3c0000>;
81 };
82 };
83 };
84 };