Spreadtrum SC2731 MFD cleanups
Subsystems (2)
cover Spreadtrum SC2731 MFD cleanups
This series is a preparation for converting the SC27xx PMIC MFD bindings to DT schema.
Stanislav Jakubek (2):
arm64: dts: sprd: sc2731: correct interrupt-cells value to 2
arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
arch/arm64/boot/dts/sprd/sc2731.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 arm64: dts: sprd: sc2731: correct interrupt-cells value to 2
According to the DT bindings, SC2731's #interrupt-cells should have a value of 2. Correct it as such.
--- arch/arm64/boot/dts/sprd/sc2731.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/sprd/sc2731.dtsi +1 -1
@@ -13,7 +13,7 @@ sc2731_pmic: pmic@0 { spi-max-frequency = <26000000>; interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; - #interrupt-cells = <1>; + #interrupt-cells = <2>; #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.34.1
Re: [PATCH 1/2] arm64: dts: sprd: sc2731: correct interrupt-cells value to 2
Hi all,
you can most likely disregard this patch, according to [1], the correct value is actually 1. I'll fix up the bindings during conversion, which I'll be sending soon.
The second patch should be good.
Sorry for the noise,
Stanislav
PATCH 2/2 arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
In reply to Stanislav JakubekAccording to DT spec, node names should be generic. Rename the sprd,sc2731-fgu node to a more generic "fuel-gauge".
--- arch/arm64/boot/dts/sprd/sc2731.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/sprd/sc2731.dtsi +1 -1
@@ -95,7 +95,7 @@ pmic_adc: adc@480 { nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; }; - fgu@a00 { + fuel-gauge@a00 { compatible = "sprd,sc2731-fgu"; reg = <0xa00>; bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
Signature · 1 line
2.34.1
Re: [PATCH 2/2] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
Quoted 4 lines · Stanislav Jakubek
According to DT spec, node names should be generic. Rename the sprd,sc2731-fgu node to a more generic "fuel-gauge".
Signed-off-by Stanislav Jakubek <[email protected]>
LGTM. Thanks.
Quoted 17 lines
--- arch/arm64/boot/dts/sprd/sc2731.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/sprd/sc2731.dtsi +1
-1@@ -95,7 +95,7 @@ pmic_adc: adc@480 { nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; }; - fgu@a00 { + fuel-gauge@a00 { compatible = "sprd,sc2731-fgu"; reg = <0xa00>; bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH 2/2] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
In reply to Stanislav JakubekQuoted 4 lines · Stanislav Jakubek
According to DT spec, node names should be generic. Rename the sprd,sc2731-fgu node to a more generic "fuel-gauge".
This also waits for something... so I grabbed it.
Applied, thanks!
[2/2] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
https://git.kernel.org/krzk/linux-dt/c/e06e908dba9fed62c9493ea5cea2e4cbd306d23c
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
Re: (subset) [PATCH 2/2] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
Quoted 7 lines · Krzysztof Kozlowski
Quoted 4 lines · Stanislav Jakubek
According to DT spec, node names should be generic. Rename the sprd,sc2731-fgu node to a more generic "fuel-gauge".
Quoted 10 lines
This also waits for something... so I grabbed it.
Applied, thanks!
[2/2] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
https://git.kernel.org/krzk/linux-dt/c/e06e908dba9fed62c9493ea5cea2e4cbd306d23cBest regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
Hi Krzysztof,
you already applied this change as part of [1].
Cheers,
Stanislav
Re: (subset) [PATCH 2/2] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
Quoted 19 lines · Stanislav Jakubek
Quoted 7 lines · Krzysztof Kozlowski
Quoted 4 lines · Stanislav Jakubek
According to DT spec, node names should be generic. Rename the sprd,sc2731-fgu node to a more generic "fuel-gauge".
Quoted 10 lines
This also waits for something... so I grabbed it.
Applied, thanks!
[2/2] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
https://git.kernel.org/krzk/linux-dt/c/e06e908dba9fed62c9493ea5cea2e4cbd306d23cBest regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
Quoted 5 lines
Hi Krzysztof,
you already applied this change as part of [1].
Indeed, thanks. I managed to double-apply because somehow how got impression that was arm32, not arm64.
Best regards,
Krzysztof