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