aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-03-12dt-bindings: i2c: i2c-rk3x: add description for rk3036Johan Jonker1-0/+4
The description below is already in use for rk3036.dtsi, but was somehow never added to a document, so add "rockchip,rk3036-i2c", "rockchip,rk3288-i2c" for i2c nodes on a rk3036 platform to i2c-rk3x.yaml. Signed-off-by: Johan Jonker <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-12dt-bindings: i2c: convert rockchip i2c bindings to yamlJohan Jonker3-69/+130
Current dts files with 'i2c' nodes are manually verified. In order to automate this process i2c-rk3x.txt has to be converted to yaml. In the new setup i2c-rk3x.yaml will inherit properties from i2c-controller.yaml. Also change document name in MAINTAINERS. Signed-off-by: Johan Jonker <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-10dt-bindings: rcar-vin: Convert bindings to json-schemaNiklas Söderlund3-218/+403
Convert Renesas R-Car VIN bindings documentation to json-schema. As the examples in the bindings now can be tested add a new one which describes how the both a parallel and a CSI-2 source can be connected on Gen3 SoCs. Signed-off-by: Niklas Söderlund <[email protected]> Reviewed-by: Jacopo Mondi <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-10dt-bindings: serial: snps-dw-apb-uart: add compatible property for rk3308 uartJohan Jonker1-0/+1
A test with the command below gives these errors: arch/arm64/boot/dts/rockchip/rk3308-evb.dt.yaml: serial@ff0d0000: compatible: ['rockchip,rk3308-uart', 'snps,dw-apb-uart'] is not valid under any of the given schemas arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dt.yaml: serial@ff0a0000: compatible: ['rockchip,rk3308-uart', 'snps,dw-apb-uart'] is not valid under any of the given schemas The compatible property for the Rockchip rk3308 uart was somehow never added to the documention. Fix this error by adding 'rockchip,rk3308-uart' to snps-dw-apb-uart.yaml. make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/serial/ snps-dw-apb-uart.yaml Signed-off-by: Johan Jonker <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-10Merge branch 'dt/linus' into dt/nextRob Herring63-185/+210
2020-03-06dt-bindings: arm: Fixup the DT bindings for hierarchical PSCI statesUlf Hansson1-15/+13
The hierarchical topology with power-domain should be described through child nodes, rather than as currently described in the PSCI root node. Fix this by adding a patternProperties with a corresponding reference to the power-domain DT binding. Additionally, update the example to conform to the new pattern, but also to the adjusted domain-idle-state DT binding. Fixes: a3f048b5424e ("dt: psci: Update DT bindings to support hierarchical PSCI states") Signed-off-by: Ulf Hansson <[email protected]> [robh: Add missing allOf, tweak power-domain node name] Signed-off-by: Rob Herring <[email protected]>
2020-03-06dt-bindings: power: Extend nodename pattern for power-domain providersUlf Hansson1-1/+1
The existing binding requires the nodename to have a '@', which is a bit limiting for the wider use case. Therefore, let's extend the pattern to allow either '@' or '-'. Fixes: a3f048b5424e ("dt: psci: Update DT bindings to support hierarchical PSCI states") Signed-off-by: Ulf Hansson <[email protected]> [robh: drop example change] Signed-off-by: Rob Herring <[email protected]>
2020-03-05MAINTAINERS: update ALLWINNER CPUFREQ DRIVER entryLukas Bulwahn1-1/+1
Commit b30d8cf5e171 ("dt-bindings: opp: Convert Allwinner H6 OPP to a schema") converted in Documentation/devicetree/bindings/opp/ the file sun50i-nvmem-cpufreq.txt to allwinner,sun50i-h6-operating-points.yaml. Since then, ./scripts/get_maintainer.pl --self-test complains: warning: no file matches \ F: Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt Adjust the file pattern in the ALLWINNER CPUFREQ DRIVER entry. Signed-off-by: Lukas Bulwahn <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-04dt-bindings: pwm: Update bindings for MT7629 SoCSam Shih1-0/+5
This updates bindings for MT7629 pwm controller. Signed-off-by: Sam Shih <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-04dt-bindings: Add vendor prefix for ElidaHeiko Stuebner1-0/+2
Shenzen Elida Technology Co. Ltd. is a Chinese TFT manufacturer. Signed-off-by: Heiko Stuebner <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-04dt-bindings: arm: Convert UniPhier System Cache to json-schemaMasahiro Yamada2-60/+102
Convert the UniPhier System Cache binding to DT schema format. This is a full-custom outer cache (L2 and L3) used on UniPhier ARM 32-bit SoCs. While I was here, I added the interrupts property. This is not used in Linux, but the hardware has interrupt lines at least. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-04dt-bindings: bus: Drop empty compatible string in exampleRob Herring1-1/+0
In preparation to add generic checks of compatible strings, drop the compatible as '...' is not a valid compatible string. Cc: Maxime Ripard <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]>
2020-03-04dt-bindings: power: Convert domain-idle-states bindings to json-schemaUlf Hansson5-47/+76
While converting to the json-schema, let's also take the opportunity to further specify/clarify some more details about the DT binding. For example, let's define the label where to put the states nodes, set a pattern for nodename of the state nodes and finally add an example. Fixes: a3f048b5424e ("dt: psci: Update DT bindings to support hierarchical PSCI states") Signed-off-by: Ulf Hansson <[email protected]> [robh: drop type refs from standard unit properties] Signed-off-by: Rob Herring <[email protected]>
2020-03-04dt-bindings: arm: Fix cpu compatibles in the hierarchical example for PSCIUlf Hansson1-2/+2
Fixes: a3f048b5424e ("dt: psci: Update DT bindings to support hierarchical PSCI states") Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-04dt-bindings: arm: Correct links to idle states definitionsUlf Hansson1-1/+1
The arm,idle-state DT bindings recently got converted to the json-schema, but some links are still pointing to the old, non-existing, txt file. Let's update the links to fix this. Fixes: baac82fe06db ("dt-bindings: arm: Convert arm,idle-state binding to DT schema") Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-03dt-bindings: mfd: Fix typo in file name of twl-familly.txtJonathan Neuschäfer2-1/+1
Signed-off-by: Jonathan Neuschäfer <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-03dt-bindings: mfd: tps65910: Improve grammarJonathan Neuschäfer1-2/+2
Signed-off-by: Jonathan Neuschäfer <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-03dt-bindings: mfd: zii,rave-sp: Fix a typo ("onborad")Jonathan Neuschäfer1-1/+1
Signed-off-by: Jonathan Neuschäfer <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-02dt-bindings: clock: Convert UniPhier clock to json-schemaMasahiro Yamada2-132/+94
Convert the UniPhier clock controller binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-02dt-bindings: arm: fsl: fix APF6Dev compatibleSébastien Szymanski1-1/+1
APF6 Dev compatible is armadeus,imx6dl-apf6dev and not armadeus,imx6dl-apf6dldev. Fixes: 3d735471d066 ("dt-bindings: arm: Document Armadeus SoM and Dev boards devicetree binding") Signed-off-by: Sébastien Szymanski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-02of: overlay: log the error cause on resolver failureLuca Ceresoli1-1/+4
When a DT overlay has a node label that is not present in the live devicetree symbols table, this error is printed: OF: resolver: overlay phandle fixup failed: -22 create_overlay: Failed to create overlay (err=-22) which does not help much in finding the node label that caused the problem and fix the overlay source. Add an error message with the name of the node label that caused the error. The new output is: OF: resolver: node label 'gpio9' not found in live devicetree symbols table OF: resolver: overlay phandle fixup failed: -22 create_overlay: Failed to create overlay (err=-22) Signed-off-by: Luca Ceresoli <[email protected]> Reviewed-by: Frank Rowand <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-03-02of: unittest: make gpio overlay test dependent on CONFIG_OF_GPIOFrank Rowand1-227/+238
Randconfig testing found compile errors in drivers/of/unittest.c if CONFIG_GPIOLIB is not set because CONFIG_OF_GPIO depends on CONFIG_GPIOLIB. Make the gpio overlay test depend on CONFIG_OF_GPIO. No code is modified, it is only moved to a different location and protected with #ifdef CONFIG_OF_GPIO. An empty of_unittest_overlay_gpio() is added in the #else. Fixes: f4056e705b2e ("of: unittest: add overlay gpio test to catch gpio hog problem") Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Frank Rowand <[email protected]> Acked-by: Randy Dunlap <[email protected]> # build-tested Signed-off-by: Rob Herring <[email protected]>
2020-02-28dt-bindings: Fix dtc warnings in examplesRob Herring22-58/+39
Fix all the warnings in the DT binding schema examples when built with 'W=1'. This is in preparation to make that the default for examples. Reviewed-by: Linus Walleij <[email protected]> Acked-by: Stephen Boyd <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Acked-by: Vinod Koul <[email protected]> Acked-by: Lee Jones <[email protected]> Acked-by: Srinivas Kandagatla <[email protected]> Acked-by: Mark Brown <[email protected]> Acked-by: Bartosz Golaszewski <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: Kishon Vijay Abraham I <[email protected]> Cc: Ulf Hansson <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Kukjin Kim <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Alexandre Torgue <[email protected]> Cc: Maxime Coquelin <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-28dt-bindings: power: apmu: Convert to json-schemaGeert Uytterhoeven2-35/+55
Convert the Renesas Advanced Power Management Unit Device Tree binding documentation to json-schema. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-28dt-bindings: power: rcar-sysc: Convert to json-schemaGeert Uytterhoeven2-62/+73
Convert the Renesas R-Car System Controller Device Tree binding documentation to json-schema. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-28dt-bindings: reset: rcar-rst: Convert to json-schemaGeert Uytterhoeven2-48/+63
Convert the Renesas R-Car Reset Controller Device Tree binding documentation to json-schema. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-27Merge branch 'dt/ranges-rework' into dt/nextRob Herring4-138/+157
2020-02-27dt-bindings: vendor-prefixes: Add prefix for PocketBook International SAOndrej Jirman1-0/+2
Call it "pocketbook". Signed-off-by: Ondrej Jirman <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-27dt-bindings: rng: Convert BCM2835 to DT schemaNícolas F. R. A. Prado2-40/+59
Convert BCM2835/6368 Random number generator bindings to DT schema. Signed-off-by: Nícolas F. R. A. Prado <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-27dt-bindings: mmc: Convert Cadence SD/SDIO/eMMC controller to json-schemaMasahiro Yamada2-80/+143
Convert the Cadence SD/SDIO/eMMC host controller IP (a.k.a. SD4HC) binding to DT schema format. Socionext UniPhier ARM 64-bit SoCs are integrated with this IP. Cc: Piotr Sroka <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-27dt-bindings: mtd: Convert Denali NAND controller to json-schemaMasahiro Yamada2-61/+148
Convert the Denali NAND controller binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: mmc: Convert UniPhier SD controller to json-schemaMasahiro Yamada2-55/+99
Convert the UniPhier SD controller binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: dma: Convert UniPhier MIO DMA controller to json-schemaMasahiro Yamada2-25/+63
Convert the UniPhier MIO (Media I/O) DMA controller binding to DT schema format. While I was here, I added the resets property. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: interrupt-controller: Convert UniPhier AIDET to json-schemaMasahiro Yamada2-32/+61
Convert the UniPhier AIDET (ARM Interrupt Detector) binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: bus: Convert UniPhier System Bus to json-schemaMasahiro Yamada2-66/+96
Convert the UniPhier System Bus controller binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: pinctrl: Convert UniPhier pin controller to json-schemaMasahiro Yamada3-28/+43
Convert the UniPhier pin controller binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: gpio: Convert UniPhier GPIO to json-schemaMasahiro Yamada3-52/+93
Convert the UniPhier GPIO controller binding to DT schema format. I omitted the 'gpio-ranges' property because it is defined in the dt-schema project (/schemas/gpio/gpio.yaml). As of writing, the 'gpio-ranges-group-names' is not defined in that file despite it is a common property described in Documentation/devicetree/bindings/gpio/gpio.txt So, I defined it in this schema. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: arm: Convert UniPhier board/SoC bindings to json-schemaMasahiro Yamada3-48/+62
Convert the Socionext UniPhier board/SoC binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: i2c: Convert UniPhier FI2C controller to json-schemaMasahiro Yamada2-25/+50
Convert the UniPhier FIFO-builtin I2C (a.k.a. FIFO) controller binding to DT schema format. There are two types of I2C controllers used on the UniPhier platform. This is the new one with FIFO support, which is used on the Pro4 SoC or newer. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: i2c: Convert UniPhier I2C controller to json-schemaMasahiro Yamada2-25/+50
Convert the UniPhier I2C controller (FIFO-less) binding to DT schema format. There are two types of I2C controllers used on the UniPhier platform. This is the legacy one without FIFO support, which is used on the sLD8 SoC or older. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: serial: Convert UniPhier UART to json-schemaMasahiro Yamada2-22/+46
Convert the UniPhier UART binding to DT schema format. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26of: unittest: annotate warnings triggered by unittestFrank Rowand1-30/+345
Some tests in the devicetree unittests result in printk messages from the code being tested. It can be difficult to determine whether the messages are the result of unittest or are potentially reporting bugs that should be fixed. The most recent example of a person asking whether to be concerned about these messages is [1]. Add annotations for all messages triggered by unittests, except KERN_DEBUG messages. (KERN_DEBUG is a special case due to the possible interaction of CONFIG_DYNAMIC_DEBUG.) The format of the annotations is expected to change when unittests are converted to use the kunit infrastructure when the broader testing community has an opportunity to discuss the implementation of annotations of test triggered messages. [1] https://lore.kernel.org/r/[email protected] Signed-off-by: Frank Rowand <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26of: unittest: add overlay gpio test to catch gpio hog problemFrank Rowand8-1/+370
Geert reports that gpio hog nodes are not properly processed when the gpio hog node is added via an overlay reply and provides an RFC patch to fix the problem [1]. Add a unittest that shows the problem. Unittest will report "1 failed" test before applying Geert's RFC patch and "0 failed" after applying Geert's RFC patch. [1] https://lore.kernel.org/linux-devicetree/[email protected]/ Signed-off-by: Frank Rowand <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26of: property: Add device link support for power-domains and hwlocksSaravana Kannan1-0/+4
Add support for creating device links out of more DT properties. To: lkml <[email protected]> To: John Stultz <[email protected]> To: Rob Herring <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Ulf Hansson <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Len Brown <[email protected]> Cc: Todd Kjos <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: Liam Girdwood <[email protected]> Cc: Mark Brown <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: [email protected] Signed-off-by: Saravana Kannan <[email protected]> Tested-by: John Stultz <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: ata: rcar-sata: Convert to json-schemaGeert Uytterhoeven2-36/+71
Convert the Renesas R-Car Serial-ATA Device Tree binding documentation to json-schema. While at it: - Remove the deprecated "renesas,rcar-sata" compatible value, - Add "iommus", "power-domains", and "resets" properties, - Update the example. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-26dt-bindings: example-schema: Drop double quotes around URLsGeert Uytterhoeven1-2/+2
It is no longer needed to wrap URLs in double quotes. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-25of: of_reserved_mem: Increase limit on number of reserved regionsPatrick Daly1-1/+1
Certain SoCs need to support a large amount of reserved memory regions. For example, Qualcomm's SM8150 SoC requires that 20 regions of memory be reserved for a variety of reasons (e.g. loading a peripheral subsystem's firmware image into a particular space). When adding more reserved memory regions to cater to different usecases, the remaining number of reserved memory regions--12 to be exact--becomes too small. Thus, double the existing limit of reserved memory regions. Signed-off-by: Patrick Daly <[email protected]> Signed-off-by: Isaac J. Manjarres <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-25dt-bindings: ARM: Clean up PMU compatible listRobin Murphy1-25/+25
The "alpha by vendor, reverse-alpha by model" sorting of compatibles that we seem to have ended up with is decidedly odd. Make it less so. Also copy the comment from the generic "arm,armv8" CPU binding to help clarify that the "arm,armv8-pmuv3" binding is rather intended to be a counterpart to that, for describing implementations without a specific microarchitecture like the AEMv8 software model. Signed-off-by: Robin Murphy <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-25dt-bindings: ARM: Add recent Cortex/Neoverse PMUsRobin Murphy1-0/+9
Add new PMU definitions to correspond with the CPU bindings. Signed-off-by: Robin Murphy <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-02-25dt-bindings: ARM: Add recent Cortex/Neoverse CPUsRobin Murphy1-0/+9
The CPU group has been busy since we last updated these bindings... Add definitions for all the new Cortex-A and Neoverse cores now available. Signed-off-by: Robin Murphy <[email protected]> Signed-off-by: Rob Herring <[email protected]>