Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <geert@linux-m68k.org>
Cc: Ralf Schlatterbeck <rsc@runtux.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

authored by

Krzysztof Kozlowski and committed by
Andy Shevchenko
96145459 933feb12

+61 -59
+2 -2
Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
··· 39 39 examples: 40 40 - | 41 41 lcd@10008000 { 42 - compatible = "arm,versatile-lcd"; 43 - reg = <0x10008000 0x1000>; 42 + compatible = "arm,versatile-lcd"; 43 + reg = <0x10008000 0x1000>; 44 44 };
+32 -30
Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml
··· 84 84 examples: 85 85 - | 86 86 #include <dt-bindings/gpio/gpio.h> 87 - auxdisplay { 88 - compatible = "hit,hd44780"; 87 + display-controller { 88 + compatible = "hit,hd44780"; 89 89 90 - data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>, 91 - <&hc595 1 GPIO_ACTIVE_HIGH>, 92 - <&hc595 2 GPIO_ACTIVE_HIGH>, 93 - <&hc595 3 GPIO_ACTIVE_HIGH>; 94 - enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; 95 - rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; 90 + data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>, 91 + <&hc595 1 GPIO_ACTIVE_HIGH>, 92 + <&hc595 2 GPIO_ACTIVE_HIGH>, 93 + <&hc595 3 GPIO_ACTIVE_HIGH>; 94 + enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; 95 + rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; 96 96 97 - display-height-chars = <2>; 98 - display-width-chars = <16>; 97 + display-height-chars = <2>; 98 + display-width-chars = <16>; 99 99 }; 100 + 100 101 - | 101 102 #include <dt-bindings/gpio/gpio.h> 102 103 i2c { 103 - #address-cells = <1>; 104 - #size-cells = <0>; 104 + #address-cells = <1>; 105 + #size-cells = <0>; 105 106 106 - pcf8574: pcf8574@27 { 107 - compatible = "nxp,pcf8574"; 108 - reg = <0x27>; 109 - gpio-controller; 110 - #gpio-cells = <2>; 111 - }; 107 + pcf8574: gpio-expander@27 { 108 + compatible = "nxp,pcf8574"; 109 + reg = <0x27>; 110 + gpio-controller; 111 + #gpio-cells = <2>; 112 + }; 112 113 }; 113 - hd44780 { 114 - compatible = "hit,hd44780"; 115 - display-height-chars = <2>; 116 - display-width-chars = <16>; 117 - data-gpios = <&pcf8574 4 0>, 118 - <&pcf8574 5 0>, 119 - <&pcf8574 6 0>, 120 - <&pcf8574 7 0>; 121 - enable-gpios = <&pcf8574 2 0>; 122 - rs-gpios = <&pcf8574 0 0>; 123 - rw-gpios = <&pcf8574 1 0>; 124 - backlight-gpios = <&pcf8574 3 0>; 114 + 115 + display-controller { 116 + compatible = "hit,hd44780"; 117 + display-height-chars = <2>; 118 + display-width-chars = <16>; 119 + data-gpios = <&pcf8574 4 0>, 120 + <&pcf8574 5 0>, 121 + <&pcf8574 6 0>, 122 + <&pcf8574 7 0>; 123 + enable-gpios = <&pcf8574 2 0>; 124 + rs-gpios = <&pcf8574 0 0>; 125 + rw-gpios = <&pcf8574 1 0>; 126 + backlight-gpios = <&pcf8574 3 0>; 125 127 };
+25 -25
Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml
··· 74 74 #include <dt-bindings/input/input.h> 75 75 #include <dt-bindings/leds/common.h> 76 76 i2c { 77 - #address-cells = <1>; 78 - #size-cells = <0>; 77 + #address-cells = <1>; 78 + #size-cells = <0>; 79 79 80 - ht16k33: ht16k33@70 { 81 - compatible = "holtek,ht16k33"; 82 - reg = <0x70>; 83 - refresh-rate-hz = <20>; 84 - interrupt-parent = <&gpio4>; 85 - interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; 86 - debounce-delay-ms = <50>; 87 - linux,keymap = <MATRIX_KEY(2, 0, KEY_F6)>, 88 - <MATRIX_KEY(3, 0, KEY_F8)>, 89 - <MATRIX_KEY(4, 0, KEY_F10)>, 90 - <MATRIX_KEY(5, 0, KEY_F4)>, 91 - <MATRIX_KEY(6, 0, KEY_F2)>, 92 - <MATRIX_KEY(2, 1, KEY_F5)>, 93 - <MATRIX_KEY(3, 1, KEY_F7)>, 94 - <MATRIX_KEY(4, 1, KEY_F9)>, 95 - <MATRIX_KEY(5, 1, KEY_F3)>, 96 - <MATRIX_KEY(6, 1, KEY_F1)>; 80 + display-controller@70 { 81 + compatible = "holtek,ht16k33"; 82 + reg = <0x70>; 83 + refresh-rate-hz = <20>; 84 + interrupt-parent = <&gpio4>; 85 + interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; 86 + debounce-delay-ms = <50>; 87 + linux,keymap = <MATRIX_KEY(2, 0, KEY_F6)>, 88 + <MATRIX_KEY(3, 0, KEY_F8)>, 89 + <MATRIX_KEY(4, 0, KEY_F10)>, 90 + <MATRIX_KEY(5, 0, KEY_F4)>, 91 + <MATRIX_KEY(6, 0, KEY_F2)>, 92 + <MATRIX_KEY(2, 1, KEY_F5)>, 93 + <MATRIX_KEY(3, 1, KEY_F7)>, 94 + <MATRIX_KEY(4, 1, KEY_F9)>, 95 + <MATRIX_KEY(5, 1, KEY_F3)>, 96 + <MATRIX_KEY(6, 1, KEY_F1)>; 97 97 98 - led { 99 - color = <LED_COLOR_ID_RED>; 100 - function = LED_FUNCTION_BACKLIGHT; 101 - linux,default-trigger = "backlight"; 102 - }; 98 + led { 99 + color = <LED_COLOR_ID_RED>; 100 + function = LED_FUNCTION_BACKLIGHT; 101 + linux,default-trigger = "backlight"; 103 102 }; 104 - }; 103 + }; 104 + };
+2 -2
Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml
··· 50 50 examples: 51 51 - | 52 52 lcd: lcd@17fff000 { 53 - compatible = "img,boston-lcd"; 54 - reg = <0x17fff000 0x8>; 53 + compatible = "img,boston-lcd"; 54 + reg = <0x17fff000 0x8>; 55 55 };