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

ARM: dts: renesas: Group tuples in regulator-gpio states properties

To improve human readability and enable automatic validation, the tuples
in the "states" properties of device nodes compatible with
"regulator-gpio" should be grouped, as reported by "make dtbs_check":

$ make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/regulator/gpio-regulator.yaml
arch/arm/boot/dts/r8a7791-koelsch.dt.yaml: regulator-vccq-sdhi0: states:0: Additional items are not allowed (1800000, 0 were unexpected)
arch/arm/boot/dts/r8a7791-koelsch.dt.yaml: regulator-vccq-sdhi0: states:0: [3300000, 1, 1800000, 0] is too long
arch/arm/boot/dts/r8a7791-koelsch.dt.yaml: regulator-vccq-sdhi1: states:0: Additional items are not allowed (1800000, 0 were unexpected)
arch/arm/boot/dts/r8a7791-koelsch.dt.yaml: regulator-vccq-sdhi1: states:0: [3300000, 1, 1800000, 0] is too long
arch/arm/boot/dts/r8a7791-koelsch.dt.yaml: regulator-vccq-sdhi2: states:0: Additional items are not allowed (1800000, 0 were unexpected)
arch/arm/boot/dts/r8a7791-koelsch.dt.yaml: regulator-vccq-sdhi2: states:0: [3300000, 1, 1800000, 0] is too long
...

Fix this by grouping the tuples using angle brackets.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20191213164115.3697-2-geert+renesas@glider.be
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>

+18 -36
+1 -2
arch/arm/boot/dts/iwg20d-q7-common.dtsi
··· 132 132 133 133 gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>; 134 134 gpios-states = <1>; 135 - states = <3300000 1 136 - 1800000 0>; 135 + states = <3300000 1>, <1800000 0>; 137 136 }; 138 137 }; 139 138
+1 -2
arch/arm/boot/dts/r8a7740-armadillo800eva.dts
··· 60 60 61 61 enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>; 62 62 gpios = <&pfc 17 GPIO_ACTIVE_HIGH>; 63 - states = <3300000 0 64 - 1800000 1>; 63 + states = <3300000 0>, <1800000 1>; 65 64 66 65 enable-active-high; 67 66 };
+1 -2
arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
··· 76 76 77 77 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; 78 78 gpios-states = <1>; 79 - states = <3300000 1 80 - 1800000 0>; 79 + states = <3300000 1>, <1800000 0>; 81 80 }; 82 81 }; 83 82
+1 -2
arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts
··· 65 65 66 66 gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; 67 67 gpios-states = <1>; 68 - states = <3300000 1 69 - 1800000 0>; 68 + states = <3300000 1>, <1800000 0>; 70 69 }; 71 70 }; 72 71
+1 -2
arch/arm/boot/dts/r8a7779-marzen.dts
··· 48 48 49 49 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>; 50 50 gpios-states = <1>; 51 - states = <3300000 1 52 - 1800000 0>; 51 + states = <3300000 1>, <1800000 0>; 53 52 }; 54 53 55 54 ethernet@18000000 {
+2 -4
arch/arm/boot/dts/r8a7790-lager.dts
··· 150 150 151 151 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; 152 152 gpios-states = <1>; 153 - states = <3300000 1 154 - 1800000 0>; 153 + states = <3300000 1>, <1800000 0>; 155 154 }; 156 155 157 156 vcc_sdhi2: regulator-vcc-sdhi2 { ··· 173 174 174 175 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; 175 176 gpios-states = <1>; 176 - states = <3300000 1 177 - 1800000 0>; 177 + states = <3300000 1>, <1800000 0>; 178 178 }; 179 179 180 180 audio_clock: audio_clock {
+3 -6
arch/arm/boot/dts/r8a7791-koelsch.dts
··· 193 193 194 194 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; 195 195 gpios-states = <1>; 196 - states = <3300000 1 197 - 1800000 0>; 196 + states = <3300000 1>, <1800000 0>; 198 197 }; 199 198 200 199 vcc_sdhi1: regulator-vcc-sdhi1 { ··· 216 217 217 218 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; 218 219 gpios-states = <1>; 219 - states = <3300000 1 220 - 1800000 0>; 220 + states = <3300000 1>, <1800000 0>; 221 221 }; 222 222 223 223 vcc_sdhi2: regulator-vcc-sdhi2 { ··· 239 241 240 242 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; 241 243 gpios-states = <1>; 242 - states = <3300000 1 243 - 1800000 0>; 244 + states = <3300000 1>, <1800000 0>; 244 245 }; 245 246 246 247 audio_clock: audio_clock {
+2 -4
arch/arm/boot/dts/r8a7791-porter.dts
··· 63 63 64 64 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; 65 65 gpios-states = <1>; 66 - states = <3300000 1 67 - 1800000 0>; 66 + states = <3300000 1>, <1800000 0>; 68 67 }; 69 68 70 69 vcc_sdhi2: regulator-vcc-sdhi2 { ··· 84 85 85 86 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; 86 87 gpios-states = <1>; 87 - states = <3300000 1 88 - 1800000 0>; 88 + states = <3300000 1>, <1800000 0>; 89 89 }; 90 90 91 91 hdmi-out {
+3 -6
arch/arm/boot/dts/r8a7793-gose.dts
··· 179 179 180 180 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; 181 181 gpios-states = <1>; 182 - states = <3300000 1 183 - 1800000 0>; 182 + states = <3300000 1>, <1800000 0>; 184 183 }; 185 184 186 185 vcc_sdhi1: regulator-vcc-sdhi1 { ··· 202 203 203 204 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; 204 205 gpios-states = <1>; 205 - states = <3300000 1 206 - 1800000 0>; 206 + states = <3300000 1>, <1800000 0>; 207 207 }; 208 208 209 209 vcc_sdhi2: regulator-vcc-sdhi2 { ··· 225 227 226 228 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; 227 229 gpios-states = <1>; 228 - states = <3300000 1 229 - 1800000 0>; 230 + states = <3300000 1>, <1800000 0>; 230 231 }; 231 232 232 233 audio_clock: audio_clock {
+2 -4
arch/arm/boot/dts/r8a7794-alt.dts
··· 60 60 61 61 gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; 62 62 gpios-states = <1>; 63 - states = <3300000 1 64 - 1800000 0>; 63 + states = <3300000 1>, <1800000 0>; 65 64 }; 66 65 67 66 vcc_sdhi1: regulator-vcc-sdhi1 { ··· 83 84 84 85 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; 85 86 gpios-states = <1>; 86 - states = <3300000 1 87 - 1800000 0>; 87 + states = <3300000 1>, <1800000 0>; 88 88 }; 89 89 90 90 lbsc {
+1 -2
arch/arm/boot/dts/r8a7794-silk.dts
··· 126 126 127 127 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; 128 128 gpios-states = <1>; 129 - states = <3300000 1 130 - 1800000 0>; 129 + states = <3300000 1>, <1800000 0>; 131 130 }; 132 131 133 132 vga-encoder {