ramips: mt7621-wdt: use phandle to access system controller registers
[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
63 partition@50000 {
64 compatible = "denx,uimage";
65 label = "firmware";
66 reg = <0x50000 0xfb0000>;
67 };
68 };
69 };
70 };
71
72 &ehci {
73 status = "okay";
74 };
75
76 &ohci {
77 status = "okay";
78 };
79
80 &pcie {
81 status = "okay";
82 };
83
84 &pcie0 {
85 mt76@0,0 {
86 reg = <0x0000 0 0 0 0>;
87 mediatek,mtd-eeprom = <&factory 0x8000>;
88 ieee80211-freq-limit = <5000000 6000000>;
89 };
90 };
91
92 &wmac {
93 pinctrl-names = "default", "pa_gpio";
94 pinctrl-0 = <&pa_pins>;
95 pinctrl-1 = <&pa_gpio_pins>;
96
97 ralink,mtd-eeprom = <&factory 0x0>;
98 };
99
100 &state_default {
101 gpio {
102 groups = "uartf", "wled", "nd_sd";
103 function = "gpio";
104 };
105 };