ramips: fix pci/pcie related dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / K2P.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "phicomm,k2p", "mediatek,mt7621-soc";
10 model = "Phicomm K2P";
11
12 aliases {
13 led-status = &led_blue;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 stat_r {
29 label = "k2p:red:status";
30 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
31 };
32
33 stat_y {
34 label = "k2p:yellow:status";
35 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
36 };
37
38 led_blue: stat_b {
39 label = "k2p:blue:status";
40 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 gpio-keys-polled {
45 compatible = "gpio-keys-polled";
46 #address-cells = <1>;
47 #size-cells = <0>;
48 poll-interval = <20>;
49
50 reset {
51 label = "reset";
52 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55 };
56 };
57
58 &spi0 {
59 status = "okay";
60
61 m25p80@0 {
62 #address-cells = <1>;
63 #size-cells = <1>;
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67 m25p,chunked-io = <32>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x0 0x30000>;
72 read-only;
73 };
74
75 partition@30000 {
76 label = "u-boot-env";
77 reg = <0x30000 0x10000>;
78 read-only;
79 };
80
81 factory: partition@40000 {
82 label = "factory";
83 reg = <0x40000 0x10000>;
84 read-only;
85 };
86
87 partition@50000 {
88 label = "permanent_config";
89 reg = <0x50000 0x50000>;
90 read-only;
91 };
92
93 partition@a0000 {
94 label = "firmware";
95 reg = <0xa0000 0xf60000>;
96 };
97 };
98 };
99
100 &pcie {
101 status = "okay";
102 };
103
104 &pcie0 {
105 mt76@0,0 {
106 reg = <0x0000 0 0 0 0>;
107 mediatek,mtd-eeprom = <&factory 0x0>;
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0xe006>;
113 };
114
115 &pinctrl {
116 state_default: pinctrl0 {
117 gpio {
118 ralink,group = "i2c", "jtag";
119 ralink,function = "gpio";
120 };
121 };
122 };