aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-10-23dt-bindings: gpu: samsung-rotator: Fix indentationKrzysztof Kozlowski1-1/+1
Array elements under 'items' should be indented. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-23dt-bindings: PCI: rcar: Add device tree support for r8a774b1Fabrizio Castro1-0/+1
Add PCIe support for the RZ/G2N (a.k.a. R8A774B1). Signed-off-by: Fabrizio Castro <[email protected]> Reviewed-by: Andrew Murray <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-23dt-bindings: watchdog: renesas-wdt: Document r8a774b1 supportFabrizio Castro1-0/+1
RZ/G2N (a.k.a. R8A774B1) watchdog implementation is compatible with R-Car Gen3, therefore add the relevant documentation. Signed-off-by: Fabrizio Castro <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-23dt-bindings: iommu: Convert Arm SMMUv3 to DT schemaRob Herring2-77/+95
Convert the Arm SMMv3 binding to the DT schema format. Cc: Joerg Roedel <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Reviewed-by: Robin Murphy <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-16dt-bindings: iommu: Convert Arm SMMU to DT schemaRob Herring2-182/+229
Convert the Arm SMMU binding to DT schema. The existing binding doc doesn't cover the number of variations of compatible properties found in .dts files. "qcom,msm8998-smmu-v2" was also missing, so add it. SoCFPGA Stratix10 has a single clock defined which doesn't match the binding. This issue remains. Cc: Joerg Roedel <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Will Deacon <[email protected]> Cc: Robin Murphy <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: display: Convert sharp, ld-d5116z01b panel to DT schemaJeffrey Hugo2-26/+30
Convert the sharp,ld-d5116z01b panel binding to DT schema. Signed-off-by: Jeffrey Hugo <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: usb: generic-ehci: Add "companion" entryAlexandre Torgue1-0/+5
"companion" entry is present in "generic.txt" usb binding file. This commit adds it also in generic-ehci yaml binding. Signed-off-by: Alexandre Torgue <[email protected]> [robh: restrict type to phandle instead of phandle-array] Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: pinctrl: stm32: Fix 'st, syscfg' description fieldAlexandre Torgue1-4/+3
As there is only one item "st,syscfg" this commit moves phandle description fields under "description" tag. It'll fix a validation issue seen during stm32 DT check. Signed-off-by: Alexandre Torgue <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: arm: stm32: Add missing STM32 boardsAlexandre Torgue1-4/+23
This commit documents missing STM32 boards: -STM32MCU: F429 disco/eval, F469-disco, F746 disco/eval, F769 disco, H743 disco/eval. -STM32MPU: MP157 dk1/dk2/ed1/ev1. Signed-off-by: Alexandre Torgue <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: irqchip: renesas-irqc: Document r8a774b1 bindingsBiju Das1-0/+1
Document SoC specific bindings for RZ/G2N (r8a774b1) SoC. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: pwm: rcar: Add r8a774b1 supportBiju Das1-0/+1
Document RZ/G2N (R8A774B1) SoC bindings. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: iio: adc: exynos: Use defines instead of clock numbersKrzysztof Kozlowski1-2/+4
Make the examples in Exynos ADC bindings more readable and bring them closer to real DTS by using defines for clocks. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: rtc: s3c: Include generic dt-schema bindingsKrzysztof Kozlowski1-0/+1
Include the generic rtc.yaml bindings in Samsung S3C RTC bindings. This brings the requirement of proper node names and adds parsing of additional properties. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: rtc: s3c: Use defines instead of clock numbersKrzysztof Kozlowski1-2/+5
Make the examples in S3C RTC bindings more readable and bring them closer to real DTS by using defines for clocks. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: samsung: Indent examples with four spacesKrzysztof Kozlowski5-48/+48
Change the indentation of examples used in json-schema bindings from two to four spaces as this makes the code easier to read and seems to be preferred in other files. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Jonathan Cameron <[email protected]> # for iio Acked-by: Alexandre Belloni <[email protected]> Acked-by: Sebastian Reichel <[email protected]> # for power/reset Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: serio: Convert Allwinner PS2 controller to a schemaMaxime Ripard2-22/+51
The older Allwinner SoCs have a PS2 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]> Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-15dt-bindings: display: Convert stm32 display bindings to json-schemaBenjamin Gaignard3-144/+231
Convert the STM32 display binding to DT schema format using json-schema. Split the original bindings in two yaml files: - one for display controller (ltdc) - one for DSI controller Signed-off-by: Benjamin Gaignard <[email protected]> [robh: drop maxItems from phy-dsi-supply] Signed-off-by: Rob Herring <[email protected]>
2019-10-14dt-bindings: timer: Convert stm32 timer bindings to json-schemaBenjamin Gaignard2-22/+47
Convert the STM32 timer binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-14dt-bindings: thermal: Convert stm32 thermal bindings to json-schemaBenjamin Gaignard2-61/+79
Convert the STM32 thermal binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-14dt-bindings: media: Convert stm32 dcmi bindings to json-schemaBenjamin Gaignard2-45/+86
Convert the STM32 dcmi binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-14dt-bindings: media: Convert stm32 cec bindings to json-schemaBenjamin Gaignard2-19/+54
Convert the STM32 cec binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-14dt-bindings: hwlock: Convert stm32 hwspinlock bindings to json-schemaBenjamin Gaignard2-23/+50
Convert the STM32 hwspinlock binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-14dt-bindings: Clean-up regulator '-supply' schemasRob Herring13-25/+5
Regulator '*-supply' properties are always a single phandle, so 'maxItems: 1' or a $ref is not necessary. All that's needed is either 'true' or an optional 'description'. Following this clean-up, the meta-schema will enforce this pattern. There's one case in tree with 'innolux,n156bge-l21' having 2 phandles. This appears to be a mistake or abuse of simple-panel as it's 2 different voltage rails connected to 'power-supply'. Cc: Neil Armstrong <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Kishon Vijay Abraham I <[email protected]> Cc: Liam Girdwood <[email protected]> Cc: Mark Brown <[email protected]> Cc: [email protected] Acked-by: Jonathan Cameron <[email protected]> # for iio Signed-off-by: Rob Herring <[email protected]>
2019-10-11checkpatch: Warn if DT bindings are not in schema formatRob Herring1-0/+8
DT bindings are moving to using a json-schema based schema format instead of freeform text. Add a checkpatch.pl check to encourage using the schema for new bindings. It's not yet a requirement, but is progressively being required by some maintainers. Cc: Andy Whitcroft <[email protected]> Cc: Joe Perches <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-11dt-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]>
2019-10-11dt-bindings: display: clps711x-fb: fix native-mode settingMartin Kaiser1-1/+1
Move the native-mode setting inside the display-timing node. Outside of display-timing, it is ignored. Signed-off-by: Martin Kaiser <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-11dt-bindings: display: imx: fix native-mode settingMartin Kaiser1-1/+1
Move the native-mode setting inside the display-timing node. Outside of display-timing, it is ignored. Signed-off-by: Martin Kaiser <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-10ASoC: samsung: i2s: Document clocks macrosMaciej Falkowski1-3/+9
Document clocks macros with their description from 'Documentation/devicetree/bindings/sound/samsung-i2s.txt' Signed-off-by: Maciej Falkowski <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-10dt-bindings: rtc: rtc-sh: convert bindings to json-schemaSimon Horman2-28/+70
Convert Real Time Clock for Renesas SH and ARM SoCs bindings documentation to json-schema. Also name bindings documentation file according to the compat string being documented. Also correct syntax error in interrupts field in example. Signed-off-by: Simon Horman <[email protected]> Reviewed-by: Ulrich Hecht <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-10dt-bindings: crypto: samsung: Convert SSS and SlimSSS bindings to json-schemaKrzysztof Kozlowski5-53/+107
Convert Samsung Exynos Security SubSystem (SSS) and SlimSSS hardware crypto accelerator bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-10dt-bindings: memory-controllers: Convert Samsung Exynos SROM bindings to ↵Krzysztof Kozlowski2-79/+128
json-schema Convert Samsung Exynos SROM controller bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-10dt-bindings: rng: exynos4-rng: Convert Exynos PRNG bindings to json-schemaKrzysztof Kozlowski3-20/+46
Convert Samsung Exynos Pseudo Random Number Generator bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-09dt-bindings: at24: add new compatibleBartosz Golaszewski1-0/+3
arch/arm/boot/dts/at91-dvk_som60.dt.yaml uses the compatible string 'giantec,gt24c32a' for an at24 EEPROM with a fallback to 'atmel,24c32'. Add this model as a special case to the binding document. Reported-by: Rob Herring <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-09dt-bindings: at24: convert the binding document to yamlBartosz Golaszewski3-90/+187
Convert the binding document for at24 EEPROMs from txt to yaml. The compatible property uses a regex pattern to address all the possible combinations of "vendor,model" strings. Signed-off-by: Bartosz Golaszewski <[email protected]> [robh: rework compatible schema, fix missing allOf for $ref, fix errors in example] Signed-off-by: Rob Herring <[email protected]> [Bartosz: added comments explaining the compatible property] Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-09of: Make of_dma_get_range() work on bus nodesRobin Murphy1-26/+18
Since the "dma-ranges" property is only valid for a node representing a bus, of_dma_get_range() currently assumes the node passed in is a leaf representing a device, and starts the walk from its parent. In cases like PCI host controllers on typical FDT systems, however, where the PCI endpoints are probed dynamically the initial leaf node represents the 'bus' itself, and this logic means we fail to consider any "dma-ranges" describing the host bridge itself. Rework the logic such that of_dma_get_range() also works correctly starting from a bus node containing "dma-ranges". While this does mean "dma-ranges" could incorrectly be in a device leaf node, there isn't really any way in this function to ensure that a leaf node is or isn't a bus node. Signed-off-by: Robin Murphy <[email protected]> [robh: Allow for the bus child node to still be passed in] Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Robin Murphy <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]>
2019-10-08of/address: Fix of_pci_range_parser_one translation of DMA addressesRob Herring2-3/+13
of_pci_range_parser_one() has a bug when parsing dma-ranges. When it translates the parent address (aka cpu address in the code), 'ranges' is always being used. This happens to work because most users are just 1:1 translation. Cc: Robin Murphy <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of/address: Translate 'dma-ranges' for parent nodes missing 'dma-ranges'Rob Herring1-1/+5
'dma-ranges' frequently exists without parent nodes having 'dma-ranges'. While this is an error for 'ranges', this is fine because DMA capable devices always have a translatable DMA address. Also, with no 'dma-ranges' at all, the assumption is that DMA addresses are 1:1 with no restrictions unless perhaps the device itself has implicit restrictions. Cc: Robin Murphy <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of/unittest: Add dma-ranges address translation testsRob Herring3-0/+141
The functions for parsing 'dma-ranges' ranges are buggy and fail to handle several conditions. Add new tests for of_dma_get_range() and for_each_of_pci_range(). With this test, we get 5 new failures which are fixed in subsequent commits: OF: translation of DMA address(0) to CPU address failed node(/testcase-data/address-tests/device@70000000) FAIL of_unittest_dma_ranges_one():798 of_dma_get_range failed on node /testcase-data/address-tests/device@70000000 rc=-22 OF: translation of DMA address(10000000) to CPU address failed node(/testcase-data/address-tests/bus@80000000/device@1000) FAIL of_unittest_dma_ranges_one():798 of_dma_get_range failed on node /testcase-data/address-tests/bus@80000000/device@1000 rc=-22 OF: translation of DMA address(0) to CPU address failed node(/testcase-data/address-tests/pci@90000000) FAIL of_unittest_dma_ranges_one():798 of_dma_get_range failed on node /testcase-data/address-tests/pci@90000000 rc=-22 FAIL of_unittest_pci_dma_ranges():851 for_each_of_pci_range wrong CPU addr (d0000000) on node /testcase-data/address-tests/pci@90000000 FAIL of_unittest_pci_dma_ranges():861 for_each_of_pci_range wrong CPU addr (ffffffffffffffff) on node /testcase-data/address-tests/pci@90000000 Cc: Robin Murphy <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of: Factor out #{addr,size}-cells parsingRobin Murphy3-10/+27
In some cases such as PCI host controllers, we may have a "parent bus" which is an OF leaf node, but still need to correctly parse ranges from the point of view of that bus. For that, factor out variants of the "#addr-cells" and "#size-cells" parsers which do not assume they have a device node and thus immediately traverse upwards before reading the relevant property. Signed-off-by: Robin Murphy <[email protected]> [robh: don't make of_bus_n_{addr,size}_cells() public] Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of: address: Follow DMA parent for "dma-coherent"Robin Murphy1-1/+1
Much like for address translation, when checking for DMA coherence we should be sure to walk up the DMA hierarchy, rather than the MMIO one, now that we can accommodate them being different. Signed-off-by: Robin Murphy <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of/address: Introduce of_get_next_dma_parent() helperRobin Murphy1-0/+10
Add of_get_next_dma_parent() helper which is similar to __of_get_dma_parent(), but can be used in iterators and decrements the ref count on the prior parent. Signed-off-by: Robin Murphy <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of: address: Report of_dma_get_range() errors meaningfullyRobin Murphy1-2/+2
If we failed to translate a DMA address, at least show the offending address rather than the uninitialised contents of the destination argument. Signed-off-by: Robin Murphy <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of: Make of_dma_get_range() privateRob Herring3-9/+11
of_dma_get_range() is only used within the DT core code, so remove the export and move the header declaration to the private header. Cc: Robin Murphy <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-08of: Remove unused of_find_matching_node_by_address()Rob Herring2-31/+0
of_find_matching_node_by_address() is unused, so remove it. Cc: Robin Murphy <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-07Merge branch 'dt/linus' into dt/nextRob Herring4-6/+5
2019-10-04dt-bindings: watchdog: meson-gxbb-wdt: Include generic watchdog bindingsKrzysztof Kozlowski1-0/+3
Include generic watchdog DT schema bindings in Amlogic GXBB Watchdog bindings. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-04dt-bindings: watchdog: Add missing clocks requirement in Samsung SoC watchdogKrzysztof Kozlowski1-0/+9
The Samsung SoC watchdog driver always required providing a clock (either through platform data or from DT). However when bindings were added in commit 9487a9cc7140 ("watchdog: s3c2410: Add support for device tree based probe"), they missed the requirement of clock. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-04dt-bindings: watchdog: Convert Samsung SoC watchdog bindings to json-schemaKrzysztof Kozlowski2-35/+65
Convert Samsung S3C/S5P/Exynos watchdog 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-10-04dt-bindings: pwm: renesas: tpu: convert bindings to json-schemaYoshihiro Kaneko2-35/+69
Convert Renesas R-Car Timer Pulse Unit PWM Controller bindings documentation to json-schema. Signed-off-by: Yoshihiro Kaneko <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-10-04dt-bindings: pwm: renesas: pwm-rcar: convert bindings to json-schemaYoshihiro Kaneko2-40/+77
Convert Renesas R-Car PWM Timer Controller bindings documentation to json-schema. Signed-off-by: Yoshihiro Kaneko <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Rob Herring <[email protected]>