aboutsummaryrefslogtreecommitdiffstats
path: root/ipc (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2018-12-21of: of_node_get()/of_node_put() nodes held in phandle cacheFrank Rowand1-24/+46
The phandle cache contains struct device_node pointers. The refcount of the pointers was not incremented while in the cache, allowing use after free error after kfree() of the node. Add the proper increment and decrement of the use count. Fixes: 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()") Cc: stable@vger.kernel.org # v4.17+ Signed-off-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-20gpio-omap.txt: add reg and interrupts propertiesAndreas Klinger1-2/+8
Document properties reg and interrupts for OMAP GPIO controller bindings Also add unit address in node name of the example Signed-off-by: Andreas Klinger <ak@it-klinger.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-20dt-bindings: mrvl,intc: fix a trivial typoLubomir Rintel1-1/+1
s/whold/whole/. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-17dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110Anson Huang2-2/+27
Add Freescale MAG3110 dt-bindings and remove it from trivial-devices dt-bingding doc. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> [robh: fixup trivial-devices.txt change for trivial-devices.yaml] Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: Convert trivial-devices.txt to json-schemaRob Herring2-190/+392
Convert trivial-devices.txt to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: mrvl: amend Browstone compatible stringLubomir Rintel1-1/+1
The Brownstone board is compatible with "mrvl,mmp2". The actual DTS already contains the string -- add it to the binding doc as well. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert Tegra board/soc bindings to json-schemaRob Herring2-65/+101
Convert Tegra SoC bindings to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: devicetree@vger.kernel.org Cc: linux-tegra@vger.kernel.org Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert ZTE board/soc bindings to json-schemaRob Herring3-15/+27
Convert ZTE SoC bindings to DT schema format using json-schema. Cc: Jun Nie <jun.nie@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Acked-by: Shawn Guo <shawnguo@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Add missing Xilinx boardsMichal Simek1-0/+32
Add missing description for Ultra96, zcu104, zcu106 and zcu111. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert Xilinx board/soc bindings to json-schemaRob Herring2-83/+82
Convert Xilinx SoC bindings to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Acked-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert VIA board/soc bindings to json-schemaRob Herring2-22/+23
Convert VIA SoC bindings to DT schema format using json-schema. Cc: Tony Prisk <linux@prisktech.co.nz> Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert ST STi board/soc bindings to json-schemaRob Herring2-23/+23
Convert ST STi SoC bindings to DT schema format using json-schema. Acked-by: Patrice Chotard <patrice.chotard@st.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert SPEAr board/soc bindings to json-schemaRob Herring2-26/+25
Convert SPEAr SoC bindings to DT schema format using json-schema. Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert CSR SiRF board/soc bindings to json-schemaRob Herring2-11/+27
Convert CSR SiRF SoC bindings to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: Barry Song <baohua@kernel.org> Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert QCom board/soc bindings to json-schemaRob Herring2-57/+125
Convert QCom SoC bindings to DT schema format using json-schema. Acked-by: Andy Gross <andy.gross@linaro.org> Cc: David Brown <david.brown@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert TI nspire board/soc bindings to json-schemaRob Herring2-14/+24
Convert TI NSpire SoC bindings to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert TI davinci board/soc bindings to json-schemaRob Herring2-25/+26
Convert TI Davinci SoC bindings to DT schema format using json-schema. Reviewed-by: Sekhar Nori <nsekhar@ti.com> Cc: Kevin Hilman <khilman@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert Calxeda board/soc bindings to json-schemaRob Herring2-15/+22
Convert Calxeda SoC bindings to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert Altera board/soc bindings to json-schemaRob Herring2-14/+20
Convert Altera SoC bindings to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Acked-by: Dinh Nguyen <dinguyen@kernel.org> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert primecell binding to json-schemaRob Herring2-46/+36
Convert ARM Primecell binding to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: arm: Convert cpu binding to json-schemaRob Herring2-490/+507
Convert ARM CPU binding to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Cc: Matthias Brugger <matthias.bgg@gmail.com> Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: timer: Convert ARM timer bindings to json-schemaRob Herring5-139/+269
Convert ARM timers to DT schema format using json-schema. Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: i2c: Convert i2c-gpio binding to json-schemaRob Herring2-46/+73
Convert the i2c-gpio binding to DT schema format using json-schema. This serves as an example of how to include other schema (i2c-controller.yaml in this case). Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: altera: Convert clkmgr binding to json-schemaRob Herring2-11/+31
Convert Altera clkmgr to DT schema format using json-schema. Cc: Mark Rutland <mark.rutland@arm.com> Acked-by: Dinh Nguyen <dinguyen@kernel.org> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13dt-bindings: Add a writing DT schemas how-to and annotated exampleRob Herring2-0/+300
Add a how-to doc on writing DT schema documentation. This gives a description of each section and details on how to validate the DT schema file. The DT schema are written using json-schema vocabulary in a YAML encoded document. Using jsonschema gives us access to existing tooling. A YAML encoding gives us something easy to edit. The example is annotated to help explain what each section does. This example is just the tip of the iceberg, but is it the part most developers writing bindings will interact with. Backing all this up are meta-schema (to validate the binding schemas), some DT core schema, YAML encoded DT output with dtc, and a small number of python scripts to run validation. Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
2018-12-13kbuild: Add support for DT binding schema checksRob Herring7-6/+67
This adds the build infrastructure for checking DT binding schema documents and validating dts files using the binding schema. Check DT binding schema documents: make dt_binding_check Build dts files and check using DT binding schema: make dtbs_check Optionally, DT_SCHEMA_FILES can be passed in with a schema file(s) to use for validation. This makes it easier to find and fix errors generated by a specific schema. Currently, the validation targets are separate from a normal build to avoid a hard dependency on the external DT schema project and because there are lots of warnings generated. Cc: Jonathan Corbet <corbet@lwn.net> Cc: Mark Rutland <mark.rutland@arm.com> Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Michal Marek <michal.lkml@markovi.net> Cc: linux-doc@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>