From 4ddf7f23ca54c29d4eb766ea031abe697f05178e Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Fri, 13 Nov 2020 19:53:09 +0800 Subject: [PATCH] arm64: dts: rockchip: Add PCIe20 and PCIe30 bifurcation node Change-Id: Ie59f6b0b46bef80c4c14fa2d9564e324dd3b8e6b Signed-off-by: Shawn Lin --- .../dts/rockchip/rk3568-evb6-ddr3-v10.dtsi | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb6-ddr3-v10.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-evb6-ddr3-v10.dtsi index 0109a4423272..2023441a5dbf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb6-ddr3-v10.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb6-ddr3-v10.dtsi @@ -12,6 +12,17 @@ model = "Rockchip RK3568 EVB6 DDR3 V10 Board"; compatible = "rockchip,rk3568-evb6-ddr3-v10", "rockchip,rk3568"; + pcie20_3v3: gpio-regulator { + compatible = "regulator-gpio"; + regulator-name = "pcie20_3v3"; + regulator-min-microvolt = <0100000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; + gpios-states = <0x1>; + states = <0100000 0x0 + 3300000 0x1>; + }; + pcie30_avdd0v9: pcie30-avdd0v9 { compatible = "regulator-fixed"; regulator-name = "pcie30_avdd0v9"; @@ -32,6 +43,17 @@ vin-supply = <&vcc3v3_sys>; }; + pcie30_3v3: gpio-regulator { + compatible = "regulator-gpio"; + regulator-name = "pcie30_3v3"; + regulator-min-microvolt = <0100000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; + gpios-states = <0x1>; + states = <0100000 0x0 + 3300000 0x1>; + }; + rk_headset: rk-headset { compatible = "rockchip_headset"; headset_gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>; @@ -50,6 +72,10 @@ }; }; +&combphy2_psq { + status = "disabled"; +}; + /* * mipi_dphy0 needs to be enabled * when dsi0 is enabled @@ -106,6 +132,30 @@ status = "disabled"; }; +&pcie30phy { + status = "disabled"; +}; + +&pcie2x1 { + reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&pcie20_3v3>; + status = "disabled"; +}; + +&pcie3x1 { + rockchip,bifurcation; + reset-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&pcie30_3v3>; + status = "disabled"; +}; + +&pcie3x2 { + rockchip,bifurcation; + reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&pcie30_3v3>; + status = "disabled"; +}; + &pinctrl { headphone { hp_det: hp-det {