Skip to content

Commit e7bd3e2

Browse files
committed
Merge tag 'devicetree-fixes-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull Devicetree fixes from Rob Herring: - Update checkpatch.pl to use DT vendor-prefixes.yaml - Fix DT binding references to files converted to DT schema - Clean-up Arm CPU binding examples to match schema - Add Sifive block versioning scheme documentation - Pass binding directory base to validation tools for reference lookups * tag 'devicetree-fixes-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: checkpatch.pl: Update DT vendor prefix check dt: bindings: mtd: replace references to nand.txt with nand-controller.yaml dt-bindings: interrupt-controller: arm,gic: Fix schema errors in example dt-bindings: arm: Clean up CPU binding examples dt: fix refs that were renamed to json with the same file name dt-bindings: Pass binding directory to validation tools dt-bindings: sifive: describe sifive-blocks versioning
2 parents 86c2f5d + 852d095 commit e7bd3e2

27 files changed

+108
-68
lines changed

Documentation/devicetree/bindings/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DT_MK_SCHEMA ?= dt-mk-schema
55
DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u)
66

77
quiet_cmd_chk_binding = CHKDT $(patsubst $(srctree)/%,%,$<)
8-
cmd_chk_binding = $(DT_DOC_CHECKER) $< ; \
8+
cmd_chk_binding = $(DT_DOC_CHECKER) -u $(srctree)/$(src) $< ; \
99
$(DT_EXTRACT_EX) $< > $@
1010

1111
$(obj)/%.example.dts: $(src)/%.yaml FORCE

Documentation/devicetree/bindings/arm/arm-boards

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Example:
216216
#size-cells = <0>;
217217

