Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp230554pxy; Wed, 5 May 2021 00:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAAk9URY670NEtFfZ7cUM1PEYic38nzaMXHU2FBsZe3r1IcjfxH75Byp1vMI+vmXLD+VFr X-Received: by 2002:a17:902:eed5:b029:ee:ec17:306 with SMTP id h21-20020a170902eed5b02900eeec170306mr7616407plb.81.1620199242017; Wed, 05 May 2021 00:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620199242; cv=none; d=google.com; s=arc-20160816; b=nviUrYpsGMaH9jYGp48Lh7VytOjH+Fa4ctX+FK1sOpbQvMWArscCGOqWFklKQwsJR8 V40rmffeK79FZwYjUnp7BwNYdvhtNZZmTZ3CPgptST8XGtbRBLttpdisOtBVa9wL3gl0 PrRp56LTS+w6Xk8Ldgb9cCkmJ4BsqIW2UcYWUtEhAGC8E5T5IG5FVNiqxpCVWqnfRbxg ZkQvOvNq8JIKkYr5w9CLAdU1frycfiIE93fUicrD7aMXdF20Mua9fja2nocLRDPhFuzx kmNaLc0eBx1E0K1Q6Yx3i2npaE55uY9QYy2KM7ts9hjRrJrYCKHjpmO7OorOmGJbSwpj m/HQ== 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=/hn2jHiofTuOPb7nZ+xcPqMMh22UFZ3lFCVGxm1d+Us=; b=r7VVax2vASP/AYD4WEf6apKmQ5WOb4mYRgmVvZMO5uIMT75XjB07uIhSRtfGviTNPH TD3zO+UUWWZm7wiFEkVhzyaYlEpQv10XWLK7w4b6axAkpviHTBgoy7Gdf91v4Ikwyhv1 RaFlq+4bh2GHGzvAEu5v/j/s5fCb1cL08/mSVaSickWbfyKeytTJs7Np+DlxbsTZNAre qvvRFyti7jCi68GCriLHt+CIlVJOMp62NfkPtrkZyOy7e5lzNsHw+i76HlRj8f2jo/oe DxVpfcm+3Pa7twqfSHrIu+zS/I4awaVH6C3SSMP+OFlCS2HkZq4ERHA77QrUjkKZf6I5 iTog== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si5591842pgh.269.2021.05.05.00.20.27; Wed, 05 May 2021 00:20:42 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231807AbhEEHTL (ORCPT + 99 others); Wed, 5 May 2021 03:19:11 -0400 Received: from muru.com ([72.249.23.125]:51824 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbhEEHTK (ORCPT ); Wed, 5 May 2021 03:19:10 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id CDED380DB; Wed, 5 May 2021 07:18:13 +0000 (UTC) Date: Wed, 5 May 2021 10:18:08 +0300 From: Tony Lindgren To: Vignesh Raghavendra Cc: Rob Herring , linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nishanth Menon Subject: Re: [PATCH] dt-bindings: i2c: Move i2c-omap.txt to YAML format Message-ID: References: <20210505065511.918-1-vigneshr@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210505065511.918-1-vigneshr@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Vignesh Raghavendra [210505 06:55]: > Convert i2c-omap.txt to YAML schema for better checks and documentation. Nice to see this happening, few minor comments below on handling the legacy devices. > +properties: > + compatible: > + oneOf: > + - const: ti,omap2420-i2c > + - const: ti,omap2430-i2c > + - const: ti,omap3-i2c > + - const: ti,omap4-i2c > + - items: > + - enum: > + - ti,am4372-i2c > + - ti,am64-i2c > + - ti,am654-i2c > + - ti,j721e-i2c > + - const: ti,omap4-i2c I wonder if we should just add all the compatible options to the driver, and have all these as oneOf? > + ti,hwmods: > + description: > + Must be "i2c", n being the instance number (1-based) > + $ref: /schemas/types.yaml#/definitions/string > + items: > + - pattern: "^i2c([1-9])$" The ti,hwmods is a legacy property that is only needed for omap2/3 and ti81xx. At least the description should mention that to avoid folks adding it accidentally. Regards, Tony