ramips: dts: rt5350: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_lenovo_newifi-y1.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22 };
23
24 &gpio2 {
25 status = "okay";
26 };
27
28 &gpio3 {
29 status = "okay";
30 };
31
32 &spi0 {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <10000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "u-boot-env";
53 reg = <0x30000 0x10000>;
54 read-only;
55 };
56
57 factory: partition@40000 {
58 label = "factory";
59 reg = <0x40000 0x10000>;
60 read-only;
61
62 nvmem-layout {
63 compatible = "fixed-layout";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 eeprom_factory_0: eeprom@0 {
68 reg = <0x0 0x200>;
69 };
70
71 eeprom_factory_8000: eeprom@8000 {
72 reg = <0x8000 0x200>;
73 };
74
75 macaddr_factory_28: macaddr@28 {
76 reg = <0x28 0x6>;
77 };
78 };
79 };
80
81 partition@50000 {
82 compatible = "denx,uimage";
83 label = "firmware";
84 reg = <0x50000 0xfb0000>;
85 };
86 };
87 };
88 };
89
90 &ehci {
91 status = "okay";
92 };
93
94 &ohci {
95 status = "okay";
96 };
97
98 &pcie {
99 status = "okay";
100 };
101
102 &pcie0 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 nvmem-cells = <&eeprom_factory_8000>;
106 nvmem-cell-names = "eeprom";
107 ieee80211-freq-limit = <5000000 6000000>;
108 };
109 };
110
111 &wmac {
112 pinctrl-names = "default", "pa_gpio";
113 pinctrl-0 = <&pa_pins>;
114 pinctrl-1 = <&pa_gpio_pins>;
115 nvmem-cells = <&eeprom_factory_0>;
116 nvmem-cell-names = "eeprom";
117 };
118
119 &state_default {
120 gpio {
121 groups = "uartf", "wled", "nd_sd";
122 function = "gpio";
123 };
124 };