From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2524C433B4 for ; Fri, 7 May 2021 21:21:05 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6AE476145D for ; Fri, 7 May 2021 21:21:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6AE476145D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NQiWQyfLNZBeuMe1jP3sK69NwUy0bllvlvff/B+VNog=; b=ai+JPGRr/sBlHhX3fi7YuPc2w 9bSvMSQMBbsWWCLFPjcNdH/r6C07HWfKG+aAp8mZvW11zbizacFLKwCL3EK/KaFraZypLRDLJOedZ MKlYmabd3Q6zcYVRgGqXdGRFQa5rSc4OEVZUk91L7z/dnPZ8qiU2WH2BLcwtZkfp6lawk40Au2qnZ t/z4wZacfVo3FAQuCGcpJRA3Pu1sRV7geidpXO/2mDqT0VxvSSdneqhm1owA7HsFs8H+YJ7Vmasdq VrbNv7EXKMKgQ5zoJ23AdMfgvKm4m1C7AtOofOl0E9KNDiIMO3MMClx//KVNh9kylACntY4H4CEma ZKNooqYUw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lf7su-0085H6-Ia; Fri, 07 May 2021 21:19:44 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lf7ss-0085Gl-4l for linux-arm-kernel@desiato.infradead.org; Fri, 07 May 2021 21:19:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YpC5Y9ntxdycovl95eo8Nefxaj8tIQRjfe1QWhL3IJc=; b=ZdA6/SZJIXdeHZN5LZ/cyGogvr e+PPsUFo8Rg8vgYwAtLdP8x0awTkl9L6OqFkQZX8gNBd588CFTohqM9EdwB/PqFEAduQyqWHkqFjm uvL7h4Psc8pKyCzxW08VyVO+0/THBNoUYjBlK6cf4Gb3YTHg2urnJrUnPSbUE23PC3GGa1PH7r6D0 7vAfCvsXeU6z9zsC6gbu4qD190/dF2Dm1yOVTYKlESkEccMKPDKLY3qk2+FwJOIxFxmb1Mtir378P +prpayGA5Dii9rHfTbduNZCkStufEiU8VA4LXJwMh3lKgYJwJO/lR0LymhsgyJouCDekYUM19AukJ xvbvbnSQ==; Received: from mail-ot1-f53.google.com ([209.85.210.53]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lf7sp-007BwM-7d for linux-arm-kernel@lists.infradead.org; Fri, 07 May 2021 21:19:40 +0000 Received: by mail-ot1-f53.google.com with SMTP id n32-20020a9d1ea30000b02902a53d6ad4bdso9095105otn.3 for ; Fri, 07 May 2021 14:19:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YpC5Y9ntxdycovl95eo8Nefxaj8tIQRjfe1QWhL3IJc=; b=OwJ8kKnl/RBpVld+I3F1pGTu6aFQWwAJgtfIb1Bk8kw4mXRc7lI0r/SiVuHvvHNgRD +phzQ9WyA+MQ0Le1iAV8qlVWIsxwj16GubHfvdVbUYqKTEDYCWk/vWkaaoaDwhf+Bf4h 9wq/CdzauFbkyVqqcPZBE2f84Uxq1Tm08vODLCOxHQmX3em3cLOB4wzgJMYGOztZrdYT 1aOs7h/G3yS0bPs9LDxQ4R0yQDCA74d6qMPIIxv2pH2r7lRiRoeuSMYmFhgqJWv4EyRh FYeVUZha2k3lPBtbe4Sh75VvSHlMMzdMnJFVYo2XGPlEUf+6Glyoo9u2uajRwwtCPC2I oL2g== X-Gm-Message-State: AOAM532/rWYhM+CFTGCnvKibCQbPkrZ6DU8tZD/7b6DRkRabMCH6jwxW pljD18uVB5esXZCjmkICXw== X-Google-Smtp-Source: ABdhPJz2LvKwbUN4rajPoBOXWPa2bMhCzQXXERdDf6QsPEKAdmFldkzsjUS1VU0IEA26gQqUrb61Dg== X-Received: by 2002:a9d:491:: with SMTP id 17mr10053622otm.184.1620422377966; Fri, 07 May 2021 14:19:37 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m67sm1396432otm.69.2021.05.07.14.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 14:19:36 -0700 (PDT) Received: (nullmailer pid 2905952 invoked by uid 1000); Fri, 07 May 2021 21:19:36 -0000 Date: Fri, 7 May 2021 16:19:36 -0500 From: Rob Herring To: Vignesh Raghavendra Cc: linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linux ARM Mailing List , Tony Lindgren , Nishanth Menon Subject: Re: [PATCH v2] dt-bindings: i2c: Move i2c-omap.txt to YAML format Message-ID: <20210507211936.GA2902038@robh.at.kernel.org> References: <20210506140026.31254-1-vigneshr@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210506140026.31254-1-vigneshr@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210507_141939_298139_8EDA87D8 X-CRM114-Status: GOOD ( 21.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, May 06, 2021 at 07:30:26PM +0530, Vignesh Raghavendra wrote: > Convert i2c-omap.txt to YAML schema for better checks and documentation. > > Following properties were used in DT but were not documented in txt > bindings and has been included in YAML schema: > 1. Include ti,am4372-i2c compatible > 2. Include dmas property used in few OMAP dts files > 3. Document clocks property > > Signed-off-by: Vignesh Raghavendra > --- > v2: > Fix issues with make dt_bindings_check > Add description on usage of ti,hwmods > > .../devicetree/bindings/i2c/i2c-omap.txt | 37 --------- > .../devicetree/bindings/i2c/ti,omap4-i2c.yaml | 80 +++++++++++++++++++ > 2 files changed, 80 insertions(+), 37 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-omap.txt > create mode 100644 Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml > diff --git a/Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml b/Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml > new file mode 100644 > index 000000000000..eb11e3025b37 > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/i2c/ti,omap4-i2c.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Bindings for I2C controllers on TI's OMAP and K3 SoCs > + > +maintainers: > + - Vignesh Raghavendra > + > +allOf: > + - $ref: /schemas/i2c/i2c-controller.yaml# > + > +properties: > + compatible: > + oneOf: > + - const: ti,omap2420-i2c > + - const: ti,omap2430-i2c > + - const: ti,omap3-i2c > + - const: ti,omap4-i2c These 4 can be a single 'enum'. > + - items: > + - enum: > + - ti,am4372-i2c > + - ti,am64-i2c > + - ti,am654-i2c > + - ti,j721e-i2c > + - const: ti,omap4-i2c > + > + ti,hwmods: > + description: > + (DEPRECATED) Must be "i2c", n being the instance number (1-based). There's a keyword to mark things deprecated. It's 'deprecated'. > + This property is applicable only on legacy platforms mainly omap2/3 > + and ti81xx and should not be used on other platforms. > + $ref: /schemas/types.yaml#/definitions/string > + items: > + - pattern: "^i2c([1-9])$" > + > + dmas: > + minItems: 1 > + maxItems: 2 > + > + dma-names: > + items: > + - const: tx > + - const: rx > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: fck > + > + clock-frequency: true > + > +required: > + - compatible > + - reg > + - interrupts > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + main_i2c0: i2c@2000000 { > + compatible = "ti,j721e-i2c", "ti,omap4-i2c"; > + reg = <0x2000000 0x100>; > + interrupts = ; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > -- > 2.31.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel