* [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo
@ 2026-03-25 18:07 Biswapriyo Nath
2026-03-25 18:07 ` [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator Biswapriyo Nath
` (8 more replies)
0 siblings, 9 replies; 32+ messages in thread
From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Lee Jones, Pavel Machek, Sean Young,
Michael Turquette, Stephen Boyd, Martin Botka
Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk,
~postmarketos/upstreaming, phone-devel, Biswapriyo Nath,
kernel test robot
This patch series add support for various components in Xiaomi Redmi
Note 8.
Most notably:
- IR transmitter
- USB-C OTG
- Vibrator
Also, fix some bindings warning as reported due to previous commits.
These are tested with linux-next tag next-20260320.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
---
Biswapriyo Nath (7):
arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator
arm64: dts: qcom: sm6125: Enable USB-C port handling
arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property
dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value
arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter
arm64: dts: qcom: sm6125: Use 64 bit addressing
dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property
.../bindings/clock/qcom,dispcc-sm6125.yaml | 3 +
.../devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +-
.../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 56 +++++++
arch/arm64/boot/dts/qcom/sm6125.dtsi | 168 +++++++++++----------
4 files changed, 152 insertions(+), 77 deletions(-)
---
base-commit: 785f0eb2f85decbe7c1ef9ae922931f0194ffc2e
change-id: 20260325-ginkgo-add-usb-ir-vib-4a51bd9ff64b
Best regards,
--
Biswapriyo Nath <nathbappai@gmail.com>
^ permalink raw reply [flat|nested] 32+ messages in thread* [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath @ 2026-03-25 18:07 ` Biswapriyo Nath 2026-03-25 22:40 ` Dmitry Baryshkov 2026-03-26 9:40 ` Konrad Dybcio 2026-03-25 18:07 ` [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling Biswapriyo Nath ` (7 subsequent siblings) 8 siblings, 2 replies; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, Biswapriyo Nath Enable the vibrator on the PMI632 which is used on this phone. Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi index 7eecd9dc302..88691f1fa3a 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi @@ -12,6 +12,7 @@ #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> #include "sm6125.dtsi" #include "pm6125.dtsi" +#include "pmi632.dtsi" /delete-node/ &adsp_pil_mem; /delete-node/ &cont_splash_mem; @@ -115,6 +116,10 @@ &hsusb_phy1 { status = "okay"; }; +&pmi632_vib { + status = "okay"; +}; + &pon_pwrkey { status = "okay"; }; -- 2.53.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator 2026-03-25 18:07 ` [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator Biswapriyo Nath @ 2026-03-25 22:40 ` Dmitry Baryshkov 2026-03-26 9:40 ` Konrad Dybcio 1 sibling, 0 replies; 32+ messages in thread From: Dmitry Baryshkov @ 2026-03-25 22:40 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Wed, Mar 25, 2026 at 06:07:24PM +0000, Biswapriyo Nath wrote: > Enable the vibrator on the PMI632 which is used on this phone. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 5 +++++ > 1 file changed, 5 insertions(+) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator 2026-03-25 18:07 ` [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator Biswapriyo Nath 2026-03-25 22:40 ` Dmitry Baryshkov @ 2026-03-26 9:40 ` Konrad Dybcio 1 sibling, 0 replies; 32+ messages in thread From: Konrad Dybcio @ 2026-03-26 9:40 UTC (permalink / raw) To: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > Enable the vibrator on the PMI632 which is used on this phone. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath 2026-03-25 18:07 ` [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator Biswapriyo Nath @ 2026-03-25 18:07 ` Biswapriyo Nath 2026-03-25 20:08 ` Dmitry Baryshkov ` (2 more replies) 2026-03-25 18:07 ` [PATCH 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property Biswapriyo Nath ` (6 subsequent siblings) 8 siblings, 3 replies; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, Biswapriyo Nath Plug in USB-C related bits and pieces to enable USB role switching. Also, remove dr_mode to enable OTG capability. Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index c84911a98fc..259a24fe24a 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -1238,7 +1238,20 @@ usb3_dwc3: usb@4e00000 { snps,dis-u1-entry-quirk; snps,dis-u2-entry-quirk; maximum-speed = "high-speed"; - dr_mode = "peripheral"; + + usb-role-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_dwc3_hs: endpoint { + }; + }; + }; }; }; -- 2.53.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling 2026-03-25 18:07 ` [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling Biswapriyo Nath @ 2026-03-25 20:08 ` Dmitry Baryshkov 2026-03-25 22:40 ` Dmitry Baryshkov 2026-03-26 9:41 ` Konrad Dybcio 2 siblings, 0 replies; 32+ messages in thread From: Dmitry Baryshkov @ 2026-03-25 20:08 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Wed, Mar 25, 2026 at 06:07:25PM +0000, Biswapriyo Nath wrote: > Plug in USB-C related bits and pieces to enable USB role switching. > Also, remove dr_mode to enable OTG capability. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > arch/arm64/boot/dts/qcom/sm6125.dtsi | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling 2026-03-25 18:07 ` [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling Biswapriyo Nath 2026-03-25 20:08 ` Dmitry Baryshkov @ 2026-03-25 22:40 ` Dmitry Baryshkov 2026-03-26 9:41 ` Konrad Dybcio 2 siblings, 0 replies; 32+ messages in thread From: Dmitry Baryshkov @ 2026-03-25 22:40 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Wed, Mar 25, 2026 at 06:07:25PM +0000, Biswapriyo Nath wrote: > Plug in USB-C related bits and pieces to enable USB role switching. > Also, remove dr_mode to enable OTG capability. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > arch/arm64/boot/dts/qcom/sm6125.dtsi | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling 2026-03-25 18:07 ` [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling Biswapriyo Nath 2026-03-25 20:08 ` Dmitry Baryshkov 2026-03-25 22:40 ` Dmitry Baryshkov @ 2026-03-26 9:41 ` Konrad Dybcio 2026-03-26 18:28 ` Biswapriyo Nath 2 siblings, 1 reply; 32+ messages in thread From: Konrad Dybcio @ 2026-03-26 9:41 UTC (permalink / raw) To: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > Plug in USB-C related bits and pieces to enable USB role switching. > Also, remove dr_mode to enable OTG capability. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- I'm not sure what this is going to do for other 6125 devices that don't have the Type-C infra wired up.. Does just applying this commit alone keep peripheral mode working on your phone? Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling 2026-03-26 9:41 ` Konrad Dybcio @ 2026-03-26 18:28 ` Biswapriyo Nath 2026-03-27 9:55 ` Konrad Dybcio 0 siblings, 1 reply; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-26 18:28 UTC (permalink / raw) To: Konrad Dybcio Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Thu, 26 Mar 2026 10:41:03 +0100 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote: > On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > > Plug in USB-C related bits and pieces to enable USB role switching. > > Also, remove dr_mode to enable OTG capability. > > > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > > --- > > I'm not sure what this is going to do for other 6125 devices > that don't have the Type-C infra wired up.. Does just applying > this commit alone keep peripheral mode working on your phone? > > Konrad > Yes, I have verified that USB peripheral mode is working with this patch only by using USB network[1]. [1]: https://wiki.postmarketos.org/wiki/USB_Network ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling 2026-03-26 18:28 ` Biswapriyo Nath @ 2026-03-27 9:55 ` Konrad Dybcio 0 siblings, 0 replies; 32+ messages in thread From: Konrad Dybcio @ 2026-03-27 9:55 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On 3/26/26 7:28 PM, Biswapriyo Nath wrote: > On Thu, 26 Mar 2026 10:41:03 +0100 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote: > >> On 3/25/26 7:07 PM, Biswapriyo Nath wrote: >>> Plug in USB-C related bits and pieces to enable USB role switching. >>> Also, remove dr_mode to enable OTG capability. >>> >>> Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> >>> --- >> >> I'm not sure what this is going to do for other 6125 devices >> that don't have the Type-C infra wired up.. Does just applying >> this commit alone keep peripheral mode working on your phone? >> >> Konrad >> > > Yes, I have verified that USB peripheral mode is working with this > patch only by using USB network[1]. Thanks Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath 2026-03-25 18:07 ` [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator Biswapriyo Nath 2026-03-25 18:07 ` [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling Biswapriyo Nath @ 2026-03-25 18:07 ` Biswapriyo Nath 2026-03-26 9:39 ` Konrad Dybcio 2026-03-25 18:07 ` [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value Biswapriyo Nath ` (5 subsequent siblings) 8 siblings, 1 reply; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, Biswapriyo Nath The USB-C port is used for powering external devices and transfer data from/to them. Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi index 88691f1fa3a..f66ff5f7693 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi @@ -116,6 +116,33 @@ &hsusb_phy1 { status = "okay"; }; +&pmi632_typec { + status = "okay"; + + connector { + compatible = "usb-c-connector"; + + power-role = "dual"; + data-role = "dual"; + self-powered; + + typec-power-opmode = "default"; + pd-disable; + + port { + pmi632_hs_in: endpoint { + remote-endpoint = <&usb_dwc3_hs>; + }; + }; + }; +}; + +&pmi632_vbus { + regulator-min-microamp = <500000>; + regulator-max-microamp = <1000000>; + status = "okay"; +}; + &pmi632_vib { status = "okay"; }; @@ -316,3 +343,7 @@ &uart4 { &usb3 { status = "okay"; }; + +&usb_dwc3_hs { + remote-endpoint = <&pmi632_hs_in>; +}; -- 2.53.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property 2026-03-25 18:07 ` [PATCH 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property Biswapriyo Nath @ 2026-03-26 9:39 ` Konrad Dybcio 0 siblings, 0 replies; 32+ messages in thread From: Konrad Dybcio @ 2026-03-26 9:39 UTC (permalink / raw) To: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > The USB-C port is used for powering external devices and transfer > data from/to them. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- [...] > + port { > + pmi632_hs_in: endpoint { > + remote-endpoint = <&usb_dwc3_hs>; > + }; > + }; I'm going to assume the SS lanes are not routed Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath ` (2 preceding siblings ...) 2026-03-25 18:07 ` [PATCH 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property Biswapriyo Nath @ 2026-03-25 18:07 ` Biswapriyo Nath 2026-03-27 7:51 ` Krzysztof Kozlowski 2026-03-25 18:07 ` [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter Biswapriyo Nath ` (4 subsequent siblings) 8 siblings, 1 reply; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, Biswapriyo Nath 30 duty cycle for IR transmitter is used in Xiaomi Redmi Note 8 (ginkgo). Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml index 72cadebf6e3..0297bfbb275 100644 --- a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml +++ b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml @@ -25,7 +25,7 @@ properties: duty-cycle: $ref: /schemas/types.yaml#/definitions/uint8 - enum: [50, 60, 70, 75, 80, 90] + enum: [30, 50, 60, 70, 75, 80, 90] description: Percentage of one period in which the signal is active. -- 2.53.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value 2026-03-25 18:07 ` [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value Biswapriyo Nath @ 2026-03-27 7:51 ` Krzysztof Kozlowski 2026-03-27 8:41 ` Sean Young 0 siblings, 1 reply; 32+ messages in thread From: Krzysztof Kozlowski @ 2026-03-27 7:51 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Wed, Mar 25, 2026 at 06:07:27PM +0000, Biswapriyo Nath wrote: > 30 duty cycle for IR transmitter is used in Xiaomi Redmi Note 8 (ginkgo). > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > index 72cadebf6e3..0297bfbb275 100644 > --- a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > +++ b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > @@ -25,7 +25,7 @@ properties: > > duty-cycle: > $ref: /schemas/types.yaml#/definitions/uint8 > - enum: [50, 60, 70, 75, 80, 90] > + enum: [30, 50, 60, 70, 75, 80, 90] Hm, why is this enum, instead of 1-99, in the first place? Best regards, Krzysztof ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value 2026-03-27 7:51 ` Krzysztof Kozlowski @ 2026-03-27 8:41 ` Sean Young 2026-03-27 9:38 ` Krzysztof Kozlowski 0 siblings, 1 reply; 32+ messages in thread From: Sean Young @ 2026-03-27 8:41 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Fri, Mar 27, 2026 at 08:51:18AM +0100, Krzysztof Kozlowski wrote: > On Wed, Mar 25, 2026 at 06:07:27PM +0000, Biswapriyo Nath wrote: > > 30 duty cycle for IR transmitter is used in Xiaomi Redmi Note 8 (ginkgo). > > > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > > --- > > Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > > index 72cadebf6e3..0297bfbb275 100644 > > --- a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > > +++ b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > > @@ -25,7 +25,7 @@ properties: > > > > duty-cycle: > > $ref: /schemas/types.yaml#/definitions/uint8 > > - enum: [50, 60, 70, 75, 80, 90] > > + enum: [30, 50, 60, 70, 75, 80, 90] > > Hm, why is this enum, instead of 1-99, in the first place? Well in reality only a few different duty cycles are used by IR protocols. 30% is quite common so that should part of the list. Having said that a range of 1-99 would be nicer. Do we set this like so: - minimum: 1 - maximum: 99 ? Thanks, Sean ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value 2026-03-27 8:41 ` Sean Young @ 2026-03-27 9:38 ` Krzysztof Kozlowski 2026-03-27 10:18 ` Sean Young 0 siblings, 1 reply; 32+ messages in thread From: Krzysztof Kozlowski @ 2026-03-27 9:38 UTC (permalink / raw) To: Sean Young Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On 27/03/2026 09:41, Sean Young wrote: > On Fri, Mar 27, 2026 at 08:51:18AM +0100, Krzysztof Kozlowski wrote: >> On Wed, Mar 25, 2026 at 06:07:27PM +0000, Biswapriyo Nath wrote: >>> 30 duty cycle for IR transmitter is used in Xiaomi Redmi Note 8 (ginkgo). >>> >>> Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> >>> --- >>> Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml >>> index 72cadebf6e3..0297bfbb275 100644 >>> --- a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml >>> +++ b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml >>> @@ -25,7 +25,7 @@ properties: >>> >>> duty-cycle: >>> $ref: /schemas/types.yaml#/definitions/uint8 >>> - enum: [50, 60, 70, 75, 80, 90] >>> + enum: [30, 50, 60, 70, 75, 80, 90] >> >> Hm, why is this enum, instead of 1-99, in the first place? > > Well in reality only a few different duty cycles are used by IR protocols. > 30% is quite common so that should part of the list. > > Having said that a range of 1-99 would be nicer. Do we set this like so: > > - minimum: 1 > - maximum: 99 I asked, because I don't know what hardware is really there. This should match reality, so if you say continuous range is never used, it does not have the be changed to 1-99. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value 2026-03-27 9:38 ` Krzysztof Kozlowski @ 2026-03-27 10:18 ` Sean Young 0 siblings, 0 replies; 32+ messages in thread From: Sean Young @ 2026-03-27 10:18 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Fri, Mar 27, 2026 at 10:38:17AM +0100, Krzysztof Kozlowski wrote: > On 27/03/2026 09:41, Sean Young wrote: > > On Fri, Mar 27, 2026 at 08:51:18AM +0100, Krzysztof Kozlowski wrote: > >> On Wed, Mar 25, 2026 at 06:07:27PM +0000, Biswapriyo Nath wrote: > >>> 30 duty cycle for IR transmitter is used in Xiaomi Redmi Note 8 (ginkgo). > >>> > >>> Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > >>> --- > >>> Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- > >>> 1 file changed, 1 insertion(+), 1 deletion(-) > >>> > >>> diff --git a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > >>> index 72cadebf6e3..0297bfbb275 100644 > >>> --- a/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > >>> +++ b/Documentation/devicetree/bindings/leds/irled/ir-spi-led.yaml > >>> @@ -25,7 +25,7 @@ properties: > >>> > >>> duty-cycle: > >>> $ref: /schemas/types.yaml#/definitions/uint8 > >>> - enum: [50, 60, 70, 75, 80, 90] > >>> + enum: [30, 50, 60, 70, 75, 80, 90] > >> > >> Hm, why is this enum, instead of 1-99, in the first place? > > > > Well in reality only a few different duty cycles are used by IR protocols. > > 30% is quite common so that should part of the list. > > > > Having said that a range of 1-99 would be nicer. Do we set this like so: > > > > - minimum: 1 > > - maximum: 99 > > I asked, because I don't know what hardware is really there. This should > match reality, so if you say continuous range is never used, it does not > have the be changed to 1-99. So the transmit hardware can do an continuous range (almost). It's the real life usage which doesn't really use many different values. The value set here is just the default duty cycle. There is also an ioctl LIRC_SET_SEND_DUTY_CYCLE which sets the duty cycle for transmission. Most IR drivers just have a hardcoded default value for the duty cycle, I think ir-spi is the only one which allows this to be set via dt. I'd say allowing the default to be set via dt is not necessary. If this had occurred to be during review I would've asked for it to be removed. It's there now, so: Reviewed-by: Sean Young <sean@mess.org> Sean ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath ` (3 preceding siblings ...) 2026-03-25 18:07 ` [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value Biswapriyo Nath @ 2026-03-25 18:07 ` Biswapriyo Nath 2026-03-26 9:29 ` Konrad Dybcio 2026-03-27 10:20 ` Sean Young 2026-03-25 18:07 ` [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing Biswapriyo Nath ` (3 subsequent siblings) 8 siblings, 2 replies; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, Biswapriyo Nath The IR transmitting LED is connected to SPI8 controller. Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi index f66ff5f7693..7d848117317 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi @@ -99,6 +99,10 @@ key-volume-up { }; }; +&gpi_dma1 { + status = "okay"; +}; + &pm6125_gpios { vol_up_n: vol-up-n-state { pins = "gpio5"; @@ -160,6 +164,10 @@ &qupv3_id_0 { status = "okay"; }; +&qupv3_id_1 { + status = "okay"; +}; + &rpm_requests { regulators-0 { compatible = "qcom,rpm-pm6125-regulators"; @@ -332,6 +340,18 @@ &sdhc_2 { status = "okay"; }; +&spi8 { + status = "okay"; + + irled@1 { + compatible = "ir-spi-led"; + reg = <1>; + + duty-cycle = /bits/ 8 <30>; + spi-max-frequency = <1000000>; + }; +}; + &tlmm { gpio-reserved-ranges = <0 4>, <30 4>; }; -- 2.53.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter 2026-03-25 18:07 ` [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter Biswapriyo Nath @ 2026-03-26 9:29 ` Konrad Dybcio 2026-03-26 18:41 ` Biswapriyo Nath 2026-03-27 10:20 ` Sean Young 1 sibling, 1 reply; 32+ messages in thread From: Konrad Dybcio @ 2026-03-26 9:29 UTC (permalink / raw) To: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > The IR transmitting LED is connected to SPI8 controller. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- [...] > +&spi8 { > + status = "okay"; > + > + irled@1 { > + compatible = "ir-spi-led"; > + reg = <1>; > + > + duty-cycle = /bits/ 8 <30>; > + spi-max-frequency = <1000000>; I see the binding allows a power-supply handle - do you need one? Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter 2026-03-26 9:29 ` Konrad Dybcio @ 2026-03-26 18:41 ` Biswapriyo Nath 2026-03-27 9:19 ` Konrad Dybcio 0 siblings, 1 reply; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-26 18:41 UTC (permalink / raw) To: Konrad Dybcio Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Thu, 26 Mar 2026 10:29:49 +0100 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote: > On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > > The IR transmitting LED is connected to SPI8 controller. > > > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > > --- > > [...] > > > +&spi8 { > > + status = "okay"; > > + > > + irled@1 { > > + compatible = "ir-spi-led"; > > + reg = <1>; > > + > > + duty-cycle = /bits/ 8 <30>; > > + spi-max-frequency = <1000000>; > > I see the binding allows a power-supply handle - do you need one? > > Konrad > I have tested the IR transmitter with my TV and set-top box both. power-supply is not required and not mentioned in Android devicetree. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter 2026-03-26 18:41 ` Biswapriyo Nath @ 2026-03-27 9:19 ` Konrad Dybcio 0 siblings, 0 replies; 32+ messages in thread From: Konrad Dybcio @ 2026-03-27 9:19 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On 3/26/26 7:41 PM, Biswapriyo Nath wrote: > On Thu, 26 Mar 2026 10:29:49 +0100 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote: > >> On 3/25/26 7:07 PM, Biswapriyo Nath wrote: >>> The IR transmitting LED is connected to SPI8 controller. >>> >>> Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> >>> --- >> >> [...] >> >>> +&spi8 { >>> + status = "okay"; >>> + >>> + irled@1 { >>> + compatible = "ir-spi-led"; >>> + reg = <1>; >>> + >>> + duty-cycle = /bits/ 8 <30>; >>> + spi-max-frequency = <1000000>; >> >> I see the binding allows a power-supply handle - do you need one? >> >> Konrad >> > > I have tested the IR transmitter with my TV and set-top box both. > power-supply is not required and not mentioned in Android devicetree. Thanks Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter 2026-03-25 18:07 ` [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter Biswapriyo Nath 2026-03-26 9:29 ` Konrad Dybcio @ 2026-03-27 10:20 ` Sean Young 1 sibling, 0 replies; 32+ messages in thread From: Sean Young @ 2026-03-27 10:20 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel On Wed, Mar 25, 2026 at 06:07:28PM +0000, Biswapriyo Nath wrote: > The IR transmitting LED is connected to SPI8 controller. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi > index f66ff5f7693..7d848117317 100644 > --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi > @@ -99,6 +99,10 @@ key-volume-up { > }; > }; > > +&gpi_dma1 { > + status = "okay"; > +}; > + > &pm6125_gpios { > vol_up_n: vol-up-n-state { > pins = "gpio5"; > @@ -160,6 +164,10 @@ &qupv3_id_0 { > status = "okay"; > }; > > +&qupv3_id_1 { > + status = "okay"; > +}; > + > &rpm_requests { > regulators-0 { > compatible = "qcom,rpm-pm6125-regulators"; > @@ -332,6 +340,18 @@ &sdhc_2 { > status = "okay"; > }; > > +&spi8 { > + status = "okay"; > + > + irled@1 { > + compatible = "ir-spi-led"; > + reg = <1>; > + > + duty-cycle = /bits/ 8 <30>; > + spi-max-frequency = <1000000>; > + }; > +}; > + Reviewed-by: Sean Young <sean@mess.org> Thanks, Sean > &tlmm { > gpio-reserved-ranges = <0 4>, <30 4>; > }; > > -- > 2.53.0 ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath ` (4 preceding siblings ...) 2026-03-25 18:07 ` [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter Biswapriyo Nath @ 2026-03-25 18:07 ` Biswapriyo Nath 2026-03-25 22:41 ` Dmitry Baryshkov 2026-03-26 10:54 ` Konrad Dybcio 2026-03-25 18:07 ` [PATCH 7/7] dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property Biswapriyo Nath ` (2 subsequent siblings) 8 siblings, 2 replies; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, Biswapriyo Nath, kernel test robot SM6125's SMMU uses 36bit VAs, which is a good indicator that we should increase (dma-)ranges - and by extension #address- and #size-cells to prevent things from getting lost in translation (both literally and figuratively). Do so. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202603141433.MDqfoVHn-lkp@intel.com/ Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 153 ++++++++++++++++++----------------- 1 file changed, 78 insertions(+), 75 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index 259a24fe24a..d26ca163733 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -374,22 +374,23 @@ smem: smem { }; soc@0 { - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x00 0x00 0x00 0xffffffff>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0 0 0 0 0x10 0>; + dma-ranges = <0 0 0 0 0x10 0>; compatible = "simple-bus"; tcsr_mutex: hwlock@340000 { compatible = "qcom,tcsr-mutex"; - reg = <0x00340000 0x20000>; + reg = <0x0 0x00340000 0x0 0x20000>; #hwlock-cells = <1>; }; tlmm: pinctrl@500000 { compatible = "qcom,sm6125-tlmm"; - reg = <0x00500000 0x400000>, - <0x00900000 0x400000>, - <0x00d00000 0x400000>; + reg = <0x0 0x00500000 0x0 0x400000>, + <0x0 0x00900000 0x0 0x400000>, + <0x0 0x00d00000 0x0 0x400000>; reg-names = "west", "south", "east"; interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>; gpio-controller; @@ -672,7 +673,7 @@ qup_uart4_default: qup-uart4-default-state { gcc: clock-controller@1400000 { compatible = "qcom,gcc-sm6125"; - reg = <0x01400000 0x1f0000>; + reg = <0x0 0x01400000 0x0 0x1f0000>; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; @@ -682,7 +683,7 @@ gcc: clock-controller@1400000 { hsusb_phy1: phy@1613000 { compatible = "qcom,msm8996-qusb2-phy"; - reg = <0x01613000 0x180>; + reg = <0x0 0x01613000 0x0 0x180>; #phy-cells = <0>; clocks = <&gcc GCC_AHB2PHY_USB_CLK>, @@ -695,18 +696,18 @@ hsusb_phy1: phy@1613000 { rng: rng@1b53000 { compatible = "qcom,prng-ee"; - reg = <0x01b53000 0x1000>; + reg = <0x0 0x01b53000 0x0 0x1000>; clocks = <&gcc GCC_PRNG_AHB_CLK>; clock-names = "core"; }; spmi_bus: spmi@1c40000 { compatible = "qcom,spmi-pmic-arb"; - reg = <0x01c40000 0x1100>, - <0x01e00000 0x2000000>, - <0x03e00000 0x100000>, - <0x03f00000 0xa0000>, - <0x01c0a000 0x26000>; + reg = <0x0 0x01c40000 0x0 0x1100>, + <0x0 0x01e00000 0x0 0x2000000>, + <0x0 0x03e00000 0x0 0x100000>, + <0x0 0x03f00000 0x0 0xa0000>, + <0x0 0x01c0a000 0x0 0x26000>; reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; interrupt-names = "periph_irq"; interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>; @@ -720,12 +721,13 @@ spmi_bus: spmi@1c40000 { rpm_msg_ram: sram@45f0000 { compatible = "qcom,rpm-msg-ram"; - reg = <0x045f0000 0x7000>; + reg = <0x0 0x045f0000 0x0 0x7000>; }; sdhc_1: mmc@4744000 { compatible = "qcom,sm6125-sdhci", "qcom,sdhci-msm-v5"; - reg = <0x04744000 0x1000>, <0x04745000 0x1000>; + reg = <0x0 0x04744000 0x0 0x1000>, + <0x0 0x04745000 0x0 0x1000>; reg-names = "hc", "cqhci"; interrupts = <GIC_SPI 348 IRQ_TYPE_LEVEL_HIGH>, @@ -752,7 +754,7 @@ sdhc_1: mmc@4744000 { sdhc_2: mmc@4784000 { compatible = "qcom,sm6125-sdhci", "qcom,sdhci-msm-v5"; - reg = <0x04784000 0x1000>; + reg = <0x0 0x04784000 0x0 0x1000>; reg-names = "hc"; interrupts = <GIC_SPI 350 IRQ_TYPE_LEVEL_HIGH>, @@ -780,7 +782,8 @@ sdhc_2: mmc@4784000 { ufs_mem_hc: ufshc@4804000 { compatible = "qcom,sm6125-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; - reg = <0x04804000 0x3000>, <0x04810000 0x8000>; + reg = <0x0 0x04804000 0x0 0x3000>, + <0x0 0x04810000 0x0 0x8000>; reg-names = "std", "ice"; interrupts = <GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH>; @@ -825,7 +828,7 @@ ufs_mem_hc: ufshc@4804000 { ufs_mem_phy: phy@4807000 { compatible = "qcom,sm6125-qmp-ufs-phy"; - reg = <0x04807000 0xdb8>; + reg = <0x0 0x04807000 0x0 0xdb8>; clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, @@ -846,7 +849,7 @@ ufs_mem_phy: phy@4807000 { gpi_dma0: dma-controller@4a00000 { compatible = "qcom,sm6125-gpi-dma", "qcom,sdm845-gpi-dma"; - reg = <0x04a00000 0x60000>; + reg = <0x0 0x04a00000 0x0 0x60000>; interrupts = <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>, @@ -864,19 +867,19 @@ gpi_dma0: dma-controller@4a00000 { qupv3_id_0: geniqup@4ac0000 { compatible = "qcom,geni-se-qup"; - reg = <0x04ac0000 0x2000>; + reg = <0x0 0x04ac0000 0x0 0x2000>; clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; clock-names = "m-ahb", "s-ahb"; iommus = <&apps_smmu 0x123 0x0>; - #address-cells = <1>; - #size-cells = <1>; + #address-cells = <2>; + #size-cells = <2>; ranges; status = "disabled"; i2c0: i2c@4a80000 { compatible = "qcom,geni-i2c"; - reg = <0x04a80000 0x4000>; + reg = <0x0 0x04a80000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; clock-names = "se"; interrupts = <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>; @@ -893,7 +896,7 @@ i2c0: i2c@4a80000 { spi0: spi@4a80000 { compatible = "qcom,geni-spi"; - reg = <0x04a80000 0x4000>; + reg = <0x0 0x04a80000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; clock-names = "se"; interrupts = <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>; @@ -910,7 +913,7 @@ spi0: spi@4a80000 { i2c1: i2c@4a84000 { compatible = "qcom,geni-i2c"; - reg = <0x04a84000 0x4000>; + reg = <0x0 0x04a84000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S1_CLK>; clock-names = "se"; interrupts = <GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH>; @@ -927,7 +930,7 @@ i2c1: i2c@4a84000 { i2c2: i2c@4a88000 { compatible = "qcom,geni-i2c"; - reg = <0x04a88000 0x4000>; + reg = <0x0 0x04a88000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>; clock-names = "se"; interrupts = <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>; @@ -944,7 +947,7 @@ i2c2: i2c@4a88000 { spi2: spi@4a88000 { compatible = "qcom,geni-spi"; - reg = <0x04a88000 0x4000>; + reg = <0x0 0x04a88000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>; clock-names = "se"; interrupts = <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>; @@ -961,7 +964,7 @@ spi2: spi@4a88000 { i2c3: i2c@4a8c000 { compatible = "qcom,geni-i2c"; - reg = <0x04a8c000 0x4000>; + reg = <0x0 0x04a8c000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S3_CLK>; clock-names = "se"; interrupts = <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>; @@ -978,7 +981,7 @@ i2c3: i2c@4a8c000 { i2c4: i2c@4a90000 { compatible = "qcom,geni-i2c"; - reg = <0x04a90000 0x4000>; + reg = <0x0 0x04a90000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S4_CLK>; clock-names = "se"; interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>; @@ -995,7 +998,7 @@ i2c4: i2c@4a90000 { uart4: serial@4a90000 { compatible = "qcom,geni-debug-uart"; - reg = <0x04a90000 0x4000>; + reg = <0x0 0x04a90000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP0_S4_CLK>; clock-names = "se"; interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>; @@ -1007,7 +1010,7 @@ uart4: serial@4a90000 { gpi_dma1: dma-controller@4c00000 { compatible = "qcom,sm6125-gpi-dma", "qcom,sdm845-gpi-dma"; - reg = <0x04c00000 0x60000>; + reg = <0x0 0x04c00000 0x0 0x60000>; interrupts = <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>, @@ -1025,19 +1028,19 @@ gpi_dma1: dma-controller@4c00000 { qupv3_id_1: geniqup@4cc0000 { compatible = "qcom,geni-se-qup"; - reg = <0x04cc0000 0x2000>; + reg = <0x0 0x04cc0000 0x0 0x2000>; clocks = <&gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>, <&gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>; clock-names = "m-ahb", "s-ahb"; iommus = <&apps_smmu 0x143 0x0>; - #address-cells = <1>; - #size-cells = <1>; + #address-cells = <2>; + #size-cells = <2>; ranges; status = "disabled"; i2c5: i2c@4c80000 { compatible = "qcom,geni-i2c"; - reg = <0x04c80000 0x4000>; + reg = <0x0 0x04c80000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S0_CLK>; clock-names = "se"; interrupts = <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>; @@ -1054,7 +1057,7 @@ i2c5: i2c@4c80000 { spi5: spi@4c80000 { compatible = "qcom,geni-spi"; - reg = <0x04c80000 0x4000>; + reg = <0x0 0x04c80000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S0_CLK>; clock-names = "se"; interrupts = <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>; @@ -1071,7 +1074,7 @@ spi5: spi@4c80000 { i2c6: i2c@4c84000 { compatible = "qcom,geni-i2c"; - reg = <0x04c84000 0x4000>; + reg = <0x0 0x04c84000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; clock-names = "se"; interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>; @@ -1088,7 +1091,7 @@ i2c6: i2c@4c84000 { spi6: spi@4c84000 { compatible = "qcom,geni-spi"; - reg = <0x04c84000 0x4000>; + reg = <0x0 0x04c84000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; clock-names = "se"; interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>; @@ -1105,7 +1108,7 @@ spi6: spi@4c84000 { i2c7: i2c@4c88000 { compatible = "qcom,geni-i2c"; - reg = <0x04c88000 0x4000>; + reg = <0x0 0x04c88000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S2_CLK>; clock-names = "se"; interrupts = <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>; @@ -1122,7 +1125,7 @@ i2c7: i2c@4c88000 { i2c8: i2c@4c8c000 { compatible = "qcom,geni-i2c"; - reg = <0x04c8c000 0x4000>; + reg = <0x0 0x04c8c000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S3_CLK>; clock-names = "se"; interrupts = <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>; @@ -1139,7 +1142,7 @@ i2c8: i2c@4c8c000 { spi8: spi@4c8c000 { compatible = "qcom,geni-spi"; - reg = <0x04c8c000 0x4000>; + reg = <0x0 0x04c8c000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S3_CLK>; clock-names = "se"; interrupts = <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>; @@ -1156,7 +1159,7 @@ spi8: spi@4c8c000 { i2c9: i2c@4c90000 { compatible = "qcom,geni-i2c"; - reg = <0x04c90000 0x4000>; + reg = <0x0 0x04c90000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S4_CLK>; clock-names = "se"; interrupts = <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>; @@ -1173,7 +1176,7 @@ i2c9: i2c@4c90000 { spi9: spi@4c90000 { compatible = "qcom,geni-spi"; - reg = <0x04c90000 0x4000>; + reg = <0x0 0x04c90000 0x0 0x4000>; clocks = <&gcc GCC_QUPV3_WRAP1_S4_CLK>; clock-names = "se"; interrupts = <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>; @@ -1191,9 +1194,9 @@ spi9: spi@4c90000 { usb3: usb@4ef8800 { compatible = "qcom,sm6125-dwc3", "qcom,dwc3"; - reg = <0x04ef8800 0x400>; - #address-cells = <1>; - #size-cells = <1>; + reg = <0x0 0x04ef8800 0x0 0x400>; + #address-cells = <2>; + #size-cells = <2>; ranges; clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, @@ -1228,7 +1231,7 @@ usb3: usb@4ef8800 { usb3_dwc3: usb@4e00000 { compatible = "snps,dwc3"; - reg = <0x04e00000 0xcd00>; + reg = <0x0 0x04e00000 0x0 0xcd00>; interrupts = <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>; iommus = <&apps_smmu 0x100 0x0>; phys = <&hsusb_phy1>; @@ -1257,12 +1260,12 @@ usb_dwc3_hs: endpoint { sram@4690000 { compatible = "qcom,rpm-stats"; - reg = <0x04690000 0x10000>; + reg = <0x0 0x04690000 0x0 0x10000>; }; mdss: display-subsystem@5e00000 { compatible = "qcom,sm6125-mdss"; - reg = <0x05e00000 0x1000>; + reg = <0x0 0x05e00000 0x0 0x1000>; reg-names = "mdss"; interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; @@ -1282,16 +1285,16 @@ mdss: display-subsystem@5e00000 { iommus = <&apps_smmu 0x400 0x0>; - #address-cells = <1>; - #size-cells = <1>; + #address-cells = <2>; + #size-cells = <2>; ranges; status = "disabled"; mdss_mdp: display-controller@5e01000 { compatible = "qcom,sm6125-dpu"; - reg = <0x05e01000 0x83208>, - <0x05eb0000 0x3000>; + reg = <0x0 0x05e01000 0x0 0x83208>, + <0x0 0x05eb0000 0x0 0x3000>; reg-names = "mdp", "vbif"; interrupt-parent = <&mdss>; @@ -1361,7 +1364,7 @@ opp-400000000 { mdss_dsi0: dsi@5e94000 { compatible = "qcom,sm6125-dsi-ctrl", "qcom,mdss-dsi-ctrl"; - reg = <0x05e94000 0x400>; + reg = <0x0 0x05e94000 0x0 0x400>; reg-names = "dsi_ctrl"; interrupt-parent = <&mdss>; @@ -1430,9 +1433,9 @@ opp-187500000 { mdss_dsi0_phy: phy@5e94400 { compatible = "qcom,sm6125-dsi-phy-14nm"; - reg = <0x05e94400 0x100>, - <0x05e94500 0x300>, - <0x05e94800 0x188>; + reg = <0x0 0x05e94400 0x0 0x100>, + <0x0 0x05e94500 0x0 0x300>, + <0x0 0x05e94800 0x0 0x188>; reg-names = "dsi_phy", "dsi_phy_lane", "dsi_pll"; @@ -1454,7 +1457,7 @@ mdss_dsi0_phy: phy@5e94400 { dispcc: clock-controller@5f00000 { compatible = "qcom,sm6125-dispcc"; - reg = <0x05f00000 0x20000>; + reg = <0x0 0x05f00000 0x0 0x20000>; clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>, @@ -1483,7 +1486,7 @@ dispcc: clock-controller@5f00000 { apps_smmu: iommu@c600000 { compatible = "qcom,sm6125-smmu-500", "qcom,smmu-500", "arm,mmu-500"; - reg = <0x0c600000 0x80000>; + reg = <0x0 0x0c600000 0x0 0x80000>; interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, @@ -1557,74 +1560,74 @@ apps_smmu: iommu@c600000 { apcs_glb: mailbox@f111000 { compatible = "qcom,sm6125-apcs-hmss-global", "qcom,msm8994-apcs-kpss-global"; - reg = <0x0f111000 0x1000>; + reg = <0x0 0x0f111000 0x0 0x1000>; #mbox-cells = <1>; }; timer@f120000 { compatible = "arm,armv7-timer-mem"; - #address-cells = <1>; + #address-cells = <2>; #size-cells = <1>; - ranges; - reg = <0x0f120000 0x1000>; + reg = <0x0 0x0f120000 0x0 0x1000>; + ranges = <0x0 0x0 0x0 0x0 0x20000000>; clock-frequency = <19200000>; frame@f121000 { frame-number = <0>; interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0f121000 0x1000>, - <0x0f122000 0x1000>; + reg = <0x0 0x0f121000 0x1000>, + <0x0 0x0f122000 0x1000>; }; frame@f123000 { frame-number = <1>; interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0f123000 0x1000>; + reg = <0x0 0x0f123000 0x1000>; status = "disabled"; }; frame@f124000 { frame-number = <2>; interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0f124000 0x1000>; + reg = <0x0 0x0f124000 0x1000>; status = "disabled"; }; frame@f125000 { frame-number = <3>; interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0f125000 0x1000>; + reg = <0x0 0x0f125000 0x1000>; status = "disabled"; }; frame@f126000 { frame-number = <4>; interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0f126000 0x1000>; + reg = <0x0 0x0f126000 0x1000>; status = "disabled"; }; frame@f127000 { frame-number = <5>; interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0f127000 0x1000>; + reg = <0x0 0x0f127000 0x1000>; status = "disabled"; }; frame@f128000 { frame-number = <6>; interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0f128000 0x1000>; + reg = <0x0 0x0f128000 0x1000>; status = "disabled"; }; }; intc: interrupt-controller@f200000 { compatible = "arm,gic-v3"; - reg = <0x0f200000 0x20000>, - <0x0f300000 0x100000>; + reg = <0x0 0x0f200000 0x0 0x20000>, + <0x0 0x0f300000 0x0 0x100000>; #interrupt-cells = <3>; interrupt-controller; interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; -- 2.53.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing 2026-03-25 18:07 ` [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing Biswapriyo Nath @ 2026-03-25 22:41 ` Dmitry Baryshkov 2026-03-26 10:54 ` Konrad Dybcio 1 sibling, 0 replies; 32+ messages in thread From: Dmitry Baryshkov @ 2026-03-25 22:41 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On Wed, Mar 25, 2026 at 06:07:29PM +0000, Biswapriyo Nath wrote: > SM6125's SMMU uses 36bit VAs, which is a good indicator that we > should increase (dma-)ranges - and by extension #address- and > #size-cells to prevent things from getting lost in translation > (both literally and figuratively). Do so. > > Reported-by: kernel test robot <lkp@intel.com> > Closes: https://lore.kernel.org/oe-kbuild-all/202603141433.MDqfoVHn-lkp@intel.com/ Missing Fixes, cc:stable. Also please pull to the first place in the series. > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > arch/arm64/boot/dts/qcom/sm6125.dtsi | 153 ++++++++++++++++++----------------- > 1 file changed, 78 insertions(+), 75 deletions(-) > -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing 2026-03-25 18:07 ` [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing Biswapriyo Nath 2026-03-25 22:41 ` Dmitry Baryshkov @ 2026-03-26 10:54 ` Konrad Dybcio 1 sibling, 0 replies; 32+ messages in thread From: Konrad Dybcio @ 2026-03-26 10:54 UTC (permalink / raw) To: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > SM6125's SMMU uses 36bit VAs, which is a good indicator that we > should increase (dma-)ranges - and by extension #address- and > #size-cells to prevent things from getting lost in translation > (both literally and figuratively). Do so. > > Reported-by: kernel test robot <lkp@intel.com> > Closes: https://lore.kernel.org/oe-kbuild-all/202603141433.MDqfoVHn-lkp@intel.com/ > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- I think this is correct, the address space is definitely larger than 32b, esp. given the SoC can take 8GiB of RAM.. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 7/7] dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath ` (5 preceding siblings ...) 2026-03-25 18:07 ` [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing Biswapriyo Nath @ 2026-03-25 18:07 ` Biswapriyo Nath 2026-03-25 22:42 ` Dmitry Baryshkov 2026-03-25 22:10 ` [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Sean Young 2026-03-26 9:39 ` Konrad Dybcio 8 siblings, 1 reply; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-25 18:07 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, Biswapriyo Nath, kernel test robot The '#reset-cells' property is permitted for the SM6125 SoC clock controllers, but not listed as a valid property. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202603150629.GYoouFwZ-lkp@intel.com/ Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> --- Documentation/devicetree/bindings/clock/qcom,dispcc-sm6125.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,dispcc-sm6125.yaml b/Documentation/devicetree/bindings/clock/qcom,dispcc-sm6125.yaml index ef2b1e20443..0d467c1f30e 100644 --- a/Documentation/devicetree/bindings/clock/qcom,dispcc-sm6125.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,dispcc-sm6125.yaml @@ -45,6 +45,9 @@ properties: '#clock-cells': const: 1 + '#reset-cells': + const: 1 + '#power-domain-cells': const: 1 -- 2.53.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 7/7] dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property 2026-03-25 18:07 ` [PATCH 7/7] dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property Biswapriyo Nath @ 2026-03-25 22:42 ` Dmitry Baryshkov 0 siblings, 0 replies; 32+ messages in thread From: Dmitry Baryshkov @ 2026-03-25 22:42 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On Wed, Mar 25, 2026 at 06:07:30PM +0000, Biswapriyo Nath wrote: > The '#reset-cells' property is permitted for the SM6125 SoC clock > controllers, but not listed as a valid property. > > Reported-by: kernel test robot <lkp@intel.com> > Closes: https://lore.kernel.org/oe-kbuild-all/202603150629.GYoouFwZ-lkp@intel.com/ Fixes? > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > Documentation/devicetree/bindings/clock/qcom,dispcc-sm6125.yaml | 3 +++ > 1 file changed, 3 insertions(+) > -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath ` (6 preceding siblings ...) 2026-03-25 18:07 ` [PATCH 7/7] dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property Biswapriyo Nath @ 2026-03-25 22:10 ` Sean Young 2026-03-26 6:03 ` Biswapriyo Nath 2026-03-26 9:39 ` Konrad Dybcio 8 siblings, 1 reply; 32+ messages in thread From: Sean Young @ 2026-03-25 22:10 UTC (permalink / raw) To: Biswapriyo Nath Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On Wed, Mar 25, 2026 at 06:07:23PM +0000, Biswapriyo Nath wrote: > This patch series add support for various components in Xiaomi Redmi > Note 8. > > Most notably: > - IR transmitter For the IR stuff: Signed-off-by: Sean Young <sean@mess.org> Thanks, Sean > - USB-C OTG > - Vibrator > > Also, fix some bindings warning as reported due to previous commits. > These are tested with linux-next tag next-20260320. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > Biswapriyo Nath (7): > arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator > arm64: dts: qcom: sm6125: Enable USB-C port handling > arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property > dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value > arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter > arm64: dts: qcom: sm6125: Use 64 bit addressing > dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property > > .../bindings/clock/qcom,dispcc-sm6125.yaml | 3 + > .../devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 56 +++++++ > arch/arm64/boot/dts/qcom/sm6125.dtsi | 168 +++++++++++---------- > 4 files changed, 152 insertions(+), 77 deletions(-) > --- > base-commit: 785f0eb2f85decbe7c1ef9ae922931f0194ffc2e > change-id: 20260325-ginkgo-add-usb-ir-vib-4a51bd9ff64b > > Best regards, > -- > Biswapriyo Nath <nathbappai@gmail.com> ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo 2026-03-25 22:10 ` [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Sean Young @ 2026-03-26 6:03 ` Biswapriyo Nath 0 siblings, 0 replies; 32+ messages in thread From: Biswapriyo Nath @ 2026-03-26 6:03 UTC (permalink / raw) To: Sean Young Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On Wed, 25 Mar 2026 22:10:02 +0000 Sean Young <sean@mess.org> wrote: > On Wed, Mar 25, 2026 at 06:07:23PM +0000, Biswapriyo Nath wrote: > > This patch series add support for various components in Xiaomi Redmi > > Note 8. > > > > Most notably: > > - IR transmitter > > For the IR stuff: > > Signed-off-by: Sean Young <sean@mess.org> Hi, thank you for the review. Could you please add the trailer to the specific patch. Otherwise, b4 adds the trailer to all patches. Also, do you mean Reviewed-by or Acked-by tag instead of SoB? Thanks. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath ` (7 preceding siblings ...) 2026-03-25 22:10 ` [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Sean Young @ 2026-03-26 9:39 ` Konrad Dybcio 2026-03-26 17:48 ` barnabas.czeman 8 siblings, 1 reply; 32+ messages in thread From: Konrad Dybcio @ 2026-03-26 9:39 UTC (permalink / raw) To: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka Cc: linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On 3/25/26 7:07 PM, Biswapriyo Nath wrote: > This patch series add support for various components in Xiaomi Redmi > Note 8. > > Most notably: > - IR transmitter > - USB-C OTG > - Vibrator > > Also, fix some bindings warning as reported due to previous commits. > These are tested with linux-next tag next-20260320. > > Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> > --- > Biswapriyo Nath (7): > arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator > arm64: dts: qcom: sm6125: Enable USB-C port handling > arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property > dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value > arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter > arm64: dts: qcom: sm6125: Use 64 bit addressing > dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property > > .../bindings/clock/qcom,dispcc-sm6125.yaml | 3 + > .../devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 56 +++++++ I'm assuming all of these changes apply to both ginkgo and willow, which both include ginkgo-common? Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo 2026-03-26 9:39 ` Konrad Dybcio @ 2026-03-26 17:48 ` barnabas.czeman 2026-03-27 9:11 ` Konrad Dybcio 0 siblings, 1 reply; 32+ messages in thread From: barnabas.czeman @ 2026-03-26 17:48 UTC (permalink / raw) To: Konrad Dybcio Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On 2026-03-26 10:39, Konrad Dybcio wrote: > On 3/25/26 7:07 PM, Biswapriyo Nath wrote: >> This patch series add support for various components in Xiaomi Redmi >> Note 8. >> >> Most notably: >> - IR transmitter >> - USB-C OTG >> - Vibrator >> >> Also, fix some bindings warning as reported due to previous commits. >> These are tested with linux-next tag next-20260320. >> >> Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> >> --- >> Biswapriyo Nath (7): >> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator >> arm64: dts: qcom: sm6125: Enable USB-C port handling >> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C >> property >> dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value >> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter >> arm64: dts: qcom: sm6125: Use 64 bit addressing >> dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells >> property >> >> .../bindings/clock/qcom,dispcc-sm6125.yaml | 3 + >> .../devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- >> .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 56 +++++++ > > I'm assuming all of these changes apply to both ginkgo and willow, > which both include ginkgo-common? All these change should work on both, willow is a ginkgo with NFC. > > Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo 2026-03-26 17:48 ` barnabas.czeman @ 2026-03-27 9:11 ` Konrad Dybcio 0 siblings, 0 replies; 32+ messages in thread From: Konrad Dybcio @ 2026-03-27 9:11 UTC (permalink / raw) To: barnabas.czeman Cc: Biswapriyo Nath, Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lee Jones, Pavel Machek, Sean Young, Michael Turquette, Stephen Boyd, Martin Botka, linux-arm-msm, devicetree, linux-kernel, linux-leds, linux-clk, ~postmarketos/upstreaming, phone-devel, kernel test robot On 3/26/26 6:48 PM, barnabas.czeman@mainlining.org wrote: > On 2026-03-26 10:39, Konrad Dybcio wrote: >> On 3/25/26 7:07 PM, Biswapriyo Nath wrote: >>> This patch series add support for various components in Xiaomi Redmi >>> Note 8. >>> >>> Most notably: >>> - IR transmitter >>> - USB-C OTG >>> - Vibrator >>> >>> Also, fix some bindings warning as reported due to previous commits. >>> These are tested with linux-next tag next-20260320. >>> >>> Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> >>> --- >>> Biswapriyo Nath (7): >>> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator >>> arm64: dts: qcom: sm6125: Enable USB-C port handling >>> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property >>> dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value >>> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter >>> arm64: dts: qcom: sm6125: Use 64 bit addressing >>> dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property >>> >>> .../bindings/clock/qcom,dispcc-sm6125.yaml | 3 + >>> .../devicetree/bindings/leds/irled/ir-spi-led.yaml | 2 +- >>> .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 56 +++++++ >> >> I'm assuming all of these changes apply to both ginkgo and willow, >> which both include ginkgo-common? > All these change should work on both, willow is a ginkgo with NFC. Thanks for confirming! Konrad ^ permalink raw reply [flat|nested] 32+ messages in thread
end of thread, other threads:[~2026-03-27 10:20 UTC | newest] Thread overview: 32+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-03-25 18:07 [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Biswapriyo Nath 2026-03-25 18:07 ` [PATCH 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Enable vibrator Biswapriyo Nath 2026-03-25 22:40 ` Dmitry Baryshkov 2026-03-26 9:40 ` Konrad Dybcio 2026-03-25 18:07 ` [PATCH 2/7] arm64: dts: qcom: sm6125: Enable USB-C port handling Biswapriyo Nath 2026-03-25 20:08 ` Dmitry Baryshkov 2026-03-25 22:40 ` Dmitry Baryshkov 2026-03-26 9:41 ` Konrad Dybcio 2026-03-26 18:28 ` Biswapriyo Nath 2026-03-27 9:55 ` Konrad Dybcio 2026-03-25 18:07 ` [PATCH 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add PMI632 Type-C property Biswapriyo Nath 2026-03-26 9:39 ` Konrad Dybcio 2026-03-25 18:07 ` [PATCH 4/7] dt-bindings: leds: irled: ir-spi-led: Add new duty-cycle value Biswapriyo Nath 2026-03-27 7:51 ` Krzysztof Kozlowski 2026-03-27 8:41 ` Sean Young 2026-03-27 9:38 ` Krzysztof Kozlowski 2026-03-27 10:18 ` Sean Young 2026-03-25 18:07 ` [PATCH 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Add IR transmitter Biswapriyo Nath 2026-03-26 9:29 ` Konrad Dybcio 2026-03-26 18:41 ` Biswapriyo Nath 2026-03-27 9:19 ` Konrad Dybcio 2026-03-27 10:20 ` Sean Young 2026-03-25 18:07 ` [PATCH 6/7] arm64: dts: qcom: sm6125: Use 64 bit addressing Biswapriyo Nath 2026-03-25 22:41 ` Dmitry Baryshkov 2026-03-26 10:54 ` Konrad Dybcio 2026-03-25 18:07 ` [PATCH 7/7] dt-bindings: clock: qcom, dispcc-sm6125: Add #reset-cells property Biswapriyo Nath 2026-03-25 22:42 ` Dmitry Baryshkov 2026-03-25 22:10 ` [PATCH 0/7] Add vibrator, IR transmitter and USB-C handling in xiaomi-ginkgo Sean Young 2026-03-26 6:03 ` Biswapriyo Nath 2026-03-26 9:39 ` Konrad Dybcio 2026-03-26 17:48 ` barnabas.czeman 2026-03-27 9:11 ` Konrad Dybcio
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox