forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.txt
....@@ -4,12 +4,33 @@
44 device. The node is expected to be specified as a child node of the PCI
55 controller to which the wireless chip is connected.
66
7
+Alternatively, it can specify the wireless part of the MT7628/MT7688 or
8
+MT7622 SoC. For SoC, use the following compatible strings:
9
+
10
+compatible:
11
+- "mediatek,mt7628-wmac" for MT7628/MT7688
12
+- "mediatek,mt7622-wmac" for MT7622
13
+
14
+properties:
15
+- reg: Address and length of the register set for the device.
16
+- interrupts: Main device interrupt
17
+
18
+MT7622 specific properties:
19
+- power-domains: phandle to the power domain that the WMAC is part of
20
+- mediatek,infracfg: phandle to the infrastructure bus fabric syscon node
21
+
722 Optional properties:
823
9
-- mac-address: See ethernet.txt in the parent directory
10
-- local-mac-address: See ethernet.txt in the parent directory
1124 - ieee80211-freq-limit: See ieee80211.txt
1225 - mediatek,mtd-eeprom: Specify a MTD partition + offset containing EEPROM data
26
+- big-endian: if the radio eeprom partition is written in big-endian, specify
27
+ this property
28
+- mediatek,eeprom-merge-otp: Merge EEPROM data with OTP data. Can be used on
29
+ boards where the flash calibration data is generic and specific calibration
30
+ data should be pulled from the OTP ROM
31
+
32
+The MAC address can as well be set with corresponding optional properties
33
+defined in net/ethernet.txt.
1334
1435 Optional nodes:
1536 - led: Properties for a connected LED
....@@ -23,6 +44,7 @@
2344 reg = <0x0000 0 0 0 0>;
2445 ieee80211-freq-limit = <5000000 6000000>;
2546 mediatek,mtd-eeprom = <&factory 0x8000>;
47
+ big-endian;
2648
2749 led {
2850 led-sources = <2>;
....@@ -30,3 +52,27 @@
3052 };
3153 };
3254 };
55
+
56
+MT7628 example:
57
+
58
+wmac: wmac@10300000 {
59
+ compatible = "mediatek,mt7628-wmac";
60
+ reg = <0x10300000 0x100000>;
61
+
62
+ interrupt-parent = <&cpuintc>;
63
+ interrupts = <6>;
64
+
65
+ mediatek,mtd-eeprom = <&factory 0x0000>;
66
+};
67
+
68
+MT7622 example:
69
+
70
+wmac: wmac@18000000 {
71
+ compatible = "mediatek,mt7622-wmac";
72
+ reg = <0 0x18000000 0 0x100000>;
73
+ interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
74
+
75
+ mediatek,infracfg = <&infracfg>;
76
+
77
+ power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
78
+};