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

dt-bindings: Explicitly allow additional properties in common schemas

In order to add meta-schema checks for additional/unevaluatedProperties
being present, all schema need to make this explicit. As common/shared
schema are included by other schemas, they should always allow for
additionalProperties.

Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-By: Vinod Koul <vkoul@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201005183830.486085-5-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>

+135 -1
+2
Documentation/devicetree/bindings/arm/cpus.yaml
··· 341 341 dependencies: 342 342 rockchip,pmu: [enable-method] 343 343 344 + additionalProperties: true 345 + 344 346 examples: 345 347 - | 346 348 cpus {
+2
Documentation/devicetree/bindings/arm/nvidia,tegra194-ccplex.yaml
··· 30 30 Specifies the bpmp node that needs to be queried to get 31 31 operating point data for all CPUs. 32 32 33 + additionalProperties: true 34 + 33 35 examples: 34 36 - | 35 37 cpus {
+2
Documentation/devicetree/bindings/ata/pata-common.yaml
··· 47 47 The ID number of the drive port, 0 for the master port and 1 for the 48 48 slave port. 49 49 50 + additionalProperties: true 51 + 50 52 ...
+2
Documentation/devicetree/bindings/ata/sata-common.yaml
··· 47 47 multiplier making it possible to connect up to 15 disks to a single 48 48 SATA port. 49 49 50 + additionalProperties: true 51 + 50 52 ...
+2
Documentation/devicetree/bindings/bus/simple-pm-bus.yaml
··· 61 61 - required: 62 62 - power-domains 63 63 64 + additionalProperties: true 65 + 64 66 examples: 65 67 - | 66 68 #include <dt-bindings/clock/qcom,gcc-msm8996.h>
+2
Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml
··· 26 26 required: 27 27 - compatible 28 28 29 + additionalProperties: true #fixme 30 + 29 31 examples: 30 32 - |+ 31 33 spi0 {
+2
Documentation/devicetree/bindings/connector/usb-connector.yaml
··· 172 172 type: 173 173 const: micro 174 174 175 + additionalProperties: true 176 + 175 177 examples: 176 178 # Micro-USB connector with HS lines routed via controller (MUIC). 177 179 - |
+2
Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml
··· 66 66 - clocks 67 67 - ports 68 68 - reg 69 + 70 + additionalProperties: true
+2
Documentation/devicetree/bindings/display/dsi-controller.yaml
··· 73 73 required: 74 74 - reg 75 75 76 + additionalProperties: true 77 + 76 78 examples: 77 79 - | 78 80 #include <dt-bindings/gpio/gpio.h>
+2
Documentation/devicetree/bindings/display/panel/lvds.yaml
··· 112 112 - required: 113 113 - ports 114 114 115 + additionalProperties: true 116 + 115 117 ...
+2
Documentation/devicetree/bindings/display/panel/panel-common.yaml
··· 163 163 width-mm: [ height-mm ] 164 164 height-mm: [ width-mm ] 165 165 166 + additionalProperties: true 167 + 166 168 ...
+2
Documentation/devicetree/bindings/dma/dma-common.yaml
··· 49 49 50 50 required: 51 51 - "#dma-cells" 52 + 53 + additionalProperties: true
+2
Documentation/devicetree/bindings/dma/dma-controller.yaml
··· 17 17 $nodename: 18 18 pattern: "^dma-controller(@.*)?$" 19 19 20 + additionalProperties: true 21 + 20 22 examples: 21 23 - | 22 24 dma: dma-controller@48000000 {
+2
Documentation/devicetree/bindings/dma/dma-router.yaml
··· 36 36 - "#dma-cells" 37 37 - dma-masters 38 38 39 + additionalProperties: true 40 + 39 41 examples: 40 42 - | 41 43 sdma_xbar: dma-router@4a002b78 {
+2
Documentation/devicetree/bindings/extcon/wlf,arizona.yaml
··· 123 123 $ref: "/schemas/types.yaml#/definitions/uint32" 124 124 minimum: 0 125 125 maximum: 3 126 + 127 + additionalProperties: true
+5
Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml
··· 46 46 "#io-channel-cells": 47 47 const: 1 48 48 49 + io-channel-ranges: true 50 + 49 51 vdd-supply: true 50 52 51 53 samsung,syscon-phandle: ··· 69 67 - interrupts 70 68 - "#io-channel-cells" 71 69 - vdd-supply 70 + 71 + additionalProperties: 72 + type: object 72 73 73 74 allOf: 74 75 - if:
+2
Documentation/devicetree/bindings/iio/common.yaml
··· 32 32 considered 'near' to the device (an object is near to the 33 33 sensor). 34 34 35 + additionalProperties: true 36 + 35 37 ...
+2
Documentation/devicetree/bindings/input/input.yaml
··· 33 33 power off automatically. Device with key pressed shutdown feature can 34 34 specify this property. 35 35 $ref: /schemas/types.yaml#/definitions/uint32 36 + 37 + additionalProperties: true
+2
Documentation/devicetree/bindings/input/matrix-keymap.yaml
··· 35 35 $ref: /schemas/types.yaml#/definitions/uint32 36 36 description: Number of column lines connected to the keypad controller. 37 37 38 + additionalProperties: true 39 + 38 40 examples: 39 41 - | 40 42 keypad {
+2
Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml
··· 81 81 touchscreen-size-y: [ touchscreen-size-x ] 82 82 touchscreen-x-mm: [ touchscreen-y-mm ] 83 83 touchscreen-y-mm: [ touchscreen-x-mm ] 84 + 85 + additionalProperties: true
+2
Documentation/devicetree/bindings/leds/common.yaml
··· 156 156 Maximum timeout in microseconds after which the flash LED is turned off. 157 157 Required for flash LED nodes with configurable timeout. 158 158 159 + additionalProperties: true 160 + 159 161 examples: 160 162 - | 161 163 #include <dt-bindings/gpio/gpio.h>
+3
Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
··· 34 34 35 35 required: 36 36 - color 37 + 38 + additionalProperties: true 39 + 37 40 ...
+2
Documentation/devicetree/bindings/leds/trigger-source.yaml
··· 21 21 trigger sources (e.g. a specific USB port). 22 22 enum: [ 0, 1 ] 23 23 24 + additionalProperties: true 25 + 24 26 ...
+2
Documentation/devicetree/bindings/media/rc.yaml
··· 150 150 - rc-x96max 151 151 - rc-xbox-dvd 152 152 - rc-zx-irdec 153 + 154 + additionalProperties: true
+1 -1
Documentation/devicetree/bindings/mfd/syscon.yaml
··· 71 71 - compatible 72 72 - reg 73 73 74 - unevaluatedProperties: false 74 + additionalProperties: true 75 75 76 76 examples: 77 77 - |
+2
Documentation/devicetree/bindings/mmc/mmc-controller.yaml
··· 349 349 cd-debounce-delay-ms: [ cd-gpios ] 350 350 fixed-emmc-driver-type: [ non-removable ] 351 351 352 + additionalProperties: true 353 + 352 354 examples: 353 355 - | 354 356 mmc@ab000000 {
+2
Documentation/devicetree/bindings/mmc/synopsys-dw-mshc-common.yaml
··· 62 62 63 63 dma-names: 64 64 const: rx-tx 65 + 66 + additionalProperties: true
+2
Documentation/devicetree/bindings/mtd/nand-controller.yaml
··· 128 128 - "#address-cells" 129 129 - "#size-cells" 130 130 131 + additionalProperties: true 132 + 131 133 examples: 132 134 - | 133 135 nand-controller {
+2
Documentation/devicetree/bindings/net/can/can-transceiver.yaml
··· 16 16 $ref: /schemas/types.yaml#/definitions/uint32 17 17 description: a positive non 0 value that determines the max speed that CAN/CAN-FD can run. 18 18 minimum: 1 19 + 20 + additionalProperties: true
+2
Documentation/devicetree/bindings/net/dsa/dsa.yaml
··· 89 89 - required: 90 90 - ethernet-ports 91 91 92 + additionalProperties: true 93 + 92 94 ...
+2
Documentation/devicetree/bindings/net/ethernet-controller.yaml
··· 205 205 required: 206 206 - speed 207 207 208 + additionalProperties: true 209 + 208 210 ...
+2
Documentation/devicetree/bindings/net/ethernet-phy.yaml
··· 177 177 required: 178 178 - reg 179 179 180 + additionalProperties: true 181 + 180 182 examples: 181 183 - | 182 184 ethernet {
+2
Documentation/devicetree/bindings/net/mdio.yaml
··· 100 100 required: 101 101 - reg 102 102 103 + additionalProperties: true 104 + 103 105 examples: 104 106 - | 105 107 davinci_mdio: mdio@5c030000 {
+2
Documentation/devicetree/bindings/net/snps,dwmac.yaml
··· 356 356 Enables the TSO feature otherwise it will be managed by 357 357 MAC HW capability register. 358 358 359 + additionalProperties: true 360 + 359 361 examples: 360 362 - | 361 363 stmmac_axi_setup: stmmac-axi-config {
+2
Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml
··· 36 36 nvmem-names: [ nvmem ] 37 37 nvmem-cell-names: [ nvmem-cells ] 38 38 39 + additionalProperties: true 40 + 39 41 examples: 40 42 - | 41 43 tsens {
+2
Documentation/devicetree/bindings/nvmem/nvmem.yaml
··· 67 67 required: 68 68 - reg 69 69 70 + additionalProperties: true 71 + 70 72 examples: 71 73 - | 72 74 #include <dt-bindings/gpio/gpio.h>
+2
Documentation/devicetree/bindings/pci/cdns-pcie-ep.yaml
··· 22 22 23 23 required: 24 24 - cdns,max-outbound-regions 25 + 26 + additionalProperties: true
+2
Documentation/devicetree/bindings/pci/cdns-pcie-host.yaml
··· 33 33 deprecated: true 34 34 35 35 msi-parent: true 36 + 37 + additionalProperties: true
+2
Documentation/devicetree/bindings/pci/cdns-pcie.yaml
··· 21 21 items: 22 22 - const: pcie-phy 23 23 # FIXME: names when more than 1 24 + 25 + additionalProperties: true
+2
Documentation/devicetree/bindings/pci/pci-ep.yaml
··· 36 36 37 37 required: 38 38 - compatible 39 + 40 + additionalProperties: true
+2
Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml
··· 120 120 required: 121 121 - pinctrl-0 122 122 - pinctrl-names 123 + 124 + additionalProperties: true
+2
Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml
··· 138 138 and the delay before latching a value to an output 139 139 pin. Typically indicates how many double-inverters are 140 140 used to delay the signal. 141 + 142 + additionalProperties: true
+2
Documentation/devicetree/bindings/pinctrl/pinmux-node.yaml
··· 129 129 130 130 pinctrl-pin-array: 131 131 $ref: /schemas/types.yaml#/definitions/uint32-array 132 + 133 + additionalProperties: true
+2
Documentation/devicetree/bindings/power/power-domain.yaml
··· 69 69 required: 70 70 - "#power-domain-cells" 71 71 72 + additionalProperties: true 73 + 72 74 examples: 73 75 - | 74 76 power: power-controller@12340000 {
+2
Documentation/devicetree/bindings/power/supply/power-supply.yaml
··· 16 16 This property is added to a supply in order to list the devices which 17 17 supply it power, referenced by their phandles. 18 18 19 + additionalProperties: true 20 + 19 21 examples: 20 22 - | 21 23 power {
+2
Documentation/devicetree/bindings/pwm/pwm.yaml
··· 20 20 required: 21 21 - "#pwm-cells" 22 22 23 + additionalProperties: true 24 + 23 25 examples: 24 26 - | 25 27 pwm: pwm@7000a000 {
+2
Documentation/devicetree/bindings/regulator/regulator.yaml
··· 188 188 189 189 additionalProperties: false 190 190 191 + additionalProperties: true 192 + 191 193 examples: 192 194 - | 193 195 xyzreg: regulator {
+2
Documentation/devicetree/bindings/regulator/wlf,arizona.yaml
··· 35 35 Initial data for the MICVDD regulator. 36 36 $ref: "regulator.yaml#" 37 37 type: object 38 + 39 + additionalProperties: true
+2
Documentation/devicetree/bindings/riscv/cpus.yaml
··· 91 91 - riscv,isa 92 92 - interrupt-controller 93 93 94 + additionalProperties: true 95 + 94 96 examples: 95 97 - | 96 98 // Example 1: SiFive Freedom U540G Development Kit
+2
Documentation/devicetree/bindings/rtc/rtc.yaml
··· 47 47 description: 48 48 Enables wake up of host system on alarm. 49 49 50 + additionalProperties: true 51 + 50 52 ...
+3
Documentation/devicetree/bindings/serial/rs485.yaml
··· 45 45 rs485-term-gpios: 46 46 description: GPIO pin to enable RS485 bus termination. 47 47 maxItems: 1 48 + 49 + additionalProperties: true 50 + 48 51 ...
+2
Documentation/devicetree/bindings/serial/serial.yaml
··· 124 124 required: 125 125 - compatible 126 126 127 + additionalProperties: true 128 + 127 129 examples: 128 130 - | 129 131 serial@1234 {
+2
Documentation/devicetree/bindings/soc/imx/fsl,aips-bus.yaml
··· 35 35 - compatible 36 36 - reg 37 37 38 + additionalProperties: true 39 + 38 40 examples: 39 41 - | 40 42 bus@30000000 {
+2
Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
··· 75 75 - reg 76 76 - resets 77 77 78 + additionalProperties: false 79 + 78 80 examples: 79 81 - | 80 82 #include <dt-bindings/clock/gxbb-clkc.h>
+2
Documentation/devicetree/bindings/sound/cirrus,madera.yaml
··· 111 111 $ref: /schemas/types.yaml#/definitions/uint32-array 112 112 minItems: 2 113 113 maxItems: 2 114 + 115 + additionalProperties: true
+3
Documentation/devicetree/bindings/sound/nvidia,tegra210-ahub.yaml
··· 67 67 - "#size-cells" 68 68 - ranges 69 69 70 + additionalProperties: 71 + type: object 72 + 70 73 examples: 71 74 - | 72 75 #include<dt-bindings/clock/tegra210-car.h>
+2
Documentation/devicetree/bindings/sound/wlf,arizona.yaml
··· 112 112 $ref: /schemas/types.yaml#/definitions/uint32-array 113 113 minItems: 1 114 114 maxItems: 12 115 + 116 + additionalProperties: true
+2
Documentation/devicetree/bindings/soundwire/soundwire-controller.yaml
··· 57 57 - "#address-cells" 58 58 - "#size-cells" 59 59 60 + additionalProperties: true 61 + 60 62 examples: 61 63 - | 62 64 soundwire@c2d0000 {
+2
Documentation/devicetree/bindings/spi/spi-controller.yaml
··· 140 140 - compatible 141 141 - reg 142 142 143 + additionalProperties: true 144 + 143 145 examples: 144 146 - | 145 147 spi@f00 {
+2
Documentation/devicetree/bindings/spmi/spmi.yaml
··· 55 55 required: 56 56 - reg 57 57 58 + additionalProperties: true 59 + 58 60 examples: 59 61 - | 60 62 #include <dt-bindings/spmi/spmi.h>
+2
Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml
··· 49 49 and the second cell is the maximum cooling state requested. 50 50 const: 2 51 51 52 + additionalProperties: true 53 + 52 54 examples: 53 55 - | 54 56 #include <dt-bindings/interrupt-controller/arm-gic.h>
+2
Documentation/devicetree/bindings/thermal/thermal-sensor.yaml
··· 36 36 containing several internal sensors. 37 37 enum: [0, 1] 38 38 39 + additionalProperties: true 40 + 39 41 examples: 40 42 - | 41 43 #include <dt-bindings/interrupt-controller/arm-gic.h>
+2
Documentation/devicetree/bindings/usb/ti,tps6598x.yaml
··· 32 32 - interrupts 33 33 - interrupt-names 34 34 35 + additionalProperties: true 36 + 35 37 examples: 36 38 - | 37 39 #include <dt-bindings/interrupt-controller/irq.h>
+2
Documentation/devicetree/bindings/usb/usb-hcd.yaml
··· 22 22 description: 23 23 Name specifier for the USB PHY 24 24 25 + additionalProperties: true 26 + 25 27 examples: 26 28 - | 27 29 usb {
+2
Documentation/devicetree/bindings/watchdog/watchdog.yaml
··· 23 23 description: 24 24 Contains the watchdog timeout in seconds. 25 25 26 + additionalProperties: true 27 + 26 28 ...