mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
df6154848a
Improve compatibility of the device tree include file. Now a new .dtsi file will support both PSG1218A, PSG1218B and K2G. Signed-off-by: Shiji Yang <yangshiji66@qq.com> [improve commit title, rebase] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
50 lines
734 B
Plaintext
50 lines
734 B
Plaintext
#include "mt7620a_phicomm_k2x.dtsi"
|
|
|
|
/ {
|
|
compatible = "phicomm,k2g", "ralink,mt7620a-soc";
|
|
model = "Phicomm K2G";
|
|
};
|
|
|
|
&partitions {
|
|
partition@50000 {
|
|
reg = <0x50000 0x50000>;
|
|
label = "permanent_config";
|
|
read-only;
|
|
};
|
|
|
|
partition@a0000 {
|
|
compatible = "denx,uimage";
|
|
reg = <0xa0000 0x760000>;
|
|
label = "firmware";
|
|
};
|
|
};
|
|
|
|
ðernet {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
|
|
|
|
mtd-mac-address = <&factory 0x28>;
|
|
|
|
mediatek,portmap = "llllw";
|
|
|
|
port@5 {
|
|
status = "okay";
|
|
phy-handle = <&phy5>;
|
|
phy-mode = "rgmii";
|
|
};
|
|
|
|
mdio-bus {
|
|
status = "okay";
|
|
|
|
phy5: ethernet-phy@5 {
|
|
reg = <5>;
|
|
phy-mode = "rgmii";
|
|
};
|
|
};
|
|
};
|
|
|
|
&wmac {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pa_pins>;
|
|
};
|