aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-14Merge branch 'dt/linus' into dt/nextRob Herring1-0/+1
2020-01-13dt-bindings: Convert Faraday FTIDE010 to DT schemaLinus Walleij2-38/+89
This uses the new pata-common.yaml schema to convert the Faraday FTIDE010 to DT schema. Cc: Rob Herring <[email protected]> Cc: [email protected] Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-13dt-bindings: Create DT bindings for PATA controllersLinus Walleij1-0/+50
I need to create subnodes for drives connected to PATA host controllers, and this needs to be supported generally, so create a common YAML binding for "ide" that will support subnodes with ports. This has been designed as a subset of ata/ahci-platform.txt with the bare essentials and should be possible to extend or superset to cover the common bindings. Cc: Rob Herring <[email protected]> Cc: [email protected] Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-13dt-bindings: Create DT bindings for SATA controllersLinus Walleij1-0/+50
I need to create subnodes for drives connected to SATA host controllers, and this needs to be supported generally, so create a common YAML binding for "sata" that will support subnodes with ports. This has been designed as a subset of ata/ahci-platform.txt with the bare essentials and should be possible to extend or superset to cover the common bindings. Cc: Rob Herring <[email protected]> Cc: [email protected] Cc: Sergei Shtylyov <[email protected]> Signed-off-by: Linus Walleij <[email protected]> [robh: fixup sata-port unit-address pattern] Signed-off-by: Rob Herring <[email protected]>
2020-01-08dt: bindings: add vendor prefix for Kamstrup A/SBruno Thomsen1-0/+2
Kamstrup manufactures meters for electricity, heating, cooling and water. Including long-life communication infrastructure for e.g. smart grid based on Linux, more information on https://www.kamstrup.com Signed-off-by: Bruno Thomsen <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-08dt-bindings: usb: Convert DWC2 bindings to json-schemaBenjamin Gaignard2-64/+151
Convert DWC2 bindings to DT schema format using json-schema. DWC2 is widely use but a couple of compatibles and properties (vusb_d-supply,vusb_a-supply) were missing in dwc2.txt, the patch add them. Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-08dt-bindings: add vendor Monolithic Power SystemsMarkus Reichl1-0/+2
MPS produce power regulators like the MP8859. Signed-off-by: Markus Reichl <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-08of: overlay: Remove blank line between assignment and checkGeert Uytterhoeven1-1/+0
There used to be blank lines between assignment and check of the __of_changeset_revert_entries() result, to make the phandle cache management operations stand out. After the removal of those operations in commit 90dc0d1ce890419f ("of: Rework and simplify phandle cache to use a fixed size"), there is no longer a reason to have such a blank line. Remove the blank line, to rejoin visibly the status assignement and check, and to match coding style. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-08Documentation: spi-ir-led: fix spelling mistake "balue"->"value"Mohana Datta Yelugoti1-1/+1
There is a spelling mistake in: Documentation/bindings/leds/irled/spi-ir-led.txt. Fix it. Signed-off-by: Mohana Datta Yelugoti <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-06dt-bindings: arm: Convert arm,idle-state binding to DT schemaRob Herring2-706/+661
Convert the Arm idle-state binding to a DT schema. Cc: Lorenzo Pieralisi <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-06dt-bindings: Rename Exynos to lowercaseKrzysztof Kozlowski5-7/+7
Fix up inconsistent usage of upper and lowercase letters in "Exynos" name. "EXYNOS" is not an abbreviation but a regular trademarked name. Therefore it should be written with lowercase letters starting with capital letter. The lowercase "Exynos" name is promoted by its manufacturer Samsung Electronics Co., Ltd., in advertisement materials and on website. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-04dt-bindings: mmc: clarify disable-wp textJohan Jonker1-1/+1
"disable-wp" has been removed from all Rockchip eMMC and SDIO dts nodes, but people still continue to submit new patches with "disable-wp" added to other nodes then for the SD card slot, what it was designed for in the first place. So clarify the "disable-wp" text by adding that this option should not be used in combination with eMMC or SDIO. Signed-off-by: Johan Jonker <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2020-01-04dt-bindings: mmc: remove identical phrase in disable-wp textJohan Jonker1-2/+1
There are two identical phrases in the disable-wp text, so remove one of them. Signed-off-by: Johan Jonker <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-26scripts/dtc: Update to upstream version v1.5.1-22-gc40aeb60b47aRob Herring14-32/+84
This adds the following commits from upstream: c40aeb60b47a travis.yml: Run tests on the non-x86 builders, too 9f86aff444f4 Add .cirrus.yml for FreeBSD build 34c82275bae6 Avoid gnu_printf attribute when using Clang 743000931bc9 tests: default to 'cc' if CC not set adcd676491cc Add test-case for trailing zero d9c55f855b65 Remove trailing zero from the overlay path 7a22132c79ec pylibfdt: Adjust for deprecated test methods dbe80d577ee2 tests: add extension to sed -i for GNU/BSD sed compatibility af57d440d887 libfdt: Correct prototype for fdt_ro_probe_() 6ce585ac153b Use correct inttypes.h format specifier 715028622547 support byacc in addition to bison fdf3f6d897ab pylibfdt: Correct the type for fdt_property_stub() 430419c28100 tests: fix some python warnings 588a29ff2e4e util: use gnu_printf format attribute bc876708ab1d fstree: replace lstat with stat 4c3c4ccb9916 dumptrees: pass outputdir as first argument aa522da9fff6 tests: allow out-of-tree test run 0d0d0fa51b1f fdtoverlay: Return non-zero exit code if overlays can't be applied 4605eb047b38 Add .editorconfig 18d7b2f4ee45 yamltree: Ensure consistent bracketing of properties with phandles 67f790c1adcc libfdt.h: add explicit cast from void* to uint8_t* in fdt(32|64)_st b111122ea5eb pylibfdt: use python3 shebang 60e0db3d65a1 Ignore phandle properties in /aliases 95ce19c14064 README: update for Python 3 5345db19f615 livetree: simplify condition in get_node_by_path b8d6eca78210 libfdt: Allow #size-cells of 0 184f51099471 Makefile: Add EXTRA_CFLAGS variable 812b1956a076 libfdt: Tweak data handling to satisfy Coverity 5c715a44776a fdtoverlay: Ignore symbols in overlays which don't apply to the target tree b99353474850 fdtoverlay: Allow adding labels to __overlay__ nodes in overlays d6de81b81b68 pylibfdt: Add support for fdt_get_alias() 1c17714dbb3a pylibfdt: Correct the FdtSw example ad57e4574a37 tests: Add a failed test case for 'fdtoverlay' with long target path bbe3b36f542b fdtoverlay: Rework output allocation 6c2e61f08396 fdtoverlay: Improve error messages 297f5abb362e fdtoverlay: Check for truncated overlay blobs Cc: Frank Rowand <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]>
2019-12-24dt-bindings: nvmem: Convert STM32 ROMEM to json-schemaBenjamin Gaignard2-31/+46
Convert the STM32 ROMEM binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-24dt-bindings: usb: amlogic, meson-g12a-usb-ctrl: fix clock namesBenjamin Gaignard1-1/+1
dwc2 bindings require clock-names to be "otg". Fix the example in amlogic,meson-g12a-usb-ctrl to follow this requirement. Signed-off-by: Benjamin Gaignard <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-24dt-bindings: resets: Convert Allwinner legacy resets to schemasMaxime Ripard2-21/+68
The Allwinner SoCs have a legacy set of bindings (and a framework to support it in Linux) for their reset controllers. Now that we have the DT validation in place, let's split into separate file and convert the device tree bindings for those resets to schemas, and mark them all as deprecated. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-24dt-bindings: mfd: Convert Allwinner legacy PRCM bindings to schemasMaxime Ripard3-59/+419
The Allwinner SoCs have a legacy set of bindings (and a drivers to support it in Linux) to support the PRCM unit found in most recent SoCs. Now that we have the DT validation in place, let's split into separate file and convert the device tree bindings for those controllers to schemas, and mark them all as deprecated. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-24dt-bindings: clocks: Convert Allwinner legacy clocks to schemasMaxime Ripard33-225/+2163
The Allwinner SoCs have a legacy set of bindings (and a framework to support it in Linux) for their clock controllers. Now that we have the DT validation in place, let's split into separate file and convert the device tree bindings for those clocks to schemas, and mark them all as deprecated. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-24dt-bindings: opp: Convert Allwinner H6 OPP to a schemaMaxime Ripard2-167/+129
The Allwinner H6 SoCs use binning in order to provide binning to cpufreq which 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-12-24of: Rework and simplify phandle cache to use a fixed sizeRob Herring4-124/+24
The phandle cache was added to speed up of_find_node_by_phandle() by avoiding walking the whole DT to find a matching phandle. The implementation has several shortcomings: - The cache is designed to work on a linear set of phandle values. This is true for dtc generated DTs, but not for other cases such as Power. - The cache isn't enabled until of_core_init() and a typical system may see hundreds of calls to of_find_node_by_phandle() before that point. - The cache is freed and re-allocated when the number of phandles changes. - It takes a raw spinlock around a memory allocation which breaks on RT. Change the implementation to a fixed size and use hash_32() as the cache index. This greatly simplifies the implementation. It avoids the need for any re-alloc of the cache and taking a reference on nodes in the cache. We only have a single source of removing cache entries which is of_detach_node(). Using hash_32() removes any assumption on phandle values improving the hit rate for non-linear phandle values. The effect on linear values using hash_32() is about a 10% collision. The chances of thrashing on colliding values seems to be low. To compare performance, I used a RK3399 board which is a pretty typical system. I found that just measuring boot time as done previously is noisy and may be impacted by other things. Also bringing up secondary cores causes some issues with measuring, so I booted with 'nr_cpus=1'. With no caching, calls to of_find_node_by_phandle() take about 20124 us for 1248 calls. There's an additional 288 calls before time keeping is up. Using the average time per hit/miss with the cache, we can calculate these calls to take 690 us (277 hit / 11 miss) with a 128 entry cache and 13319 us with no cache or an uninitialized cache. Comparing the 3 implementations the time spent in of_find_node_by_phandle() is: no cache: 20124 us (+ 13319 us) 128 entry cache: 5134 us (+ 690 us) current cache: 819 us (+ 13319 us) We could move the allocation of the cache earlier to improve the current cache, but that just further complicates the situation as it needs to be after slab is up, so we can't do it when unflattening (which uses memblock). Reported-by: Sebastian Andrzej Siewior <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Segher Boessenkool <[email protected]> Cc: Frank Rowand <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Reviewed-by: Frank Rowand <[email protected]> Tested-by: Frank Rowand <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-24dt-bindings: phy: Fix the PX30 DSI PHY compatible in the exampleMiquel Raynal1-1/+1
Use the upstream compatible instead of the BSP one in the example section of the DT bindings for this IP. Fixes: 3817c7961179 ("dt-bindings: phy: add yaml binding for rockchip,px30-dsi-dphy") Signed-off-by: Miquel Raynal <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-20dt-bindings: media: renesas,ceu: Convert to yamlJacopo Mondi3-87/+79
Convert the Renesas CEU bindings description to yaml schema and remove the existing textual bindings document. Signed-off-by: Jacopo Mondi <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-20dt-bindings: watchdog: Convert stm32 watchdog bindings to json-schemaBenjamin Gaignard2-26/+57
Convert the STM32 watchdog binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-19dt-bindings: Add MAX31730 as trivial deviceGuenter Roeck1-0/+2
Maxim MAX31730 is a 3-Channel Remote Temperature Sensor. Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-19dt-bindings: net: bluetooth: Add compatible string for WCN3991Matthias Kaehlcke1-0/+1
Commit 7d250a062f75 ("Bluetooth: hci_qca: Add support for Qualcomm Bluetooth SoC WCN3991") added the compatible string 'qcom,wcn3991-bt' to the Qualcomm Bluetooth driver, however the string is not listed in the binding. Add the 'qcom,wcn3991-bt' to the supported compatible strings. Signed-off-by: Matthias Kaehlcke <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-19dt-bindings: watchdog: renesas-wdt: Document r8a77961 supportGeert Uytterhoeven1-0/+1
Document support for the Watchdog Timer in the Renesas R-Car M3-W+ (R8A77961) SoC. No driver update is needed. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-19dt-bindings: net: ravb: Document r8a77961 supportGeert Uytterhoeven1-3/+4
Document support for the Ethernet AVB interface in the Renesas R-Car M3-W+ (R8A77961) SoC. Update all references to R-Car M3-W from "r8a7796" to "r8a77960", to avoid confusion between R-Car M3-W (R8A77960) and M3-W+. No driver update is needed. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Reviewed-by: Sergei Shtylyov <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: ata: Convert Allwinner AHCI controller to a schemaMaxime Ripard3-12/+114
The Allwinner SoCs have a AHCI controllers 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]> [robh: 'maxItems: 1' for resets] Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: interconnect: Convert Allwinner MBUS controller to a schemaMaxime Ripard2-37/+65
The older Allwinner SoCs have an MBUS controller that is used by 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-12-17dt-bindings: media: Convert Allwinner A31 CSI to a schemaMaxime Ripard2-61/+115
The newer Allwinner SoCs have a camera 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-12-17dt-bindings: media: Convert Allwinner hardware codec to a schemaMaxime Ripard2-57/+83
The Allwinner SoCs have a hardware video codec 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-12-17dt-bindings: sram: Convert Allwinner A10 system controller to a schemaMaxime Ripard2-113/+140
The older Allwinner SoCs have a system 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]> [robh: fixup missing 'properties'] Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: sram: Add Allwinner SRAM compatiblesMaxime Ripard1-0/+4
The mmio-sram binding was added missing a few SRAM sections compatible for allwinner SoCs. Let's add them. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: sram: Allow for more specific compatiblesMaxime Ripard1-9/+10
Even though the generic mmio-sram binding has a list of the sections compatible allowed, most device trees have more specific compatibles attached to those generic ones. This creates warnings at the moment, and we don't really want to cripple the generic binding with all the vendor specific combinations that would prove to be hard to maintain. Let's allow additional compatibles for the sections, and then we can have the vendor-specific bindings to reduce the scope of what's allowed exactly. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: sram: Allow for the childs nodes to be called sectionsMaxime Ripard1-1/+1
The generic SRAM binding currently only allows for child nodes of an SRAM to be called sram too. However, these are also called sections in a number of device tree, which seems a bit more accurate. Let's change the name pattern to allow both. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: usb: Convert Allwinner USB PHY controller to a schemaMaxime Ripard11-68/+1094
The Allwinner SoCs have a USB PHY 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-12-17dt-bindings: dma: Convert stm32 DMAMUX bindings to json-schemaBenjamin Gaignard2-84/+52
Convert the STM32 DMAMUX binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: dma: Convert stm32 MDMA bindings to json-schemaBenjamin Gaignard2-94/+105
Convert the STM32 MDMA binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: dma: Convert stm32 DMA bindings to json-schemaBenjamin Gaignard2-83/+102
Convert the STM32 DMA binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: stm32: convert mlahb to json-schemaArnaud Pouliquen2-37/+70
Convert the ML-AHB bus bindings to DT schema format using json-schema Signed-off-by: Arnaud Pouliquen <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: rtc: Convert stm32 rtc bindings to json-schemaBenjamin Gaignard2-61/+139
Convert the STM32 RTC binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-17dt-bindings: Add missing 'properties' keyword enclosing 'snps,tso'Rob Herring1-0/+1
DT property definitions must be under a 'properties' keyword. This was missing for 'snps,tso' in an if/then clause. A meta-schema fix will catch future errors like this. Fixes: 7db3545aef5f ("dt-bindings: net: stmmac: Convert the binding to a schemas") Cc: "David S. Miller" <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-16dt-bindings: vendor-prefixes: Add a broadmobi entryAngus Ainslie (Purism)1-0/+2
Add Shanghai Broadmobi Communication Technology Co.,Ltd. for their modem dts entries. Signed-off-by: Angus Ainslie (Purism) <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-16dt-bindings: rcc: Convert stm32mp1 rcc bindings to json-schemaGabriel Fernandez2-60/+79
Convert the STM32MP1 RCC binding to DT schema format using json-schema. Signed-off-by: Gabriel Fernandez <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-16dt-bindings: arm: stm32: Convert stm32-syscon to json-schemaAlexandre Torgue2-16/+41
Convert the STM32 syscon binding to DT schema format using json-schema. Signed-off-by: Alexandre Torgue <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-16dt-bindings: vendor-prefixes: Add "calaosystems" for CALAO Systems SASStephan Gerhold1-0/+2
The Snowball SBC supported by arch/arm/boot/dts/ste-snowball.dts was made by CALAO Systems and uses the "calaosystems,snowball-a9500" compatible. Prepare for documenting the compatible by adding "calaosystems" to the list of vendor prefixes. Signed-off-by: Stephan Gerhold <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-16dt-bindings: vendor-prefixes: Deprecate "ste" and "st-ericsson"Stephan Gerhold1-0/+2
Until now, device tree bindings for ST-Ericsson have been added inconsistently with one of 3 possible vendor prefixes. "stericsson" is the most commonly used vendor prefix, so deprecate "ste" and "st-ericsson". Suggested-by: Rob Herring <[email protected]> Signed-off-by: Stephan Gerhold <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-16dt-bindings: vendor-prefixes: Add yet another for ST-EricssonStephan Gerhold1-0/+2
Unfortunately the vendor prefix for ST-Ericsson is used very inconsistently. "ste," and "stericsson," are already documented, but some things in the kernel use "st-ericsson," which is not documented yet. st-ericsson,u8500 is documented in bindings/arm/ux500/boards.txt, and is used to match the machine code and the generic DT cpufreq driver. Add it to the list of vendor prefixes. Signed-off-by: Stephan Gerhold <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Rob Herring <[email protected]>
2019-12-16dt-bindings: i2c: lpi2c: add imx8qm compatible stringDong Aisheng1-0/+1
Add imx8qm compatible string. Signed-off-by: Dong Aisheng <[email protected]> Signed-off-by: Rob Herring <[email protected]>