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

dt-bindings: pinctrl: mediatek: Correct indentation and style in DTS example

DTS example in the bindings should be indented with 2- or 4-spaces and
aligned with opening '- |', so correct any differences like 3-spaces or
mixtures 2- and 4-spaces in one binding.

No functional changes here, but saves some comments during reviews of
new patches built on existing code.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/20250324125105.81774-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Linus Walleij
31d820fe 5d7c4697

+127 -148
+31 -52
Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml
··· 137 137 #size-cells = <2>; 138 138 139 139 pinctrl@1c20800 { 140 - compatible = "mediatek,mt8135-pinctrl"; 141 - reg = <0 0x1000B000 0 0x1000>; 142 - mediatek,pctl-regmap = <&syscfg_pctl_a>, <&syscfg_pctl_b>; 143 - gpio-controller; 144 - #gpio-cells = <2>; 145 - interrupt-controller; 146 - #interrupt-cells = <2>; 147 - interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 148 - <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 149 - <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; 140 + compatible = "mediatek,mt8135-pinctrl"; 141 + reg = <0 0x1000B000 0 0x1000>; 142 + mediatek,pctl-regmap = <&syscfg_pctl_a>, <&syscfg_pctl_b>; 143 + gpio-controller; 144 + #gpio-cells = <2>; 145 + interrupt-controller; 146 + #interrupt-cells = <2>; 147 + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 148 + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 149 + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; 150 150 151 - i2c0_pins_a: i2c0-pins { 152 - pins1 { 153 - pinmux = <MT8135_PIN_100_SDA0__FUNC_SDA0>, 154 - <MT8135_PIN_101_SCL0__FUNC_SCL0>; 155 - bias-disable; 156 - }; 157 - }; 158 - 159 - i2c1_pins_a: i2c1-pins { 160 - pins { 161 - pinmux = <MT8135_PIN_195_SDA1__FUNC_SDA1>, 162 - <MT8135_PIN_196_SCL1__FUNC_SCL1>; 163 - bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 164 - }; 165 - }; 166 - 167 - i2c2_pins_a: i2c2-pins { 168 - pins1 { 169 - pinmux = <MT8135_PIN_193_SDA2__FUNC_SDA2>; 170 - bias-pull-down; 151 + i2c0_pins_a: i2c0-pins { 152 + pins1 { 153 + pinmux = <MT8135_PIN_100_SDA0__FUNC_SDA0>, 154 + <MT8135_PIN_101_SCL0__FUNC_SCL0>; 155 + bias-disable; 156 + }; 171 157 }; 172 158 173 - pins2 { 174 - pinmux = <MT8135_PIN_49_WATCHDOG__FUNC_GPIO49>; 175 - bias-pull-up; 176 - }; 177 - }; 178 - 179 - i2c3_pins_a: i2c3-pins { 180 - pins1 { 181 - pinmux = <MT8135_PIN_40_DAC_CLK__FUNC_GPIO40>, 182 - <MT8135_PIN_41_DAC_WS__FUNC_GPIO41>; 183 - bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 159 + i2c1_pins_a: i2c1-pins { 160 + pins { 161 + pinmux = <MT8135_PIN_195_SDA1__FUNC_SDA1>, 162 + <MT8135_PIN_196_SCL1__FUNC_SCL1>; 163 + bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 164 + }; 184 165 }; 185 166 186 - pins2 { 187 - pinmux = <MT8135_PIN_35_SCL3__FUNC_SCL3>, 188 - <MT8135_PIN_36_SDA3__FUNC_SDA3>; 189 - output-low; 190 - bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 191 - }; 167 + i2c2_pins_a: i2c2-pins { 168 + pins1 { 169 + pinmux = <MT8135_PIN_193_SDA2__FUNC_SDA2>; 170 + bias-pull-down; 171 + }; 192 172 193 - pins3 { 194 - pinmux = <MT8135_PIN_57_JTCK__FUNC_GPIO57>, 195 - <MT8135_PIN_60_JTDI__FUNC_JTDI>; 196 - drive-strength = <32>; 173 + pins2 { 174 + pinmux = <MT8135_PIN_49_WATCHDOG__FUNC_GPIO49>; 175 + bias-pull-up; 176 + }; 197 177 }; 198 - }; 199 178 }; 200 179 };
+24 -24
Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml
··· 366 366 #size-cells = <2>; 367 367 368 368 pio: pinctrl@10211000 { 369 - compatible = "mediatek,mt7622-pinctrl"; 370 - reg = <0 0x10211000 0 0x1000>; 371 - gpio-controller; 372 - #gpio-cells = <2>; 369 + compatible = "mediatek,mt7622-pinctrl"; 370 + reg = <0 0x10211000 0 0x1000>; 371 + gpio-controller; 372 + #gpio-cells = <2>; 373 373 374 - pinctrl_eth_default: eth-pins { 375 - mux-mdio { 376 - groups = "mdc_mdio"; 377 - function = "eth"; 378 - drive-strength = <12>; 379 - }; 374 + pinctrl_eth_default: eth-pins { 375 + mux-mdio { 376 + groups = "mdc_mdio"; 377 + function = "eth"; 378 + drive-strength = <12>; 379 + }; 380 380 381 - mux-gmac2 { 382 - groups = "rgmii_via_gmac2"; 383 - function = "eth"; 384 - drive-strength = <12>; 385 - }; 381 + mux-gmac2 { 382 + groups = "rgmii_via_gmac2"; 383 + function = "eth"; 384 + drive-strength = <12>; 385 + }; 386 386 387 - mux-esw { 388 - groups = "esw"; 389 - function = "eth"; 390 - drive-strength = <8>; 391 - }; 387 + mux-esw { 388 + groups = "esw"; 389 + function = "eth"; 390 + drive-strength = <8>; 391 + }; 392 392 393 - conf-mdio { 394 - pins = "MDC"; 395 - bias-pull-up; 393 + conf-mdio { 394 + pins = "MDC"; 395 + bias-pull-up; 396 + }; 396 397 }; 397 - }; 398 398 }; 399 399 };
+34 -34
Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml
··· 195 195 #size-cells = <2>; 196 196 197 197 pio: pinctrl@10005000 { 198 - compatible = "mediatek,mt8183-pinctrl"; 199 - reg = <0 0x10005000 0 0x1000>, 200 - <0 0x11f20000 0 0x1000>, 201 - <0 0x11e80000 0 0x1000>, 202 - <0 0x11e70000 0 0x1000>, 203 - <0 0x11e90000 0 0x1000>, 204 - <0 0x11d30000 0 0x1000>, 205 - <0 0x11d20000 0 0x1000>, 206 - <0 0x11c50000 0 0x1000>, 207 - <0 0x11f30000 0 0x1000>, 208 - <0 0x1000b000 0 0x1000>; 209 - reg-names = "iocfg0", "iocfg1", "iocfg2", 210 - "iocfg3", "iocfg4", "iocfg5", 211 - "iocfg6", "iocfg7", "iocfg8", 212 - "eint"; 213 - gpio-controller; 214 - #gpio-cells = <2>; 215 - gpio-ranges = <&pio 0 0 192>; 216 - interrupt-controller; 217 - interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; 218 - #interrupt-cells = <2>; 198 + compatible = "mediatek,mt8183-pinctrl"; 199 + reg = <0 0x10005000 0 0x1000>, 200 + <0 0x11f20000 0 0x1000>, 201 + <0 0x11e80000 0 0x1000>, 202 + <0 0x11e70000 0 0x1000>, 203 + <0 0x11e90000 0 0x1000>, 204 + <0 0x11d30000 0 0x1000>, 205 + <0 0x11d20000 0 0x1000>, 206 + <0 0x11c50000 0 0x1000>, 207 + <0 0x11f30000 0 0x1000>, 208 + <0 0x1000b000 0 0x1000>; 209 + reg-names = "iocfg0", "iocfg1", "iocfg2", 210 + "iocfg3", "iocfg4", "iocfg5", 211 + "iocfg6", "iocfg7", "iocfg8", 212 + "eint"; 213 + gpio-controller; 214 + #gpio-cells = <2>; 215 + gpio-ranges = <&pio 0 0 192>; 216 + interrupt-controller; 217 + interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; 218 + #interrupt-cells = <2>; 219 219 220 - i2c0_pins_a: i2c0-pins { 221 - pins1 { 222 - pinmux = <PINMUX_GPIO48__FUNC_SCL5>, 223 - <PINMUX_GPIO49__FUNC_SDA5>; 224 - mediatek,pull-up-adv = <3>; 225 - drive-strength-microamp = <1000>; 220 + i2c0_pins_a: i2c0-pins { 221 + pins1 { 222 + pinmux = <PINMUX_GPIO48__FUNC_SCL5>, 223 + <PINMUX_GPIO49__FUNC_SDA5>; 224 + mediatek,pull-up-adv = <3>; 225 + drive-strength-microamp = <1000>; 226 + }; 226 227 }; 227 - }; 228 228 229 - i2c1_pins_a: i2c1-pins { 230 - pins { 231 - pinmux = <PINMUX_GPIO50__FUNC_SCL3>, 232 - <PINMUX_GPIO51__FUNC_SDA3>; 233 - mediatek,pull-down-adv = <2>; 229 + i2c1_pins_a: i2c1-pins { 230 + pins { 231 + pinmux = <PINMUX_GPIO50__FUNC_SCL3>, 232 + <PINMUX_GPIO51__FUNC_SDA3>; 233 + mediatek,pull-down-adv = <2>; 234 + }; 234 235 }; 235 - }; 236 236 }; 237 237 };
+38 -38
Documentation/devicetree/bindings/pinctrl/mediatek,mt8192-pinctrl.yaml
··· 142 142 143 143 examples: 144 144 - | 145 - #include <dt-bindings/pinctrl/mt8192-pinfunc.h> 146 - #include <dt-bindings/interrupt-controller/arm-gic.h> 147 - pio: pinctrl@10005000 { 148 - compatible = "mediatek,mt8192-pinctrl"; 149 - reg = <0x10005000 0x1000>, 150 - <0x11c20000 0x1000>, 151 - <0x11d10000 0x1000>, 152 - <0x11d30000 0x1000>, 153 - <0x11d40000 0x1000>, 154 - <0x11e20000 0x1000>, 155 - <0x11e70000 0x1000>, 156 - <0x11ea0000 0x1000>, 157 - <0x11f20000 0x1000>, 158 - <0x11f30000 0x1000>, 159 - <0x1000b000 0x1000>; 160 - reg-names = "iocfg0", "iocfg_rm", "iocfg_bm", 161 - "iocfg_bl", "iocfg_br", "iocfg_lm", 162 - "iocfg_lb", "iocfg_rt", "iocfg_lt", 163 - "iocfg_tl", "eint"; 164 - gpio-controller; 165 - #gpio-cells = <2>; 166 - gpio-ranges = <&pio 0 0 220>; 167 - interrupt-controller; 168 - interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH 0>; 169 - #interrupt-cells = <2>; 145 + #include <dt-bindings/pinctrl/mt8192-pinfunc.h> 146 + #include <dt-bindings/interrupt-controller/arm-gic.h> 147 + pio: pinctrl@10005000 { 148 + compatible = "mediatek,mt8192-pinctrl"; 149 + reg = <0x10005000 0x1000>, 150 + <0x11c20000 0x1000>, 151 + <0x11d10000 0x1000>, 152 + <0x11d30000 0x1000>, 153 + <0x11d40000 0x1000>, 154 + <0x11e20000 0x1000>, 155 + <0x11e70000 0x1000>, 156 + <0x11ea0000 0x1000>, 157 + <0x11f20000 0x1000>, 158 + <0x11f30000 0x1000>, 159 + <0x1000b000 0x1000>; 160 + reg-names = "iocfg0", "iocfg_rm", "iocfg_bm", 161 + "iocfg_bl", "iocfg_br", "iocfg_lm", 162 + "iocfg_lb", "iocfg_rt", "iocfg_lt", 163 + "iocfg_tl", "eint"; 164 + gpio-controller; 165 + #gpio-cells = <2>; 166 + gpio-ranges = <&pio 0 0 220>; 167 + interrupt-controller; 168 + interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH 0>; 169 + #interrupt-cells = <2>; 170 170 171 - spi1-default-pins { 172 - pins-cs-mosi-clk { 173 - pinmux = <PINMUX_GPIO157__FUNC_SPI1_A_CSB>, 174 - <PINMUX_GPIO159__FUNC_SPI1_A_MO>, 175 - <PINMUX_GPIO156__FUNC_SPI1_A_CLK>; 176 - bias-disable; 177 - }; 178 - 179 - pins-miso { 180 - pinmux = <PINMUX_GPIO158__FUNC_SPI1_A_MI>; 181 - bias-pull-down; 182 - }; 183 - }; 171 + spi1-default-pins { 172 + pins-cs-mosi-clk { 173 + pinmux = <PINMUX_GPIO157__FUNC_SPI1_A_CSB>, 174 + <PINMUX_GPIO159__FUNC_SPI1_A_MO>, 175 + <PINMUX_GPIO156__FUNC_SPI1_A_CLK>; 176 + bias-disable; 184 177 }; 178 + 179 + pins-miso { 180 + pinmux = <PINMUX_GPIO158__FUNC_SPI1_A_MI>; 181 + bias-pull-down; 182 + }; 183 + }; 184 + };