arm64: dts: qcom: ipq5332: Add common RDP dtsi file
authorSridharan S N <quic_sridsn@quicinc.com>
Fri, 23 Jun 2023 09:00:01 +0000 (14:30 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 10 Jul 2023 04:28:28 +0000 (21:28 -0700)
Add a dtsi file to include interfaces that are common
across IPQ5332 RDPs.

Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
Link: https://lore.kernel.org/r/20230623090001.27778-1-quic_sridsn@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/qcom/ipq5332-rdp441.dts
arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts
arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts
arch/arm64/boot/dts/qcom/ipq5332-rdp474.dts

diff --git a/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi b/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi
new file mode 100644 (file)
index 0000000..f13dea7
--- /dev/null
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * IPQ5332 RDP board common device tree source
+ *
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include "ipq5332.dtsi"
+
+/ {
+       aliases {
+               serial0 = &blsp1_uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0";
+       };
+};
+
+&blsp1_uart0 {
+       pinctrl-0 = <&serial_0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&sleep_clk {
+       clock-frequency = <32000>;
+};
+
+&xo_board {
+       clock-frequency = <24000000>;
+};
index 3af1d5556950f7ff0bd2400f8e27061655865a9e..e89e2e948603d6887594446371936756eae9584f 100644 (file)
@@ -7,25 +7,11 @@
 
 /dts-v1/;
 
-#include "ipq5332.dtsi"
+#include "ipq5332-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ5332 MI01.2";
        compatible = "qcom,ipq5332-ap-mi01.2", "qcom,ipq5332";
-
-       aliases {
-               serial0 = &blsp1_uart0;
-       };
-
-       chosen {
-               stdout-path = "serial0";
-       };
-};
-
-&blsp1_uart0 {
-       pinctrl-0 = <&serial_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
 };
 
 &blsp1_i2c1 {
        status = "okay";
 };
 
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
-&xo_board {
-       clock-frequency = <24000000>;
-};
-
-/* PINCTRL */
-
 &tlmm {
        i2c_1_pins: i2c-1-state {
                pins = "gpio29", "gpio30";
index bcf3b31c20e35e4be36bf956fe00ca51875a91f0..efd480a7afdf19c00d1c96ebf70e581fe78abc10 100644 (file)
@@ -7,25 +7,11 @@
 
 /dts-v1/;
 
-#include "ipq5332.dtsi"
+#include "ipq5332-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ5332 MI01.3";
        compatible = "qcom,ipq5332-ap-mi01.3", "qcom,ipq5332";
-
-       aliases {
-               serial0 = &blsp1_uart0;
-       };
-
-       chosen {
-               stdout-path = "serial0";
-       };
-};
-
-&blsp1_uart0 {
-       pinctrl-0 = <&serial_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
 };
 
 &blsp1_i2c1 {
        status = "okay";
 };
 
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
-&xo_board {
-       clock-frequency = <24000000>;
-};
-
-/* PINCTRL */
-
 &tlmm {
        i2c_1_pins: i2c-1-state {
                pins = "gpio29", "gpio30";
index 3b6a5cb8bf07f5df2837990b5cb046f4da99f704..f96b0c8c908b5cd954a87c622d847472fc7678d7 100644 (file)
@@ -7,25 +7,11 @@
 
 /dts-v1/;
 
-#include "ipq5332.dtsi"
+#include "ipq5332-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ5332 MI01.6";
        compatible = "qcom,ipq5332-ap-mi01.6", "qcom,ipq5332";
-
-       aliases {
-               serial0 = &blsp1_uart0;
-       };
-
-       chosen {
-               stdout-path = "serial0";
-       };
-};
-
-&blsp1_uart0 {
-       pinctrl-0 = <&serial_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
 };
 
 &blsp1_spi0 {
        status = "okay";
 };
 
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
-&xo_board {
-       clock-frequency = <24000000>;
-};
-
 /* PINCTRL */
 
 &tlmm {
index 53c68d8c5e5d295af34b0d19edd3bcbc42f79960..eb1fa33d6fe45cfab7caf9eb3e3db4abbf303fb5 100644 (file)
@@ -7,41 +7,11 @@
 
 /dts-v1/;
 
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-#include "ipq5332.dtsi"
+#include "ipq5332-rdp-common.dtsi"
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ5332 MI01.9";
        compatible = "qcom,ipq5332-ap-mi01.9", "qcom,ipq5332";
-
-       aliases {
-               serial0 = &blsp1_uart0;
-       };
-
-       chosen {
-               stdout-path = "serial0";
-       };
-
-       gpio-keys {
-               compatible = "gpio-keys";
-               pinctrl-0 = <&gpio_keys_default_state>;
-               pinctrl-names = "default";
-
-               button-wps {
-                       label = "wps";
-                       linux,code = <KEY_WPS_BUTTON>;
-                       gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
-                       linux,input-type = <1>;
-                       debounce-interval = <60>;
-               };
-       };
-};
-
-&blsp1_uart0 {
-       pinctrl-0 = <&serial_0_pins>;
-       pinctrl-names = "default";
-       status = "okay";
 };
 
 &blsp1_i2c1 {
        status = "okay";
 };
 
-&sleep_clk {
-       clock-frequency = <32000>;
-};
-
-&xo_board {
-       clock-frequency = <24000000>;
-};
-
 /* PINCTRL */
 
 &tlmm {
-       gpio_keys_default_state: gpio-keys-default-state {
-               pins = "gpio35";
-               function = "gpio";
-               drive-strength = <8>;
-               bias-pull-up;
-       };
-
        i2c_1_pins: i2c-1-state {
                pins = "gpio29", "gpio30";
                function = "blsp1_i2c0";