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