Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: i2c: Convert imx lpi2c to json-schema

Convert the i.MX LPI2C binding to DT schema format using json-schema

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1591235358-15516-2-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
c217cf81 67a69dab

+47 -20
-20
Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.txt
··· 1 - * Freescale Low Power Inter IC (LPI2C) for i.MX 2 - 3 - Required properties: 4 - - compatible : 5 - - "fsl,imx7ulp-lpi2c" for LPI2C compatible with the one integrated on i.MX7ULP soc 6 - - "fsl,imx8qxp-lpi2c" for LPI2C compatible with the one integrated on i.MX8QXP soc 7 - - "fsl,imx8qm-lpi2c" for LPI2C compatible with the one integrated on i.MX8QM soc 8 - - reg : address and length of the lpi2c master registers 9 - - interrupts : lpi2c interrupt 10 - - clocks : lpi2c clock specifier 11 - 12 - Examples: 13 - 14 - lpi2c7: lpi2c7@40a50000 { 15 - compatible = "fsl,imx7ulp-lpi2c"; 16 - reg = <0x40A50000 0x10000>; 17 - interrupt-parent = <&intc>; 18 - interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 19 - clocks = <&clks IMX7ULP_CLK_LPI2C7>; 20 - };
+47
Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/i2c/i2c-imx-lpi2c.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale Low Power Inter IC (LPI2C) for i.MX 8 + 9 + maintainers: 10 + - Anson Huang <Anson.Huang@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - fsl,imx7ulp-lpi2c 16 + - fsl,imx8qxp-lpi2c 17 + - fsl,imx8qm-lpi2c 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + - clocks 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/clock/imx7ulp-clock.h> 39 + #include <dt-bindings/interrupt-controller/arm-gic.h> 40 + 41 + lpi2c7@40a50000 { 42 + compatible = "fsl,imx7ulp-lpi2c"; 43 + reg = <0x40A50000 0x10000>; 44 + interrupt-parent = <&intc>; 45 + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 46 + clocks = <&clks IMX7ULP_CLK_LPI2C7>; 47 + };