aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2019-11-26of: unittest: fix memory leak in attach_node_and_childrenErhard Furtner1-1/+3
In attach_node_and_children memory is allocated for full_name via kasprintf. If the condition of the 1st if is not met the function returns early without freeing the memory. Add a kfree() to fix that. This has been detected with kmemleak: Link: https://bugzilla.kernel.org/show_bug.cgi?id=205327 It looks like the leak was introduced by this commit: Fixes: 5babefb7f7ab ("of: unittest: allow base devicetree to have symbol metadata") Signed-off-by: Erhard Furtner <erhard_f@mailbox.org> Reviewed-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-26of: overlay: add_changeset_property() memory leakFrank Rowand1-17/+20
No changeset entries are created for #address-cells and #size-cells properties, but the duplicated properties are never freed. This results in a memory leak which is detected by kmemleak: unreferenced object 0x85887180 (size 64): backtrace: kmem_cache_alloc_trace+0x1fb/0x1fc __of_prop_dup+0x25/0x7c add_changeset_property+0x17f/0x370 build_changeset_next_level+0x29/0x20c of_overlay_fdt_apply+0x32b/0x6b4 ... Fixes: 6f75118800ac ("of: overlay: validate overlay properties #address-cells and #size-cells") Reported-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Signed-off-by: Frank Rowand <frank.rowand@sony.com> Tested-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-26dt-bindings: interrupt-controller: arm,gic-v3: Add missing type to interrupt-partition-* nodesRob Herring1-0/+1
Add missing 'type: object' schema to interrupt-partition-* nodes. Found with fix to meta-schema checks. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jason Cooper <jason@lakedaemon.net> Acked-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-26dt-bindings: firmware: ixp4xx: Drop redundant minItems/maxItemsRob Herring1-2/+0
The minItems/maxItems default to the number of items in an 'items' list, so drop the redundant specifying of them here. Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-26dt-bindings: power: Rename back power_domain.txt bindings to fix referencesKrzysztof Kozlowski2-1/+1
With split of power domain controller bindings to power-domain.yaml, the consumer part was renamed to power-domain.txt breaking the references. Undo the renaming. Reported-by: Geert Uytterhoeven <geert+renesas@glider.be> Fixes: 5279a3d8bede ("dt-bindings: power: Convert Generic Power Domain bindings to json-schema") Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: i2c: stm32: Migrate i2c-stm32 documentation to yamlAlain Volmat2-65/+141
The document was migrated to Yaml format and renamed st,stm32-i2c.yaml Signed-off-by: Alain Volmat <alain.volmat@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: mtd: Convert stm32 fmc2-nand bindings to json-schemaBenjamin Gaignard2-61/+98
Convert the STM32 fmc2-nand binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> CC: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: remoteproc: convert stm32-rproc to json-schemaArnaud Pouliquen2-63/+128
Convert the STM32 remoteproc bindings to DT schema format using json-schema Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> [robh: Drop mbox-consumer.yaml reference] Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: mailbox: convert stm32-ipcc to json-schemaArnaud Pouliquen2-47/+84
Convert the STM32 IPCC bindings to DT schema format using json-schema Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: mfd: Convert stm32 low power timers bindings to json-schemaBenjamin Gaignard5-130/+120
Convert the STM32 low power timers binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: interrupt-controller: Convert stm32-exti to json-schemaAlexandre Torgue2-29/+98
Convert the STM32 external interrupt controller (EXTI) binding to DT schema format using json-schema. Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: crypto: Convert stm32 HASH bindings to json-schemaBenjamin Gaignard2-30/+69
Convert the STM32 HASH binding to DT schema format using json-schema Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-21dt-bindings: rng: Convert stm32 RNG bindings to json-schemaBenjamin Gaignard2-25/+48
Convert the STM32 RNG binding to DT schema format using json-schema Remove interrupt from the json-schema because it is not used by the driver. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-19dt-bindings: pwm: Convert Samsung PWM bindings to json-schemaKrzysztof Kozlowski2-51/+109
Convert Samsung PWM (S3C, S5P and Exynos SoCs) bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-19dt-bindings: pwm: Convert PWM bindings to json-schemaKrzysztof Kozlowski40-48/+68
Convert generic PWM controller bindings to DT schema format using json-schema. The consumer bindings are provided by dt-schema. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Stephen Boyd <sboyd@kernel.org> Acked-by: Paul Walmsley <paul.walmsley@sifive.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-15dt-bindings: serial: Add a new compatible string for SC9863AChunyan Zhang1-0/+1
SC9863A use the same serial device which SC9836 uses. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-15dt-bindings: serial: Convert sprd-uart to json-schemaChunyan Zhang2-32/+71
Convert the sprd-uart binding to DT schema using json-schema. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> [robh: dual license GPL/BSD] Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-14dt-bindings: arm: Add bindings for Unisoc SC9863AChunyan Zhang1-0/+4
Added bindings for Unisoc SC9863A board and SC9863A SoC. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-14dt-bindings: arm: Convert sprd board/soc bindings to json-schemaChunyan Zhang2-14/+29
Convert Unisoc (formerly Spreadtrum) SoC bindings to DT schema format using json-schema. Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> [robh: dual license GPL/BSD] Signed-off-by: Rob Herring <robh@kernel.org>
2019-11-14of: property: Fix documentation for out valuesMatti Vaittinen1-4/+4
Property fetching functions which return number of successfully fetched properties should not state that out-values are only modified if 0 is returned. Fix this. Also, "pointer to return value" is slightly suboptimal phrase as "return value" commonly refers to value function returns (not via arguments). Rather use "pointer to found values". Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Reviewed-by: Frank Rowand <frowand.list@gmail.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <maxime@cerno.tech> Signed-off-by: Rob Herring <robh@kernel.org>
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 <benjamin.gaignard@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <benjamin.gaignard@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <benjamin.gaignard@st.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <yamada.masahiro@socionext.com> Tested-by: Jeffrey Hugo <jhugo@codeaurora.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <krzk@kernel.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <krzk@kernel.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <mihailescu2m@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <afaerber@suse.de> Signed-off-by: Rob Herring <robh@kernel.org>
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 <afaerber@suse.de> Signed-off-by: Rob Herring <robh@kernel.org>
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 <robh@kernel.org> Signed-off-by: Andreas Färber <afaerber@suse.de> [robh: don't resort everything to avoid conflicts] Signed-off-by: Rob Herring <robh@kernel.org>
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 <robh@kernel.org>
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 <narmstrong@baylibre.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> [robh: drop maxItems on vbus-supply] Signed-off-by: Rob Herring <robh@kernel.org>
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 <rnayak@codeaurora.org> Cc: Joerg Roedel <joro@8bytes.org> Cc: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <grygorii.strashko@ti.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <maxime@cerno.tech> Signed-off-by: Rob Herring <robh@kernel.org>
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 <georgi.djakov@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <krzk@kernel.org> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <krzk@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <maxime@cerno.tech> Signed-off-by: Rob Herring <robh@kernel.org>
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 <pavel.modilaynen@axis.com> [robh: silence stderr] Signed-off-by: Rob Herring <robh@kernel.org>
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 <geert+renesas@glider.be> Reviewed-by: Frank Rowand <frank.rowand@sony.com> Tested-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <mripard@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <krzk@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
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 <mjourdan@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> [robh: update title] Signed-off-by: Rob Herring <robh@kernel.org>
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 <narmstrong@baylibre.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <narmstrong@baylibre.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <bgolaszewski@baylibre.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <bgolaszewski@baylibre.com> Signed-off-by: Rob Herring <robh@kernel.org>
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 <bgolaszewski@baylibre.com> Signed-off-by: Rob Herring <robh@kernel.org>