* [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT
@ 2024-08-05 7:23 Stanislav Jakubek
2024-08-05 7:24 ` [PATCH v2 1/4] arm64: dts: sprd: rename SDHCI nodes to mmc Stanislav Jakubek
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: Stanislav Jakubek @ 2024-08-05 7:23 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Orson Zhai,
Baolin Wang, Baolin Wang, Chunyan Zhang
Cc: devicetree, linux-arm-kernel, linux-kernel
This series contains various minor cleanups for Spreadtum/Unisoc ARM64
DeviceTrees. Also contains the 2nd patch from the SC2731 MFD cleanup series
to reduce unnecessary noise and make these easier to apply.
Changes in V2:
- add 2nd patch from the SC2731 MFD cleanup series (1st patch was dropped
due to not being correct, dt-bindings will have to get fixed up instead)
- add Baolin's R-b
- rebase on next-20240805
Link to original V1: https://lore.kernel.org/lkml/cover.1720112081.git.stano.jakubek@gmail.com/
Link to SC2731 MFD cleanup V1: https://lore.kernel.org/lkml/cover.1720957783.git.stano.jakubek@gmail.com/
Stanislav Jakubek (4):
arm64: dts: sprd: rename SDHCI nodes to mmc
arm64: dts: sprd: reorder clock-names after clocks
arm64: dts: sprd: move/add SPDX license to top of the file
arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
arch/arm64/boot/dts/sprd/sc2731.dtsi | 5 +--
arch/arm64/boot/dts/sprd/sc9836-openphone.dts | 3 +-
arch/arm64/boot/dts/sprd/sc9836.dtsi | 3 +-
arch/arm64/boot/dts/sprd/sc9860.dtsi | 3 +-
arch/arm64/boot/dts/sprd/sc9863a.dtsi | 8 ++--
arch/arm64/boot/dts/sprd/sharkl64.dtsi | 3 +-
arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 3 +-
arch/arm64/boot/dts/sprd/ums512.dtsi | 4 +-
arch/arm64/boot/dts/sprd/whale2.dtsi | 43 ++++++++++---------
9 files changed, 36 insertions(+), 39 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/4] arm64: dts: sprd: rename SDHCI nodes to mmc
2024-08-05 7:23 [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Stanislav Jakubek
@ 2024-08-05 7:24 ` Stanislav Jakubek
2024-08-05 7:24 ` [PATCH v2 2/4] arm64: dts: sprd: reorder clock-names after clocks Stanislav Jakubek
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Stanislav Jakubek @ 2024-08-05 7:24 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Orson Zhai,
Baolin Wang, Baolin Wang, Chunyan Zhang
Cc: devicetree, linux-arm-kernel, linux-kernel
DT bindings expect SDHCI/MMC nodes to be called 'mmc', rename them.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
---
arch/arm64/boot/dts/sprd/sc9863a.dtsi | 4 ++--
arch/arm64/boot/dts/sprd/whale2.dtsi | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi
index 53e5b77d70b5..a7b897966882 100644
--- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi
@@ -551,7 +551,7 @@ ap-ahb {
#size-cells = <2>;
ranges;
- sdio0: sdio@20300000 {
+ sdio0: mmc@20300000 {
compatible = "sprd,sdhci-r11";
reg = <0 0x20300000 0 0x1000>;
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
@@ -567,7 +567,7 @@ sdio0: sdio@20300000 {
no-mmc;
};
- sdio3: sdio@20600000 {
+ sdio3: mmc@20600000 {
compatible = "sprd,sdhci-r11";
reg = <0 0x20600000 0 0x1000>;
interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi
index 7068bfd2f4c3..cdf52fd78ee4 100644
--- a/arch/arm64/boot/dts/sprd/whale2.dtsi
+++ b/arch/arm64/boot/dts/sprd/whale2.dtsi
@@ -133,7 +133,7 @@ ap_dma: dma-controller@20100000 {
clocks = <&apahb_gate CLK_DMA_EB>;
};
- sdio3: sdio@50430000 {
+ sdio3: mmc@50430000 {
compatible = "sprd,sdhci-r11";
reg = <0 0x50430000 0 0x1000>;
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 2/4] arm64: dts: sprd: reorder clock-names after clocks
2024-08-05 7:23 [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Stanislav Jakubek
2024-08-05 7:24 ` [PATCH v2 1/4] arm64: dts: sprd: rename SDHCI nodes to mmc Stanislav Jakubek
@ 2024-08-05 7:24 ` Stanislav Jakubek
2024-08-05 7:25 ` [PATCH v2 3/4] arm64: dts: sprd: move/add SPDX license to top of the file Stanislav Jakubek
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Stanislav Jakubek @ 2024-08-05 7:24 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Orson Zhai,
Baolin Wang, Baolin Wang, Chunyan Zhang
Cc: devicetree, linux-arm-kernel, linux-kernel
DT convention is to have property-names after property.
While at it, cleanup indentation for some clocks.
No functional change.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
---
arch/arm64/boot/dts/sprd/sc9863a.dtsi | 4 +--
arch/arm64/boot/dts/sprd/ums512.dtsi | 4 +--
arch/arm64/boot/dts/sprd/whale2.dtsi | 38 +++++++++++++++------------
3 files changed, 25 insertions(+), 21 deletions(-)
diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi
index a7b897966882..e5a2857721e2 100644
--- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi
@@ -556,9 +556,9 @@ sdio0: mmc@20300000 {
reg = <0 0x20300000 0 0x1000>;
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "sdio", "enable";
clocks = <&aon_clk CLK_SDIO0_2X>,
<&apahb_gate CLK_SDIO0_EB>;
+ clock-names = "sdio", "enable";
assigned-clocks = <&aon_clk CLK_SDIO0_2X>;
assigned-clock-parents = <&rpll CLK_RPLL_390M>;
@@ -572,9 +572,9 @@ sdio3: mmc@20600000 {
reg = <0 0x20600000 0 0x1000>;
interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "sdio", "enable";
clocks = <&aon_clk CLK_EMMC_2X>,
<&apahb_gate CLK_EMMC_EB>;
+ clock-names = "sdio", "enable";
assigned-clocks = <&aon_clk CLK_EMMC_2X>;
assigned-clock-parents = <&rpll CLK_RPLL_390M>;
diff --git a/arch/arm64/boot/dts/sprd/ums512.dtsi b/arch/arm64/boot/dts/sprd/ums512.dtsi
index 4c080df48724..efa14309cc4e 100644
--- a/arch/arm64/boot/dts/sprd/ums512.dtsi
+++ b/arch/arm64/boot/dts/sprd/ums512.dtsi
@@ -849,9 +849,9 @@ sdio0: mmc@1100000 {
compatible = "sprd,sdhci-r11";
reg = <0x1100000 0x1000>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "sdio", "enable";
clocks = <&ap_clk CLK_SDIO0_2X>,
<&apapb_gate CLK_SDIO0_EB>;
+ clock-names = "sdio", "enable";
assigned-clocks = <&ap_clk CLK_SDIO0_2X>;
assigned-clock-parents = <&pll1 CLK_RPLL>;
status = "disabled";
@@ -861,9 +861,9 @@ sdio3: mmc@1400000 {
compatible = "sprd,sdhci-r11";
reg = <0x1400000 0x1000>;
interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "sdio", "enable";
clocks = <&ap_clk CLK_EMMC_2X>,
<&apapb_gate CLK_EMMC_EB>;
+ clock-names = "sdio", "enable";
assigned-clocks = <&ap_clk CLK_EMMC_2X>;
assigned-clock-parents = <&pll1 CLK_RPLL>;
status = "disabled";
diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi
index cdf52fd78ee4..a28f995fb3ff 100644
--- a/arch/arm64/boot/dts/sprd/whale2.dtsi
+++ b/arch/arm64/boot/dts/sprd/whale2.dtsi
@@ -75,9 +75,10 @@ uart0: serial@0 {
"sprd,sc9836-uart";
reg = <0x0 0x100>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "enable", "uart", "source";
clocks = <&apapb_gate CLK_UART0_EB>,
- <&ap_clk CLK_UART0>, <&ext_26m>;
+ <&ap_clk CLK_UART0>,
+ <&ext_26m>;
+ clock-names = "enable", "uart", "source";
status = "disabled";
};
@@ -86,9 +87,10 @@ uart1: serial@100000 {
"sprd,sc9836-uart";
reg = <0x100000 0x100>;
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "enable", "uart", "source";
clocks = <&apapb_gate CLK_UART1_EB>,
- <&ap_clk CLK_UART1>, <&ext_26m>;
+ <&ap_clk CLK_UART1>,
+ <&ext_26m>;
+ clock-names = "enable", "uart", "source";
status = "disabled";
};
@@ -97,9 +99,10 @@ uart2: serial@200000 {
"sprd,sc9836-uart";
reg = <0x200000 0x100>;
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "enable", "uart", "source";
clocks = <&apapb_gate CLK_UART2_EB>,
- <&ap_clk CLK_UART2>, <&ext_26m>;
+ <&ap_clk CLK_UART2>,
+ <&ext_26m>;
+ clock-names = "enable", "uart", "source";
status = "disabled";
};
@@ -108,9 +111,10 @@ uart3: serial@300000 {
"sprd,sc9836-uart";
reg = <0x300000 0x100>;
interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "enable", "uart", "source";
clocks = <&apapb_gate CLK_UART3_EB>,
- <&ap_clk CLK_UART3>, <&ext_26m>;
+ <&ap_clk CLK_UART3>,
+ <&ext_26m>;
+ clock-names = "enable", "uart", "source";
status = "disabled";
};
};
@@ -129,8 +133,8 @@ ap_dma: dma-controller@20100000 {
/* For backwards compatibility: */
#dma-channels = <32>;
dma-channels = <32>;
- clock-names = "enable";
clocks = <&apahb_gate CLK_DMA_EB>;
+ clock-names = "enable";
};
sdio3: mmc@50430000 {
@@ -138,10 +142,10 @@ sdio3: mmc@50430000 {
reg = <0 0x50430000 0 0x1000>;
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "sdio", "enable", "2x_enable";
clocks = <&aon_prediv CLK_EMMC_2X>,
- <&apahb_gate CLK_EMMC_EB>,
- <&aon_gate CLK_EMMC_2X_EN>;
+ <&apahb_gate CLK_EMMC_EB>,
+ <&aon_gate CLK_EMMC_2X_EN>;
+ clock-names = "sdio", "enable", "2x_enable";
assigned-clocks = <&aon_prediv CLK_EMMC_2X>;
assigned-clock-parents = <&clk_l0_409m6>;
@@ -194,8 +198,8 @@ hwlock: hwspinlock@40500000 {
compatible = "sprd,hwspinlock-r3p0";
reg = <0 0x40500000 0 0x1000>;
#hwlock-cells = <1>;
- clock-names = "enable";
clocks = <&aon_gate CLK_SPLK_EB>;
+ clock-names = "enable";
};
eic_debounce: gpio@40210000 {
@@ -258,9 +262,9 @@ watchdog@40310000 {
reg = <0 0x40310000 0 0x1000>;
interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
timeout-sec = <12>;
- clock-names = "enable", "rtc_enable";
clocks = <&aon_gate CLK_APCPU_WDG_EB>,
- <&aon_gate CLK_AP_WDG_RTC_EB>;
+ <&aon_gate CLK_AP_WDG_RTC_EB>;
+ clock-names = "enable", "rtc_enable";
};
};
@@ -277,9 +281,9 @@ agcp_dma: dma-controller@41580000 {
/* For backwards compatibility: */
#dma-channels = <32>;
dma-channels = <32>;
- clock-names = "enable", "ashb_eb";
clocks = <&agcp_gate CLK_AGCP_DMAAP_EB>,
- <&agcp_gate CLK_AGCP_AP_ASHB_EB>;
+ <&agcp_gate CLK_AGCP_AP_ASHB_EB>;
+ clock-names = "enable", "ashb_eb";
};
};
};
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 3/4] arm64: dts: sprd: move/add SPDX license to top of the file
2024-08-05 7:23 [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Stanislav Jakubek
2024-08-05 7:24 ` [PATCH v2 1/4] arm64: dts: sprd: rename SDHCI nodes to mmc Stanislav Jakubek
2024-08-05 7:24 ` [PATCH v2 2/4] arm64: dts: sprd: reorder clock-names after clocks Stanislav Jakubek
@ 2024-08-05 7:25 ` Stanislav Jakubek
2024-08-05 7:25 ` [PATCH v2 4/4] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic Stanislav Jakubek
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Stanislav Jakubek @ 2024-08-05 7:25 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Orson Zhai,
Baolin Wang, Baolin Wang, Chunyan Zhang
Cc: devicetree, linux-arm-kernel, linux-kernel
Checkpatch complains about the SPDX-License-Identifier being in the
wrong place. Move it to the top of the file to fix these warnings.
In cases of the license being specified only in text, convert these
to the SPDX-License-Identifier.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
---
arch/arm64/boot/dts/sprd/sc2731.dtsi | 3 +--
arch/arm64/boot/dts/sprd/sc9836-openphone.dts | 3 +--
arch/arm64/boot/dts/sprd/sc9836.dtsi | 3 +--
arch/arm64/boot/dts/sprd/sc9860.dtsi | 3 +--
arch/arm64/boot/dts/sprd/sharkl64.dtsi | 3 +--
arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 3 +--
arch/arm64/boot/dts/sprd/whale2.dtsi | 3 +--
7 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi
index e15409f55f43..fc4e2b1e160e 100644
--- a/arch/arm64/boot/dts/sprd/sc2731.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Spreadtrum SC2731 PMIC dts file
*
* Copyright (C) 2018, Spreadtrum Communications Inc.
- *
- * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/
&adi_bus {
diff --git a/arch/arm64/boot/dts/sprd/sc9836-openphone.dts b/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
index e5657c35cd10..b98589ea5ac2 100644
--- a/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
+++ b/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
/*
* Spreadtrum SC9836 openphone board DTS file
*
* Copyright (C) 2014, Spreadtrum Communications Inc.
- *
- * This file is licensed under a dual GPLv2 or X11 license.
*/
/dts-v1/;
diff --git a/arch/arm64/boot/dts/sprd/sc9836.dtsi b/arch/arm64/boot/dts/sprd/sc9836.dtsi
index 8bb8a70966d2..bc3fc9fc3d90 100644
--- a/arch/arm64/boot/dts/sprd/sc9836.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc9836.dtsi
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
/*
* Spreadtrum SC9836 SoC DTS file
*
* Copyright (C) 2014, Spreadtrum Communications Inc.
- *
- * This file is licensed under a dual GPLv2 or X11 license.
*/
#include "sharkl64.dtsi"
diff --git a/arch/arm64/boot/dts/sprd/sc9860.dtsi b/arch/arm64/boot/dts/sprd/sc9860.dtsi
index 31952d361a8a..d2456d633c39 100644
--- a/arch/arm64/boot/dts/sprd/sc9860.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc9860.dtsi
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Spreadtrum SC9860 SoC
*
* Copyright (C) 2016, Spreadtrum Communications Inc.
- *
- * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
diff --git a/arch/arm64/boot/dts/sprd/sharkl64.dtsi b/arch/arm64/boot/dts/sprd/sharkl64.dtsi
index 69f64e7fce7c..bf58702c4e07 100644
--- a/arch/arm64/boot/dts/sprd/sharkl64.dtsi
+++ b/arch/arm64/boot/dts/sprd/sharkl64.dtsi
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
/*
* Spreadtrum Sharkl64 platform DTS file
*
* Copyright (C) 2014, Spreadtrum Communications Inc.
- *
- * This file is licensed under a dual GPLv2 or X11 license.
*/
/ {
diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
index 1ce3cbbd9668..095b24a31313 100644
--- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
+++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Spreadtrum SP9860g board
*
* Copyright (C) 2017, Spreadtrum Communications Inc.
- *
- * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/
/dts-v1/;
diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi
index a28f995fb3ff..a551e14ce826 100644
--- a/arch/arm64/boot/dts/sprd/whale2.dtsi
+++ b/arch/arm64/boot/dts/sprd/whale2.dtsi
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Spreadtrum Whale2 platform peripherals
*
* Copyright (C) 2016, Spreadtrum Communications Inc.
- *
- * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/
#include <dt-bindings/clock/sprd,sc9860-clk.h>
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2 4/4] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
2024-08-05 7:23 [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Stanislav Jakubek
` (2 preceding siblings ...)
2024-08-05 7:25 ` [PATCH v2 3/4] arm64: dts: sprd: move/add SPDX license to top of the file Stanislav Jakubek
@ 2024-08-05 7:25 ` Stanislav Jakubek
2024-08-05 15:00 ` [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Rob Herring (Arm)
2024-08-12 10:11 ` Krzysztof Kozlowski
5 siblings, 0 replies; 8+ messages in thread
From: Stanislav Jakubek @ 2024-08-05 7:25 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Orson Zhai,
Baolin Wang, Baolin Wang, Chunyan Zhang
Cc: devicetree, linux-arm-kernel, linux-kernel
According to DT spec, node names should be generic. Rename the
sprd,sc2731-fgu node to a more generic "fuel-gauge".
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
---
arch/arm64/boot/dts/sprd/sc2731.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi
index fc4e2b1e160e..12136e68dada 100644
--- a/arch/arm64/boot/dts/sprd/sc2731.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi
@@ -94,7 +94,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>;
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT
2024-08-05 7:23 [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Stanislav Jakubek
` (3 preceding siblings ...)
2024-08-05 7:25 ` [PATCH v2 4/4] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic Stanislav Jakubek
@ 2024-08-05 15:00 ` Rob Herring (Arm)
2024-08-05 16:29 ` Stanislav Jakubek
2024-08-12 10:11 ` Krzysztof Kozlowski
5 siblings, 1 reply; 8+ messages in thread
From: Rob Herring (Arm) @ 2024-08-05 15:00 UTC (permalink / raw)
To: Stanislav Jakubek
Cc: Baolin Wang, Orson Zhai, devicetree, Krzysztof Kozlowski,
linux-kernel, Conor Dooley, linux-arm-kernel, Baolin Wang,
Chunyan Zhang
On Mon, 05 Aug 2024 09:23:25 +0200, Stanislav Jakubek wrote:
> This series contains various minor cleanups for Spreadtum/Unisoc ARM64
> DeviceTrees. Also contains the 2nd patch from the SC2731 MFD cleanup series
> to reduce unnecessary noise and make these easier to apply.
>
> Changes in V2:
> - add 2nd patch from the SC2731 MFD cleanup series (1st patch was dropped
> due to not being correct, dt-bindings will have to get fixed up instead)
> - add Baolin's R-b
> - rebase on next-20240805
>
> Link to original V1: https://lore.kernel.org/lkml/cover.1720112081.git.stano.jakubek@gmail.com/
> Link to SC2731 MFD cleanup V1: https://lore.kernel.org/lkml/cover.1720957783.git.stano.jakubek@gmail.com/
>
> Stanislav Jakubek (4):
> arm64: dts: sprd: rename SDHCI nodes to mmc
> arm64: dts: sprd: reorder clock-names after clocks
> arm64: dts: sprd: move/add SPDX license to top of the file
> arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
>
> arch/arm64/boot/dts/sprd/sc2731.dtsi | 5 +--
> arch/arm64/boot/dts/sprd/sc9836-openphone.dts | 3 +-
> arch/arm64/boot/dts/sprd/sc9836.dtsi | 3 +-
> arch/arm64/boot/dts/sprd/sc9860.dtsi | 3 +-
> arch/arm64/boot/dts/sprd/sc9863a.dtsi | 8 ++--
> arch/arm64/boot/dts/sprd/sharkl64.dtsi | 3 +-
> arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 3 +-
> arch/arm64/boot/dts/sprd/ums512.dtsi | 4 +-
> arch/arm64/boot/dts/sprd/whale2.dtsi | 43 ++++++++++---------
> 9 files changed, 36 insertions(+), 39 deletions(-)
>
> --
> 2.34.1
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y sprd/sc9836-openphone.dtb sprd/sp9860g-1h10.dtb' for cover.1722842066.git.stano.jakubek@gmail.com:
arch/arm64/boot/dts/sprd/sp9860g-1h10.dtb: fuel-gauge@a00: 'battery-detect-gpios' is a required property
from schema $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
arch/arm64/boot/dts/sprd/sp9860g-1h10.dtb: fuel-gauge@a00: 'sprd,calib-resistance-micro-ohms' is a required property
from schema $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
arch/arm64/boot/dts/sprd/sp9860g-1h10.dtb: fuel-gauge@a00: 'bat-detect-gpio', 'interrupt-parent', 'interrupts' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT
2024-08-05 15:00 ` [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Rob Herring (Arm)
@ 2024-08-05 16:29 ` Stanislav Jakubek
0 siblings, 0 replies; 8+ messages in thread
From: Stanislav Jakubek @ 2024-08-05 16:29 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: Baolin Wang, Orson Zhai, devicetree, Krzysztof Kozlowski,
linux-kernel, Conor Dooley, linux-arm-kernel, Baolin Wang,
Chunyan Zhang
Hi all,
On Mon, Aug 05, 2024 at 09:00:20AM -0600, Rob Herring (Arm) wrote:
>
[snip]
>
> New warnings running 'make CHECK_DTBS=y sprd/sc9836-openphone.dtb sprd/sp9860g-1h10.dtb' for cover.1722842066.git.stano.jakubek@gmail.com:
>
> arch/arm64/boot/dts/sprd/sp9860g-1h10.dtb: fuel-gauge@a00: 'battery-detect-gpios' is a required property
> from schema $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
This is a straigtforward fix, the sc2731.dtsi has ...-gpio instead of ...-gpios
I can fix this in another patch, I'd like to get this series merged first.
> arch/arm64/boot/dts/sprd/sp9860g-1h10.dtb: fuel-gauge@a00: 'sprd,calib-resistance-micro-ohms' is a required property
> from schema $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
SPRD folks will have to chime in here as I do not have the board or any
other source of information about it, so I cannot add this property.
> arch/arm64/boot/dts/sprd/sp9860g-1h10.dtb: fuel-gauge@a00: 'bat-detect-gpio', 'interrupt-parent', 'interrupts' do not match any of the regexes: 'pinctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
Looking at the driver, it seems to me that the interrupts are required, and
thus should be added to the bindings. I can send a patch.
Looking at the sc2731-fgu dtsi again, it seems like there's some further
fixes/improvements that could be made (disable by default, move the
monitored-battery to board DTS, etc.).
Either way, this series should be good to go.
Thanks,
Stanislav
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT
2024-08-05 7:23 [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Stanislav Jakubek
` (4 preceding siblings ...)
2024-08-05 15:00 ` [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Rob Herring (Arm)
@ 2024-08-12 10:11 ` Krzysztof Kozlowski
5 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-12 10:11 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Orson Zhai,
Baolin Wang, Chunyan Zhang, Stanislav Jakubek
Cc: Krzysztof Kozlowski, devicetree, linux-arm-kernel, linux-kernel
On Mon, 05 Aug 2024 09:23:25 +0200, Stanislav Jakubek wrote:
> This series contains various minor cleanups for Spreadtum/Unisoc ARM64
> DeviceTrees. Also contains the 2nd patch from the SC2731 MFD cleanup series
> to reduce unnecessary noise and make these easier to apply.
>
> Changes in V2:
> - add 2nd patch from the SC2731 MFD cleanup series (1st patch was dropped
> due to not being correct, dt-bindings will have to get fixed up instead)
> - add Baolin's R-b
> - rebase on next-20240805
>
> [...]
No one took this patchset and it waits on the list for very long.
Applied, thanks!
[1/4] arm64: dts: sprd: rename SDHCI nodes to mmc
https://git.kernel.org/krzk/linux-dt/c/0dcc203956537696e6f936eef886fde70e049f54
[2/4] arm64: dts: sprd: reorder clock-names after clocks
https://git.kernel.org/krzk/linux-dt/c/e2e0d4554de7182f4843415343b8888dac8a4f72
[3/4] arm64: dts: sprd: move/add SPDX license to top of the file
https://git.kernel.org/krzk/linux-dt/c/a4b3f197bcd17ea81605f3121a459dece448e877
[4/4] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic
https://git.kernel.org/krzk/linux-dt/c/0dcc203956537696e6f936eef886fde70e049f54
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-08-12 10:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 7:23 [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Stanislav Jakubek
2024-08-05 7:24 ` [PATCH v2 1/4] arm64: dts: sprd: rename SDHCI nodes to mmc Stanislav Jakubek
2024-08-05 7:24 ` [PATCH v2 2/4] arm64: dts: sprd: reorder clock-names after clocks Stanislav Jakubek
2024-08-05 7:25 ` [PATCH v2 3/4] arm64: dts: sprd: move/add SPDX license to top of the file Stanislav Jakubek
2024-08-05 7:25 ` [PATCH v2 4/4] arm64: dts: sprd: sc2731: rename fuel gauge node to be generic Stanislav Jakubek
2024-08-05 15:00 ` [PATCH v2 0/4] Cleanup Spreadtum/Unisoc ARM64 DT Rob Herring (Arm)
2024-08-05 16:29 ` Stanislav Jakubek
2024-08-12 10:11 ` Krzysztof Kozlowski
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).