Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Abel Vesa <abel.vesa@linaro.org>, Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Neil Armstrong <neil.armstrong@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"vkoul@kernel.org" <vkoul@kernel.org>,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: Re: [PATCH 08/10] arm64: dts: qcom: Add PMK8550 pmic dtsi
Date: Wed, 16 Nov 2022 12:09:07 +0100	[thread overview]
Message-ID: <4e186edd-03d4-fd88-0987-b75cc94f96bb@linaro.org> (raw)
In-Reply-To: <20221116103146.2556846-9-abel.vesa@linaro.org>



On 16/11/2022 11:31, Abel Vesa wrote:
> From: Neil Armstrong <neil.armstrong@linaro.org>
> 
> Add nodes for PMK8550 in separate dtsi file.
> 
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> --- >   arch/arm64/boot/dts/qcom/pmk8550.dtsi | 54 +++++++++++++++++++++++++++
>   1 file changed, 54 insertions(+)
>   create mode 100644 arch/arm64/boot/dts/qcom/pmk8550.dtsi
> 
> diff --git a/arch/arm64/boot/dts/qcom/pmk8550.dtsi b/arch/arm64/boot/dts/qcom/pmk8550.dtsi
> new file mode 100644
> index 000000000000..1f707202f5da
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/pmk8550.dtsi
> @@ -0,0 +1,54 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) 2022, Linaro Limited
> + */
> +
> +#include <dt-bindings/input/input.h>
> +#include <dt-bindings/input/linux-event-codes.h>
> +#include <dt-bindings/interrupt-controller/irq.h>
> +#include <dt-bindings/spmi/spmi.h>
> +
> +&spmi_bus {
> +	pmk8550: pmic@0 {
> +		compatible = "qcom,pm8550", "qcom,spmi-pmic";
> +		reg = <0x0 SPMI_USID>;
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		pmk8550_pon: pon@1300 {
> +			compatible = "qcom,pm8998-pon";
Don't you need to specify the PBS register too for this PMIC?

Other than that:

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

> +			reg = <0x1300>;
> +
> +			pon_pwrkey: pwrkey {
> +				compatible = "qcom,pmk8350-pwrkey";
> +				interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
> +				linux,code = <KEY_POWER>;
> +				status = "disabled";
> +			};
> +
> +			pon_resin: resin {
> +				compatible = "qcom,pmk8350-resin";
> +				interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
> +				status = "disabled";
> +			};
> +		};
> +
> +		pmk8550_rtc: rtc@6100 {
> +			compatible = "qcom,pmk8350-rtc";
> +			reg = <0x6100>, <0x6200>;
> +			reg-names = "rtc", "alarm";
> +			interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
> +			status = "disabled";
> +		};
> +
> +		pmk8550_gpios: gpio@8800 {
> +			compatible = "qcom,pmk8550-gpio", "qcom,spmi-gpio";
> +			reg = <0xb800>;
> +			gpio-controller;
> +			gpio-ranges = <&pmk8550_gpios 0 0 6>;
> +			#gpio-cells = <2>;
> +			interrupt-controller;
> +			#interrupt-cells = <2>;
> +		};
> +	};
> +};

  reply	other threads:[~2022-11-16 11:21 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-16 10:31 [PATCH 00/10] Add base device tree files for SM8550 Abel Vesa
2022-11-16 10:31 ` [PATCH 01/10] dt-bindings: arm: qcom: Document SM8550 SoC and boards Abel Vesa
2022-11-16 13:10   ` Krzysztof Kozlowski
2022-11-16 10:31 ` [PATCH 02/10] arm64: dts: qcom: Add base SM8550 dtsi Abel Vesa
2022-11-16 11:02   ` Konrad Dybcio
2022-11-16 11:28     ` Konrad Dybcio
2022-11-17 12:50   ` Krzysztof Kozlowski
2022-11-16 10:31 ` [PATCH 03/10] arm64: dts: qcom: Add pm8010 pmic dtsi Abel Vesa
2022-11-16 11:06   ` Konrad Dybcio
2022-11-17 12:51   ` Krzysztof Kozlowski
2022-11-18 14:58     ` Neil Armstrong
2022-11-18 14:59       ` Krzysztof Kozlowski
2022-11-21 13:29         ` neil.armstrong
2022-11-21 13:50           ` Krzysztof Kozlowski
2022-11-16 10:31 ` [PATCH 04/10] arm64: dts: qcom: Add PM8550 " Abel Vesa
2022-11-16 11:07   ` Konrad Dybcio
2022-11-16 10:31 ` [PATCH 05/10] arm64: dts: qcom: Add PM8550b " Abel Vesa
2022-11-16 11:07   ` Konrad Dybcio
2022-11-16 10:31 ` [PATCH 06/10] arm64: dts: qcom: Add PM8550ve " Abel Vesa
2022-11-16 11:07   ` Konrad Dybcio
2022-11-16 10:31 ` [PATCH 07/10] arm64: dts: qcom: Add PM8550vs " Abel Vesa
2022-11-16 11:08   ` Konrad Dybcio
2022-11-16 10:31 ` [PATCH 08/10] arm64: dts: qcom: Add PMK8550 " Abel Vesa
2022-11-16 11:09   ` Konrad Dybcio [this message]
2022-11-16 10:31 ` [PATCH 09/10] arm64: dts: qcom: Add PMR735d " Abel Vesa
2022-11-16 11:09   ` Konrad Dybcio
2022-11-16 10:31 ` [PATCH 10/10] arm64: dts: qcom: Add base SM8550 MTP dts Abel Vesa
2022-11-16 11:14   ` Konrad Dybcio
2022-11-17 12:53   ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4e186edd-03d4-fd88-0987-b75cc94f96bb@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=abel.vesa@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox