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: iio: 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>
Link: https://patch.msgid.link/20250324125313.82226-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
9ca04c5e bb8d952a

+51 -51
+51 -51
Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
··· 498 498 examples: 499 499 - | 500 500 // Example 1: with stm32f429, ADC1, single-ended channel 8 501 - adc123: adc@40012000 { 501 + adc123: adc@40012000 { 502 502 compatible = "st,stm32f4-adc-core"; 503 503 reg = <0x40012000 0x400>; 504 504 interrupts = <18>; ··· 512 512 #address-cells = <1>; 513 513 #size-cells = <0>; 514 514 adc@0 { 515 - compatible = "st,stm32f4-adc"; 516 - #io-channel-cells = <1>; 517 - reg = <0x0>; 518 - clocks = <&rcc 0 168>; 519 - interrupt-parent = <&adc123>; 520 - interrupts = <0>; 521 - st,adc-channels = <8>; 522 - dmas = <&dma2 0 0 0x400 0x0>; 523 - dma-names = "rx"; 524 - assigned-resolution-bits = <8>; 515 + compatible = "st,stm32f4-adc"; 516 + #io-channel-cells = <1>; 517 + reg = <0x0>; 518 + clocks = <&rcc 0 168>; 519 + interrupt-parent = <&adc123>; 520 + interrupts = <0>; 521 + st,adc-channels = <8>; 522 + dmas = <&dma2 0 0 0x400 0x0>; 523 + dma-names = "rx"; 524 + assigned-resolution-bits = <8>; 525 525 }; 526 526 // ... 527 527 // other adc child nodes follow... 528 - }; 528 + }; 529 529 530 530 - | 531 531 // Example 2: with stm32mp157c to setup ADC1 with: 532 532 // - channels 0 & 1 as single-ended 533 533 // - channels 2 & 3 as differential (with resp. 6 & 7 negative inputs) 534 - #include <dt-bindings/interrupt-controller/arm-gic.h> 535 - #include <dt-bindings/clock/stm32mp1-clks.h> 536 - adc12: adc@48003000 { 534 + #include <dt-bindings/interrupt-controller/arm-gic.h> 535 + #include <dt-bindings/clock/stm32mp1-clks.h> 536 + adc12: adc@48003000 { 537 537 compatible = "st,stm32mp1-adc-core"; 538 538 reg = <0x48003000 0x400>; 539 539 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, ··· 550 550 #address-cells = <1>; 551 551 #size-cells = <0>; 552 552 adc@0 { 553 - compatible = "st,stm32mp1-adc"; 554 - #io-channel-cells = <1>; 555 - reg = <0x0>; 556 - interrupt-parent = <&adc12>; 557 - interrupts = <0>; 558 - st,adc-channels = <0 1>; 559 - st,adc-diff-channels = <2 6>, <3 7>; 560 - st,min-sample-time-nsecs = <5000>; 561 - dmas = <&dmamux1 9 0x400 0x05>; 562 - dma-names = "rx"; 553 + compatible = "st,stm32mp1-adc"; 554 + #io-channel-cells = <1>; 555 + reg = <0x0>; 556 + interrupt-parent = <&adc12>; 557 + interrupts = <0>; 558 + st,adc-channels = <0 1>; 559 + st,adc-diff-channels = <2 6>, <3 7>; 560 + st,min-sample-time-nsecs = <5000>; 561 + dmas = <&dmamux1 9 0x400 0x05>; 562 + dma-names = "rx"; 563 563 }; 564 564 // ... 565 565 // other adc child node follow... 566 - }; 566 + }; 567 567 568 568 - | 569 569 // Example 3: with stm32mp157c to setup ADC2 with: 570 570 // - internal channels 13, 14, 15. 571 - #include <dt-bindings/interrupt-controller/arm-gic.h> 572 - #include <dt-bindings/clock/stm32mp1-clks.h> 573 - adc122: adc@48003000 { 571 + #include <dt-bindings/interrupt-controller/arm-gic.h> 572 + #include <dt-bindings/clock/stm32mp1-clks.h> 573 + adc122: adc@48003000 { 574 574 compatible = "st,stm32mp1-adc-core"; 575 575 reg = <0x48003000 0x400>; 576 576 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, ··· 587 587 #address-cells = <1>; 588 588 #size-cells = <0>; 589 589 adc@100 { 590 - compatible = "st,stm32mp1-adc"; 591 - #io-channel-cells = <1>; 592 - reg = <0x100>; 593 - interrupts = <1>; 594 - #address-cells = <1>; 595 - #size-cells = <0>; 596 - channel@13 { 597 - reg = <13>; 598 - label = "vrefint"; 599 - st,min-sample-time-ns = <9000>; 600 - }; 601 - channel@14 { 602 - reg = <14>; 603 - label = "vddcore"; 604 - st,min-sample-time-ns = <9000>; 605 - }; 606 - channel@15 { 607 - reg = <15>; 608 - label = "vbat"; 609 - st,min-sample-time-ns = <9000>; 610 - }; 590 + compatible = "st,stm32mp1-adc"; 591 + #io-channel-cells = <1>; 592 + reg = <0x100>; 593 + interrupts = <1>; 594 + #address-cells = <1>; 595 + #size-cells = <0>; 596 + channel@13 { 597 + reg = <13>; 598 + label = "vrefint"; 599 + st,min-sample-time-ns = <9000>; 600 + }; 601 + channel@14 { 602 + reg = <14>; 603 + label = "vddcore"; 604 + st,min-sample-time-ns = <9000>; 605 + }; 606 + channel@15 { 607 + reg = <15>; 608 + label = "vbat"; 609 + st,min-sample-time-ns = <9000>; 610 + }; 611 611 }; 612 - }; 612 + }; 613 613 614 614 ...