Skip to content

Commit 0121898

Browse files
krzkrobherring
authored andcommitted
dt-bindings: 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. Acked-by: Ulf Hansson <[email protected]> # For MMC Acked-by: Lee Jones <[email protected]> Acked-by: Thierry Reding <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> # renesas Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 7ef2310 commit 0121898

19 files changed

+354
-354
lines changed

Documentation/devicetree/bindings/arm/arm,trace-buffer-extension.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ additionalProperties: false
4141
examples:
4242

4343
- |
44-
#include <dt-bindings/interrupt-controller/arm-gic.h>
44+
#include <dt-bindings/interrupt-controller/arm-gic.h>
4545
46-
trbe {
47-
compatible = "arm,trace-buffer-extension";
48-
interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
49-
};
46+
trbe {
47+
compatible = "arm,trace-buffer-extension";
48+
interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
49+
};
5050
...

Documentation/devicetree/bindings/arm/stm32/st,mlahb.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ unevaluatedProperties: false
5555
examples:
5656
- |
5757
ahb {
58-
compatible = "st,mlahb", "simple-bus";
59-
#address-cells = <1>;
60-
#size-cells = <1>;
61-
ranges;
62-
dma-ranges = <0x00000000 0x38000000 0x10000>,
63-
<0x10000000 0x10000000 0x60000>,
64-
<0x30000000 0x30000000 0x60000>;
58+
compatible = "st,mlahb", "simple-bus";
59+
#address-cells = <1>;
60+
#size-cells = <1>;
61+
ranges;
62+
dma-ranges = <0x00000000 0x38000000 0x10000>,
63+
<0x10000000 0x10000000 0x60000>,
64+
<0x30000000 0x30000000 0x60000>;
6565
66-
m4_rproc: m4@10000000 {
67-
reg = <0x10000000 0x40000>;
68-
};
66+
m4_rproc: m4@10000000 {
67+
reg = <0x10000000 0x40000>;
68+
};
6969
};
7070
7171
...

