mediatek: dts: mt7988a: wire-up mediatek,pio for PHY LEDs
authorDaniel Golle <daniel@makrotopia.org>
Sat, 8 Jul 2023 15:27:25 +0000 (16:27 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 8 Jul 2023 15:36:49 +0000 (16:36 +0100)
The PHY driver needs to read a register containing the values of the
bootstrap pins (which happen to be the PHY LEDs) to determine the LED
polarities. Allow regmap access to first pinctrl bank by adding the
'syscon' compatible, and reference the pinctrl in the MDIO bus where
the PHY driver will look for it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7988a-dsa-10g-spim-nand.dts
target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
target/linux/mediatek/files-6.1/arch/arm64/boot/dts/mediatek/mt7988a-dsa-10g-spim-nand.dts
target/linux/mediatek/files-6.1/arch/arm64/boot/dts/mediatek/mt7988a.dtsi

index 98dbf8d6913ff1e6d95bdfab33a3289649ee9b99..e204dc4f166a42d9304c7a81ba0f04b11b968fdf 100644 (file)
        mdio {
                #address-cells = <1>;
                #size-cells = <0>;
+               mediatek,pio = <&pio>;
 
                gsw_phy0: ethernet-phy@0 {
                        compatible = "ethernet-phy-id03a2.9481";
index 13ad39500d1b932fd4b9a35c4644e324b47b05ce..17de885629e18b56b352cf95a20ff2ec2c61b958 100644 (file)
                };
 
                pio: pinctrl@1001f000 {
-                       compatible = "mediatek,mt7988-pinctrl";
+                       compatible = "mediatek,mt7988-pinctrl", "syscon";
                        reg = <0 0x1001f000 0 0x1000>,
                        <0 0x11c10000 0 0x1000>,
                        <0 0x11d00000 0 0x1000>,
index 98dbf8d6913ff1e6d95bdfab33a3289649ee9b99..e204dc4f166a42d9304c7a81ba0f04b11b968fdf 100644 (file)
        mdio {
                #address-cells = <1>;
                #size-cells = <0>;
+               mediatek,pio = <&pio>;
 
                gsw_phy0: ethernet-phy@0 {
                        compatible = "ethernet-phy-id03a2.9481";
index 13ad39500d1b932fd4b9a35c4644e324b47b05ce..17de885629e18b56b352cf95a20ff2ec2c61b958 100644 (file)
                };
 
                pio: pinctrl@1001f000 {
-                       compatible = "mediatek,mt7988-pinctrl";
+                       compatible = "mediatek,mt7988-pinctrl", "syscon";
                        reg = <0 0x1001f000 0 0x1000>,
                        <0 0x11c10000 0 0x1000>,
                        <0 0x11d00000 0 0x1000>,