realtek: copy dts directory for Kernel 5.10
[openwrt/openwrt.git] / target / linux / realtek / dts-5.4 / 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 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x8000000>;
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_power: power {
29 label = "green:power";
30 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
31 };
32 };
33 };
34
35 &gpio0 {
36 indirect-access-bus-id = <0>;
37 };
38
39 &spi0 {
40 status = "okay";
41 flash@0 {
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 spi-max-frequency = <10000000>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x00000000 0x80000>;
54 read-only;
55 };
56 partition@80000 {
57 label = "u-boot-env";
58 reg = <0x00080000 0x40000>;
59 read-only;
60 };
61 partition@c0000 {
62 label = "u-boot-env2";
63 reg = <0x000c0000 0x40000>;
64 };
65 partition@280000 {
66 label = "firmware";
67 compatible = "denx,uimage";
68 reg = <0x00100000 0xd80000>;
69 };
70 partition@be80000 {
71 label = "kernel2";
72 reg = <0x00e80000 0x180000>;
73 };
74 partition@1000000 {
75 label = "sysinfo";
76 reg = <0x01000000 0x40000>;
77 };
78 partition@1040000 {
79 label = "rootfs2";
80 reg = <0x01040000 0xc00000>;
81 };
82 partition@1c40000 {
83 label = "jffs2";
84 reg = <0x01c40000 0x3c0000>;
85 };
86 };
87 };
88 };