Commit 75b77d64 authored by Bjorn Andersson's avatar Bjorn Andersson

arm64: dts: qcom: msm8996: Use node references in db820c

Instead of mimicing the structure of the platform, reference nodes by
their label in apq8096-db820c.dtsi. Add labels in msm8996.dtsi where
necessary.
Acked-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent f978d45b
......@@ -77,9 +77,9 @@ div1_mclk: divclk1 {
enable-gpios = <&pm8994_gpios 15 0>;
};
};
};
soc {
serial@7570000 {
&blsp1_uart1 {
label = "BT-UART";
status = "okay";
pinctrl-names = "default", "sleep";
......@@ -94,55 +94,55 @@ bluetooth {
clocks = <&divclk4>;
};
};
};
serial@75b0000 {
&blsp2_uart1 {
label = "LS-UART1";
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&blsp2_uart1_2pins_default>;
pinctrl-1 = <&blsp2_uart1_2pins_sleep>;
};
};
serial@75b1000 {
&blsp2_uart2 {
label = "LS-UART0";
status = "disabled";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&blsp2_uart2_4pins_default>;
pinctrl-1 = <&blsp2_uart2_4pins_sleep>;
};
};
i2c@7577000 {
&blsp1_i2c2 {
/* On Low speed expansion */
label = "LS-I2C0";
status = "okay";
};
};
i2c@75b6000 {
&blsp2_i2c1 {
/* On Low speed expansion */
label = "LS-I2C1";
status = "okay";
};
};
spi@7575000 {
&blsp1_spi0 {
/* On Low speed expansion */
label = "LS-SPI0";
status = "okay";
};
};
i2c@75b5000 {
&blsp2_i2c0 {
/* On High speed expansion */
label = "HS-I2C2";
status = "okay";
};
};
spi@75ba000{
&blsp2_spi5 {
/* On High speed expansion */
label = "HS-SPI1";
status = "okay";
};
};
sdhci@74a4900 {
&sdhc2 {
/* External SD card */
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
......@@ -151,17 +151,17 @@ sdhci@74a4900 {
vmmc-supply = <&pm8994_l21>;
vqmmc-supply = <&pm8994_l13>;
status = "okay";
};
};
phy@627000 {
&ufsphy {
status = "okay";
};
};
ufshc@624000 {
&ufshc {
status = "okay";
};
};
pinctrl@1010000 {
&msmgpio {
gpio-line-names =
"[SPI0_DOUT]", /* GPIO_0, BLSP1_SPI_MOSI, LSEC pin 14 */
"[SPI0_DIN]", /* GPIO_1, BLSP1_SPI_MISO, LSEC pin 10 */
......@@ -313,11 +313,9 @@ pinctrl@1010000 {
"NC", /* GPIO_147 */
"NC", /* GPIO_148 */
"NC"; /* GPIO_149 */
};
};
qcom,spmi@400f000 {
pmic@0 {
gpios@c000 {
&pm8994_gpios {
gpio-line-names =
"NC",
"KEY_VOLP_N",
......@@ -341,9 +339,9 @@ gpios@c000 {
"PMIC_SLB",
"PMIC_BUA",
"USB_VBUS_DET";
};
};
mpps@a000 {
&pm8994_mpps {
gpio-line-names =
"VDDPX_BIAS",
"WIFI_LED",
......@@ -353,11 +351,9 @@ mpps@a000 {
"PM_MPP06",
"PM_MPP07",
"NC";
};
};
};
pmic@2 {
gpios@c000 {
&pmi8994_gpios {
gpio-line-names =
"NC",
"SPKR_AMP_EN1",
......@@ -369,27 +365,25 @@ gpios@c000 {
"NC",
"NC",
"NC";
};
};
};
};
phy@34000 {
&pcie_phy {
status = "okay";
};
};
phy@7410000 {
&usb3phy {
status = "okay";
};
};
phy@7411000 {
&hsusb_phy1 {
status = "okay";
};
};
phy@7412000 {
&hsusb_phy2 {
status = "okay";
};
};
usb@6af8800 {
&usb3 {
status = "okay";
extcon = <&usb3_id>;
......@@ -397,9 +391,9 @@ dwc3@6a00000 {
extcon = <&usb3_id>;
dr_mode = "otg";
};
};
};
usb@76f8800 {
&usb2 {
status = "okay";
extcon = <&usb2_id>;
......@@ -408,52 +402,47 @@ dwc3@7600000 {
dr_mode = "otg";
maximum-speed = "high-speed";
};
};
};
agnoc@0 {
pcie@600000 {
&pcie0 {
status = "okay";
perst-gpio = <&msmgpio 35 GPIO_ACTIVE_LOW>;
vddpe-3v3-supply = <&wlan_en>;
};
};
pcie@608000 {
&pcie1 {
status = "okay";
perst-gpio = <&msmgpio 130 GPIO_ACTIVE_LOW>;
};
};
pcie@610000 {
&pcie2 {
status = "okay";
perst-gpio = <&msmgpio 114 GPIO_ACTIVE_LOW>;
};
};
};
slim_msm: slim@91c0000 {
ngd@1 {
wcd9335: codec@1{
&wcd9335 {
clock-names = "mclk", "slimbus";
clocks = <&div1_mclk>,
<&rpmcc RPM_SMD_BB_CLK1>;
};
};
};
};
mdss@900000 {
&mdss {
status = "okay";
};
mdp@901000 {
&mdp {
status = "okay";
};
};
hdmi-phy@9a0600 {
&hdmi_phy {
status = "okay";
vddio-supply = <&pm8994_l12>;
vcca-supply = <&pm8994_l28>;
#phy-cells = <0>;
};
};
hdmi-tx@9a0000 {
&hdmi {
status = "okay";
pinctrl-names = "default", "sleep";
......@@ -462,11 +451,9 @@ hdmi-tx@9a0000 {
core-vdda-supply = <&pm8994_l12>;
core-vcc-supply = <&pm8994_s4>;
};
};
};
};
/ {
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
......
......@@ -1447,7 +1447,7 @@ gpu_speed_bin: gpu_speed_bin@133 {
};
};
phy@34000 {
pcie_phy: phy@34000 {
compatible = "qcom,msm8996-qmp-pcie-phy";
reg = <0x34000 0x488>;
#clock-cells = <1>;
......@@ -1509,7 +1509,7 @@ pciephy_2: lane@37000 {
};
};
phy@7410000 {
usb3phy: phy@7410000 {
compatible = "qcom,msm8996-qmp-usb3-phy";
reg = <0x7410000 0x1c4>;
#clock-cells = <1>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment