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