* [PATCH 0/3] Add PPG support for PMI632 LPG dtsi
@ 2024-02-05 9:51 Luca Weiss
2024-02-05 9:51 ` [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types Luca Weiss
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Luca Weiss @ 2024-02-05 9:51 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Lee Jones, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Catalin Marinas,
Will Deacon
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, Luca Weiss
Hook up the PBS & SDAM to the PMI632 LPG so that we can use the
hw_pattern for the LEDs.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Luca Weiss (3):
dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types
arm64: dts: qcom: pmi632: Add PBS client and use in LPG node
arm64: defconfig: Enable QCOM PBS
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++++
arch/arm64/boot/dts/qcom/pmi632.dtsi | 9 +++++++++
arch/arm64/configs/defconfig | 1 +
3 files changed, 14 insertions(+)
---
base-commit: 1f790ac9c84028d89ef4dbb28ecc5771fc352e25
change-id: 20240117-pmi632-ppg-f1efb4318722
Best regards,
--
Luca Weiss <luca.weiss@fairphone.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types
2024-02-05 9:51 [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Luca Weiss
@ 2024-02-05 9:51 ` Luca Weiss
2024-02-05 13:46 ` Rob Herring
2024-02-16 20:33 ` Bjorn Andersson
2024-02-05 9:51 ` [PATCH 2/3] arm64: dts: qcom: pmi632: Add PBS client and use in LPG node Luca Weiss
` (2 subsequent siblings)
3 siblings, 2 replies; 8+ messages in thread
From: Luca Weiss @ 2024-02-05 9:51 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Lee Jones, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Catalin Marinas,
Will Deacon
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, Luca Weiss
Add the PBS (Programmable Boot Sequencer) to the list of devices.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
index 8103fb61a16c..b7f01cbb8fff 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
@@ -160,6 +160,10 @@ patternProperties:
type: object
$ref: /schemas/nvmem/qcom,spmi-sdam.yaml#
+ "^pbs@[0-9a-f]+$":
+ type: object
+ $ref: /schemas/soc/qcom/qcom,pbs.yaml#
+
"phy@[0-9a-f]+$":
type: object
$ref: /schemas/phy/qcom,snps-eusb2-repeater.yaml#
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] arm64: dts: qcom: pmi632: Add PBS client and use in LPG node
2024-02-05 9:51 [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Luca Weiss
2024-02-05 9:51 ` [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types Luca Weiss
@ 2024-02-05 9:51 ` Luca Weiss
2024-02-05 9:51 ` [PATCH 3/3] arm64: defconfig: Enable QCOM PBS Luca Weiss
2024-02-16 23:10 ` (subset) [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Bjorn Andersson
3 siblings, 0 replies; 8+ messages in thread
From: Luca Weiss @ 2024-02-05 9:51 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Lee Jones, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Catalin Marinas,
Will Deacon
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, Luca Weiss
With SDAM + PBS the LPG driver can configure the LED pattern in
hardware.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
arch/arm64/boot/dts/qcom/pmi632.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pmi632.dtsi b/arch/arm64/boot/dts/qcom/pmi632.dtsi
index 4eb79e0ce40a..d2bb49a619d7 100644
--- a/arch/arm64/boot/dts/qcom/pmi632.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmi632.dtsi
@@ -127,6 +127,11 @@ pmi632_adc_tm: adc-tm@3500 {
status = "disabled";
};
+ pmi632_pbs_client3: pbs@7400 {
+ compatible = "qcom,pmi632-pbs", "qcom,pbs";
+ reg = <0x7400>;
+ };
+
pmi632_sdam_7: nvram@b600 {
compatible = "qcom,spmi-sdam";
reg = <0xb600>;
@@ -155,6 +160,10 @@ pmic@3 {
pmi632_lpg: pwm {
compatible = "qcom,pmi632-lpg";
+ nvmem = <&pmi632_sdam_7>;
+ nvmem-names = "lpg_chan_sdam";
+ qcom,pbs = <&pmi632_pbs_client3>;
+
#address-cells = <1>;
#size-cells = <0>;
#pwm-cells = <2>;
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] arm64: defconfig: Enable QCOM PBS
2024-02-05 9:51 [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Luca Weiss
2024-02-05 9:51 ` [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types Luca Weiss
2024-02-05 9:51 ` [PATCH 2/3] arm64: dts: qcom: pmi632: Add PBS client and use in LPG node Luca Weiss
@ 2024-02-05 9:51 ` Luca Weiss
2024-02-16 23:10 ` (subset) [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Bjorn Andersson
3 siblings, 0 replies; 8+ messages in thread
From: Luca Weiss @ 2024-02-05 9:51 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Lee Jones, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Catalin Marinas,
Will Deacon
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel, Luca Weiss
Enable the PBS driver used on e.g. PMI632.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index cfa3e00def09..e92a5fd9f660 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1375,6 +1375,7 @@ CONFIG_QCOM_STATS=m
CONFIG_QCOM_WCNSS_CTRL=m
CONFIG_QCOM_APR=m
CONFIG_QCOM_ICC_BWMON=m
+CONFIG_QCOM_PBS=m
CONFIG_ARCH_R8A77995=y
CONFIG_ARCH_R8A77990=y
CONFIG_ARCH_R8A77951=y
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types
2024-02-05 9:51 ` [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types Luca Weiss
@ 2024-02-05 13:46 ` Rob Herring
2024-02-05 15:44 ` Luca Weiss
2024-02-16 20:33 ` Bjorn Andersson
1 sibling, 1 reply; 8+ messages in thread
From: Rob Herring @ 2024-02-05 13:46 UTC (permalink / raw)
To: Luca Weiss
Cc: Krzysztof Kozlowski, linux-kernel, linux-arm-kernel,
linux-arm-msm, Conor Dooley, phone-devel, Lee Jones,
Konrad Dybcio, Bjorn Andersson, Will Deacon,
~postmarketos/upstreaming, Stephen Boyd, devicetree,
Catalin Marinas
On Mon, 05 Feb 2024 10:51:38 +0100, Luca Weiss wrote:
> Add the PBS (Programmable Boot Sequencer) to the list of devices.
>
> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> ---
> Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml:
Error in referenced schema matching $id: http://devicetree.org/schemas/soc/qcom/qcom,pbs.yaml
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240205-pmi632-ppg-v1-1-e236c95a2099@fairphone.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types
2024-02-05 13:46 ` Rob Herring
@ 2024-02-05 15:44 ` Luca Weiss
0 siblings, 0 replies; 8+ messages in thread
From: Luca Weiss @ 2024-02-05 15:44 UTC (permalink / raw)
To: Luca Weiss, ~postmarketos/upstreaming
Cc: Krzysztof Kozlowski, linux-kernel, linux-arm-kernel,
linux-arm-msm, Conor Dooley, phone-devel, Lee Jones,
Konrad Dybcio, Bjorn Andersson, Will Deacon,
~postmarketos/upstreaming, Stephen Boyd, devicetree,
Catalin Marinas, Rob Herring
On Montag, 5. Februar 2024 14:46:45 CET Rob Herring wrote:
> On Mon, 05 Feb 2024 10:51:38 +0100, Luca Weiss wrote:
> > Add the PBS (Programmable Boot Sequencer) to the list of devices.
> >
> > Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> > ---
> >
> > Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++++
> > 1 file changed, 4 insertions(+)
>
> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
> on your patch (DT_CHECKER_FLAGS is new in v5.13):
>
> yamllint warnings/errors:
>
> dtschema/dtc warnings/errors:
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/
> qcom,spmi-pmic.yaml: Error in referenced schema matching $id:
> http://devicetree.org/schemas/soc/qcom/qcom,pbs.yaml
These patches have been merged into linux-next recently, so should get into
the next release.
>
> doc reference errors (make refcheckdocs):
>
> See
> https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240205-pmi
> 632-ppg-v1-1-e236c95a2099@fairphone.com
>
> The base for the series is generally the latest rc1. A different dependency
> should be noted in *this* patch.
>
> If you already ran 'make dt_binding_check' and didn't see the above
> error(s), then make sure 'yamllint' is installed and dt-schema is up to
> date:
>
> pip3 install dtschema --upgrade
>
> Please check and re-submit after running the above command yourself. Note
> that DT_SCHEMA_FILES can be set to your schema file to speed up checking
> your schema. However, it must be unset to test all examples with your
> schema.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types
2024-02-05 9:51 ` [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types Luca Weiss
2024-02-05 13:46 ` Rob Herring
@ 2024-02-16 20:33 ` Bjorn Andersson
1 sibling, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2024-02-16 20:33 UTC (permalink / raw)
To: Luca Weiss
Cc: Konrad Dybcio, Lee Jones, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Stephen Boyd, Catalin Marinas, Will Deacon,
~postmarketos/upstreaming, phone-devel, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel
On Mon, Feb 05, 2024 at 10:51:38AM +0100, Luca Weiss wrote:
> Add the PBS (Programmable Boot Sequencer) to the list of devices.
>
> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Regards,
Bjorn
> ---
> Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
> index 8103fb61a16c..b7f01cbb8fff 100644
> --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
> +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
> @@ -160,6 +160,10 @@ patternProperties:
> type: object
> $ref: /schemas/nvmem/qcom,spmi-sdam.yaml#
>
> + "^pbs@[0-9a-f]+$":
> + type: object
> + $ref: /schemas/soc/qcom/qcom,pbs.yaml#
> +
> "phy@[0-9a-f]+$":
> type: object
> $ref: /schemas/phy/qcom,snps-eusb2-repeater.yaml#
>
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: (subset) [PATCH 0/3] Add PPG support for PMI632 LPG dtsi
2024-02-05 9:51 [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Luca Weiss
` (2 preceding siblings ...)
2024-02-05 9:51 ` [PATCH 3/3] arm64: defconfig: Enable QCOM PBS Luca Weiss
@ 2024-02-16 23:10 ` Bjorn Andersson
3 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2024-02-16 23:10 UTC (permalink / raw)
To: Konrad Dybcio, Lee Jones, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Stephen Boyd, Catalin Marinas, Will Deacon,
Luca Weiss
Cc: ~postmarketos/upstreaming, phone-devel, linux-arm-msm,
devicetree, linux-kernel, linux-arm-kernel
On Mon, 05 Feb 2024 10:51:37 +0100, Luca Weiss wrote:
> Hook up the PBS & SDAM to the PMI632 LPG so that we can use the
> hw_pattern for the LEDs.
>
>
Applied, thanks!
[3/3] arm64: defconfig: Enable QCOM PBS
commit: 9c5c14c066f353ac1f4e3b4dd6e19451eac61e0c
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-02-16 23:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-05 9:51 [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Luca Weiss
2024-02-05 9:51 ` [PATCH 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pbs to SPMI device types Luca Weiss
2024-02-05 13:46 ` Rob Herring
2024-02-05 15:44 ` Luca Weiss
2024-02-16 20:33 ` Bjorn Andersson
2024-02-05 9:51 ` [PATCH 2/3] arm64: dts: qcom: pmi632: Add PBS client and use in LPG node Luca Weiss
2024-02-05 9:51 ` [PATCH 3/3] arm64: defconfig: Enable QCOM PBS Luca Weiss
2024-02-16 23:10 ` (subset) [PATCH 0/3] Add PPG support for PMI632 LPG dtsi Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).