ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_phicomm_k2g.dts
1 #include "mt7620a_phicomm_k2x.dtsi"
2
3 / {
4 compatible = "phicomm,k2g", "ralink,mt7620a-soc";
5 model = "Phicomm K2G";
6 };
7
8 &partitions {
9 partition@50000 {
10 reg = <0x50000 0x50000>;
11 label = "permanent_config";
12 read-only;
13 };
14
15 partition@a0000 {
16 compatible = "denx,uimage";
17 reg = <0xa0000 0x760000>;
18 label = "firmware";
19 };
20 };
21
22 &ethernet {
23 pinctrl-names = "default";
24 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
25
26 nvmem-cells = <&macaddr_factory_28>;
27 nvmem-cell-names = "mac-address";
28
29 mediatek,portmap = "llllw";
30
31 port@5 {
32 status = "okay";
33 phy-handle = <&phy5>;
34 phy-mode = "rgmii";
35 };
36
37 mdio-bus {
38 status = "okay";
39
40 phy5: ethernet-phy@5 {
41 reg = <5>;
42 phy-mode = "rgmii";
43 };
44 };
45 };
46
47 &wmac {
48 pinctrl-names = "default";
49 pinctrl-0 = <&pa_pins>;
50 };
51
52 &factory {
53 compatible = "nvmem-cells";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 macaddr_factory_28: macaddr@28 {
58 reg = <0x28 0x6>;
59 };
60 };