arm64: dts: qcom: ipq9574: Add common RDP dtsi file
authorAnusha Rao <quic_anusha@quicinc.com>
Wed, 27 Sep 2023 06:43:18 +0000 (12:13 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Oct 2023 03:41:46 +0000 (20:41 -0700)
Add a dtsi file to include interfaces that are common
across RDPs.

Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
Signed-off-by: Kathiravan Thirumoorthy <quic_kathirav@quicinc.com>
Link: https://lore.kernel.org/r/20230927-common-rdp-v3-1-3d07b3ff6d42@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/qcom/ipq9574-rdp418.dts
arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
arch/arm64/boot/dts/qcom/ipq9574-rdp449.dts
arch/arm64/boot/dts/qcom/ipq9574-rdp453.dts
arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts

diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
new file mode 100644 (file)
index 0000000..40a7aef
--- /dev/null
@@ -0,0 +1,125 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+/*
+ * IPQ9574 RDP board common device tree source
+ *
+ * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+
+/dts-v1/;
+
+#include "ipq9574.dtsi"
+
+/ {
+       aliases {
+               serial0 = &blsp1_uart2;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
+       regulator_fixed_3p3: s3300 {
+               compatible = "regulator-fixed";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+               regulator-name = "fixed_3p3";
+       };
+
+       regulator_fixed_0p925: s0925 {
+               compatible = "regulator-fixed";
+               regulator-min-microvolt = <925000>;
+               regulator-max-microvolt = <925000>;
+               regulator-boot-on;
+               regulator-always-on;
+               regulator-name = "fixed_0p925";
+       };
+};
+
+&blsp1_spi0 {
+       pinctrl-0 = <&spi_0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+
+       flash@0 {
+               compatible = "micron,n25q128a11", "jedec,spi-nor";
+               reg = <0>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               spi-max-frequency = <50000000>;
+       };
+};
+
+&blsp1_uart2 {
+       pinctrl-0 = <&uart2_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&rpm_requests {
+       regulators {
+               compatible = "qcom,rpm-mp5496-regulators";
+
+               ipq9574_s1: s1 {
+               /*
+                * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders.
+                * During regulator registration, kernel not knowing the initial voltage,
+                * considers it as zero and brings up the regulators with minimum supported voltage.
+                * Update the regulator-min-microvolt with SVS voltage of 725mV so that
+                * the regulators are brought up with 725mV which is sufficient for all the
+                * corner parts to operate at 800MHz
+                */
+                       regulator-min-microvolt = <725000>;
+                       regulator-max-microvolt = <1075000>;
+               };
+
+               mp5496_l2: l2 {
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+                       regulator-always-on;
+                       regulator-boot-on;
+               };
+       };
+};
+
+&sleep_clk {
+       clock-frequency = <32000>;
+};
+
+&tlmm {
+       spi_0_pins: spi-0-state {
+               pins = "gpio11", "gpio12", "gpio13", "gpio14";
+               function = "blsp0_spi";
+               drive-strength = <8>;
+               bias-disable;
+       };
+};
+
+&usb_0_dwc3 {
+       dr_mode = "host";
+};
+
+&usb_0_qmpphy {
+       vdda-pll-supply = <&mp5496_l2>;
+       vdda-phy-supply = <&regulator_fixed_0p925>;
+
+       status = "okay";
+};
+
+&usb_0_qusbphy {
+       vdd-supply = <&regulator_fixed_0p925>;
+       vdda-pll-supply = <&mp5496_l2>;
+       vdda-phy-dpdm-supply = <&regulator_fixed_3p3>;
+
+       status = "okay";
+};
+
+&usb3 {
+       status = "okay";
+};
+
+&xo_board_clk {
+       clock-frequency = <24000000>;
+};
index 2b093e02637ba5537d741fe6c0f15deb8fc82ae1..f4f9199d4ab1e51ccf4dc30f4aa980a52a5643cc 100644 (file)
@@ -8,58 +8,12 @@
 
 /dts-v1/;
 
-#include "ipq9574.dtsi"
+#include "ipq9574-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C2";
        compatible = "qcom,ipq9574-ap-al02-c2", "qcom,ipq9574";
 
