Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp538031pxj; Fri, 7 May 2021 14:20:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2uT+26ADSD0tte3Yb/uFPV+aUN4QXpH2dVzJzVNq6PcmVlzsKDPOKXZluIQe2osgUoQ38 X-Received: by 2002:a62:6544:0:b029:261:14cc:b11d with SMTP id z65-20020a6265440000b029026114ccb11dmr12200108pfb.12.1620422439150; Fri, 07 May 2021 14:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620422439; cv=none; d=google.com; s=arc-20160816; b=IHcxox2Y7uCNRhZpiDhdJqAWRPXr4sAbFScXk2+4XwHgLoolj6EK3FXwyH15iLmcA3 xZqq75+oNbiSCIyQ5S8iSccAMpX61wV9PR7RogcX+yFlohCyXg8CspctE1MuZgv3gJD+ rM1gQUm31asyvAumzLsQlU9RBTAnBQTQCph2r0NOwGnPa5YO9LJRo20henAWk0zTdfMP ithK3nxVSNZRIvWwugx0Nw/iQ1ciK67oXkJEPGUR0PtxZ9MgN88b42rkSOasr8tXI5dL RZk+Wq92Se041niFC0chjSdEeZhUJEfzleC5jgnUKNUsWWBZhh6KdEflYpLPNsSzzJjB XXog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YpC5Y9ntxdycovl95eo8Nefxaj8tIQRjfe1QWhL3IJc=; b=m58QJm519CXwBNuIXYYO4nrEmHfq6I//k60EmUYy22nZH18bXxjHOBtUJZaBqvCp1u xgAtxeS7o+/i4vMB2lbhfDQ1dZPq3xoFnS4ro84ryhx7ufXO1j692lOUZDQOTNKWBz6n 5J7vMhe/iiq35Zab44k0P8lXLmNS79kHhpd1xM9od5PLP0d0QYwf1DDyqdQye6OWmxZ0 0HZVtWMfSHLDaHJUoY609XH4DuGWkZIP1SPUo1heKNjLNlGnoDrpomkayGNBjbWG72bo OrSokENS0RXgy1r4iP7A3nnsB8E1bk1ONa7N6ca7c+/+mKD0fVP/+vLPn2V1OjoWnIne ZBUA== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si8399438pjz.162.2021.05.07.14.20.26; Fri, 07 May 2021 14:20:39 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229713AbhEGVUj (ORCPT + 99 others); Fri, 7 May 2021 17:20:39 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:33499 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhEGVUi (ORCPT ); Fri, 7 May 2021 17:20:38 -0400 Received: by mail-ot1-f44.google.com with SMTP id i23-20020a9d68d70000b02902dc19ed4c15so5100372oto.0; 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=fRU1JIkTH7bTEaTOpb+wxNqJYHkJXF0RUEAiDHEae53E0CcXEW+vV2aWsB5Mc49O1t tIJF2UV5AiUJrU3l+pFq9L72zGErKy2rNQX8Pi8k4pbatFZEVnS1XwWxX82fEZzJMDqQ 3Lhp2M0omJWaokWKtZkC1WHOF7rPwcrs9ZcncS/A7Fvnwkc8lyXrwikae1oVuOtSiuyR IwVDtEUp9LXsONzTZjAURvMfIBQhCfCUFlQdIgt8TVSPUOy8PYesnUoCOXBivXq692++ S7fCsVKkvL9GxFPsNYCp2kfQ2uFM5h6291FBrlyt6D0xVCoxfcNEDogGWktkvK33aBEJ IWwA== X-Gm-Message-State: AOAM531sL4U7Vms9n7GH/KwCCELdW3JCcB/9hj7Rn3Lzgt6ujubOCuN8 3rMV1lGFoqP3b0uBQmKD6sckozp50g== 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210506140026.31254-1-vigneshr@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >