ramips: set F5D8235 v1 usb led trigger via devicetree
[openwrt/openwrt.git] / target / linux / ramips / dts / PSG1218.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "phicomm,psg1218", "ralink,mt7620a-soc";
8
9 gpio-keys-polled {
10 compatible = "gpio-keys-polled";
11 poll-interval = <20>;
12
13 reset {
14 label = "reset";
15 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
16 linux,code = <KEY_RESTART>;
17 };
18 };
19 };
20
21 &gpio0 {
22 status = "okay";
23 };
24
25 &spi0 {
26 status = "okay";
27
28 m25p80@0 {
29 compatible = "jedec,spi-nor";
30 reg = <0>;
31 spi-max-frequency = <10000000>;
32
33 partitions {
34 compatible = "fixed-partitions";
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 partition@0 {
39 label = "u-boot";
40 reg = <0x0 0x30000>;
41 read-only;
42 };
43
44 partition@20000 {
45 label = "u-boot-env";
46 reg = <0x30000 0x10000>;
47 read-only;
48 };
49
50 factory: partition@30000 {
51 label = "factory";
52 reg = <0x40000 0x10000>;
53 read-only;
54 };
55
56 partition@40000 {
57 label = "firmware";
58 reg = <0x50000 0x7b0000>;
59 };
60 };
61 };
62 };
63
64 &pcie {
65 status = "okay";
66 };
67
68 &pcie0 {
69 mt76@0,0 {
70 reg = <0x0000 0 0 0 0>;
71 mediatek,mtd-eeprom = <&factory 0x8000>;
72 ieee80211-freq-limit = <5000000 6000000>;
73 };
74 };
75
76 &wmac {
77 ralink,mtd-eeprom = <&factory 0>;
78 };