218218
A57_0: cpu@0 {
219-
compatible = "arm,cortex-a57","arm,armv8";
219+
compatible = "arm,cortex-a57";
220220
reg = <0x0 0x0>;
221221
device_type = "cpu";
222222
enable-method = "psci";
@@ -225,7 +225,7 @@ Example:
225225
.....
226226

227227
A53_0: cpu@100 {
228-
compatible = "arm,cortex-a53","arm,armv8";
228+
compatible = "arm,cortex-a53";
229229
reg = <0x0 0x100>;
230230
device_type = "cpu";
231231
enable-method = "psci";

Documentation/devicetree/bindings/arm/cpu-capacity.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ cpus {
118118
};
119119

120120
A57_0: cpu@0 {
121-
compatible = "arm,cortex-a57","arm,armv8";
121+
compatible = "arm,cortex-a57";
122122
reg = <0x0 0x0>;
123123
device_type = "cpu";
124124
enable-method = "psci";
@@ -129,7 +129,7 @@ cpus {
129129
};
130130

131131
A57_1: cpu@1 {
132-
compatible = "arm,cortex-a57","arm,armv8";
132+
compatible = "arm,cortex-a57";
133133
reg = <0x0 0x1>;
134134
device_type = "cpu";
135135
enable-method = "psci";
@@ -140,7 +140,7 @@ cpus {
140140
};
141141

142142
A53_0: cpu@100 {
143-
compatible = "arm,cortex-a53","arm,armv8";
143+
compatible = "arm,cortex-a53";
144144
reg = <0x0 0x100>;
145145
device_type = "cpu";
146146
enable-method = "psci";
@@ -151,7 +151,7 @@ cpus {
151151
};
152152

153153
A53_1: cpu@101 {
154-
compatible = "arm,cortex-a53","arm,armv8";
154+
compatible = "arm,cortex-a53";
155155
reg = <0x0 0x101>;
156156
device_type = "cpu";
157157
enable-method = "psci";
@@ -162,7 +162,7 @@ cpus {
162162
};
163163

164164
A53_2: cpu@102 {
165-
compatible = "arm,cortex-a53","arm,armv8";
165+
compatible = "arm,cortex-a53";
166166
reg = <0x0 0x102>;
167167
device_type = "cpu";
168168
enable-method = "psci";
@@ -173,7 +173,7 @@ cpus {
173173
};
174174

175175
A53_3: cpu@103 {
176-
compatible = "arm,cortex-a53","arm,armv8";
176+
compatible = "arm,cortex-a53";
177177
reg = <0x0 0x103>;
178178
device_type = "cpu";
179179
enable-method = "psci";

Documentation/devicetree/bindings/arm/omap/crossbar.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Examples:
4141
Consumer:
4242
========
4343
See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt and
44-
Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt for
44+
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml for
4545
further details.
4646

4747
An interrupt consumer on an SoC using crossbar will use:

Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ board device tree, including the system base clock, as selected by XOM[0]
3535
pin of the SoC. Refer to generic fixed rate clock bindings
3636
documentation[1] for more information how to specify these clocks.
3737

38-
[1] Documentation/devicetree/bindings/clock/fixed-clock.txt
38+
[1] Documentation/devicetree/bindings/clock/fixed-clock.yaml
3939

4040
Example: Clock controller node:
4141

Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ properties:
9292
minItems: 2
9393
maxItems: 4
9494

95+
ranges: true
96+
9597
interrupts:
9698
description: Interrupt source of the parent interrupt controller on
9799
secondary GICs, or VGIC maintenance interrupt on primary GIC (see
@@ -197,28 +199,28 @@ examples:
197199
interrupt-controller@e1101000 {
198200
compatible = "arm,gic-400";
199201
#interrupt-cells = <3>;
200-
#address-cells = <2>;
201-
#size-cells = <2>;
202+
#address-cells = <1>;
203+
#size-cells = <1>;
202204
interrupt-controller;
203205
interrupts = <1 8 0xf04>;
204-
ranges = <0 0 0 0xe1100000 0 0x100000>;
205-
reg = <0x0 0xe1110000 0 0x01000>,
206-
<0x0 0xe112f000 0 0x02000>,
207-
<0x0 0xe1140000 0 0x10000>,
208-
<0x0 0xe1160000 0 0x10000>;
206+
ranges = <0 0xe1100000 0x100000>;
207+
reg = <0xe1110000 0x01000>,
208+
<0xe112f000 0x02000>,
209+
<0xe1140000 0x10000>,
210+
<0xe1160000 0x10000>;
209211
210-
v2m0: v2m@8000 {
212+
v2m0: v2m@80000 {
211213
compatible = "arm,gic-v2m-frame";
212214
msi-controller;
213-
reg = <0x0 0x80000 0 0x1000>;
215+
reg = <0x80000 0x1000>;
214216
};
215217
216218
//...
217219
218-
v2mN: v2m@9000 {
220+
v2mN: v2m@90000 {
219221
compatible = "arm,gic-v2m-frame";
220222
msi-controller;
221-
reg = <0x0 0x90000 0 0x1000>;
223+
reg = <0x90000 0x1000>;
222224
};
223225
};
224226
...

Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Required properties:
2323
- marvell,spi-base : List of GIC base SPI interrupts, one for each
2424
ODMI frame. Those SPI interrupts are 0-based,
2525
i.e marvell,spi-base = <128> will use SPI #96.
26-
See Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt
26+
See Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
2727
for details about the GIC Device Tree binding.
2828

2929
Example:

Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Optional properties:
1515
- power-supply: specifies the power source. It can either be a regulator
1616
or a gpio which enables a regulator, i.e. a regulator-fixed as
1717
described in
18-
Documentation/devicetree/bindings/regulator/fixed-regulator.txt
18+
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
1919

2020
Example:
2121

Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Optional children nodes:
2424
Children nodes represent the available nand chips.
2525

2626
Other properties:
27-
see Documentation/devicetree/bindings/mtd/nand.txt for generic bindings.
27+
see Documentation/devicetree/bindings/mtd/nand-controller.yaml for generic bindings.
2828

2929
Example demonstrate on AXG SoC:
3030

Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ Required properties:
101101
number (e.g., 0, 1, 2, etc.)
102102
- #address-cells : see partition.txt
103103
- #size-cells : see partition.txt
104-
- nand-ecc-strength : see nand.txt
105-
- nand-ecc-step-size : must be 512 or 1024. See nand.txt
104+
- nand-ecc-strength : see nand-controller.yaml
105+
- nand-ecc-step-size : must be 512 or 1024. See nand-controller.yaml
106106

107107
Optional properties:
108108
- nand-on-flash-bbt : boolean, to enable the on-flash BBT for this
109-
chip-select. See nand.txt
109+
chip-select. See nand-controller.yaml
110110
- brcm,nand-oob-sector-size : integer, to denote the spare area sector size
111111
expected for the ECC layout in use. This size, in
112112
addition to the strength and step-size,

0 commit comments

Comments
 (0)