dt-bindings: auxdisplay: adjust example indentation and use generic node names
Subsystems (5)
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.
---
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
@@ -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
@@ -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
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
@@ -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
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.
Cc Andy Shevchenko <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Krzysztof Kozlowski <[email protected]>---
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
Andy Shevchenko
AppliedRe: [PATCH v2 2/2] dt-bindings: auxdisplay: hit,hd44780: use defines for GPIO flags
In reply to Krzysztof KozlowskiQuoted 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
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]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Krzysztof Kozlowski <[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
Andy Shevchenko
AppliedQuoted 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