mirror of https://gitee.com/openkylin/linux.git
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:
parent
ce55522c03
commit
96018a6faf
|
@ -73,16 +73,6 @@ cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
|
|||
gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
|
||||
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 {
|
||||
|
@ -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 {
|
||||
usb-phy = <&cp0_usb3_0_phy>;
|
||||
phys = <&cp0_comphy1 0>;
|
||||
phy-names = "cp0-usb3h0-comphy";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cp0_comphy4 {
|
||||
cp0_usbh1_con: connector {
|
||||
compatible = "usb-a-connector";
|
||||
phy-supply = <&cp0_reg_usb3_1_vbus>;
|
||||
};
|
||||
};
|
||||
|
||||
&cp0_usb3_1 {
|
||||
usb-phy = <&cp0_usb3_1_phy>;
|
||||
phys = <&cp0_comphy4 1>;
|
||||
phy-names = "cp0-usb3h1-comphy";
|
||||
status = "okay";
|
||||
|
|
|
@ -51,11 +51,6 @@ v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
usb3h0_phy: usb3_phy0 {
|
||||
compatible = "usb-nop-xceiv";
|
||||
vcc-supply = <&v_5v0_usb3_hst_vbus>;
|
||||
};
|
||||
|
||||
sfp_cp0_eth0: sfp-cp0-eth0 {
|
||||
compatible = "sff,sfp";
|
||||
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 {
|
||||
usb-phy = <&usb3h0_phy>;
|
||||
phys = <&cp1_comphy2 0>;
|
||||
phy-names = "cp1-usb3h0-comphy";
|
||||
status = "okay";
|
||||
|
|
|
@ -54,11 +54,6 @@ cp0_usb3_0_phy: cp0-usb3-0-phy {
|
|||
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 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cp1-usb3h0-vbus";
|
||||
|
@ -164,9 +159,15 @@ &cp0_usb3_0 {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&cp0_comphy4 {
|
||||
cp0_usbh1_con: connector {
|
||||
compatible = "usb-a-connector";
|
||||
phy-supply = <&cp0_reg_usb3_1_vbus>;
|
||||
};
|
||||
};
|
||||
|
||||
/* CON10 on CP0 expansion */
|
||||
&cp0_usb3_1 {
|
||||
usb-phy = <&cp0_usb3_1_phy>;
|
||||
phys = <&cp0_comphy4 1>;
|
||||
phy-names = "cp0-usb3h1-comphy";
|
||||
status = "okay";
|
||||
|
|
|
@ -61,11 +61,6 @@ v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
usb3h0_phy: usb3_phy0 {
|
||||
compatible = "usb-nop-xceiv";
|
||||
vcc-supply = <&v_5v0_usb3_hst_vbus>;
|
||||
};
|
||||
|
||||
sfp_eth0: sfp-eth0 {
|
||||
/* CON15,16 - CPM lane 4 */
|
||||
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 {
|
||||
/* CPS Lane 2 - CON7 */
|
||||
usb-phy = <&usb3h0_phy>;
|
||||
phys = <&cp1_comphy2 0>;
|
||||
phy-names = "cp1-usb3h0-comphy";
|
||||
status = "okay";
|
||||
|
|
Loading…
Reference in New Issue