uboot-envtools: add env settings for Edgerouter-X
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9557_8dev_rambutan.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "8dev,rambutan", "qca,qca9557";
10 model = "8devices Rambutan";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "reset";
17 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
18 linux,code = <KEY_RESTART>;
19 debounce-interval = <60>;
20 };
21 };
22 };
23
24 &nand {
25 status = "okay";
26
27 partitions {
28 compatible = "fixed-partitions";
29
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 partition@0 {
34 label = "u-boot";
35 reg = <0x0 0x300000>;
36 read-only;
37 };
38
39 partition@300000 {
40 label = "u-boot-env";
41 reg = <0x300000 0x200000>;
42 };
43
44 art: partition@500000 {
45 label = "art";
46 reg = <0x500000 0x100000>;
47 read-only;
48 };
49
50 partition@600000 {
51 label = "ubi";
52 reg = <0x600000 0x7a00000>;
53 };
54 };
55 };
56
57 &mdio0 {
58 status = "okay";
59
60 phy0: ethernet-phy@0 {
61 reg = <0>;
62 reset-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 };
64 };
65
66 &mdio1 {
67 status = "okay";
68
69 phy1: ethernet-phy@0 {
70 reg = <0>;
71 reset-gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
72 phy-mode = "sgmii";
73 at803x-override-sgmii-link-check;
74 };
75 };
76
77 &eth0 {
78 status = "okay";
79
80 mtd-mac-address = <&art 0x0>;
81 phy-mode = "mii";
82 phy-handle = <&phy0>;
83 };
84
85 &eth1 {
86 status = "okay";
87
88 pll-data = <0x17000000 0x101 0x1313>;
89 phy-handle = <&phy1>;
90 qca955x-sgmii-fixup;
91 mtd-mac-address = <&art 0x6>;
92 };
93
94 &wmac {
95 status = "okay";
96
97 gpio-controller;
98 mtd-cal-data = <&art 0x1000>;
99 };
100
101 &pcie0 {
102 status = "okay";
103 };
104
105 &usb_phy0 {
106 status = "okay";
107 };
108
109 &usb0 {
110 status = "okay";
111
112 #address-cells = <1>;
113 #size-cells = <0>;
114 };
115
116 &usb_phy1 {
117 status = "okay";
118 };
119
120 &usb1 {
121 status = "okay";
122
123 #address-cells = <1>;
124 #size-cells = <0>;
125 };