-       aliases {
-               serial0 = &blsp1_uart2;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-};
-
-&blsp1_spi0 {
-       pinctrl-0 = <&spi_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-
-       flash@0 {
-               compatible = "micron,n25q128a11", "jedec,spi-nor";
-               reg = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-               spi-max-frequency = <50000000>;
-       };
-};
-
-&blsp1_uart2 {
-       pinctrl-0 = <&uart2_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-};
-
-&rpm_requests {
-       regulators {
-               compatible = "qcom,rpm-mp5496-regulators";
-
-               ipq9574_s1: s1 {
-               /*
-                * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders.
-                * During regulator registration, kernel not knowing the initial voltage,
-                * considers it as zero and brings up the regulators with minimum supported voltage.
-                * Update the regulator-min-microvolt with SVS voltage of 725mV so that
-                * the regulators are brought up with 725mV which is sufficient for all the
-                * corner parts to operate at 800MHz
-                */
-                       regulator-min-microvolt = <725000>;
-                       regulator-max-microvolt = <1075000>;
-               };
-       };
 };
 
 &sdhc_1 {
        status = "okay";
 };
 
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
 &tlmm {
        sdc_default_state: sdc-default-state {
                clk-pins {
                        bias-pull-down;
                };
        };
-
-       spi_0_pins: spi-0-state {
-               pins = "gpio11", "gpio12", "gpio13", "gpio14";
-               function = "blsp0_spi";
-               drive-strength = <8>;
-               bias-disable;
-       };
-};
-
-&xo_board_clk {
-       clock-frequency = <24000000>;
 };
index 877026ccc6e25761f977369096ac073f8d5ece88..1bb8d96c9a8270f3ff3366812e34f5ee7eb44d6c 100644 (file)
@@ -8,69 +8,11 @@
 
 /dts-v1/;
 
-#include "ipq9574.dtsi"
+#include "ipq9574-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7";
        compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574";
-
-       aliases {
-               serial0 = &blsp1_uart2;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
-       regulator_fixed_3p3: s3300 {
-               compatible = "regulator-fixed";
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
-               regulator-boot-on;
-               regulator-always-on;
-               regulator-name = "fixed_3p3";
-       };
-
-       regulator_fixed_0p925: s0925 {
-               compatible = "regulator-fixed";
-               regulator-min-microvolt = <925000>;
-               regulator-max-microvolt = <925000>;
-               regulator-boot-on;
-               regulator-always-on;
-               regulator-name = "fixed_0p925";
-       };
-};
-
-&blsp1_uart2 {
-       pinctrl-0 = <&uart2_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-};
-
-&rpm_requests {
-       regulators {
-               compatible = "qcom,rpm-mp5496-regulators";
-
-               ipq9574_s1: s1 {
-               /*
-                * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders.
-                * During regulator registration, kernel not knowing the initial voltage,
-                * considers it as zero and brings up the regulators with minimum supported voltage.
-                * Update the regulator-min-microvolt with SVS voltage of 725mV so that
-                * the regulators are brought up with 725mV which is sufficient for all the
-                * corner parts to operate at 800MHz
-                */
-                       regulator-min-microvolt = <725000>;
-                       regulator-max-microvolt = <1075000>;
-               };
-
-               mp5496_l2: l2 {
-                       regulator-min-microvolt = <1800000>;
-                       regulator-max-microvolt = <1800000>;
-                       regulator-always-on;
-                       regulator-boot-on;
-               };
-       };
 };
 
 &sdhc_1 {
        status = "okay";
 };
 
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
 &tlmm {
        sdc_default_state: sdc-default-state {
                clk-pins {
                };
        };
 };
-
-&usb_0_dwc3 {
-       dr_mode = "host";
-};
-
-&usb_0_qmpphy {
-       vdda-pll-supply = <&mp5496_l2>;
-       vdda-phy-supply = <&regulator_fixed_0p925>;
-
-       status = "okay";
-};
-
-&usb_0_qusbphy {
-       vdd-supply = <&regulator_fixed_0p925>;
-       vdda-pll-supply = <&mp5496_l2>;
-       vdda-phy-dpdm-supply = <&regulator_fixed_3p3>;
-
-       status = "okay";
-};
-
-&usb3 {
-       status = "okay";
-};
-
-&xo_board_clk {
-       clock-frequency = <24000000>;
-};
index c8fa54e1a62cc0c0815a191d1e1996c45ffcb6d8..d36d1078763ec329c4a3ed5184da7d167ca010a7 100644 (file)
@@ -8,73 +8,10 @@
 
 /dts-v1/;
 
-#include "ipq9574.dtsi"
+#include "ipq9574-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C6";
        compatible = "qcom,ipq9574-ap-al02-c6", "qcom,ipq9574";
 
