arm64: dts: marvell: Convert 7k/8k usb-phy properties to phy-supply

Update Aramda 7k/8k DTs to use the phy-supply property of the (recent)
generic PHY framework instead of the (legacy) usb-phy preperty. Both
enable the supply when the PHY is enabled.

The COMPHY nodes only provide SERDES lanes configuration. The power
supply that is represented by the phy-supply property is just a
regulator wired to the USB connector, hence the creation of connector
nodes as child of the COMPHY nodes and the supply attached to it.

Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
This commit is contained in:
Miquel Raynal 2019-07-31 14:21:26 +02:00 committed by Gregory CLEMENT
parent ce55522c03
commit 96018a6faf
4 changed files with 35 additions and 30 deletions

View File

@ -73,16 +73,6 @@ cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
gpio = <&expander0 1 GPIO_ACTIVE_HIGH>; gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
vin-supply = <&cp0_exp_usb3_1_current_regulator>; vin-supply = <&cp0_exp_usb3_1_current_regulator>;
}; };
cp0_usb3_0_phy: cp0-usb3-0-phy {
compatible = "usb-nop-xceiv";
vcc-supply = <&cp0_reg_usb3_0_vbus>;
};
cp0_usb3_1_phy: cp0-usb3-1-phy {
compatible = "usb-nop-xceiv";
vcc-supply = <&cp0_reg_usb3_1_vbus>;
};
}; };
&i2c0 { &i2c0 {
@ -228,15 +218,27 @@ sata-port@1 {
}; };
}; };
&cp0_comphy1 {
cp0_usbh0_con: connector {
compatible = "usb-a-connector";
phy-supply = <&cp0_reg_usb3_0_vbus>;
};
};
&cp0_usb3_0 { &cp0_usb3_0 {
usb-phy = <&cp0_usb3_0_phy>;
phys = <&cp0_comphy1 0>; phys = <&cp0_comphy1 0>;
phy-names = "cp0-usb3h0-comphy"; phy-names = "cp0-usb3h0-comphy";
status = "okay"; status = "okay";
}; };
&cp0_comphy4 {
cp0_usbh1_con: connector {
compatible = "usb-a-connector";
phy-supply = <&cp0_reg_usb3_1_vbus>;
};
};
&cp0_usb3_1 { &cp0_usb3_1 {
usb-phy = <&cp0_usb3_1_phy>;
phys = <&cp0_comphy4 1>; phys = <&cp0_comphy4 1>;
phy-names = "cp0-usb3h1-comphy"; phy-names = "cp0-usb3h1-comphy";
status = "okay"; status = "okay";

View File

@ -51,11 +51,6 @@ v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
status = "okay"; status = "okay";
}; };
usb3h0_phy: usb3_phy0 {
compatible = "usb-nop-xceiv";
vcc-supply = <&v_5v0_usb3_hst_vbus>;
};
sfp_cp0_eth0: sfp-cp0-eth0 { sfp_cp0_eth0: sfp-cp0-eth0 {
compatible = "sff,sfp"; compatible = "sff,sfp";
i2c-bus = <&cp0_i2c1>; i2c-bus = <&cp0_i2c1>;
@ -474,8 +469,14 @@ spi-flash@0 {
}; };
}; };
&cp1_comphy2 {
cp1_usbh0_con: connector {
compatible = "usb-a-connector";
phy-supply = <&v_5v0_usb3_hst_vbus>;
};
};
&cp1_usb3_0 { &cp1_usb3_0 {
usb-phy = <&usb3h0_phy>;
phys = <&cp1_comphy2 0>; phys = <&cp1_comphy2 0>;
phy-names = "cp1-usb3h0-comphy"; phy-names = "cp1-usb3h0-comphy";
status = "okay"; status = "okay";

View File

@ -54,11 +54,6 @@ cp0_usb3_0_phy: cp0-usb3-0-phy {
vcc-supply = <&cp0_reg_usb3_0_vbus>; vcc-supply = <&cp0_reg_usb3_0_vbus>;
}; };
cp0_usb3_1_phy: cp0-usb3-1-phy {
compatible = "usb-nop-xceiv";
vcc-supply = <&cp0_reg_usb3_1_vbus>;
};
cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus { cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "cp1-usb3h0-vbus"; regulator-name = "cp1-usb3h0-vbus";
@ -164,9 +159,15 @@ &cp0_usb3_0 {
status = "okay"; status = "okay";
}; };
&cp0_comphy4 {
cp0_usbh1_con: connector {
compatible = "usb-a-connector";
phy-supply = <&cp0_reg_usb3_1_vbus>;
};
};
/* CON10 on CP0 expansion */ /* CON10 on CP0 expansion */
&cp0_usb3_1 { &cp0_usb3_1 {
usb-phy = <&cp0_usb3_1_phy>;
phys = <&cp0_comphy4 1>; phys = <&cp0_comphy4 1>;
phy-names = "cp0-usb3h1-comphy"; phy-names = "cp0-usb3h1-comphy";
status = "okay"; status = "okay";

View File

@ -61,11 +61,6 @@ v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
status = "okay"; status = "okay";
}; };
usb3h0_phy: usb3_phy0 {
compatible = "usb-nop-xceiv";
vcc-supply = <&v_5v0_usb3_hst_vbus>;
};
sfp_eth0: sfp-eth0 { sfp_eth0: sfp-eth0 {
/* CON15,16 - CPM lane 4 */ /* CON15,16 - CPM lane 4 */
compatible = "sff,sfp"; compatible = "sff,sfp";
@ -360,9 +355,15 @@ spi-flash@0 {
}; };
}; };
&cp1_comphy2 {
cp1_usbh0_con: connector {
compatible = "usb-a-connector";
phy-supply = <&v_5v0_usb3_hst_vbus>;
};
};
&cp1_usb3_0 { &cp1_usb3_0 {
/* CPS Lane 2 - CON7 */ /* CPS Lane 2 - CON7 */
usb-phy = <&usb3h0_phy>;
phys = <&cp1_comphy2 0>; phys = <&cp1_comphy2 0>;
phy-names = "cp1-usb3h0-comphy"; phy-names = "cp1-usb3h0-comphy";
status = "okay"; status = "okay";