Documentation/devicetree/bindings/dsp/mediatek,mt8195-dsp.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,25 @@ examples:
8181
#include <dt-bindings/interrupt-controller/arm-gic.h>
8282
#include <dt-bindings/interrupt-controller/irq.h>
8383
dsp@10803000 {
84-
compatible = "mediatek,mt8195-dsp";
85-
reg = <0x10803000 0x1000>,
86-
<0x10840000 0x40000>;
87-
reg-names = "cfg", "sram";
88-
clocks = <&topckgen 10>, //CLK_TOP_ADSP
89-
<&clk26m>,
90-
<&topckgen 107>, //CLK_TOP_AUDIO_LOCAL_BUS
91-
<&topckgen 136>, //CLK_TOP_MAINPLL_D7_D2
92-
<&scp_adsp 0>, //CLK_SCP_ADSP_AUDIODSP
93-
<&topckgen 34>; //CLK_TOP_AUDIO_H
94-
clock-names = "adsp_sel",
95-
"clk26m_ck",
96-
"audio_local_bus",
97-
"mainpll_d7_d2",
98-
"scp_adsp_audiodsp",
99-
"audio_h";
100-
memory-region = <&adsp_dma_mem_reserved>,
101-
<&adsp_mem_reserved>;
102-
power-domains = <&spm 6>; //MT8195_POWER_DOMAIN_ADSP
103-
mbox-names = "rx", "tx";
104-
mboxes = <&adsp_mailbox0>, <&adsp_mailbox1>;
84+
compatible = "mediatek,mt8195-dsp";
85+
reg = <0x10803000 0x1000>,
86+
<0x10840000 0x40000>;
87+
reg-names = "cfg", "sram";
88+
clocks = <&topckgen 10>, //CLK_TOP_ADSP
89+
<&clk26m>,
90+
<&topckgen 107>, //CLK_TOP_AUDIO_LOCAL_BUS
91+
<&topckgen 136>, //CLK_TOP_MAINPLL_D7_D2
92+
<&scp_adsp 0>, //CLK_SCP_ADSP_AUDIODSP
93+
<&topckgen 34>; //CLK_TOP_AUDIO_H
94+
clock-names = "adsp_sel",
95+
"clk26m_ck",
96+
"audio_local_bus",
97+
"mainpll_d7_d2",
98+
"scp_adsp_audiodsp",
99+
"audio_h";
100+
memory-region = <&adsp_dma_mem_reserved>,
101+
<&adsp_mem_reserved>;
102+
power-domains = <&spm 6>; //MT8195_POWER_DOMAIN_ADSP
103+
mbox-names = "rx", "tx";
104+
mboxes = <&adsp_mailbox0>, <&adsp_mailbox1>;
105105
};

Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,33 @@ examples:
6262
#include <dt-bindings/gpio/gpio.h>
6363
6464
npe: npe@c8006000 {
65-
compatible = "intel,ixp4xx-network-processing-engine";
66-
reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>;
67-
#address-cells = <1>;
68-
#size-cells = <0>;
65+
compatible = "intel,ixp4xx-network-processing-engine";
66+
reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>;
67+
#address-cells = <1>;
68+
#size-cells = <0>;
6969
70-
hss@0 {
71-
compatible = "intel,ixp4xx-hss";
72-
reg = <0>;
73-
intel,npe-handle = <&npe 0>;
74-
intel,queue-chl-rxtrig = <&qmgr 12>;
75-
intel,queue-chl-txready = <&qmgr 34>;
76-
intel,queue-pkt-rx = <&qmgr 13>;
77-
intel,queue-pkt-tx = <&qmgr 14>, <&qmgr 15>, <&qmgr 16>, <&qmgr 17>;
78-
intel,queue-pkt-rxfree = <&qmgr 18>, <&qmgr 19>, <&qmgr 20>, <&qmgr 21>;
79-
intel,queue-pkt-txdone = <&qmgr 22>;
80-
cts-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
81-
rts-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
82-
dcd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
83-
dtr-gpios = <&gpio_74 2 GPIO_ACTIVE_LOW>;
84-
clk-internal-gpios = <&gpio_74 0 GPIO_ACTIVE_HIGH>;
85-
};
70+
hss@0 {
71+
compatible = "intel,ixp4xx-hss";
72+
reg = <0>;
73+
intel,npe-handle = <&npe 0>;
74+
intel,queue-chl-rxtrig = <&qmgr 12>;
75+
intel,queue-chl-txready = <&qmgr 34>;
76+
intel,queue-pkt-rx = <&qmgr 13>;
77+
intel,queue-pkt-tx = <&qmgr 14>, <&qmgr 15>, <&qmgr 16>, <&qmgr 17>;
78+
intel,queue-pkt-rxfree = <&qmgr 18>, <&qmgr 19>, <&qmgr 20>, <&qmgr 21>;
79+
intel,queue-pkt-txdone = <&qmgr 22>;
80+
cts-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
81+
rts-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
82+
dcd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
83+
dtr-gpios = <&gpio_74 2 GPIO_ACTIVE_LOW>;
84+
clk-internal-gpios = <&gpio_74 0 GPIO_ACTIVE_HIGH>;
85+
};
8686
87-
crypto {
88-
compatible = "intel,ixp4xx-crypto";
89-
intel,npe-handle = <&npe 2>;
90-
queue-rx = <&qmgr 30>;
91-
queue-txready = <&qmgr 29>;
92-
};
87+
crypto {
88+
compatible = "intel,ixp4xx-crypto";
89+
intel,npe-handle = <&npe 2>;
90+
queue-rx = <&qmgr 30>;
91+
queue-txready = <&qmgr 29>;
92+
};
9393
};
9494
...

Documentation/devicetree/bindings/fpga/xlnx,versal-fpga.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ additionalProperties: false
2727
examples:
2828
- |
2929
versal_fpga: versal-fpga {
30-
compatible = "xlnx,versal-fpga";
30+
compatible = "xlnx,versal-fpga";
3131
};
3232
3333
...

