Skip to contentSkip to conversation

dt-bindings: iio: adc: renesas,rcar-gyroadc: Miscellaneous improvements

PATCH Applied Geert Uytterhoeven 4 participants 5 messages Oct 24, 2022 – Feb 5, 2023

Subsystems (4)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: iio: adc: renesas,rcar-gyroadc: Miscellaneous improvements

Set limits on the number of power-domains and resets, and make them required.

Simplify the example, and update it to match reality:
- Convert from obsolete MSTP to CPG/MSSR bindings,
- Examples should use #{address,size}-cells = <1>,
- Add missing resets property,
- Drop soc container and pinctrl properties, which are not needed in examples.

---
 .../iio/adc/renesas,rcar-gyroadc.yaml         | 60 +++++++++----------
 1 file changed, 29 insertions(+), 31 deletions(-)
Documentation/devicetree/bindings/iio/adc/renesas,rcar-gyroadc.yaml +29 -31
index c115e2e99bd9a8a5..1c7aee5ed3e0bfb2 100644
@@ -34,9 +34,11 @@ properties:
   clock-names:
     const: fck
 
-  power-domains: true
+  power-domains:
+    maxItems: 1
 
-  resets: true
+  resets:
+    maxItems: 1
 
   "#address-cells":
     const: 1
@@ -51,6 +53,8 @@ required:
   - reg
   - clocks
   - clock-names
+  - power-domains
+  - resets
   - "#address-cells"
   - "#size-cells"
 
@@ -108,36 +112,30 @@ patternProperties:
 
 examples:
   - |
-    #include <dt-bindings/clock/r8a7791-clock.h>
+    #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
     #include <dt-bindings/power/r8a7791-sysc.h>
-    soc {
-        #address-cells = <2>;
-        #size-cells = <2>;
-
-        adc@e6e54000 {
-            compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
-            reg = <0 0xe6e54000 0 64>;
-            clocks = <&mstp9_clks R8A7791_CLK_GYROADC>;
-            clock-names = "fck";
-            power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
-
-            pinctrl-0 = <&adc_pins>;
-            pinctrl-names = "default";
-
-            #address-cells = <1>;
-            #size-cells = <0>;
-
-            adc@0 {
-                reg = <0>;
-                compatible = "maxim,max1162";
-                vref-supply = <&vref_max1162>;
-            };
-
-            adc@1 {
-                reg = <1>;
-                compatible = "maxim,max1162";
-                vref-supply = <&vref_max1162>;
-            };
+
+    adc@e6e54000 {
+        compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
+        reg = <0xe6e54000 64>;
+        clocks = <&cpg CPG_MOD 901>;
+        clock-names = "fck";
+        power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
+        resets = <&cpg 901>;
+
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        adc@0 {
+            reg = <0>;
+            compatible = "maxim,max1162";
+            vref-supply = <&vref_max1162>;
+        };
+
+        adc@1 {
+            reg = <1>;
+            compatible = "maxim,max1162";
+            vref-supply = <&vref_max1162>;
         };
     };
 ...
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Geert Uytterhoeven

Set limits on the number of power-domains and resets, and make them required.

Simplify the example, and update it to match reality:
- Convert from obsolete MSTP to CPG/MSSR bindings,
- Examples should use #{address,size}-cells = <1>,
- Add missing resets property,
- Drop soc container and pinctrl properties, which are not needed in examples.

Best regards,
Krzysztof

maintainer Applied
#2 lore raw
Quoted 11 lines · On Mon, 24 Oct 2022 08:23:43 -0400 Krzysztof Kozlowski…
Quoted 10 lines · Geert Uytterhoeven

Set limits on the number of power-domains and resets, and make them required.

Simplify the example, and update it to match reality:
- Convert from obsolete MSTP to CPG/MSSR bindings,
- Examples should use #{address,size}-cells = <1>,
- Add missing resets property,
- Drop soc container and pinctrl properties, which are not needed in examples.

Quoted 4 lines
Quoted 1 line

Applied,
Thanks

Jonathan

Quoted 4 lines

Best regards,
Krzysztof

#3 lore raw

Hi Jonathan,

Quoted 13 lines · Jonathan Cameron
Quoted 11 lines · On Mon, 24 Oct 2022 08:23:43 -0400 Krzysztof Kozlowski…
Quoted 10 lines · Geert Uytterhoeven

Set limits on the number of power-domains and resets, and make them required.

Simplify the example, and update it to match reality:
- Convert from obsolete MSTP to CPG/MSSR bindings,
- Examples should use #{address,size}-cells = <1>,
- Add missing resets property,
- Drop soc container and pinctrl properties, which are not needed in examples.

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

Applied,

Looks like this fell through the cracks, as I cannot see it applied? Do you want me to resend?
Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

maintainer
#4 lore raw
Quoted 19 lines · On Tue, 31 Jan 2023 11:13:04 +0100 Geert Uytterhoeven <[email protected]>…

Hi Jonathan,

Quoted 16 lines · Jonathan Cameron
Quoted 14 lines · On Mon, 24 Oct 2022 08:23:43 -0400 Krzysztof Kozlowski…
Quoted 11 lines · Geert Uytterhoeven

Set limits on the number of power-domains and resets, and make them required.

Simplify the example, and update it to match reality:
- Convert from obsolete MSTP to CPG/MSSR bindings,
- Examples should use #{address,size}-cells = <1>,
- Add missing resets property,
- Drop soc container and pinctrl properties, which are not needed in examples.

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Applied,

Looks like this fell through the cracks, as I cannot see it applied? Do you want me to resend?
Thanks!

Sorry about that. Now applied. Not sure what happened there.

Jonathan

Quoted 11 lines

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds