ath79: qca: convert to nvmem-layout
[openwrt/staging/hauke.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 nvmem-layout {
50 compatible = "fixed-layout";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 macaddr_art_0: macaddr@0 {
55 reg = <0x0 0x6>;
56 };
57
58 macaddr_art_6: macaddr@6 {
59 reg = <0x6 0x6>;
60 };
61 };
62 };
63
64 partition@600000 {
65 label = "ubi";
66 reg = <0x600000 0x7a00000>;
67 };
68 };
69 };
70
71 &mdio0 {
72 status = "okay";
73
74 phy0: ethernet-phy@0 {
75 reg = <0>;
76 reset-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
77 };
78 };
79
80 &mdio1 {
81 status = "okay";
82
83 phy1: ethernet-phy@0 {
84 reg = <0>;
85 reset-gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
86 phy-mode = "sgmii";
87 at803x-override-sgmii-link-check;
88 };
89 };
90
91 &eth0 {
92 status = "okay";
93
94 nvmem-cells = <&macaddr_art_0>;
95 nvmem-cell-names = "mac-address";
96 phy-mode = "mii";
97 phy-handle = <&phy0>;
98 };
99
100 &eth1 {
101 status = "okay";
102
103 pll-data = <0x17000000 0x101 0x1313>;
104 phy-handle = <&phy1>;
105 qca955x-sgmii-fixup;
106 nvmem-cells = <&macaddr_art_6>;
107 nvmem-cell-names = "mac-address";
108 };
109
110 &wmac {
111 status = "okay";
112
113 gpio-controller;
114 mtd-cal-data = <&art 0x1000>;
115 };
116
117 &pcie0 {
118 status = "okay";
119 };
120
121 &usb_phy0 {
122 status = "okay";
123 };
124
125 &usb0 {
126 status = "okay";
127 };
128
129 &usb_phy1 {
130 status = "okay";
131 };
132
133 &usb1 {
134 status = "okay";
135 };