92296060c354b20c5b793948885c997fbac5e143
[openwrt/openwrt.git] / target / linux / mediatek / patches-5.4 / 0310-dts-add-wmac-support-for-mt7622-rfb1.patch
1 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
2 +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
3 @@ -714,6 +714,17 @@
4 status = "disabled";
5 };
6
7 + wmac: wmac@18000000 {
8 + compatible = "mediatek,mt7622-wmac";
9 + reg = <0 0x18000000 0 0x100000>;
10 + interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
11 +
12 + mediatek,infracfg = <&infracfg>;
13 + status = "disabled";
14 +
15 + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
16 + };
17 +
18 ssusbsys: ssusbsys@1a000000 {
19 compatible = "mediatek,mt7622-ssusbsys",
20 "syscon";
21 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
22 +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
23 @@ -589,7 +589,7 @@
24 reg = <0x140000 0x0080000>;
25 };
26
27 - partition@1c0000 {
28 + factory: partition@1c0000 {
29 label = "Factory";
30 reg = <0x1c0000 0x0040000>;
31 };
32 @@ -646,3 +646,8 @@
33 pinctrl-0 = <&watchdog_pins>;
34 status = "okay";
35 };
36 +
37 +&wmac {
38 + mediatek,mtd-eeprom = <&factory 0x0000>;
39 + status = "okay";
40 +};