Skip to contentSkip to conversation

dt-bindings: auxdisplay: adjust example indentation and use generic node names

PATCH Applied Krzysztof Kozlowski 3 participants 6 messages Feb 14, 2024

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 dt-bindings: auxdisplay: adjust example indentation and use generic node names

The example DTS should be indented with two or four (preferred) spaces, as mentioned in Writing Schema document. While re-indenting, change the node names to somehow generic names, as expected by Devicetree specification.

Cc Geert Uytterhoeven <[email protected]>
Cc Ralf Schlatterbeck <[email protected]>
Cc Andy Shevchenko <[email protected]>

---

Changes in v2:
1. Previous, removing GPIO expander node is gone, update GPIO expander example as well: node name and indentation.

---
 .../auxdisplay/arm,versatile-lcd.yaml         |  4 +-
 .../bindings/auxdisplay/hit,hd44780.yaml      | 62 ++++++++++---------
 .../bindings/auxdisplay/holtek,ht16k33.yaml   | 50 +++++++--------
 .../bindings/auxdisplay/img,ascii-lcd.yaml    |  4 +-
 4 files changed, 61 insertions(+), 59 deletions(-)
Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml +2 -2
index 5d02bd032a85..439f7b811a94 100644
@@ -39,6 +39,6 @@ additionalProperties: false
 examples:
   - |
     lcd@10008000 {
-            compatible = "arm,versatile-lcd";
-            reg = <0x10008000 0x1000>;
+        compatible = "arm,versatile-lcd";
+        reg = <0x10008000 0x1000>;
     };
Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml +32 -30

74 lines not on this page · raw message

Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml +25 -25

56 lines not on this page · raw message

Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml +2 -2
index 1899b23de7d1..55e9831b3f67 100644
@@ -50,6 +50,6 @@ additionalProperties: false
 examples:
   - |
     lcd: lcd@17fff000 {
-            compatible = "img,boston-lcd";
-            reg = <0x17fff000 0x8>;
+        compatible = "img,boston-lcd";
+        reg = <0x17fff000 0x8>;
     };
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 2/2 dt-bindings: auxdisplay: hit,hd44780: use defines for GPIO flags

Improve example DTS readability by using known defines for GPIO flags.

---

Changes in v2:
1. None

---
 .../bindings/auxdisplay/hit,hd44780.yaml         | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml +8 -8
index e26d61af9011..3ca0e9863d83 100644
@@ -116,12 +116,12 @@ examples:
         compatible = "hit,hd44780";
         display-height-chars = <2>;
         display-width-chars = <16>;
-        data-gpios = <&pcf8574 4 0>,
-                     <&pcf8574 5 0>,
-                     <&pcf8574 6 0>,
-                     <&pcf8574 7 0>;
-        enable-gpios = <&pcf8574 2 0>;
-        rs-gpios = <&pcf8574 0 0>;
-        rw-gpios = <&pcf8574 1 0>;
-        backlight-gpios = <&pcf8574 3 0>;
+        data-gpios = <&pcf8574 4 GPIO_ACTIVE_HIGH>,
+                     <&pcf8574 5 GPIO_ACTIVE_HIGH>,
+                     <&pcf8574 6 GPIO_ACTIVE_HIGH>,
+                     <&pcf8574 7 GPIO_ACTIVE_HIGH>;
+        enable-gpios = <&pcf8574 2 GPIO_ACTIVE_HIGH>;
+        rs-gpios = <&pcf8574 0 GPIO_ACTIVE_HIGH>;
+        rw-gpios = <&pcf8574 1 GPIO_ACTIVE_HIGH>;
+        backlight-gpios = <&pcf8574 3 GPIO_ACTIVE_HIGH>;
     };
Signature · 1 line
2.34.1
reviewer Reviewed-by on v2 2/2
#2 lore raw

Re: [PATCH v2 2/2] dt-bindings: auxdisplay: hit,hd44780: use defines for GPIO flags

Quoted 9 lines · Krzysztof Kozlowski

Improve example DTS readability by using known defines for GPIO flags.

---

Changes in v2:
1. None

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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
#3 lore raw

Re: [PATCH v2 2/2] dt-bindings: auxdisplay: hit,hd44780: use defines for GPIO flags

In reply to Krzysztof Kozlowski
Quoted 1 line · Krzysztof Kozlowski

Improve example DTS readability by using known defines for GPIO flags.

Applied, thanks!

Signature · 2 lines
With Best Regards,
Andy Shevchenko
reviewer Reviewed-by on v2 1/2
#4 lore raw
In reply to Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski

The example DTS should be indented with two or four (preferred) spaces, as mentioned in Writing Schema document. While re-indenting, change the node names to somehow generic names, as expected by Devicetree specification.

Cc Geert Uytterhoeven <[email protected]>
Cc Ralf Schlatterbeck <[email protected]>
Cc Andy Shevchenko <[email protected]>
Quoted 5 lines

---

Changes in v2:
1. Previous, removing GPIO expander node is gone, update GPIO expander example as well: node name and indentation.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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
#5 lore raw
In reply to Krzysztof Kozlowski
Quoted 4 lines · Krzysztof Kozlowski

The example DTS should be indented with two or four (preferred) spaces, as mentioned in Writing Schema document. While re-indenting, change the node names to somehow generic names, as expected by Devicetree specification.

Applied, thanks!

Signature · 2 lines
With Best Regards,
Andy Shevchenko