mediatek: use mac-base
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_jotale_js76x8.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "jotale,js76x8", "mediatek,mt7628an-soc";
10
11 aliases {
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led_system: system {
26 label = "green:system";
27 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
28 };
29
30 wifi {
31 label = "green:wifi";
32 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 reset {
41 label = "reset";
42 gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46 };
47
48 &state_default {
49 gpio {
50 groups = "refclk", "wdt", "wled_an";
51 function = "gpio";
52 };
53 };
54
55 &spi0 {
56 status = "okay";
57
58 pinctrl-names = "default";
59 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
60
61 flash0: flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <40000000>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x30000>;
74 read-only;
75 };
76
77 partition@30000 {
78 label = "u-boot-env";
79 reg = <0x30000 0x10000>;
80 read-only;
81 };
82
83 factory: partition@40000 {
84 compatible = "nvmem-cells";
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 #address-cells = <1>;
88 #size-cells = <1>;
89 read-only;
90
91 eeprom_factory_0: eeprom@0 {
92 reg = <0x0 0x400>;
93 };
94
95 macaddr_factory_28: macaddr@28 {
96 reg = <0x28 0x6>;
97 };
98 };
99
100 firmware: partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 /* reg property is set based on flash size in DTS files */
104 };
105 };
106 };
107 };
108
109 &i2c {
110 status = "okay";
111 };
112
113 &i2s {
114 status = "okay";
115 };
116
117 &uart1 {
118 status = "okay";
119 };
120
121 &uart2 {
122 status = "okay";
123 };
124
125 &ethernet {
126 nvmem-cells = <&macaddr_factory_28>;
127 nvmem-cell-names = "mac-address";
128 };
129
130 &sdhci {
131 status = "okay";
132 mediatek,cd-low;
133 };
134
135 &wmac {
136 status = "okay";
137
138 nvmem-cells = <&eeprom_factory_0>;
139 nvmem-cell-names = "eeprom";
140 };