arm64: dts: rockchip: rk3588s: Add pcie nodes

RK3588s evb supports pcie;
evb2 does not have pcie.
Note that the pin name in schematic is named by PHY;
and here is the map for phy and controller on rk3588s:
pcie2x1l0 - Not exist in rk3588s
pcie2x1l1 - PCIE20_2(PHY MUX_2)
pcie2x1l2 - PCIE20_0(PHY MUX_0)

Change-Id: Ibf4a66f79c377155d1c23d5f99a63306f9556432
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2021-11-04 10:06:22 +08:00
committed by Tao Huang
parent b84f6a099c
commit 69240e727b
3 changed files with 115 additions and 0 deletions

View File

@@ -10,6 +10,24 @@
#include "rk806-double.dtsi"
/ {
combophy_avdd0v85: combophy-avdd0v85 {
compatible = "regulator-fixed";
regulator-name = "combophy_avdd0v85";
regulator-boot-on;
regulator-min-microvolt = <850000>;
regulator-max-microvolt = <850000>;
vin-supply = <&vdd_0v85_s0>;
};
combophy_avdd1v8: combophy-avdd1v8 {
compatible = "regulator-fixed";
regulator-name = "combophy_avdd1v8";
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
vin-supply = <&avcc_1v8_s0>;
};
es7202_sound_micarray: es7202-sound-micarray {
status = "okay";
compatible = "simple-audio-card";
@@ -63,6 +81,17 @@
pinctrl-0 = <&typec5v_pwren>;
};
vcc3v3_pcie20: vcc3v3-pcie20 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_pcie20";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
startup-delay-us = <5000>;
vin-supply = <&vcc12v_dcin>;
};
vcc5v0_host: vcc5v0-host {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_host";
@@ -220,6 +249,17 @@
};
};
&pcie2x1l1 {
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie20>;
status = "okay";
};
&pcie2x1l2 {
reset-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>;
status = "okay";
};
&pdm0 {
status = "okay";
};

View File

@@ -10,6 +10,35 @@
#include "rk806-double.dtsi"
/ {
combophy_avdd0v85: combophy-avdd0v85 {
compatible = "regulator-fixed";
regulator-name = "combophy_avdd0v85";
regulator-boot-on;
regulator-min-microvolt = <850000>;
regulator-max-microvolt = <850000>;
vin-supply = <&vdd_0v85_s0>;
};
combophy_avdd1v8: combophy-avdd1v8 {
compatible = "regulator-fixed";
regulator-name = "combophy_avdd1v8";
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
vin-supply = <&avcc_1v8_s0>;
};
vcc3v3_pcie20: vcc3v3-pcie20 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_pcie20";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
startup-delay-us = <5000>;
vin-supply = <&vcc12v_dcin>;
};
vbus5v0_typec: vbus5v0-typec {
compatible = "regulator-fixed";
regulator-name = "vbus5v0_typec";
@@ -112,6 +141,12 @@
status = "okay";
};
&pcie2x1l2 {
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie20>;
status = "okay";
};
&pinctrl {
hym8563 {
hym8563_int: hym8563-int {

View File

@@ -10,6 +10,24 @@
#include "rk806-single.dtsi"
/ {
combophy_avdd0v85: combophy-avdd0v85 {
compatible = "regulator-fixed";
regulator-name = "combophy_avdd0v85";
regulator-boot-on;
regulator-min-microvolt = <850000>;
regulator-max-microvolt = <850000>;
vin-supply = <&vdd_0v85_s0>;
};
combophy_avdd1v8: combophy-avdd1v8 {
compatible = "regulator-fixed";
regulator-name = "combophy_avdd1v8";
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
vin-supply = <&avcc_1v8_s0>;
};
es7202_sound_micarray: es7202-sound-micarray {
status = "okay";
compatible = "simple-audio-card";
@@ -63,6 +81,17 @@
pinctrl-0 = <&typec5v_pwren>;
};
vcc3v3_pcie20: vcc3v3-pcie20 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_pcie20";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
startup-delay-us = <5000>;
vin-supply = <&vcc12v_dcin>;
};
vcc5v0_host: vcc5v0-host {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_host";
@@ -190,6 +219,17 @@
status = "okay";
};
&pcie2x1l1 {
reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie20>;
status = "okay";
};
&pcie2x1l2 {
reset-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>;
status = "okay";
};
&pinctrl {
hym8563 {
hym8563_int: hym8563-int {