dt-bindings: Add missing 'additionalProperties: false'
authorRob Herring <robh@kernel.org>
Wed, 25 Mar 2020 22:05:41 +0000 (16:05 -0600)
committerRob Herring <robh@kernel.org>
Tue, 31 Mar 2020 15:03:17 +0000 (09:03 -0600)
commit7f464532b05dadc8f96acdda7093334c863e7a06
tree3071a6119044fa698ba04e866739d532c4a580ca
parent0d9a302da00af02482846a04e881f2388a4537fc
dt-bindings: Add missing 'additionalProperties: false'

Setting 'additionalProperties: false' is frequently omitted, but is
important in order to check that there aren't extra undocumented
properties in a binding.

Ideally, we'd just add this automatically and make this the default, but
there's some cases where it doesn't work. For example, if a common
schema is referenced, then properties in the common schema aren't part
of what's considered for 'additionalProperties'. Also, sometimes there
are bus specific properties such as 'spi-max-frequency' that go into
bus child nodes, but aren't defined in the child node's schema.

So let's stick with the json-schema defined default and add
'additionalProperties: false' where needed. This will be a continual
review comment and game of wack-a-mole.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Acked-by: Stephen Boyd <sboyd@kernel.org> # clock
Acked-by: Lee Jones <lee.jones@linaro.org>
116 files changed:
Documentation/devicetree/bindings/arm/altera/socfpga-clk-manager.yaml
Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml
Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml
Documentation/devicetree/bindings/arm/renesas,prr.yaml
Documentation/devicetree/bindings/arm/samsung/exynos-chipid.yaml
Documentation/devicetree/bindings/arm/samsung/pmu.yaml
Documentation/devicetree/bindings/arm/samsung/samsung-secure-firmware.yaml
Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
Documentation/devicetree/bindings/clock/fsl,plldig.yaml
Documentation/devicetree/bindings/clock/imx8mn-clock.yaml
Documentation/devicetree/bindings/clock/imx8mp-clock.yaml
Documentation/devicetree/bindings/clock/milbeaut-clock.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-apq8064.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-ipq8074.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8996.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-msm8998.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-qcs404.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml
Documentation/devicetree/bindings/clock/qcom,gcc-sm8150.yaml
Documentation/devicetree/bindings/clock/qcom,gcc.yaml
Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
Documentation/devicetree/bindings/clock/qcom,msm8998-gpucc.yaml
Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
Documentation/devicetree/bindings/clock/qcom,sc7180-dispcc.yaml
Documentation/devicetree/bindings/clock/qcom,sc7180-gpucc.yaml
Documentation/devicetree/bindings/clock/qcom,sc7180-videocc.yaml
Documentation/devicetree/bindings/clock/qcom,sdm845-dispcc.yaml
Documentation/devicetree/bindings/clock/qcom,sdm845-gpucc.yaml
Documentation/devicetree/bindings/clock/qcom,sdm845-videocc.yaml
Documentation/devicetree/bindings/display/amlogic,meson-vpu.yaml
Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
Documentation/devicetree/bindings/dsp/fsl,dsp.yaml
Documentation/devicetree/bindings/eeprom/at24.yaml
Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml
Documentation/devicetree/bindings/gpio/brcm,xgs-iproc-gpio.yaml
Documentation/devicetree/bindings/gpio/xylon,logicvc-gpio.yaml
Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml
Documentation/devicetree/bindings/gpu/samsung-rotator.yaml
Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml
Documentation/devicetree/bindings/hwmon/adi,ltc2947.yaml
Documentation/devicetree/bindings/hwmon/pmbus/ti,ucd90320.yaml
Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml
Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml
Documentation/devicetree/bindings/iio/adc/adi,ad7780.yaml
Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml
Documentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml
Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml
Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.yaml
Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.yaml
Documentation/devicetree/bindings/iio/dac/lltc,ltc1660.yaml
Documentation/devicetree/bindings/iio/light/adux1020.yaml
Documentation/devicetree/bindings/iio/light/bh1750.yaml
Documentation/devicetree/bindings/iio/light/isl29018.yaml
Documentation/devicetree/bindings/iio/light/noa1305.yaml
Documentation/devicetree/bindings/iio/light/stk33xx.yaml
Documentation/devicetree/bindings/iio/light/tsl2583.yaml
Documentation/devicetree/bindings/iio/light/tsl2772.yaml
Documentation/devicetree/bindings/iio/light/veml6030.yaml
Documentation/devicetree/bindings/iio/pressure/asc,dlhl60d.yaml
Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml
Documentation/devicetree/bindings/iio/proximity/parallax-ping.yaml
Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml
Documentation/devicetree/bindings/input/gpio-vibrator.yaml
Documentation/devicetree/bindings/input/max77650-onkey.yaml
Documentation/devicetree/bindings/interrupt-controller/intel,ixp4xx-interrupt.yaml
Documentation/devicetree/bindings/iommu/samsung,sysmmu.yaml
Documentation/devicetree/bindings/leds/leds-max77650.yaml
Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml
Documentation/devicetree/bindings/mailbox/amlogic,meson-gxbb-mhu.yaml
Documentation/devicetree/bindings/media/amlogic,gx-vdec.yaml
Documentation/devicetree/bindings/media/amlogic,meson-gx-ao-cec.yaml
Documentation/devicetree/bindings/media/renesas,ceu.yaml
Documentation/devicetree/bindings/mfd/max77650.yaml
Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
Documentation/devicetree/bindings/misc/intel,ixp4xx-ahb-queue-manager.yaml
Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml
Documentation/devicetree/bindings/phy/allwinner,sun50i-h6-usb3-phy.yaml
Documentation/devicetree/bindings/phy/amlogic,meson-g12a-usb3-pcie-phy.yaml
Documentation/devicetree/bindings/phy/intel,lgm-emmc-phy.yaml
Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.yaml
Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml
Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/aspeed,ast2500-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml
Documentation/devicetree/bindings/power/reset/syscon-poweroff.yaml
Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml
Documentation/devicetree/bindings/power/supply/max77650-charger.yaml
Documentation/devicetree/bindings/ptp/ptp-idtcm.yaml
Documentation/devicetree/bindings/regulator/max77650-regulator.yaml
Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml
Documentation/devicetree/bindings/reset/brcm,bcm7216-pcie-sata-rescal.yaml
Documentation/devicetree/bindings/rng/amlogic,meson-rng.yaml
Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml
Documentation/devicetree/bindings/rtc/renesas,sh-rtc.yaml
Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml
Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml
Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml
Documentation/devicetree/bindings/sound/adi,adau7118.yaml
Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml
Documentation/devicetree/bindings/sound/renesas,fsi.yaml
Documentation/devicetree/bindings/sound/samsung,odroid.yaml
Documentation/devicetree/bindings/sound/samsung-i2s.yaml
Documentation/devicetree/bindings/sram/qcom,ocmem.yaml
Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
Documentation/devicetree/bindings/timer/arm,arch_timer.yaml
Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
Documentation/devicetree/bindings/timer/arm,global_timer.yaml
Documentation/devicetree/bindings/timer/intel,ixp4xx-timer.yaml
Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml
Documentation/devicetree/bindings/trivial-devices.yaml