realtek: D-Link make common DT include generic
[openwrt/openwrt.git] / target / linux / realtek / dts-5.10 / rtl83xx_d-link_dgs-1210_common.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
5
6 / {
7 aliases {
8 led-boot = &led_power;
9 led-failsafe = &led_power;
10 led-running = &led_power;
11 led-upgrade = &led_power;
12 };
13
14 memory@0 {
15 device_type = "memory";
16 reg = <0x0 0x8000000>;
17 };
18
19 leds: leds {
20 pinctrl-names = "default";
21 pinctrl-0 = <&pinmux_disable_sys_led>;
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 };
56 partition@c0000 {
57 label = "board-name";
58 reg = <0x000c0000 0x40000>;
59 };
60 partition@280000 {
61 label = "firmware";
62 compatible = "denx,uimage";
63 reg = <0x00100000 0xd80000>;
64 };
65 partition@be80000 {
66 label = "kernel2";
67 reg = <0x00e80000 0x180000>;
68 };
69 partition@1000000 {
70 label = "sysinfo";
71 reg = <0x01000000 0x40000>;
72 };
73 partition@1040000 {
74 label = "rootfs2";
75 reg = <0x01040000 0xc00000>;
76 };
77 partition@1c40000 {
78 label = "jffs2";
79 reg = <0x01c40000 0x3c0000>;
80 };
81 };
82 };
83 };