74043c097af84c588b727077405412e029acc9f0
[openwrt/staging/rmilecki.git] / target / linux / rtl838x / dts / 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 leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 label = "green:power";
25 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
26 };
27 };
28 };
29
30 &gpio0 {
31 indirect-access-bus-id = <0>;
32 };
33
34 &spi0 {
35 status = "okay";
36 flash@0 {
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <10000000>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x00000000 0x80000>;
49 read-only;
50 };
51 partition@80000 {
52 label = "u-boot-env";
53 reg = <0x00080000 0x40000>;
54 read-only;
55 };
56 partition@c0000 {
57 label = "u-boot-env2";
58 reg = <0x000c0000 0x40000>;
59 read-only;
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 };