Documentation/devicetree/bindings/iommu/riscv,iommu.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ examples:
139139
140140
/* The IOMMU programming interface uses slot 00:01.0 */
141141
iommu0: iommu@1,0 {
142-
compatible = "pci1efd,edf1", "riscv,pci-iommu";
143-
reg = <0x800 0 0 0 0>;
144-
#iommu-cells = <1>;
142+
compatible = "pci1efd,edf1", "riscv,pci-iommu";
143+
reg = <0x800 0 0 0 0>;
144+
#iommu-cells = <1>;
145145
};
146146
};
147147
};

Documentation/devicetree/bindings/leds/leds-mt6360.yaml

Lines changed: 99 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -87,106 +87,105 @@ additionalProperties: false
8787

8888
examples:
8989
- |
90-
#include <dt-bindings/leds/common.h>
91-
led-controller {
92-
compatible = "mediatek,mt6360-led";
93-
#address-cells = <1>;
94-
#size-cells = <0>;
95-
96-
multi-led@0 {
97-
reg = <0>;
98-
function = LED_FUNCTION_INDICATOR;
99-
color = <LED_COLOR_ID_RGB>;
100-
led-max-microamp = <24000>;
101-
#address-cells = <1>;
102-
#size-cells = <0>;
103-
led@0 {
104-
reg = <0>;
105-
color = <LED_COLOR_ID_RED>;
106-
};
107-
led@1 {
108-
reg = <1>;
109-
color = <LED_COLOR_ID_GREEN>;
110-
};
111-
led@2 {
112-
reg = <2>;
113-
color = <LED_COLOR_ID_BLUE>;
114-
};
115-
};
116-
led@3 {
117-
reg = <3>;
118-
function = LED_FUNCTION_INDICATOR;
119-
color = <LED_COLOR_ID_WHITE>;
120-
led-max-microamp = <150000>;
121-
};
122-
led@4 {
123-
reg = <4>;
124-
function = LED_FUNCTION_FLASH;
125-
color = <LED_COLOR_ID_WHITE>;
126-
function-enumerator = <1>;
127-
led-max-microamp = <200000>;
128-
flash-max-microamp = <500000>;
129-
flash-max-timeout-us = <1024000>;
130-
};
131-
led@5 {
132-
reg = <5>;
133-
function = LED_FUNCTION_FLASH;
134-
color = <LED_COLOR_ID_WHITE>;
135-
function-enumerator = <2>;
136-
led-max-microamp = <200000>;
137-
flash-max-microamp = <500000>;
138-
flash-max-timeout-us = <1024000>;
139-
};
140-
};
90+
#include <dt-bindings/leds/common.h>
91+
led-controller {
92+
compatible = "mediatek,mt6360-led";
93+
#address-cells = <1>;
94+
#size-cells = <0>;
95+
96+
multi-led@0 {
97+
reg = <0>;
98+
function = LED_FUNCTION_INDICATOR;
99+
color = <LED_COLOR_ID_RGB>;
100+
led-max-microamp = <24000>;
101+
#address-cells = <1>;
102+
#size-cells = <0>;
103+
led@0 {
104+
reg = <0>;
105+
color = <LED_COLOR_ID_RED>;
106+
};
107+
led@1 {
108+
reg = <1>;
109+
color = <LED_COLOR_ID_GREEN>;
110+
};
111+
led@2 {
112+
reg = <2>;
113+
color = <LED_COLOR_ID_BLUE>;
114+
};
115+
};
116+
led@3 {
117+
reg = <3>;
118+
function = LED_FUNCTION_INDICATOR;
119+
color = <LED_COLOR_ID_WHITE>;
120+
led-max-microamp = <150000>;
121+
};
122+
led@4 {
123+
reg = <4>;
124+
function = LED_FUNCTION_FLASH;
125+
color = <LED_COLOR_ID_WHITE>;
126+
function-enumerator = <1>;
127+
led-max-microamp = <200000>;
128+
flash-max-microamp = <500000>;
129+
flash-max-timeout-us = <1024000>;
130+
};
131+
led@5 {
132+
reg = <5>;
133+
function = LED_FUNCTION_FLASH;
134+
color = <LED_COLOR_ID_WHITE>;
135+
function-enumerator = <2>;
136+
led-max-microamp = <200000>;
137+
flash-max-microamp = <500000>;
138+
flash-max-timeout-us = <1024000>;
139+
};
140+
};
141141
142142
- |
143-
144-
led-controller {
145-
compatible = "mediatek,mt6360-led";
146-
#address-cells = <1>;
147-
#size-cells = <0>;
148-
149-
led@0 {
150-
reg = <0>;
151-
function = LED_FUNCTION_INDICATOR;
152-
color = <LED_COLOR_ID_RED>;
153-
led-max-microamp = <24000>;
154-
};
155-
led@1 {
156-
reg = <1>;
157-
function = LED_FUNCTION_INDICATOR;
158-
color = <LED_COLOR_ID_GREEN>;
159-
led-max-microamp = <24000>;
160-
};
161-
led@2 {
162-
reg = <2>;
163-
function = LED_FUNCTION_INDICATOR;
164-
color = <LED_COLOR_ID_BLUE>;
165-
led-max-microamp = <24000>;
166-
};
167-
led@3 {
168-
reg = <3>;
169-
function = LED_FUNCTION_INDICATOR;
170-
color = <LED_COLOR_ID_WHITE>;
171-
led-max-microamp = <150000>;
172-
};
173-
led@4 {
174-
reg = <4>;
175-
function = LED_FUNCTION_FLASH;
176-
color = <LED_COLOR_ID_WHITE>;
177-
function-enumerator = <1>;
178-
led-max-microamp = <200000>;
179-
flash-max-microamp = <500000>;
180-
flash-max-timeout-us = <1024000>;
181-
};
182-
led@5 {
183-
reg = <5>;
184-
function = LED_FUNCTION_FLASH;
185-
color = <LED_COLOR_ID_WHITE>;
186-
function-enumerator = <2>;
187-
led-max-microamp = <200000>;
188-
flash-max-microamp = <500000>;
189-
flash-max-timeout-us = <1024000>;
190-
};
191-
};
143+
led-controller {
144+
compatible = "mediatek,mt6360-led";
145+
#address-cells = <1>;
146+
#size-cells = <0>;
147+
148+
led@0 {
149+
reg = <0>;
150+
function = LED_FUNCTION_INDICATOR;
151+
color = <LED_COLOR_ID_RED>;
152+
led-max-microamp = <24000>;
153+
};
154+
led@1 {
155+
reg = <1>;
156+
function = LED_FUNCTION_INDICATOR;
157+
color = <LED_COLOR_ID_GREEN>;
158+
led-max-microamp = <24000>;
159+
};
160+
led@2 {
161+
reg = <2>;
162+
function = LED_FUNCTION_INDICATOR;
163+
color = <LED_COLOR_ID_BLUE>;
164+
led-max-microamp = <24000>;
165+
};
166+
led@3 {
167+
reg = <3>;
168+
function = LED_FUNCTION_INDICATOR;
169+
color = <LED_COLOR_ID_WHITE>;
170+
led-max-microamp = <150000>;
171+
};
172+
led@4 {
173+
reg = <4>;
174+
function = LED_FUNCTION_FLASH;
175+
color = <LED_COLOR_ID_WHITE>;
176+
function-enumerator = <1>;
177+
led-max-microamp = <200000>;
178+
flash-max-microamp = <500000>;
179+
flash-max-timeout-us = <1024000>;
180+
};
181+
led@5 {
182+
reg = <5>;
183+
function = LED_FUNCTION_FLASH;
184+
color = <LED_COLOR_ID_WHITE>;
185+
function-enumerator = <2>;
186+
led-max-microamp = <200000>;
187+
flash-max-microamp = <500000>;
188+
flash-max-timeout-us = <1024000>;
189+
};
190+
};
192191
...

0 commit comments

Comments
 (0)