mbox series

[v3,0/8] arm64: dts: qcom: sm8150: Add SM8150 DTS

Message ID 20190820172351.24145-1-vkoul@kernel.org
Headers show
Series arm64: dts: qcom: sm8150: Add SM8150 DTS | expand

Message

Vinod Koul Aug. 20, 2019, 5:23 p.m. UTC
This series adds DTS for SM8150, PMIC PM8150, PM8150B, PM8150L and
the MTP for SM8150.

Changes in v3:
 - Fix copyright comment style to Linux kernel style
 - Make property values all hex or decimal
 - Fix patch titles and logs and make them consistent
 - Fix line breaks

Changes in v2:
 - Squash patches
 - Fix comments given by Stephen namely, lowercase for hext numbers,
   making rpmhcc have xo_board as parent, rename pon controller to
   power-on controller, make pmic nodes as disabled etc.
 - removed the dependency on clk defines and use raw numbers


Vinod Koul (8):
  arm64: dts: qcom: sm8150: Add base dts file
  arm64: dts: qcom: pm8150: Add base dts file
  arm64: dts: qcom: pm8150b: Add base dts file
  arm64: dts: qcom: pm8150l: Add base dts file
  arm64: dts: qcom: sm8150-mtp: Add base dts file
  arm64: dts: qcom: sm8150-mtp: Add regulators
  arm64: dts: qcom: sm8150: Add reserved-memory regions
  arm64: dts: qcom: sm8150: Add apps shared nodes

 arch/arm64/boot/dts/qcom/Makefile       |   1 +
 arch/arm64/boot/dts/qcom/pm8150.dtsi    |  97 +++++
 arch/arm64/boot/dts/qcom/pm8150b.dtsi   |  86 +++++
 arch/arm64/boot/dts/qcom/pm8150l.dtsi   |  80 ++++
 arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 378 +++++++++++++++++++
 arch/arm64/boot/dts/qcom/sm8150.dtsi    | 481 ++++++++++++++++++++++++
 6 files changed, 1123 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/pm8150.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/pm8150b.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/pm8150l.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/sm8150-mtp.dts
 create mode 100644 arch/arm64/boot/dts/qcom/sm8150.dtsi

-- 
2.20.1

Comments

Amit Kucheria Aug. 21, 2019, 8:28 a.m. UTC | #1
On Tue, Aug 20, 2019 at 10:55 PM Vinod Koul <vkoul@kernel.org> wrote:
>

> This add base DTS file for sm8150-mtp and enables boot to console, adds

> tlmm reserved range, resin node, volume down key and also includes pmic

> file.


For some reason, your mailer sent out 2 patches 5/8. I was wondering
why the patch 5 failed to apply, but it seems the two are identical.
Lore seems to show the same.


> Signed-off-by: Vinod Koul <vkoul@kernel.org>

> ---

>  arch/arm64/boot/dts/qcom/Makefile       |  1 +

>  arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 51 +++++++++++++++++++++++++

>  2 files changed, 52 insertions(+)

>  create mode 100644 arch/arm64/boot/dts/qcom/sm8150-mtp.dts

>

> diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile

> index 0a7e5dfce6f7..1964dacaf19b 100644

> --- a/arch/arm64/boot/dts/qcom/Makefile

> +++ b/arch/arm64/boot/dts/qcom/Makefile

> @@ -12,5 +12,6 @@ dtb-$(CONFIG_ARCH_QCOM)       += sdm845-cheza-r2.dtb

>  dtb-$(CONFIG_ARCH_QCOM)        += sdm845-cheza-r3.dtb

>  dtb-$(CONFIG_ARCH_QCOM)        += sdm845-db845c.dtb

>  dtb-$(CONFIG_ARCH_QCOM)        += sdm845-mtp.dtb

> +dtb-$(CONFIG_ARCH_QCOM)        += sm8150-mtp.dtb

>  dtb-$(CONFIG_ARCH_QCOM)        += qcs404-evb-1000.dtb

>  dtb-$(CONFIG_ARCH_QCOM)        += qcs404-evb-4000.dtb

> diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts

> new file mode 100644

> index 000000000000..6f5777f530ae

> --- /dev/null

> +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts

> @@ -0,0 +1,51 @@

> +// SPDX-License-Identifier: BSD-3-Clause

> +/*

> + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.

> + * Copyright (c) 2019, Linaro Limited

> + */

> +

> +/dts-v1/;

> +

> +#include "sm8150.dtsi"

> +#include "pm8150.dtsi"

> +#include "pm8150b.dtsi"

> +#include "pm8150l.dtsi"

> +

> +/ {

> +       model = "Qualcomm Technologies, Inc. SM8150 MTP";

> +       compatible = "qcom,sm8150-mtp";

> +

> +       aliases {

> +               serial0 = &uart2;

> +       };

> +

> +       chosen {

> +               stdout-path = "serial0:115200n8";

> +       };

> +};

> +

> +&qupv3_id_1 {

> +       status = "okay";

> +};

> +

> +&pon {

> +       pwrkey {

> +               status = "okay";

> +       };

> +

> +       resin {

> +               compatible = "qcom,pm8941-resin";

> +               interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;

> +               debounce = <15625>;

> +               bias-pull-up;

> +               linux,code = <KEY_VOLUMEDOWN>;

> +       };

> +};

> +

> +&tlmm {

> +       gpio-reserved-ranges = <0 4>, <126 4>;

> +};

> +

> +&uart2 {

> +       status = "okay";

> +};

> --

> 2.20.1

>