ramips: drop remaining m25p,chunked-io from DTS
[openwrt/openwrt.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 = "js76x8:green:system";
27 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
28 };
29
30 wifi {
31 label = "js76x8: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 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 label = "factory";
85 reg = <0x40000 0x10000>;
86 read-only;
87 };
88
89 firmware: partition@50000 {
90 compatible = "denx,uimage";
91 label = "firmware";
92 /* reg property is set based on flash size in DTS files */
93 };
94 };
95 };
96 };
97
98 &i2c {
99 status = "okay";
100 };
101
102 &i2s {
103 status = "okay";
104 };
105
106 &uart1 {
107 status = "okay";
108 };
109
110 &uart2 {
111 status = "okay";
112 };
113
114 &ethernet {
115 mtd-mac-address = <&factory 0x28>;
116 };
117
118 &sdhci {
119 status = "okay";
120 mediatek,cd-low;
121 };
122
123 &wmac {
124 status = "okay";
125 };