ramips: Fix GB-PC1 cpuclock again
[openwrt/openwrt.git] / target / linux / ramips / dts / kn_rc.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "zyxel,keenetic-omni", "ralink,mt7620n-soc";
10 model = "ZyXEL Keenetic Omni";
11
12 gpio-leds {
13 compatible = "gpio-leds";
14
15 wan {
16 label = "kn_rc:green:wan";
17 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
18 };
19
20 usb {
21 label = "kn_rc:green:usb";
22 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
23 };
24
25 wifi {
26 label = "kn_rc:green:wifi";
27 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
28 };
29
30 power {
31 label = "kn_rc:green:power";
32 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 gpio-keys-polled {
37 compatible = "gpio-keys";
38 #address-cells = <1>;
39 #size-cells = <0>;
40 poll-interval = <20>;
41
42 reset {
43 label = "reset";
44 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47
48 wps {
49 label = "wps";
50 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 };
53
54 fn {
55 label = "fn";
56 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
57 linux,code = <BTN_0>;
58 };
59 };
60
61 gpio_export {
62 compatible = "gpio-export";
63 #size-cells = <0>;
64
65 usb_power {
66 gpio-export,name = "usb";
67 gpio-export,output = <1>;
68 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
69 };
70 };
71 };
72
73 &gpio1 {
74 status = "okay";
75 };
76
77 &gpio3 {
78 status = "okay";
79 };
80
81 &spi0 {
82 status = "okay";
83
84 m25p80@0 {
85 #address-cells = <1>;
86 #size-cells = <1>;
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <10000000>;
90
91 partition@0 {
92 label = "u-boot";
93 reg = <0x0 0x30000>;
94 read-only;
95 };
96
97 partition@30000 {
98 label = "u-boot-env";
99 reg = <0x30000 0x10000>;
100 read-only;
101 };
102
103 factory: partition@40000 {
104 label = "factory";
105 reg = <0x40000 0x10000>;
106 read-only;
107 };
108
109 partition@50000 {
110 label = "firmware";
111 reg = <0x50000 0x7b0000>;
112 };
113 };
114 };
115
116 &pinctrl {
117 state_default: pinctrl0 {
118 gpio {
119 ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled";
120 ralink,function = "gpio";
121 };
122 };
123 };
124
125 &ethernet {
126 mtd-mac-address = <&factory 0x4>;
127 mediatek,portmap = "llllw";
128 };
129
130 &wmac {
131 ralink,mtd-eeprom = <&factory 0>;
132 };
133
134 &ehci {
135 status = "okay";
136 };
137
138 &ohci {
139 status = "okay";
140 };