-       aliases {
-               serial0 = &blsp1_uart2;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-};
-
-&blsp1_spi0 {
-       pinctrl-0 = <&spi_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-
-       flash@0 {
-               compatible = "micron,n25q128a11", "jedec,spi-nor";
-               reg = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-               spi-max-frequency = <50000000>;
-       };
-};
-
-&blsp1_uart2 {
-       pinctrl-0 = <&uart2_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-};
-
-&rpm_requests {
-       regulators {
-               compatible = "qcom,rpm-mp5496-regulators";
-
-               ipq9574_s1: s1 {
-               /*
-                * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders.
-                * During regulator registration, kernel not knowing the initial voltage,
-                * considers it as zero and brings up the regulators with minimum supported voltage.
-                * Update the regulator-min-microvolt with SVS voltage of 725mV so that
-                * the regulators are brought up with 725mV which is sufficient for all the
-                * corner parts to operate at 800MHz
-                */
-                       regulator-min-microvolt = <725000>;
-                       regulator-max-microvolt = <1075000>;
-               };
-       };
-};
-
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
-&tlmm {
-       spi_0_pins: spi-0-state {
-               pins = "gpio11", "gpio12", "gpio13", "gpio14";
-               function = "blsp0_spi";
-               drive-strength = <8>;
-               bias-disable;
-       };
-};
-
-&xo_board_clk {
-       clock-frequency = <24000000>;
 };
index f01de6628c3b115c43d19265ad66929864f70120..c30c9fbedf26bf557fef85449a059217864cde4c 100644 (file)
@@ -8,73 +8,10 @@
 
 /dts-v1/;
 
-#include "ipq9574.dtsi"
+#include "ipq9574-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C8";
        compatible = "qcom,ipq9574-ap-al02-c8", "qcom,ipq9574";
 
-       aliases {
-               serial0 = &blsp1_uart2;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-};
-
-&blsp1_spi0 {
-       pinctrl-0 = <&spi_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-
-       flash@0 {
-               compatible = "micron,n25q128a11", "jedec,spi-nor";
-               reg = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-               spi-max-frequency = <50000000>;
-       };
-};
-
-&blsp1_uart2 {
-       pinctrl-0 = <&uart2_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-};
-
-&rpm_requests {
-       regulators {
-               compatible = "qcom,rpm-mp5496-regulators";
-
-               ipq9574_s1: s1 {
-               /*
-                * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders.
-                * During regulator registration, kernel not knowing the initial voltage,
-                * considers it as zero and brings up the regulators with minimum supported voltage.
-                * Update the regulator-min-microvolt with SVS voltage of 725mV so that
-                * the regulators are brought up with 725mV which is sufficient for all the
-                * corner parts to operate at 800MHz
-                */
-                       regulator-min-microvolt = <725000>;
-                       regulator-max-microvolt = <1075000>;
-               };
-       };
-};
-
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
-&tlmm {
-       spi_0_pins: spi-0-state {
-               pins = "gpio11", "gpio12", "gpio13", "gpio14";
-               function = "blsp0_spi";
-               drive-strength = <8>;
-               bias-disable;
-       };
-};
-
-&xo_board_clk {
-       clock-frequency = <24000000>;
 };
index 6efae3426cb84055b8449030561946e58af3df75..0dc382f5d5ecdfc238bca1fa402b845b418cbce1 100644 (file)
@@ -8,73 +8,9 @@
 
 /dts-v1/;
 
-#include "ipq9574.dtsi"
+#include "ipq9574-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C9";
        compatible = "qcom,ipq9574-ap-al02-c9", "qcom,ipq9574";
-
-       aliases {
-               serial0 = &blsp1_uart2;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-};
-
-&blsp1_spi0 {
-       pinctrl-0 = <&spi_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-
-       flash@0 {
-               compatible = "micron,n25q128a11", "jedec,spi-nor";
-               reg = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-               spi-max-frequency = <50000000>;
-       };
-};
-
-&blsp1_uart2 {
-       pinctrl-0 = <&uart2_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-};
-
-&rpm_requests {
-       regulators {
-               compatible = "qcom,rpm-mp5496-regulators";
-
-               ipq9574_s1: s1 {
-               /*
-                * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders.
-                * During regulator registration, kernel not knowing the initial voltage,
-                * considers it as zero and brings up the regulators with minimum supported voltage.
-                * Update the regulator-min-microvolt with SVS voltage of 725mV so that
-                * the regulators are brought up with 725mV which is sufficient for all the
-                * corner parts to operate at 800MHz
-                */
-                       regulator-min-microvolt = <725000>;
-                       regulator-max-microvolt = <1075000>;
-               };
-       };
-};
-
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
-&tlmm {
-       spi_0_pins: spi-0-state {
-               pins = "gpio11", "gpio12", "gpio13", "gpio14";
-               function = "blsp0_spi";
-               drive-strength = <8>;
-               bias-disable;
-       };
-};
-
-&xo_board_clk {
-       clock-frequency = <24000000>;
 };