aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-24 18:16:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-24 18:16:46 -0400
commite7bd3e248bc36451fdbf2a2e3a3c5a23cd0b1f6f (patch)
tree3d64fa8c37300561936ddbb0b17ab3a0cc71a365
parent86c2f5d653058798703549e1be39a819fcac0d5d (diff)
parent852d095d16a6298834839f441593f59d58a31978 (diff)
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
-rw-r--r--Documentation/devicetree/bindings/Makefile2
-rw-r--r--Documentation/devicetree/bindings/arm/arm-boards4
-rw-r--r--Documentation/devicetree/bindings/arm/cpu-capacity.txt12
-rw-r--r--Documentation/devicetree/bindings/arm/omap/crossbar.txt2
-rw-r--r--Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.txt2
-rw-r--r--Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml24
-rw-r--r--Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.txt2
-rw-r--r--Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt6
-rw-r--r--Documentation/devicetree/bindings/mtd/denali-nand.txt6
-rw-r--r--Documentation/devicetree/bindings/mtd/fsmc-nand.txt6
-rw-r--r--Documentation/devicetree/bindings/mtd/gpmc-nand.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/hisi504-nand.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/marvell-nand.txt14
-rw-r--r--Documentation/devicetree/bindings/mtd/mxc-nand.txt6
-rw-r--r--Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt6
-rw-r--r--Documentation/devicetree/bindings/mtd/oxnas-nand.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/qcom_nandc.txt4
-rw-r--r--Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt6
-rw-r--r--Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt6
-rw-r--r--Documentation/devicetree/bindings/mtd/tango-nand.txt2
-rw-r--r--Documentation/devicetree/bindings/mtd/vf610-nfc.txt8
-rw-r--r--Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt38
-rw-r--r--MAINTAINERS4
-rw-r--r--scripts/Makefile.lib2
-rwxr-xr-xscripts/checkpatch.pl4
27 files changed, 108 insertions, 68 deletions
diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile
index 63b139f9ae28..8a2774b5834b 100644
--- a/Documentation/devicetree/bindings/Makefile
+++ b/Documentation/devicetree/bindings/Makefile
@@ -5,7 +5,7 @@ DT_MK_SCHEMA ?= dt-mk-schema
5DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u) 5DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u)
6 6
7quiet_cmd_chk_binding = CHKDT $(patsubst $(srctree)/%,%,$<) 7quiet_cmd_chk_binding = CHKDT $(patsubst $(srctree)/%,%,$<)
8 cmd_chk_binding = $(DT_DOC_CHECKER) $< ; \ 8 cmd_chk_binding = $(DT_DOC_CHECKER) -u $(srctree)/$(src) $< ; \
9 $(DT_EXTRACT_EX) $< > $@ 9 $(DT_EXTRACT_EX) $< > $@
10 10
11$(obj)/%.example.dts: $(src)/%.yaml FORCE 11$(obj)/%.example.dts: $(src)/%.yaml FORCE
diff --git a/Documentation/devicetree/bindings/arm/arm-boards b/Documentation/devicetree/bindings/arm/arm-boards
index b6e810c2781a..abff8d834a6a 100644
--- a/Documentation/devicetree/bindings/arm/arm-boards
+++ b/Documentation/devicetree/bindings/arm/arm-boards
@@ -216,7 +216,7 @@ Example:
216 #size-cells = <0>; 216 #size-cells = <0>;
217 217
218 A57_0: cpu@0 { 218 A57_0: cpu@0 {
219 compatible = "arm,cortex-a57","arm,armv8"; 219 compatible = "arm,cortex-a57";
220 reg = <0x0 0x0>; 220 reg = <0x0 0x0>;
221 device_type = "cpu"; 221 device_type = "cpu";
222 enable-method = "psci"; 222 enable-method = "psci";
@@ -225,7 +225,7 @@ Example:
225 ..... 225 .....
226 226
227 A53_0: cpu@100 { 227 A53_0: cpu@100 {
228 compatible = "arm,cortex-a53","arm,armv8"; 228 compatible = "arm,cortex-a53";
229 reg = <0x0 0x100>; 229 reg = <0x0 0x100>;
230 device_type = "cpu"; 230 device_type = "cpu";
231 enable-method = "psci"; 231 enable-method = "psci";
diff --git a/Documentation/devicetree/bindings/arm/cpu-capacity.txt b/Documentation/devicetree/bindings/arm/cpu-capacity.txt
index 96fa46cb133c..380e21c5fc7e 100644
--- a/Documentation/devicetree/bindings/arm/cpu-capacity.txt
+++ b/Documentation/devicetree/bindings/arm/cpu-capacity.txt
@@ -118,7 +118,7 @@ cpus {
118 }; 118 };
119 119
120 A57_0: cpu@0 { 120 A57_0: cpu@0 {
121 compatible = "arm,cortex-a57","arm,armv8"; 121 compatible = "arm,cortex-a57";
122 reg = <0x0 0x0>; 122 reg = <0x0 0x0>;
123 device_type = "cpu"; 123 device_type = "cpu";
124 enable-method = "psci"; 124 enable-method = "psci";
@@ -129,7 +129,7 @@ cpus {
129 }; 129 };
130 130
131 A57_1: cpu@1 { 131 A57_1: cpu@1 {
132 compatible = "arm,cortex-a57","arm,armv8"; 132 compatible = "arm,cortex-a57";
133 reg = <0x0 0x1>; 133 reg = <0x0 0x1>;
134 device_type = "cpu"; 134 device_type = "cpu";
135 enable-method = "psci"; 135 enable-method = "psci";
@@ -140,7 +140,7 @@ cpus {
140 }; 140 };
141 141
142 A53_0: cpu@100 { 142 A53_0: cpu@100 {
143 compatible = "arm,cortex-a53","arm,armv8"; 143 compatible = "arm,cortex-a53";
144 reg = <0x0 0x100>; 144 reg = <0x0 0x100>;
145 device_type = "cpu"; 145 device_type = "cpu";
146 enable-method = "psci"; 146 enable-method = "psci";
@@ -151,7 +151,7 @@ cpus {
151 }; 151 };
152 152
153 A53_1: cpu@101 { 153 A53_1: cpu@101 {
154 compatible = "arm,cortex-a53","arm,armv8"; 154 compatible = "arm,cortex-a53";
155 reg = <0x0 0x101>; 155 reg = <0x0 0x101>;
156 device_type = "cpu"; 156 device_type = "cpu";
157 enable-method = "psci"; 157 enable-method = "psci";
@@ -162,7 +162,7 @@ cpus {
162 }; 162 };
163 163
164 A53_2: cpu@102 { 164 A53_2: cpu@102 {
165 compatible = "arm,cortex-a53","arm,armv8"; 165 compatible = "arm,cortex-a53";
166 reg = <0x0 0x102>; 166 reg = <0x0 0x102>;
167 device_type = "cpu"; 167 device_type = "cpu";
168 enable-method = "psci"; 168 enable-method = "psci";
@@ -173,7 +173,7 @@ cpus {
173 }; 173 };
174 174
175 A53_3: cpu@103 { 175 A53_3: cpu@103 {
176 compatible = "arm,cortex-a53","arm,armv8"; 176 compatible = "arm,cortex-a53";
177 reg = <0x0 0x103>; 177 reg = <0x0 0x103>;
178 device_type = "cpu"; 178 device_type = "cpu";
179 enable-method = "psci"; 179 enable-method = "psci";
diff --git a/Documentation/devicetree/bindings/arm/omap/crossbar.txt b/Documentation/devicetree/bindings/arm/omap/crossbar.txt
index 4cd5d873fc3a..a43e4c7aba3d 100644
--- a/Documentation/devicetree/bindings/arm/omap/crossbar.txt
+++ b/Documentation/devicetree/bindings/arm/omap/crossbar.txt
@@ -41,7 +41,7 @@ Examples:
41Consumer: 41Consumer:
42======== 42========
43See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt and 43See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt and
44Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt for 44Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml for
45further details. 45further details.
46 46
47An interrupt consumer on an SoC using crossbar will use: 47An interrupt consumer on an SoC using crossbar will use:
diff --git a/Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.txt b/Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.txt
index 15b48e20a061..a86c83bf9d4e 100644
--- a/Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.txt
+++ b/Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.txt
@@ -35,7 +35,7 @@ board device tree, including the system base clock, as selected by XOM[0]
35pin of the SoC. Refer to generic fixed rate clock bindings 35pin of the SoC. Refer to generic fixed rate clock bindings
36documentation[1] for more information how to specify these clocks. 36documentation[1] for more information how to specify these clocks.
37 37
38[1] Documentation/devicetree/bindings/clock/fixed-clock.txt 38[1] Documentation/devicetree/bindings/clock/fixed-clock.yaml
39 39
40Example: Clock controller node: 40Example: Clock controller node:
41 41
diff --git a/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml b/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
index 54838d4ea44c..9a47820ef346 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
@@ -92,6 +92,8 @@ properties:
92 minItems: 2 92 minItems: 2
93 maxItems: 4 93 maxItems: 4
94 94
95 ranges: true
96
95 interrupts: 97 interrupts:
96 description: Interrupt source of the parent interrupt controller on 98 description: Interrupt source of the parent interrupt controller on
97 secondary GICs, or VGIC maintenance interrupt on primary GIC (see 99 secondary GICs, or VGIC maintenance interrupt on primary GIC (see
@@ -197,28 +199,28 @@ examples:
197 interrupt-controller@e1101000 { 199 interrupt-controller@e1101000 {
198 compatible = "arm,gic-400"; 200 compatible = "arm,gic-400";
199 #interrupt-cells = <3>; 201 #interrupt-cells = <3>;
200 #address-cells = <2>; 202 #address-cells = <1>;
201 #size-cells = <2>; 203 #size-cells = <1>;
202 interrupt-controller; 204 interrupt-controller;
203 interrupts = <1 8 0xf04>; 205 interrupts = <1 8 0xf04>;
204 ranges = <0 0 0 0xe1100000 0 0x100000>; 206 ranges = <0 0xe1100000 0x100000>;
205 reg = <0x0 0xe1110000 0 0x01000>, 207 reg = <0xe1110000 0x01000>,
206 <0x0 0xe112f000 0 0x02000>, 208 <0xe112f000 0x02000>,
207 <0x0 0xe1140000 0 0x10000>, 209 <0xe1140000 0x10000>,
208 <0x0 0xe1160000 0 0x10000>; 210 <0xe1160000 0x10000>;
209 211
210 v2m0: v2m@8000 { 212 v2m0: v2m@80000 {
211 compatible = "arm,gic-v2m-frame"; 213 compatible = "arm,gic-v2m-frame";
212 msi-controller; 214 msi-controller;
213 reg = <0x0 0x80000 0 0x1000>; 215 reg = <0x80000 0x1000>;
214 }; 216 };
215 217
216 //... 218 //...
217 219
218 v2mN: v2m@9000 { 220 v2mN: v2m@90000 {
219 compatible = "arm,gic-v2m-frame"; 221 compatible = "arm,gic-v2m-frame";
220 msi-controller; 222 msi-controller;
221 reg = <0x0 0x90000 0 0x1000>; 223 reg = <0x90000 0x1000>;
222 }; 224 };
223 }; 225 };
224... 226...
diff --git a/Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.txt b/Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.txt
index 930fb462fd9f..0ebfc952cb34 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.txt
+++ b/Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.txt
@@ -23,7 +23,7 @@ Required properties:
23- marvell,spi-base : List of GIC base SPI interrupts, one for each 23- marvell,spi-base : List of GIC base SPI interrupts, one for each
24 ODMI frame. Those SPI interrupts are 0-based, 24 ODMI frame. Those SPI interrupts are 0-based,
25 i.e marvell,spi-base = <128> will use SPI #96. 25 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
27 for details about the GIC Device Tree binding. 27 for details about the GIC Device Tree binding.
28 28
29Example: 29Example:
diff --git a/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt b/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt
index 896b6997cf30..21882c8d4b0c 100644
--- a/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt
+++ b/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt
@@ -15,7 +15,7 @@ Optional properties:
15 - power-supply: specifies the power source. It can either be a regulator 15 - power-supply: specifies the power source. It can either be a regulator
16 or a gpio which enables a regulator, i.e. a regulator-fixed as 16 or a gpio which enables a regulator, i.e. a regulator-fixed as
17 described in 17 described in
18 Documentation/devicetree/bindings/regulator/fixed-regulator.txt 18 Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
19 19
20Example: 20Example:
21 21
diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt
index 3983c11e062c..5794ab1147c1 100644
--- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt
@@ -24,7 +24,7 @@ Optional children nodes:
24Children nodes represent the available nand chips. 24Children nodes represent the available nand chips.
25 25
26Other properties: 26Other properties:
27see Documentation/devicetree/bindings/mtd/nand.txt for generic bindings. 27see Documentation/devicetree/bindings/mtd/nand-controller.yaml for generic bindings.
28 28
29Example demonstrate on AXG SoC: 29Example demonstrate on AXG SoC:
30 30
diff --git a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt
index bcda1dfc4bac..0b7c3738b66c 100644
--- a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt
+++ b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt
@@ -101,12 +101,12 @@ Required properties:
101 number (e.g., 0, 1, 2, etc.) 101 number (e.g., 0, 1, 2, etc.)
102- #address-cells : see partition.txt 102- #address-cells : see partition.txt
103- #size-cells : see partition.txt 103- #size-cells : see partition.txt
104- nand-ecc-strength : see nand.txt 104- nand-ecc-strength : see nand-controller.yaml
105- nand-ecc-step-size : must be 512 or 1024. See nand.txt 105- nand-ecc-step-size : must be 512 or 1024. See nand-controller.yaml
106 106
107Optional properties: 107Optional properties:
108- nand-on-flash-bbt : boolean, to enable the on-flash BBT for this 108- 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
110- brcm,nand-oob-sector-size : integer, to denote the spare area sector size 110- brcm,nand-oob-sector-size : integer, to denote the spare area sector size
111 expected for the ECC layout in use. This size, in 111 expected for the ECC layout in use. This size, in
112 addition to the strength and step-size, 112 addition to the strength and step-size,
diff --git a/Documentation/devicetree/bindings/mtd/denali-nand.txt b/Documentation/devicetree/bindings/mtd/denali-nand.txt
index b14b6751c2f3..b32aed1db46d 100644
--- a/Documentation/devicetree/bindings/mtd/denali-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/denali-nand.txt
@@ -22,16 +22,16 @@ Sub-nodes:
22 select is connected. 22 select is connected.
23 23
24 Optional properties: 24 Optional properties:
25 - nand-ecc-step-size: see nand.txt for details. 25 - nand-ecc-step-size: see nand-controller.yaml for details.
26 If present, the value must be 26 If present, the value must be
27 512 for "altr,socfpga-denali-nand" 27 512 for "altr,socfpga-denali-nand"
28 1024 for "socionext,uniphier-denali-nand-v5a" 28 1024 for "socionext,uniphier-denali-nand-v5a"
29 1024 for "socionext,uniphier-denali-nand-v5b" 29 1024 for "socionext,uniphier-denali-nand-v5b"
30 - nand-ecc-strength: see nand.txt for details. Valid values are: 30 - nand-ecc-strength: see nand-controller.yaml for details. Valid values are:
31 8, 15 for "altr,socfpga-denali-nand" 31 8, 15 for "altr,socfpga-denali-nand"
32 8, 16, 24 for "socionext,uniphier-denali-nand-v5a" 32 8, 16, 24 for "socionext,uniphier-denali-nand-v5a"
33 8, 16 for "socionext,uniphier-denali-nand-v5b" 33 8, 16 for "socionext,uniphier-denali-nand-v5b"
34 - nand-ecc-maximize: see nand.txt for details 34 - nand-ecc-maximize: see nand-controller.yaml for details
35 35
36The chip nodes may optionally contain sub-nodes describing partitions of the 36The chip nodes may optionally contain sub-nodes describing partitions of the
37address space. See partition.txt for more detail. 37address space. See partition.txt for more detail.
diff --git a/Documentation/devicetree/bindings/mtd/fsmc-nand.txt b/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
index 32636eb77304..6762d3c4d5a4 100644
--- a/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
@@ -30,9 +30,9 @@ Optional properties:
30 command is asserted. Zero means one cycle, 255 means 256 30 command is asserted. Zero means one cycle, 255 means 256
31 cycles. 31 cycles.
32- bank: default NAND bank to use (0-3 are valid, 0 is the default). 32- bank: default NAND bank to use (0-3 are valid, 0 is the default).
33- nand-ecc-mode : see nand.txt 33- nand-ecc-mode : see nand-controller.yaml
34- nand-ecc-strength : see nand.txt 34- nand-ecc-strength : see nand-controller.yaml
35- nand-ecc-step-size : see nand.txt 35- nand-ecc-step-size : see nand-controller.yaml
36 36
37Can support 1-bit HW ECC (default) or if stronger correction is required, 37Can support 1-bit HW ECC (default) or if stronger correction is required,
38software-based BCH. 38software-based BCH.
diff --git a/Documentation/devicetree/bindings/mtd/gpmc-nand.txt b/Documentation/devicetree/bindings/mtd/gpmc-nand.txt
index c059ab74ed88..44919d48d241 100644
--- a/Documentation/devicetree/bindings/mtd/gpmc-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/gpmc-nand.txt
@@ -8,7 +8,7 @@ explained in a separate documents - please refer to
8Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt 8Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
9 9
10For NAND specific properties such as ECC modes or bus width, please refer to 10For NAND specific properties such as ECC modes or bus width, please refer to
11Documentation/devicetree/bindings/mtd/nand.txt 11Documentation/devicetree/bindings/mtd/nand-controller.yaml
12 12
13 13
14Required properties: 14Required properties:
diff --git a/Documentation/devicetree/bindings/mtd/hisi504-nand.txt b/Documentation/devicetree/bindings/mtd/hisi504-nand.txt
index 2e35f0662912..8963983ae7cb 100644
--- a/Documentation/devicetree/bindings/mtd/hisi504-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/hisi504-nand.txt
@@ -7,7 +7,7 @@ Required properties:
7 NAND controller's registers. The second contains base 7 NAND controller's registers. The second contains base
8 physical address and size of NAND controller's buffer. 8 physical address and size of NAND controller's buffer.
9- interrupts: Interrupt number for nfc. 9- interrupts: Interrupt number for nfc.
10- nand-bus-width: See nand.txt. 10- nand-bus-width: See nand-controller.yaml.
11- nand-ecc-mode: Support none and hw ecc mode. 11- nand-ecc-mode: Support none and hw ecc mode.
12- #address-cells: Partition address, should be set 1. 12- #address-cells: Partition address, should be set 1.
13- #size-cells: Partition size, should be set 1. 13- #size-cells: Partition size, should be set 1.
diff --git a/Documentation/devicetree/bindings/mtd/marvell-nand.txt b/Documentation/devicetree/bindings/mtd/marvell-nand.txt
index e0c790706b9b..a2d9a0f2b683 100644
--- a/Documentation/devicetree/bindings/mtd/marvell-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/marvell-nand.txt
@@ -36,29 +36,29 @@ Children nodes represent the available NAND chips.
36 36
37Required properties: 37Required properties:
38- reg: shall contain the native Chip Select ids (0-3). 38- reg: shall contain the native Chip Select ids (0-3).
39- nand-rb: see nand.txt (0-1). 39- nand-rb: see nand-controller.yaml (0-1).
40 40
41Optional properties: 41Optional properties:
42- marvell,nand-keep-config: orders the driver not to take the timings 42- marvell,nand-keep-config: orders the driver not to take the timings
43 from the core and leaving them completely untouched. Bootloader 43 from the core and leaving them completely untouched. Bootloader
44 timings will then be used. 44 timings will then be used.
45- label: MTD name. 45- label: MTD name.
46- nand-on-flash-bbt: see nand.txt. 46- nand-on-flash-bbt: see nand-controller.yaml.
47- nand-ecc-mode: see nand.txt. Will use hardware ECC if not specified. 47- nand-ecc-mode: see nand-controller.yaml. Will use hardware ECC if not specified.
48- nand-ecc-algo: see nand.txt. This property is essentially useful when 48- nand-ecc-algo: see nand-controller.yaml. This property is essentially useful when
49 not using hardware ECC. Howerver, it may be added when using hardware 49 not using hardware ECC. Howerver, it may be added when using hardware
50 ECC for clarification but will be ignored by the driver because ECC 50 ECC for clarification but will be ignored by the driver because ECC
51 mode is chosen depending on the page size and the strength required by 51 mode is chosen depending on the page size and the strength required by
52 the NAND chip. This value may be overwritten with nand-ecc-strength 52 the NAND chip. This value may be overwritten with nand-ecc-strength
53 property. 53 property.
54- nand-ecc-strength: see nand.txt. 54- nand-ecc-strength: see nand-controller.yaml.
55- nand-ecc-step-size: see nand.txt. Marvell's NAND flash controller does 55- nand-ecc-step-size: see nand-controller.yaml. Marvell's NAND flash controller does
56 use fixed strength (1-bit for Hamming, 16-bit for BCH), so the actual 56 use fixed strength (1-bit for Hamming, 16-bit for BCH), so the actual
57 step size will shrink or grow in order to fit the required strength. 57 step size will shrink or grow in order to fit the required strength.
58 Step sizes are not completely random for all and follow certain 58 Step sizes are not completely random for all and follow certain
59 patterns described in AN-379, "Marvell SoC NFC ECC". 59 patterns described in AN-379, "Marvell SoC NFC ECC".
60 60
61See Documentation/devicetree/bindings/mtd/nand.txt for more details on 61See Documentation/devicetree/bindings/mtd/nand-controller.yaml for more details on
62generic bindings. 62generic bindings.
63 63
64 64
diff --git a/Documentation/devicetree/bindings/mtd/mxc-nand.txt b/Documentation/devicetree/bindings/mtd/mxc-nand.txt
index b5833d11c7be..2857c628fba4 100644
--- a/Documentation/devicetree/bindings/mtd/mxc-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/mxc-nand.txt
@@ -4,9 +4,9 @@ Required properties:
4- compatible: "fsl,imxXX-nand" 4- compatible: "fsl,imxXX-nand"
5- reg: address range of the nfc block 5- reg: address range of the nfc block
6- interrupts: irq to be used 6- interrupts: irq to be used
7- nand-bus-width: see nand.txt 7- nand-bus-width: see nand-controller.yaml
8- nand-ecc-mode: see nand.txt 8- nand-ecc-mode: see nand-controller.yaml
9- nand-on-flash-bbt: see nand.txt 9- nand-on-flash-bbt: see nand-controller.yaml
10 10
11Example: 11Example:
12 12
diff --git a/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt b/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt
index b2f2ca12f9e6..e737e5beb7bf 100644
--- a/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt
@@ -26,14 +26,14 @@ Optional children node properties:
26 "hw" is supported. 26 "hw" is supported.
27- nand-ecc-algo: string, algorithm of NAND ECC. 27- nand-ecc-algo: string, algorithm of NAND ECC.
28 Supported values with "hw" ECC mode are: "rs", "bch". 28 Supported values with "hw" ECC mode are: "rs", "bch".
29- nand-bus-width : See nand.txt 29- nand-bus-width : See nand-controller.yaml
30- nand-on-flash-bbt: See nand.txt 30- nand-on-flash-bbt: See nand-controller.yaml
31- nand-ecc-strength: integer representing the number of bits to correct 31- nand-ecc-strength: integer representing the number of bits to correct
32 per ECC step (always 512). Supported strength using HW ECC 32 per ECC step (always 512). Supported strength using HW ECC
33 modes are: 33 modes are:
34 - RS: 4, 6, 8 34 - RS: 4, 6, 8
35 - BCH: 4, 8, 14, 16 35 - BCH: 4, 8, 14, 16
36- nand-ecc-maximize: See nand.txt 36- nand-ecc-maximize: See nand-controller.yaml
37- nand-is-boot-medium: Makes sure only ECC strengths supported by the boot ROM 37- nand-is-boot-medium: Makes sure only ECC strengths supported by the boot ROM
38 are chosen. 38 are chosen.
39- wp-gpios: GPIO specifier for the write protect pin. 39- wp-gpios: GPIO specifier for the write protect pin.
diff --git a/Documentation/devicetree/bindings/mtd/oxnas-nand.txt b/Documentation/devicetree/bindings/mtd/oxnas-nand.txt
index 56d5c19da41d..2ba07fc8b79c 100644
--- a/Documentation/devicetree/bindings/mtd/oxnas-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/oxnas-nand.txt
@@ -1,6 +1,6 @@
1* Oxford Semiconductor OXNAS NAND Controller 1* Oxford Semiconductor OXNAS NAND Controller
2 2
3Please refer to nand.txt for generic information regarding MTD NAND bindings. 3Please refer to nand-controller.yaml for generic information regarding MTD NAND bindings.
4 4
5Required properties: 5Required properties:
6 - compatible: "oxsemi,ox820-nand" 6 - compatible: "oxsemi,ox820-nand"
diff --git a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
index 1123cc6d56ef..5c2fba4b30fe 100644
--- a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
+++ b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt
@@ -47,8 +47,8 @@ Required properties:
47- #size-cells: see partition.txt 47- #size-cells: see partition.txt
48 48
49Optional properties: 49Optional properties:
50- nand-bus-width: see nand.txt 50- nand-bus-width: see nand-controller.yaml
51- nand-ecc-strength: see nand.txt. If not specified, then ECC strength will 51- nand-ecc-strength: see nand-controller.yaml. If not specified, then ECC strength will
52 be used according to chip requirement and available 52 be used according to chip requirement and available
53 OOB size. 53 OOB size.
54 54
diff --git a/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt b/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt
index 0040eb8895e0..09815c40fc8a 100644
--- a/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt
+++ b/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt
@@ -6,7 +6,7 @@ Required properties:
6 "samsung,s3c2412-nand" 6 "samsung,s3c2412-nand"
7 "samsung,s3c2440-nand" 7 "samsung,s3c2440-nand"
8- reg : register's location and length. 8- reg : register's location and length.
9- #address-cells, #size-cells : see nand.txt 9- #address-cells, #size-cells : see nand-controller.yaml
10- clocks : phandle to the nand controller clock 10- clocks : phandle to the nand controller clock
11- clock-names : must contain "nand" 11- clock-names : must contain "nand"
12 12
@@ -14,8 +14,8 @@ Optional child nodes:
14Child nodes representing the available nand chips. 14Child nodes representing the available nand chips.
15 15
16Optional child properties: 16Optional child properties:
17- nand-ecc-mode : see nand.txt 17- nand-ecc-mode : see nand-controller.yaml
18- nand-on-flash-bbt : see nand.txt 18- nand-on-flash-bbt : see nand-controller.yaml
19 19
20Each child device node may optionally contain a 'partitions' sub-node, 20Each child device node may optionally contain a 'partitions' sub-node,
21which further contains sub-nodes describing the flash partition mapping. 21which further contains sub-nodes describing the flash partition mapping.
diff --git a/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt
index ad2bef826582..e55895e8dae4 100644
--- a/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt
@@ -24,9 +24,9 @@ Required properties:
24- reg: describes the CS lines assigned to the NAND device. 24- reg: describes the CS lines assigned to the NAND device.
25 25
26Optional properties: 26Optional properties:
27- nand-on-flash-bbt: see nand.txt 27- nand-on-flash-bbt: see nand-controller.yaml
28- nand-ecc-strength: see nand.txt 28- nand-ecc-strength: see nand-controller.yaml
29- nand-ecc-step-size: see nand.txt 29- nand-ecc-step-size: see nand-controller.yaml
30 30
31The following ECC strength and step size are currently supported: 31The following ECC strength and step size are currently supported:
32 - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Hamming) 32 - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Hamming)
diff --git a/Documentation/devicetree/bindings/mtd/tango-nand.txt b/Documentation/devicetree/bindings/mtd/tango-nand.txt
index cd1bf2ac9055..91c8420241af 100644
--- a/Documentation/devicetree/bindings/mtd/tango-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/tango-nand.txt
@@ -11,7 +11,7 @@ Required properties:
11- #size-cells: <0> 11- #size-cells: <0>
12 12
13Children nodes represent the available NAND chips. 13Children nodes represent the available NAND chips.
14See Documentation/devicetree/bindings/mtd/nand.txt for generic bindings. 14See Documentation/devicetree/bindings/mtd/nand-controller.yaml for generic bindings.
15 15
16Example: 16Example:
17 17
diff --git a/Documentation/devicetree/bindings/mtd/vf610-nfc.txt b/Documentation/devicetree/bindings/mtd/vf610-nfc.txt
index c96eeb65f450..7db5e6e609df 100644
--- a/Documentation/devicetree/bindings/mtd/vf610-nfc.txt
+++ b/Documentation/devicetree/bindings/mtd/vf610-nfc.txt
@@ -25,14 +25,14 @@ only handle one NAND chip.
25 25
26Required properties: 26Required properties:
27- compatible: Should be set to "fsl,vf610-nfc-cs". 27- compatible: Should be set to "fsl,vf610-nfc-cs".
28- nand-bus-width: see nand.txt 28- nand-bus-width: see nand-controller.yaml
29- nand-ecc-mode: see nand.txt 29- nand-ecc-mode: see nand-controller.yaml
30 30
31Required properties for hardware ECC: 31Required properties for hardware ECC:
32- nand-ecc-strength: supported strengths are 24 and 32 bit (see nand.txt) 32- nand-ecc-strength: supported strengths are 24 and 32 bit (see nand-controller.yaml)
33- nand-ecc-step-size: step size equals page size, currently only 2k pages are 33- nand-ecc-step-size: step size equals page size, currently only 2k pages are
34 supported 34 supported
35- nand-on-flash-bbt: see nand.txt 35- nand-on-flash-bbt: see nand-controller.yaml
36 36
37Example: 37Example:
38 38
diff --git a/Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt b/Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt
new file mode 100644
index 000000000000..beaa3b64084e
--- /dev/null
+++ b/Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt
@@ -0,0 +1,38 @@
1DT compatible string versioning for SiFive open-source IP blocks
2
3This document describes the version specification for DT "compatible"
4strings for open-source SiFive IP blocks. HDL for these IP blocks
5can be found in this public repository:
6
7https://github.com/sifive/sifive-blocks
8
9IP block-specific DT compatible strings are contained within the HDL,
10in the form "sifive,<ip-block-name><integer version number>".
11
12An example is "sifive,uart0" from:
13
14https://github.com/sifive/sifive-blocks/blob/v1.0/src/main/scala/devices/uart/UART.scala#L43
15
16Until these IP blocks (or IP integration) support version
17auto-discovery, the maintainers of these IP blocks intend to increment
18the suffixed number in the compatible string whenever the software
19interface to these IP blocks changes, or when the functionality of the
20underlying IP blocks changes in a way that software should be aware of.
21
22Driver developers can use compatible string "match" values such as
23"sifive,uart0" to indicate that their driver is compatible with the
24register interface and functionality associated with the relevant
25upstream sifive-blocks commits. It is expected that most drivers will
26match on these IP block-specific compatible strings.
27
28DT data authors, when writing data for a particular SoC, should
29continue to specify an SoC-specific compatible string value, such as
30"sifive,fu540-c000-uart". This way, if SoC-specific
31integration-specific bug fixes or workarounds are needed, the kernel
32or other system software can match on this string to apply them. The
33IP block-specific compatible string (such as "sifive,uart0") should
34then be specified as a subsequent value.
35
36An example of this style:
37
38 compatible = "sifive,fu540-c000-uart", "sifive,uart0";
diff --git a/MAINTAINERS b/MAINTAINERS
index 0c55b0fedbe2..8349c1a76970 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2768,7 +2768,7 @@ AVIA HX711 ANALOG DIGITAL CONVERTER IIO DRIVER
2768M: Andreas Klinger <ak@it-klinger.de> 2768M: Andreas Klinger <ak@it-klinger.de>
2769L: linux-iio@vger.kernel.org 2769L: linux-iio@vger.kernel.org
2770S: Maintained 2770S: Maintained
2771F: Documentation/devicetree/bindings/iio/adc/avia-hx711.txt 2771F: Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
2772F: drivers/iio/adc/hx711.c 2772F: drivers/iio/adc/hx711.c
2773 2773
2774AX.25 NETWORK LAYER 2774AX.25 NETWORK LAYER
@@ -14351,7 +14351,7 @@ SIMPLEFB FB DRIVER
14351M: Hans de Goede <hdegoede@redhat.com> 14351M: Hans de Goede <hdegoede@redhat.com>
14352L: linux-fbdev@vger.kernel.org 14352L: linux-fbdev@vger.kernel.org
14353S: Maintained 14353S: Maintained
14354F: Documentation/devicetree/bindings/display/simple-framebuffer.txt 14354F: Documentation/devicetree/bindings/display/simple-framebuffer.yaml
14355F: drivers/video/fbdev/simplefb.c 14355F: drivers/video/fbdev/simplefb.c
14356F: include/linux/platform_data/simplefb.h 14356F: include/linux/platform_data/simplefb.h
14357 14357
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 1b412d4394ae..f1f38c8cdc74 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -298,7 +298,7 @@ DT_BINDING_DIR := Documentation/devicetree/bindings
298DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml 298DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml
299 299
300quiet_cmd_dtb_check = CHECK $@ 300quiet_cmd_dtb_check = CHECK $@
301 cmd_dtb_check = $(DT_CHECKER) -p $(DT_TMP_SCHEMA) $@ ; 301 cmd_dtb_check = $(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ ;
302 302
303define rule_dtc_dt_yaml 303define rule_dtc_dt_yaml
304 $(call cmd_and_fixdep,dtc,yaml) 304 $(call cmd_and_fixdep,dtc,yaml)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index bb28b178d929..342c7c781ba5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3027,7 +3027,7 @@ sub process {
3027 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g; 3027 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
3028 3028
3029 my $dt_path = $root . "/Documentation/devicetree/bindings/"; 3029 my $dt_path = $root . "/Documentation/devicetree/bindings/";
3030 my $vp_file = $dt_path . "vendor-prefixes.txt"; 3030 my $vp_file = $dt_path . "vendor-prefixes.yaml";
3031 3031
3032 foreach my $compat (@compats) { 3032 foreach my $compat (@compats) {
3033 my $compat2 = $compat; 3033 my $compat2 = $compat;
@@ -3042,7 +3042,7 @@ sub process {
3042 3042
3043 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/; 3043 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/;
3044 my $vendor = $1; 3044 my $vendor = $1;
3045 `grep -Eq "^$vendor\\b" $vp_file`; 3045 `grep -Eq "\\"\\^\Q$vendor\E,\\.\\*\\":" $vp_file`;
3046 if ( $? >> 8 ) { 3046 if ( $? >> 8 ) {
3047 WARN("UNDOCUMENTED_DT_STRING", 3047 WARN("UNDOCUMENTED_DT_STRING",
3048 "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr); 3048 "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr);