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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mfd: 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. While re-indenting, drop
unused labels.

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>
Link: https://lore.kernel.org/r/20250501145125.59952-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
54a425bd f9a9ad91

+192 -192
+73 -73
Documentation/devicetree/bindings/mfd/iqs62x.yaml
··· 60 60 #include <dt-bindings/interrupt-controller/irq.h> 61 61 62 62 i2c { 63 - #address-cells = <1>; 64 - #size-cells = <0>; 63 + #address-cells = <1>; 64 + #size-cells = <0>; 65 65 66 - iqs620a@44 { 67 - compatible = "azoteq,iqs620a"; 68 - reg = <0x44>; 69 - interrupt-parent = <&gpio>; 70 - interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 66 + iqs620a@44 { 67 + compatible = "azoteq,iqs620a"; 68 + reg = <0x44>; 69 + interrupt-parent = <&gpio>; 70 + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 71 71 72 - keys { 73 - compatible = "azoteq,iqs620a-keys"; 72 + keys { 73 + compatible = "azoteq,iqs620a-keys"; 74 74 75 - linux,keycodes = <KEY_SELECT>, 76 - <KEY_MENU>, 77 - <KEY_OK>, 78 - <KEY_MENU>; 75 + linux,keycodes = <KEY_SELECT>, 76 + <KEY_MENU>, 77 + <KEY_OK>, 78 + <KEY_MENU>; 79 79 80 - hall-switch-south { 81 - linux,code = <SW_LID>; 82 - azoteq,use-prox; 83 - }; 84 - }; 85 - 86 - iqs620a_pwm: pwm { 87 - compatible = "azoteq,iqs620a-pwm"; 88 - #pwm-cells = <2>; 89 - }; 80 + hall-switch-south { 81 + linux,code = <SW_LID>; 82 + azoteq,use-prox; 83 + }; 90 84 }; 85 + 86 + iqs620a_pwm: pwm { 87 + compatible = "azoteq,iqs620a-pwm"; 88 + #pwm-cells = <2>; 89 + }; 90 + }; 91 91 }; 92 92 93 93 - | ··· 96 96 #include <dt-bindings/interrupt-controller/irq.h> 97 97 98 98 i2c { 99 - #address-cells = <1>; 100 - #size-cells = <0>; 99 + #address-cells = <1>; 100 + #size-cells = <0>; 101 101 102 - iqs620a@44 { 103 - compatible = "azoteq,iqs620a"; 104 - reg = <0x44>; 105 - interrupt-parent = <&gpio>; 106 - interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 102 + iqs620a@44 { 103 + compatible = "azoteq,iqs620a"; 104 + reg = <0x44>; 105 + interrupt-parent = <&gpio>; 106 + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 107 107 108 - firmware-name = "iqs620a_coil.bin"; 108 + firmware-name = "iqs620a_coil.bin"; 109 109 110 - keys { 111 - compatible = "azoteq,iqs620a-keys"; 110 + keys { 111 + compatible = "azoteq,iqs620a-keys"; 112 112 113 - linux,keycodes = <0>, 114 - <0>, 115 - <0>, 116 - <0>, 117 - <0>, 118 - <0>, 119 - <KEY_MUTE>; 113 + linux,keycodes = <0>, 114 + <0>, 115 + <0>, 116 + <0>, 117 + <0>, 118 + <0>, 119 + <KEY_MUTE>; 120 120 121 - hall-switch-north { 122 - linux,code = <SW_DOCK>; 123 - }; 121 + hall-switch-north { 122 + linux,code = <SW_DOCK>; 123 + }; 124 124 125 - hall-switch-south { 126 - linux,code = <SW_TABLET_MODE>; 127 - }; 128 - }; 125 + hall-switch-south { 126 + linux,code = <SW_TABLET_MODE>; 127 + }; 129 128 }; 129 + }; 130 130 }; 131 131 132 132 - | ··· 135 135 #include <dt-bindings/interrupt-controller/irq.h> 136 136 137 137 i2c { 138 - #address-cells = <1>; 139 - #size-cells = <0>; 138 + #address-cells = <1>; 139 + #size-cells = <0>; 140 140 141 - iqs624@44 { 142 - compatible = "azoteq,iqs624"; 143 - reg = <0x44>; 144 - interrupt-parent = <&gpio>; 145 - interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 141 + iqs624@44 { 142 + compatible = "azoteq,iqs624"; 143 + reg = <0x44>; 144 + interrupt-parent = <&gpio>; 145 + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; 146 146 147 - keys { 148 - compatible = "azoteq,iqs624-keys"; 147 + keys { 148 + compatible = "azoteq,iqs624-keys"; 149 149 150 - linux,keycodes = <BTN_0>, 151 - <0>, 152 - <BTN_1>, 153 - <0>, 154 - <0>, 155 - <0>, 156 - <0>, 157 - <0>, 158 - <0>, 159 - <0>, 160 - <0>, 161 - <0>, 162 - <0>, 163 - <0>, 164 - <KEY_VOLUMEUP>, 165 - <KEY_VOLUMEDOWN>; 166 - }; 150 + linux,keycodes = <BTN_0>, 151 + <0>, 152 + <BTN_1>, 153 + <0>, 154 + <0>, 155 + <0>, 156 + <0>, 157 + <0>, 158 + <0>, 159 + <0>, 160 + <0>, 161 + <0>, 162 + <0>, 163 + <0>, 164 + <KEY_VOLUMEUP>, 165 + <KEY_VOLUMEDOWN>; 167 166 }; 167 + }; 168 168 }; 169 169 170 170 ...
+12 -12
Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml
··· 48 48 - | 49 49 #include <dt-bindings/interrupt-controller/irq.h> 50 50 i2c { 51 - #address-cells = <1>; 52 - #size-cells = <0>; 51 + #address-cells = <1>; 52 + #size-cells = <0>; 53 53 54 - ec: embedded-controller@43 { 55 - pinctrl-names = "default"; 56 - pinctrl-0 = <&pinctrl_ntxec>; 54 + ec: embedded-controller@43 { 55 + pinctrl-names = "default"; 56 + pinctrl-0 = <&pinctrl_ntxec>; 57 57 58 - compatible = "netronix,ntxec"; 59 - reg = <0x43>; 60 - system-power-controller; 61 - interrupt-parent = <&gpio4>; 62 - interrupts = <11 IRQ_TYPE_EDGE_FALLING>; 63 - #pwm-cells = <2>; 64 - }; 58 + compatible = "netronix,ntxec"; 59 + reg = <0x43>; 60 + system-power-controller; 61 + interrupt-parent = <&gpio4>; 62 + interrupts = <11 IRQ_TYPE_EDGE_FALLING>; 63 + #pwm-cells = <2>; 64 + }; 65 65 };
+23 -23
Documentation/devicetree/bindings/mfd/rohm,bd9571mwv.yaml
··· 99 99 #include <dt-bindings/interrupt-controller/irq.h> 100 100 101 101 i2c { 102 - #address-cells = <1>; 103 - #size-cells = <0>; 102 + #address-cells = <1>; 103 + #size-cells = <0>; 104 104 105 - pmic: pmic@30 { 106 - compatible = "rohm,bd9571mwv"; 107 - reg = <0x30>; 108 - interrupt-parent = <&gpio2>; 109 - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 110 - interrupt-controller; 111 - #interrupt-cells = <2>; 112 - gpio-controller; 113 - #gpio-cells = <2>; 114 - rohm,ddr-backup-power = <0xf>; 115 - rohm,rstbmode-pulse; 105 + pmic: pmic@30 { 106 + compatible = "rohm,bd9571mwv"; 107 + reg = <0x30>; 108 + interrupt-parent = <&gpio2>; 109 + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 110 + interrupt-controller; 111 + #interrupt-cells = <2>; 112 + gpio-controller; 113 + #gpio-cells = <2>; 114 + rohm,ddr-backup-power = <0xf>; 115 + rohm,rstbmode-pulse; 116 116 117 - regulators { 118 - dvfs: dvfs { 119 - regulator-name = "dvfs"; 120 - regulator-min-microvolt = <750000>; 121 - regulator-max-microvolt = <1030000>; 122 - regulator-boot-on; 123 - regulator-always-on; 124 - }; 125 - }; 126 - }; 117 + regulators { 118 + dvfs: dvfs { 119 + regulator-name = "dvfs"; 120 + regulator-min-microvolt = <750000>; 121 + regulator-max-microvolt = <1030000>; 122 + regulator-boot-on; 123 + regulator-always-on; 124 + }; 125 + }; 126 + }; 127 127 };
+84 -84
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
··· 316 316 317 317 examples: 318 318 - | 319 - i2c { 320 - #address-cells = <1>; 321 - #size-cells = <0>; 319 + i2c { 320 + #address-cells = <1>; 321 + #size-cells = <0>; 322 322 323 - pmic@30 { 324 - compatible = "x-powers,axp152"; 325 - reg = <0x30>; 326 - interrupts = <0>; 327 - interrupt-controller; 328 - #interrupt-cells = <1>; 329 - }; 330 - }; 323 + pmic@30 { 324 + compatible = "x-powers,axp152"; 325 + reg = <0x30>; 326 + interrupts = <0>; 327 + interrupt-controller; 328 + #interrupt-cells = <1>; 329 + }; 330 + }; 331 331 332 332 - | 333 - #include <dt-bindings/interrupt-controller/irq.h> 333 + #include <dt-bindings/interrupt-controller/irq.h> 334 334 335 - i2c { 336 - #address-cells = <1>; 337 - #size-cells = <0>; 335 + i2c { 336 + #address-cells = <1>; 337 + #size-cells = <0>; 338 338 339 - pmic@34 { 340 - compatible = "x-powers,axp209"; 341 - reg = <0x34>; 342 - interrupt-parent = <&nmi_intc>; 343 - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 344 - interrupt-controller; 345 - #interrupt-cells = <1>; 339 + pmic@34 { 340 + compatible = "x-powers,axp209"; 341 + reg = <0x34>; 342 + interrupt-parent = <&nmi_intc>; 343 + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 344 + interrupt-controller; 345 + #interrupt-cells = <1>; 346 346 347 - ac_power_supply: ac-power { 348 - compatible = "x-powers,axp202-ac-power-supply"; 349 - }; 347 + ac_power_supply: ac-power { 348 + compatible = "x-powers,axp202-ac-power-supply"; 349 + }; 350 350 351 - axp_adc: adc { 352 - compatible = "x-powers,axp209-adc"; 353 - #io-channel-cells = <1>; 354 - }; 351 + axp_adc: adc { 352 + compatible = "x-powers,axp209-adc"; 353 + #io-channel-cells = <1>; 354 + }; 355 355 356 - axp_gpio: gpio { 357 - compatible = "x-powers,axp209-gpio"; 358 - gpio-controller; 359 - #gpio-cells = <2>; 356 + axp_gpio: gpio { 357 + compatible = "x-powers,axp209-gpio"; 358 + gpio-controller; 359 + #gpio-cells = <2>; 360 360 361 - gpio0-adc-pin { 362 - pins = "GPIO0"; 363 - function = "adc"; 364 - }; 365 - }; 361 + gpio0-adc-pin { 362 + pins = "GPIO0"; 363 + function = "adc"; 364 + }; 365 + }; 366 366 367 - battery_power_supply: battery-power { 368 - compatible = "x-powers,axp209-battery-power-supply"; 369 - }; 367 + battery_power_supply: battery-power { 368 + compatible = "x-powers,axp209-battery-power-supply"; 369 + }; 370 370 371 - regulators { 372 - /* Default work frequency for buck regulators */ 373 - x-powers,dcdc-freq = <1500>; 371 + regulators { 372 + /* Default work frequency for buck regulators */ 373 + x-powers,dcdc-freq = <1500>; 374 374 375 - reg_dcdc2: dcdc2 { 376 - regulator-always-on; 377 - regulator-min-microvolt = <1000000>; 378 - regulator-max-microvolt = <1450000>; 379 - regulator-name = "vdd-cpu"; 380 - }; 375 + reg_dcdc2: dcdc2 { 376 + regulator-always-on; 377 + regulator-min-microvolt = <1000000>; 378 + regulator-max-microvolt = <1450000>; 379 + regulator-name = "vdd-cpu"; 380 + }; 381 381 382 - reg_dcdc3: dcdc3 { 383 - regulator-always-on; 384 - regulator-min-microvolt = <1000000>; 385 - regulator-max-microvolt = <1400000>; 386 - regulator-name = "vdd-int-dll"; 387 - }; 382 + reg_dcdc3: dcdc3 { 383 + regulator-always-on; 384 + regulator-min-microvolt = <1000000>; 385 + regulator-max-microvolt = <1400000>; 386 + regulator-name = "vdd-int-dll"; 387 + }; 388 388 389 - reg_ldo1: ldo1 { 390 - /* LDO1 is a fixed output regulator */ 391 - regulator-always-on; 392 - regulator-min-microvolt = <1300000>; 393 - regulator-max-microvolt = <1300000>; 394 - regulator-name = "vdd-rtc"; 395 - }; 389 + reg_ldo1: ldo1 { 390 + /* LDO1 is a fixed output regulator */ 391 + regulator-always-on; 392 + regulator-min-microvolt = <1300000>; 393 + regulator-max-microvolt = <1300000>; 394 + regulator-name = "vdd-rtc"; 395 + }; 396 396 397 - reg_ldo2: ldo2 { 398 - regulator-always-on; 399 - regulator-min-microvolt = <3000000>; 400 - regulator-max-microvolt = <3000000>; 401 - regulator-name = "avcc"; 402 - }; 397 + reg_ldo2: ldo2 { 398 + regulator-always-on; 399 + regulator-min-microvolt = <3000000>; 400 + regulator-max-microvolt = <3000000>; 401 + regulator-name = "avcc"; 402 + }; 403 403 404 - reg_ldo3: ldo3 { 405 - regulator-name = "ldo3"; 406 - }; 404 + reg_ldo3: ldo3 { 405 + regulator-name = "ldo3"; 406 + }; 407 407 408 - reg_ldo4: ldo4 { 409 - regulator-name = "ldo4"; 410 - }; 408 + reg_ldo4: ldo4 { 409 + regulator-name = "ldo4"; 410 + }; 411 411 412 - reg_ldo5: ldo5 { 413 - regulator-name = "ldo5"; 414 - }; 415 - }; 412 + reg_ldo5: ldo5 { 413 + regulator-name = "ldo5"; 414 + }; 415 + }; 416 416 417 - usb_power_supply: usb-power { 418 - compatible = "x-powers,axp202-usb-power-supply"; 419 - }; 420 - }; 421 - }; 417 + usb_power_supply: usb-power { 418 + compatible = "x-powers,axp202-usb-power-supply"; 419 + }; 420 + }; 421 + };