aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-11-14dt-bindings: Add syscon YAML descriptionMaxime Ripard3-52/+84
The syscon binding is a pretty loose one, with everyone having a bunch of vendor specific compatibles. In order to start the effort to describe them using YAML, let's create a binding that tolerates additional, not listed, compatibles. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-14dt-bindings: crypto: Convert stm32 CRYP bindings to json-schemaBenjamin Gaignard2-19/+51
Convert the STM32 CRYP binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-14dt-bindings: crypto: Convert stm32 CRC bindings to json-schemaBenjamin Gaignard2-16/+38
Convert the STM32 CRC binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-14dt-bindings: mfd: Convert stm32 timers bindings to json-schemaBenjamin Gaignard5-167/+162
Convert the STM32 timers binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-14dt-bindings: Improve validation build error handlingRob Herring2-3/+8
Schema errors can cause make to exit before useful information is printed. This leaves developers wondering what's wrong. It can be overcome passing '-k' to make, but that's not an obvious solution. There's 2 scenarios where this happens. When using DT_SCHEMA_FILES to validate with a single schema, any error in the schema results in processed-schema.yaml being empty causing a make error. The result is the specific errors in the schema are never shown because processed-schema.yaml is the first target built. Simply making processed-schema.yaml last in extra-y ensures the full schema validation with detailed error messages happen first. The 2nd problem is while schema errors are ignored for processed-schema.yaml, full validation of the schema still runs in parallel and any schema validation errors will still stop the build when running validation of dts files. The fix is to not add the schema examples to extra-y in this case. This means 'dtbs_check' is no longer a superset of 'dt_binding_check'. Update the documentation to make this clear. Cc: Masahiro Yamada <[email protected]> Tested-by: Jeffrey Hugo <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-14dt-bindings: power: Convert Samsung Exynos Power Domain bindings to json-schemaKrzysztof Kozlowski4-47/+68
Convert Samsung Exynos Soc Power Domain bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-14dt-bindings: power: Convert Generic Power Domain bindings to json-schemaKrzysztof Kozlowski17-109/+149
Convert Generic Power Domain bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Acked-by: Stephen Boyd <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-12dt-bindings: gpu: mali-midgard: add samsung exynos 5420 compatibleMarian Mihailescu1-1/+4
Add "samsung,exynos5420-mali" binding Signed-off-by: Marian Mihailescu <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-12dt-bindings: gpu: mali-bifrost: Add Realtek RTD1619Andreas Färber1-0/+1
Define a compatible string for Realtek RTD1619 SoC family. Signed-off-by: Andreas Färber <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-11dt-bindings: gpu: mali-midgard: Add Realtek RTD1295Andreas Färber1-0/+1
Define a compatible string for Realtek RTD1295 SoC family. Signed-off-by: Andreas Färber <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-11dt-bindings: gpu: mali-midgard: Tidy up conversion to YAMLAndreas Färber1-8/+5
Instead of grouping alphabetically by third-party vendor, leading to one-element enums, start sorting by Mali model number, as done for Utgard. This already allows us to de-duplicate two "arm,mali-t760" sections and will make it easier to add new vendor compatibles. Fixes: 553cedf60056 ("dt-bindings: Convert Arm Mali Midgard GPU to DT schema") Fixes: 1be5b54d26ae ("dt-bindings: gpu: mali-midgard: Add samsung exynos5250 compatible") Cc: Rob Herring <[email protected]> Signed-off-by: Andreas Färber <[email protected]> [robh: don't resort everything to avoid conflicts] Signed-off-by: Rob Herring <[email protected]>
2019-11-11dt-bindings: example-schema: Standard unit should be microvolt not microvoltsRob Herring1-1/+1
Even the DT maintainer gets confused. The schema in dt-schema was wrong too, so this was passing validation until trying to add some common incorrect patterns to check. Fixes: 58fbe999ff40 ("dt-bindings: example-schema: Add some additional examples and commentary") Signed-off-by: Rob Herring <[email protected]>
2019-11-11dt-bindings: usb: dwc3: Move Amlogic G12A DWC3 Glue Bindings to YAML schemasNeil Armstrong2-88/+127
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic G12A DWC3 Glue Bindings over to a YAML schemas, the AXG and GXL glue bindings will be converted later. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> [robh: drop maxItems on vbus-supply] Signed-off-by: Rob Herring <[email protected]>
2019-11-11dt-bindings: arm-smmu: update binding for qcom sc7180 SoCRajendra Nayak1-0/+1
Add the soc specific compatible for sc7180 smmu-500 Signed-off-by: Rajendra Nayak <[email protected]> Cc: Joerg Roedel <[email protected]> Cc: Mark Rutland <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-05dt-bindings: net: davinci-mdio: convert bindings to json-schemaGrygorii Strashko2-36/+71
Now that we have the DT validation in place, let's convert the device tree bindings for the TI SoC Davinci/OMAP/Keystone2 MDIO Controllerr over to a YAML schemas. Signed-off-by: Grygorii Strashko <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-05dt-bindings: Remove FIXME in yaml bindingsMaxime Ripard11-38/+16
Some binding that were introduced early on got a comment to enable additionalProperties, but we couldn't due to the generic properties being reported as errors. The way we're dealing with this now is to use the draft-08's unevaluatedProperties (even though the tools doesn't do anything with it yet). Let's convert those old bindings to it. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-05dt-bindings: interconnect: Convert qcom, qcs404 to DT schemaGeorgi Djakov2-45/+77
Convert the qcom,qcs404 interconnect provider binding to DT schema. Signed-off-by: Georgi Djakov <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-05dt-bindings: arm: samsung: Drop syscon compatible from CHIPID bindingSylwester Nawrocki1-2/+1
The "syscon" compatible string was introduced mainly to allow sharing of the CHIPID IO region between multiple drivers. However, such sharing can be also done without an additional compatible so remove "syscon". Suggested-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-05dt-bindings: serial: Convert Samsung UART bindings to json-schemaKrzysztof Kozlowski3-59/+119
Convert Samsung S3C/S5P/Exynos Serial/UART bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-05dt-bindings: usb: Convert Allwinner A10 mUSB controller to a schemaMaxime Ripard2-28/+100
The Allwinner SoCs have an mUSB controller that is supported in Linux, with a matching Device Tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that controller over to a YAML schemas. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-11-04dtc: Use pkg-config to locate libyamlPavel Modilaynen1-2/+2
Using Makefile's wildcard with absolute path to detect the presence of libyaml results in false-positive detection when cross-compiling e.g. in yocto environment. The latter results in build error: | scripts/dtc/yamltree.o: In function `yaml_propval_int': | yamltree.c: undefined reference to `yaml_sequence_start_event_initialize' | yamltree.c: undefined reference to `yaml_emitter_emit' | yamltree.c: undefined reference to `yaml_scalar_event_initialize' ... Use pkg-config to locate libyaml to address this scenario. Signed-off-by: Pavel Modilaynen <[email protected]> [robh: silence stderr] Signed-off-by: Rob Herring <[email protected]>
2019-11-04scripts/dtc: dtx_diff - add color output supportGeert Uytterhoeven1-1/+11
Add new -c/--color options, to enhance the diff output with color, and improve the user's experience. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Frank Rowand <[email protected]> Tested-by: Frank Rowand <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-29dt-bindings: can: Convert Allwinner A10 CAN controller to a schemaMaxime Ripard2-36/+51
The older Allwinner SoCs have a CAN controller that is supported in Linux, with a matching Device Tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that controller over to a YAML schemas. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-29dt-bindings: display: st,stm32-dsi: Fix white spacesKrzysztof Kozlowski2-2/+2
Remove unneeded indentation in blank line and space at end of line. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-29dt-bindings: soc: amlogic: canvas: convert to yamlNeil Armstrong2-33/+49
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic Canvas over to a YAML schemas. Cc: Maxime Jourdan <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> [robh: update title] Signed-off-by: Rob Herring <[email protected]>
2019-10-29media: dt-bindings: media: add new rc map namesNeil Armstrong1-0/+6
Add new entries for linux,rc-map-name: - rc-khadas - rc-odroid - rc-tanix-tx3mini - rc-wetek-hub - rc-wetek-play2 - rc-x96max Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-29dt-bindings: media: meson-ao-cec: convert to yamlNeil Armstrong2-37/+91
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic AO-CEC controller over to a YAML schemas. Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28MAINTAINERS: update the list of maintained files for max77650Bartosz Golaszewski1-2/+2
The DT bindings for MAX77650 MFD have now been converted to YAML. Update the MAINTAINERS entry for this set of drivers. Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: mfd: max77650: convert the binding document to yamlBartosz Golaszewski2-46/+149
Convert the binding document for MAX77650 core MFD module to YAML. Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: leds: max77650: convert the binding document to yamlBartosz Golaszewski2-57/+51
Convert the binding document for MAX77650 LED module to YAML. Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: power: max77650: convert the binding document to yamlBartosz Golaszewski2-28/+34
Convert the binding document for MAX77650 charger module to YAML. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Sebastian Reichel <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: regulator: max77650: convert the binding document to yamlBartosz Golaszewski2-41/+31
Convert the binding document for MAX77650 regulator module to YAML. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: input: max77650: convert the binding document to yamlBartosz Golaszewski2-26/+35
Convert the binding document for MAX77650 onkey module to YAML. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: ata: sata_rcar: Add r8a774b1 supportFabrizio Castro1-2/+5
Document SATA support for the RZ/G2N, no driver change required. Signed-off-by: Fabrizio Castro <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: sram: Merge Socionext SRAM bindings into genericKrzysztof Kozlowski2-24/+15
The Socionext SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: sram: Merge Allwinner SRAM bindings into genericKrzysztof Kozlowski2-44/+25
The Allwinner SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: sram: Merge Rockchip SRAM bindings into genericKrzysztof Kozlowski2-30/+15
The Rockchip SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Heiko Stuebner <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: sram: Merge Renesas SRAM bindings into genericKrzysztof Kozlowski2-27/+15
The Renesas SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: sram: Merge Amlogic SRAM bindings into genericKrzysztof Kozlowski2-32/+22
The Amlogic SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: sram: Merge Samsung SRAM bindings into genericKrzysztof Kozlowski3-39/+29
The Samsung SRAM bindings list only compatible so integrate them into generic SRAM bindings schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-28dt-bindings: sram: Convert SRAM bindings to json-schemaKrzysztof Kozlowski2-80/+136
Convert generic mmio-sram bindings to DT schema format using json-schema. Require the address/size cells to be 1, not equal to root node. This also fixes the check for clocks property to be in main root node instead of children. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-25Merge branch 'dt/linus' into dt/nextRob Herring2-1/+4
2019-10-25dt-bindings: example-schema: Add some additional examples and commentaryRob Herring1-7/+74
Add examples for properties with standard units, child nodes, dependencies, and if/then schema. Also, make some minor updates based on common questions and review issues. Signed-off-by: Rob Herring <[email protected]>
2019-10-25dt: submitting-patches: Document requirements for DT schemaRob Herring1-5/+16
Update the DT submitting-patches.txt with additional requirements for DT binding schemas. New binding documents should generally use the schema format and have an explicit license. Signed-off-by: Rob Herring <[email protected]>
2019-10-25dt: writing-schema: Add a note about tools PATH setupRob Herring1-0/+3
Users without an existing python install may not have their PATH setup for pip installed python programs already. Add a note about having the DT validation programs in the PATH. Reported-by: Robert Jones <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-25dt-bindings: arm: samsung: Update the CHIPID binding for ASVSylwester Nawrocki1-1/+16
This patch adds documentation of new optional "samsung,asv-bin" property in the chipid device node and documents requirement of "syscon" compatible string. These additions are needed to support Exynos ASV (Adaptive Supply Voltage) feature. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> [robh: drop 'select' which is no longer needed. Fix up example whitespace] Signed-off-by: Rob Herring <[email protected]>
2019-10-24libfdt: reduce the number of headers included from libfdt_env.hMasahiro Yamada1-1/+1
Currently, libfdt_env.h includes <linux/kernel.h> just for INT_MAX. <linux/kernel.h> pulls in a lots of broat. Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN macros into <linux/limits.h>"), <linux/kernel.h> can be replaced with <linux/limits.h>. This saves including dozens of headers. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-23of: reserved_mem: add missing of_node_put() for proper ref-countingChris Goldsworthy1-1/+3
Commit d698a388146c ("of: reserved-memory: ignore disabled memory-region nodes") added an early return in of_reserved_mem_device_init_by_idx(), but didn't call of_node_put() on a device_node whose ref-count was incremented in the call to of_parse_phandle() preceding the early exit. Fixes: d698a388146c ("of: reserved-memory: ignore disabled memory-region nodes") Signed-off-by: Chris Goldsworthy <[email protected]> Cc: [email protected] Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-23of: unittest: fix memory leak in unittest_data_addNavid Emamdoost1-0/+1
In unittest_data_add, a copy buffer is created via kmemdup. This buffer is leaked if of_fdt_unflatten_tree fails. The release for the unittest_data buffer is added. Fixes: b951f9dc7f25 ("Enabling OF selftest to run without machine's devicetree") Signed-off-by: Navid Emamdoost <[email protected]> Reviewed-by: Frank Rowand <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-23dt-bindings: riscv: Fix CPU schema errorsRob Herring1-16/+13
Fix the errors in the RiscV CPU DT schema: Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: 'timebase-frequency' is a required property Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@1: 'timebase-frequency' is a required property Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: compatible:0: 'riscv' is not one of ['sifive,rocket0', 'sifive,e5', 'sifive,e51', 'sifive,u54-mc', 'sifive,u54', 'sifive,u5'] Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: compatible: ['riscv'] is too short Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: 'timebase-frequency' is a required property The DT spec allows for 'timebase-frequency' to be in 'cpu' or 'cpus' node and RiscV requires it in /cpus node, so make it disallowed in cpu nodes. Fixes: 4fd669a8c487 ("dt-bindings: riscv: convert cpu binding to json-schema") Cc: Palmer Dabbelt <[email protected]> Cc: Albert Ou <[email protected]> Cc: [email protected] Acked-by: Paul Walmsley <[email protected]> Signed-off-by: Rob Herring <[email protected]>