Add a dtsi file to include interfaces that are common across RDPs. Signed-off-by: Hariharan K <quic_harihk@xxxxxxxxxxx> --- .../boot/dts/qcom/ipq5018-rdp-common.dtsi | 35 +++++++++++++++++++ .../arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts | 30 +++------------- 2 files changed, 39 insertions(+), 26 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/ipq5018-rdp-common.dtsi diff --git a/arch/arm64/boot/dts/qcom/ipq5018-rdp-common.dtsi b/arch/arm64/boot/dts/qcom/ipq5018-rdp-common.dtsi new file mode 100644 index 000000000000..c288e508c8f6 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/ipq5018-rdp-common.dtsi @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ5018 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 "ipq5018.dtsi" + +/ { + aliases { + serial0 = &blsp1_uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&blsp1_uart1 { + pinctrl-0 = <&uart1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +}; diff --git a/arch/arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts b/arch/arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts index e636a1cb9b77..90b6a98471f5 100644 --- a/arch/arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts +++ b/arch/arm64/boot/dts/qcom/ipq5018-rdp432-c2.dts @@ -1,31 +1,17 @@ // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause /* - * IPQ5018 MP03.1-C2 board device tree source + * IPQ5018 MP03.5-C2 board device tree source * * Copyright (c) 2023 The Linux Foundation. All rights reserved. */ /dts-v1/; -#include "ipq5018.dtsi" +#include "ipq5018-rdp-common.dtsi" / { - model = "Qualcomm Technologies, Inc. IPQ5018/AP-RDP432.1-C2"; - compatible = "qcom,ipq5018-rdp432-c2", "qcom,ipq5018"; - - aliases { - serial0 = &blsp1_uart1; - }; - - chosen { - stdout-path = "serial0:115200n8"; - }; -}; - -&blsp1_uart1 { - pinctrl-0 = <&uart1_pins>; - pinctrl-names = "default"; - status = "okay"; + model = "Qualcomm Technologies, Inc. IPQ5018/AP-MP03.5-C2"; + compatible = "qcom,ipq5018-ap-mp03.5-c2", "qcom,ipq5018"; }; &sdhc_1 { @@ -38,10 +24,6 @@ status = "okay"; }; -&sleep_clk { - clock-frequency = <32000>; -}; - &tlmm { sdc_default_state: sdc-default-state { clk-pins { @@ -66,7 +48,3 @@ }; }; }; - -&xo_board_clk { - clock-frequency = <24000000>; -}; -- 2.17.1