* [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings
@ 2024-12-16 10:13 Stanislav Jakubek
2024-12-16 18:39 ` Conor Dooley
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Stanislav Jakubek @ 2024-12-16 10:13 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Orson Zhai, Baolin Wang, Chunyan Zhang, Srinivas Kandagatla
Cc: devicetree, linux-kernel
Directly reference the sc2731-efuse bindings to simplify the schema.
Remove the duplicate example from the efuse bindings.
While at it, add the "pmic_adc" label that was missed during the
initial YAML conversion.
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
---
Changes in V4:
- rebase on next-20241216
- drop patch 1 (already applied)
- add the pmic_adc label that was initially missed
Changes in V3:
- new patch due to a missing dependency in the MFD tree
Link to V3: https://lore.kernel.org/lkml/cd8cc95b59c31418b174bba521dd2599a7929fda.1730709384.git.stano.jakubek@gmail.com/
Link to V2: https://lore.kernel.org/lkml/ZyExK01iprBHhGm6@standask-GA-A55M-S2HP/
Link to V1: https://lore.kernel.org/lkml/Zr3X1RoQs7ElTnlJ@standask-GA-A55M-S2HP/
.../devicetree/bindings/mfd/sprd,sc2731.yaml | 12 ++------
.../bindings/nvmem/sprd,sc2731-efuse.yaml | 29 -------------------
2 files changed, 2 insertions(+), 39 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
index 8beec7e8e4c6..b023e1ef8d3c 100644
--- a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
+++ b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
@@ -67,15 +67,7 @@ patternProperties:
"^efuse@[0-9a-f]+$":
type: object
- additionalProperties: true
- properties:
- compatible:
- enum:
- - sprd,sc2720-efuse
- - sprd,sc2721-efuse
- - sprd,sc2723-efuse
- - sprd,sc2730-efuse
- - sprd,sc2731-efuse
+ $ref: /schemas/nvmem/sprd,sc2731-efuse.yaml#
"^fuel-gauge@[0-9a-f]+$":
type: object
@@ -199,7 +191,7 @@ examples:
};
};
- adc@480 {
+ pmic_adc: adc@480 {
compatible = "sprd,sc2731-adc";
reg = <0x480>;
interrupt-parent = <&sc2731_pmic>;
diff --git a/Documentation/devicetree/bindings/nvmem/sprd,sc2731-efuse.yaml b/Documentation/devicetree/bindings/nvmem/sprd,sc2731-efuse.yaml
index dc25fe3d1841..8672bde24a9b 100644
--- a/Documentation/devicetree/bindings/nvmem/sprd,sc2731-efuse.yaml
+++ b/Documentation/devicetree/bindings/nvmem/sprd,sc2731-efuse.yaml
@@ -36,33 +36,4 @@ allOf:
- $ref: nvmem-deprecated-cells.yaml#
unevaluatedProperties: false
-
-examples:
- - |
- pmic {
- #address-cells = <1>;
- #size-cells = <0>;
-
- efuse@380 {
- compatible = "sprd,sc2731-efuse";
- reg = <0x380>;
- hwlocks = <&hwlock 12>;
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Data cells */
- fgu_calib: calib@6 {
- reg = <0x6 0x2>;
- bits = <0 9>;
- };
-
- adc_big_scale: calib@24 {
- reg = <0x24 0x2>;
- };
-
- adc_small_scale: calib@26 {
- reg = <0x26 0x2>;
- };
- };
- };
...
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings
2024-12-16 10:13 [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings Stanislav Jakubek
@ 2024-12-16 18:39 ` Conor Dooley
2024-12-17 7:43 ` Stanislav Jakubek
2024-12-18 1:20 ` Baolin Wang
2025-01-09 9:56 ` (subset) " Lee Jones
2 siblings, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2024-12-16 18:39 UTC (permalink / raw)
To: Stanislav Jakubek
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Orson Zhai, Baolin Wang, Chunyan Zhang, Srinivas Kandagatla,
devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2102 bytes --]
On Mon, Dec 16, 2024 at 11:13:24AM +0100, Stanislav Jakubek wrote:
> Directly reference the sc2731-efuse bindings to simplify the schema.
> Remove the duplicate example from the efuse bindings.
> While at it, add the "pmic_adc" label that was missed during the
> initial YAML conversion.
>
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> ---
> Changes in V4:
> - rebase on next-20241216
> - drop patch 1 (already applied)
> - add the pmic_adc label that was initially missed
>
> Changes in V3:
> - new patch due to a missing dependency in the MFD tree
>
> Link to V3: https://lore.kernel.org/lkml/cd8cc95b59c31418b174bba521dd2599a7929fda.1730709384.git.stano.jakubek@gmail.com/
> Link to V2: https://lore.kernel.org/lkml/ZyExK01iprBHhGm6@standask-GA-A55M-S2HP/
> Link to V1: https://lore.kernel.org/lkml/Zr3X1RoQs7ElTnlJ@standask-GA-A55M-S2HP/
>
> .../devicetree/bindings/mfd/sprd,sc2731.yaml | 12 ++------
> .../bindings/nvmem/sprd,sc2731-efuse.yaml | 29 -------------------
> 2 files changed, 2 insertions(+), 39 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> index 8beec7e8e4c6..b023e1ef8d3c 100644
> --- a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> +++ b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> @@ -67,15 +67,7 @@ patternProperties:
>
> "^efuse@[0-9a-f]+$":
> type: object
> - additionalProperties: true
> - properties:
> - compatible:
> - enum:
> - - sprd,sc2720-efuse
> - - sprd,sc2721-efuse
> - - sprd,sc2723-efuse
> - - sprd,sc2730-efuse
> - - sprd,sc2731-efuse
> + $ref: /schemas/nvmem/sprd,sc2731-efuse.yaml#
>
> "^fuel-gauge@[0-9a-f]+$":
> type: object
> @@ -199,7 +191,7 @@ examples:
> };
> };
>
> - adc@480 {
> + pmic_adc: adc@480 {
I don't understand the point of this hunk, nothing ever references it.
Examples aren't supposed to contain unused labels.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings
2024-12-16 18:39 ` Conor Dooley
@ 2024-12-17 7:43 ` Stanislav Jakubek
2024-12-17 18:21 ` Conor Dooley
0 siblings, 1 reply; 6+ messages in thread
From: Stanislav Jakubek @ 2024-12-17 7:43 UTC (permalink / raw)
To: Conor Dooley
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Orson Zhai, Baolin Wang, Chunyan Zhang, Srinivas Kandagatla,
devicetree, linux-kernel
On Mon, Dec 16, 2024 at 06:39:09PM +0000, Conor Dooley wrote:
> On Mon, Dec 16, 2024 at 11:13:24AM +0100, Stanislav Jakubek wrote:
> > Directly reference the sc2731-efuse bindings to simplify the schema.
> > Remove the duplicate example from the efuse bindings.
> > While at it, add the "pmic_adc" label that was missed during the
> > initial YAML conversion.
> >
> > Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> > ---
> > Changes in V4:
> > - rebase on next-20241216
> > - drop patch 1 (already applied)
> > - add the pmic_adc label that was initially missed
> >
> > Changes in V3:
> > - new patch due to a missing dependency in the MFD tree
> >
> > Link to V3: https://lore.kernel.org/lkml/cd8cc95b59c31418b174bba521dd2599a7929fda.1730709384.git.stano.jakubek@gmail.com/
> > Link to V2: https://lore.kernel.org/lkml/ZyExK01iprBHhGm6@standask-GA-A55M-S2HP/
> > Link to V1: https://lore.kernel.org/lkml/Zr3X1RoQs7ElTnlJ@standask-GA-A55M-S2HP/
> >
> > .../devicetree/bindings/mfd/sprd,sc2731.yaml | 12 ++------
> > .../bindings/nvmem/sprd,sc2731-efuse.yaml | 29 -------------------
> > 2 files changed, 2 insertions(+), 39 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> > index 8beec7e8e4c6..b023e1ef8d3c 100644
> > --- a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> > +++ b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> > @@ -67,15 +67,7 @@ patternProperties:
> >
> > "^efuse@[0-9a-f]+$":
> > type: object
> > - additionalProperties: true
> > - properties:
> > - compatible:
> > - enum:
> > - - sprd,sc2720-efuse
> > - - sprd,sc2721-efuse
> > - - sprd,sc2723-efuse
> > - - sprd,sc2730-efuse
> > - - sprd,sc2731-efuse
> > + $ref: /schemas/nvmem/sprd,sc2731-efuse.yaml#
> >
> > "^fuel-gauge@[0-9a-f]+$":
> > type: object
> > @@ -199,7 +191,7 @@ examples:
> > };
> > };
> >
> > - adc@480 {
> > + pmic_adc: adc@480 {
>
> I don't understand the point of this hunk, nothing ever references it.
> Examples aren't supposed to contain unused labels.
Hi Conor,
this label is used by the fuel-gauge io-channels in the example:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml?h=v6.13-rc3#n219
Regards,
Stanislav
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings
2024-12-17 7:43 ` Stanislav Jakubek
@ 2024-12-17 18:21 ` Conor Dooley
0 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2024-12-17 18:21 UTC (permalink / raw)
To: Stanislav Jakubek
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Orson Zhai, Baolin Wang, Chunyan Zhang, Srinivas Kandagatla,
devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2803 bytes --]
On Tue, Dec 17, 2024 at 08:43:30AM +0100, Stanislav Jakubek wrote:
> On Mon, Dec 16, 2024 at 06:39:09PM +0000, Conor Dooley wrote:
> > On Mon, Dec 16, 2024 at 11:13:24AM +0100, Stanislav Jakubek wrote:
> > > Directly reference the sc2731-efuse bindings to simplify the schema.
> > > Remove the duplicate example from the efuse bindings.
> > > While at it, add the "pmic_adc" label that was missed during the
> > > initial YAML conversion.
> > >
> > > Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> > > ---
> > > Changes in V4:
> > > - rebase on next-20241216
> > > - drop patch 1 (already applied)
> > > - add the pmic_adc label that was initially missed
> > >
> > > Changes in V3:
> > > - new patch due to a missing dependency in the MFD tree
> > >
> > > Link to V3: https://lore.kernel.org/lkml/cd8cc95b59c31418b174bba521dd2599a7929fda.1730709384.git.stano.jakubek@gmail.com/
> > > Link to V2: https://lore.kernel.org/lkml/ZyExK01iprBHhGm6@standask-GA-A55M-S2HP/
> > > Link to V1: https://lore.kernel.org/lkml/Zr3X1RoQs7ElTnlJ@standask-GA-A55M-S2HP/
> > >
> > > .../devicetree/bindings/mfd/sprd,sc2731.yaml | 12 ++------
> > > .../bindings/nvmem/sprd,sc2731-efuse.yaml | 29 -------------------
> > > 2 files changed, 2 insertions(+), 39 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> > > index 8beec7e8e4c6..b023e1ef8d3c 100644
> > > --- a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> > > +++ b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
> > > @@ -67,15 +67,7 @@ patternProperties:
> > >
> > > "^efuse@[0-9a-f]+$":
> > > type: object
> > > - additionalProperties: true
> > > - properties:
> > > - compatible:
> > > - enum:
> > > - - sprd,sc2720-efuse
> > > - - sprd,sc2721-efuse
> > > - - sprd,sc2723-efuse
> > > - - sprd,sc2730-efuse
> > > - - sprd,sc2731-efuse
> > > + $ref: /schemas/nvmem/sprd,sc2731-efuse.yaml#
> > >
> > > "^fuel-gauge@[0-9a-f]+$":
> > > type: object
> > > @@ -199,7 +191,7 @@ examples:
> > > };
> > > };
> > >
> > > - adc@480 {
> > > + pmic_adc: adc@480 {
> >
> > I don't understand the point of this hunk, nothing ever references it.
> > Examples aren't supposed to contain unused labels.
>
> Hi Conor,
>
> this label is used by the fuel-gauge io-channels in the example:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml?h=v6.13-rc3#n219
Ah shit, my bad. I didn't realise all that was one example.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings
2024-12-16 10:13 [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings Stanislav Jakubek
2024-12-16 18:39 ` Conor Dooley
@ 2024-12-18 1:20 ` Baolin Wang
2025-01-09 9:56 ` (subset) " Lee Jones
2 siblings, 0 replies; 6+ messages in thread
From: Baolin Wang @ 2024-12-18 1:20 UTC (permalink / raw)
To: Stanislav Jakubek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Orson Zhai, Chunyan Zhang, Srinivas Kandagatla
Cc: devicetree, linux-kernel
On 2024/12/16 18:13, Stanislav Jakubek wrote:
> Directly reference the sc2731-efuse bindings to simplify the schema.
> Remove the duplicate example from the efuse bindings.
> While at it, add the "pmic_adc" label that was missed during the
> initial YAML conversion.
>
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Thanks. LGTM.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: (subset) [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings
2024-12-16 10:13 [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings Stanislav Jakubek
2024-12-16 18:39 ` Conor Dooley
2024-12-18 1:20 ` Baolin Wang
@ 2025-01-09 9:56 ` Lee Jones
2 siblings, 0 replies; 6+ messages in thread
From: Lee Jones @ 2025-01-09 9:56 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Orson Zhai, Baolin Wang, Chunyan Zhang, Srinivas Kandagatla,
Stanislav Jakubek
Cc: devicetree, linux-kernel
On Mon, 16 Dec 2024 11:13:24 +0100, Stanislav Jakubek wrote:
> Directly reference the sc2731-efuse bindings to simplify the schema.
> Remove the duplicate example from the efuse bindings.
> While at it, add the "pmic_adc" label that was missed during the
> initial YAML conversion.
>
>
Applied, thanks!
[1/1] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings
commit: 81b82147e7114ed78c819d1157db45b5b848a7d6
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-01-09 9:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 10:13 [PATCH v4] dt-bindings: mfd: sprd,sc2731: reference sprd,sc2731-efuse bindings Stanislav Jakubek
2024-12-16 18:39 ` Conor Dooley
2024-12-17 7:43 ` Stanislav Jakubek
2024-12-17 18:21 ` Conor Dooley
2024-12-18 1:20 ` Baolin Wang
2025-01-09 9:56 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox