Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp949091ybg; Wed, 3 Jun 2020 19:02:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+WYel6IwtJ0EZaML14P2b7/FAQmYNkiEXE4auZGstIoLw6Yu6hzoVJP/UfdgC9JNZYLPc X-Received: by 2002:a50:d09b:: with SMTP id v27mr2151130edd.235.1591236136937; Wed, 03 Jun 2020 19:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591236136; cv=none; d=google.com; s=arc-20160816; b=kSyslJgwWL3vKgsLtd3peqYF8NNgtJF0LPwvRxLYCz7ZQyLstb8IqbI6KaZM3hx2cC UCriL0zrzEwIZSbh6sIJTJ4zUYqoYOeHzFJBxhoXhioSux2kC08XSE+gsLjEBZ89Mdjf 0xlFp72bsBDsweSX1T/F4i9SOjH5MRnlP+WECVifqTQcAT4MFUqoIyeUKmgXh0hPyqzO gwrZyb8Eepb9BDn/J2+CZuCZ0ju6FoWAv6xa8rJMG+CIhIuyXtNwUSeJvT4OD2EcYVzu e9biH0wUVrWcaz8PhfqOo39ZN0Yud21VqBNlOuoyRJZAHeve7fAHLb9V+pvQ16eBDY++ yBrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=KMo5kHt8JwwLZfHXbEvI2syI2NswhkyGuLH6sjD/h5o=; b=sxY4OjpDUUjq6AZnyGrmfLrd1oG/4E4DEOtB8OAAkQ9ctKqSvGbrCZKeRc02pw2cVS 5WeW11AEHzpznsBv2eacDgok7rq1RF5CuA7sWOAVAUCKW1+IFMFEpY0ztVqB597tllnO TPA1r709A0JIUNDnnW3lS1qKae+LPzUUetdUvXiH/FSBTVM37vVUEqahIzSgrBCbgFPx fUOdyxfUn4lUm5QmoaUtNwLykVHg7m1BU+jS7HL47Jq0WYkE8hTK1TkTzQW6O8nAJvPm I/duHdThxrogV9FPsiwdv57uRnnG0p3cfHG7p+WCY+NQBiePe2MzDrELzKPrFfVTJNpy 52uA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v15si817864edq.373.2020.06.03.19.01.54; Wed, 03 Jun 2020 19:02:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbgFDB7z (ORCPT + 99 others); Wed, 3 Jun 2020 21:59:55 -0400 Received: from inva020.nxp.com ([92.121.34.13]:45312 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726011AbgFDB7y (ORCPT ); Wed, 3 Jun 2020 21:59:54 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3723F1A10CF; Thu, 4 Jun 2020 03:59:52 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EFA041A0192; Thu, 4 Jun 2020 03:59:46 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 3D881402B3; Thu, 4 Jun 2020 09:59:40 +0800 (SGT) From: Anson Huang To: aisheng.dong@nxp.com, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux@rempel-privat.de, wolfram@the-dreams.de, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V2 1/3] dt-bindings: i2c: Convert imx lpi2c to json-schema Date: Thu, 4 Jun 2020 09:49:16 +0800 Message-Id: <1591235358-15516-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591235358-15516-1-git-send-email-Anson.Huang@nxp.com> References: <1591235358-15516-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the i.MX LPI2C binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "additionalProperties: false". --- .../devicetree/bindings/i2c/i2c-imx-lpi2c.txt | 20 --------- .../devicetree/bindings/i2c/i2c-imx-lpi2c.yaml | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.txt create mode 100644 Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.txt b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.txt deleted file mode 100644 index f0c072f..0000000 --- a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.txt +++ /dev/null @@ -1,20 +0,0 @@ -* Freescale Low Power Inter IC (LPI2C) for i.MX - -Required properties: -- compatible : - - "fsl,imx7ulp-lpi2c" for LPI2C compatible with the one integrated on i.MX7ULP soc - - "fsl,imx8qxp-lpi2c" for LPI2C compatible with the one integrated on i.MX8QXP soc - - "fsl,imx8qm-lpi2c" for LPI2C compatible with the one integrated on i.MX8QM soc -- reg : address and length of the lpi2c master registers -- interrupts : lpi2c interrupt -- clocks : lpi2c clock specifier - -Examples: - -lpi2c7: lpi2c7@40a50000 { - compatible = "fsl,imx7ulp-lpi2c"; - reg = <0x40A50000 0x10000>; - interrupt-parent = <&intc>; - interrupts = ; - clocks = <&clks IMX7ULP_CLK_LPI2C7>; -}; diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml new file mode 100644 index 0000000..ac0bc5d --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-imx-lpi2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Low Power Inter IC (LPI2C) for i.MX + +maintainers: + - Anson Huang + +properties: + compatible: + enum: + - fsl,imx7ulp-lpi2c + - fsl,imx8qxp-lpi2c + - fsl,imx8qm-lpi2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + + lpi2c7@40a50000 { + compatible = "fsl,imx7ulp-lpi2c"; + reg = <0x40A50000 0x10000>; + interrupt-parent = <&intc>; + interrupts = ; + clocks = <&clks IMX7ULP_CLK_LPI2C7>; + }; -- 2.7.4