Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp843258rdb; Thu, 15 Feb 2024 18:22:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUij6HQvxQg32DKiTS9GWcymfKqlMqnv+IoTmdzLjO0QEXBd+UQZlEFmGiN++5liPlTavK123Eud9757OYcN3ZZMXf9ads9Le1ylAVJnw== X-Google-Smtp-Source: AGHT+IEn6dJLGEOSlv9S41s+6hxjjweBN7tUMKgtcb5Oivo3p6T/OAdw4uW3nhQJ7LJ7F7uYMfNE X-Received: by 2002:aa7:cf0d:0:b0:563:7e99:41fc with SMTP id a13-20020aa7cf0d000000b005637e9941fcmr2993656edy.17.1708050160644; Thu, 15 Feb 2024 18:22:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708050160; cv=pass; d=google.com; s=arc-20160816; b=QUE/fY0zT1IsjHXFGMrrj/zxLC6vDuGcAZlKUY0wu1yBazc/1eLUydt9yQ5JLLxbBZ 0LGLTwXUdfrDg9Cv223eyUPWkOI7a7pJQj+rk1zPsO3YHl5lgNRMgsYQjppHtDETivaW pdBJ9BXeoitGNkOnfiRqoL3T31rfbzUp1FLTFVBu8nqvAppbQ8Mr61bLrIS573X64BsQ l7UqdPTC8MoJRznAo+whhXj78D0+gTP+L1GV4N2l2Mp63A+yhm95Dwp8hGvH+IFxJOml TZ+5ofmiOuupmFZLSEry136Jzja2wcdoKKXNWCXIGZDr3didjH4K+2g2XL1Nzq/g/vSf kFHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OootdUpNFN6wTBApJSLgSmhXeOwnXr+n1QEZrl4ZAco=; fh=8/GIJmE80IhsKAJbMcrTtt/QxP+15qsXRm+tK0Bu0zQ=; b=AAtlu/BbZWO8HsJ/MD9HTU7EV/ay9uEmM/9SxGS9XwHswqAY18TNU8u0snbBph3z3y QxFelMvHScOmAfDgLUXU6t+bk0JACeoehKXFpJc0p2+UoN/t35bNdUjHuQ9vc06t0Wlj VEduP0xXjDJycppvMcZqHt/B8mSCJnrYa/BQPyUooirJK6PlbYVumKuVMtpiVfFPY8q3 9FtAxtJOPhR0xmKYIFxcZT6/jaL9lV/g2yM41jOxu/exQqc0f8GZ2go0YgXvqBPRlp6r zd8nhLWF6oRdc2DccPDEEEhk947QO0Ao04GGCGTBL47wEvwSwewFKYNHpjnIO1UYvXGi NjUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uiTloFP9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c19-20020aa7c753000000b00563eb332eeesi171269eds.294.2024.02.15.18.22.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 18:22:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uiTloFP9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6405A1F23779 for ; Fri, 16 Feb 2024 02:22:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67384F9F7; Fri, 16 Feb 2024 02:22:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uiTloFP9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80313EADD; Fri, 16 Feb 2024 02:22:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708050150; cv=none; b=AJt4l4FkzIRe2bqaBrPwP85j47Bk1rCUufNz2SKkBLgQRy2wcH5dt8KsOxiI8kU4Ae93+NNAo0Y8juA1IUvSnqcRUHz9PY0bUEbbqHjJVnIhN7neGRNP+K/ikQN23BzlfusLvwUlTp8BBQ4oeyzvVo3UxvAhcQTntFj86OdWd7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708050150; c=relaxed/simple; bh=zg+Z3Wah5eTVPItwO6FJ2RVvEQEJ1NRiUkZF3MelZyk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CRXLvnamIvCjInnqoMRTLxgqAtyaOtW0xSj1p4OLssp/mX0Im7WjrjqDdjLN4PECPszYBC4vkVMT19VLGYJqwlId4luECkS6FGMIfdpzrjh6EAdHfKV5p2bhYHYzjnvwBTI/K7C2aIFjCw3ijqfFJItRebVeEzYXdgadigHwAVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uiTloFP9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1DA0C433C7; Fri, 16 Feb 2024 02:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708050150; bh=zg+Z3Wah5eTVPItwO6FJ2RVvEQEJ1NRiUkZF3MelZyk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uiTloFP9XrJcN+hTsBncpqBBToqTcyRkpfQGYFEb7jX0T6QhJLr7dhhforheQ1OnY hOKsoQYD15EtK1JanYTgt3QHZ66GXGMFVjaodGoA+hVZTDB8i3cDm50tn4rDrRDbuq bsbTV5XbS0NnZDxIeXvN8ozdK2TvKfgaVor2pNNmJ9ccHVKtkxKhdz5D0/3mgLs3cA +wWfH/4Vhm6XSxA6YKT5gqvXUsDBc1JsWvAZOA7PxsYYUZrvPIe908+NGC8JCQ3dDj H2dBs4ws3mEIEtEN4VLkciePiNEhwKKHP7zmoADBNVWac1UEnNZjWtCwfyzP7O7D3q tx3uV9IaevnjA== Date: Thu, 15 Feb 2024 20:22:27 -0600 From: Rob Herring To: =?iso-8859-1?Q?Th=E9o?= Lebrun Cc: Linus Walleij , Andi Shyti , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Subject: Re: [PATCH 02/13] dt-bindings: i2c: nomadik: add mobileye,eyeq5-i2c bindings and example Message-ID: <20240216022227.GA850600-robh@kernel.org> References: <20240215-mbly-i2c-v1-0-19a336e91dca@bootlin.com> <20240215-mbly-i2c-v1-2-19a336e91dca@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240215-mbly-i2c-v1-2-19a336e91dca@bootlin.com> On Thu, Feb 15, 2024 at 05:52:09PM +0100, Th?o Lebrun wrote: > Add EyeQ5 bindings to the existing Nomadik I2C dt-bindings. Add the two > EyeQ5-specific properties behind a conditional. Add an example for this > compatible. > > Signed-off-by: Th?o Lebrun > --- > .../devicetree/bindings/i2c/st,nomadik-i2c.yaml | 44 ++++++++++++++++++++-- > 1 file changed, 40 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml b/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml > index e6b95e3765ac..eaade14b6d4c 100644 > --- a/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml > +++ b/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml > @@ -14,9 +14,6 @@ description: The Nomadik I2C host controller began its life in the ST > maintainers: > - Linus Walleij > > -allOf: > - - $ref: /schemas/i2c/i2c-controller.yaml# > - > # Need a custom select here or 'arm,primecell' will match on lots of nodes > select: > properties: > @@ -24,6 +21,7 @@ select: > contains: > enum: > - st,nomadik-i2c > + - mobileye,eyeq5-i2c > required: > - compatible > > @@ -39,6 +37,10 @@ properties: > - const: stericsson,db8500-i2c > - const: st,nomadik-i2c > - const: arm,primecell > + # The variant found on Mobileye EyeQ5 > + - items: > + - const: mobileye,eyeq5-i2c > + - const: arm,primecell > > reg: > maxItems: 1 > @@ -55,7 +57,7 @@ properties: > - items: > - const: mclk > - const: apb_pclk > - # Clock name in DB8500 > + # Clock name in DB8500 or EyeQ5 > - items: > - const: i2cclk > - const: apb_pclk > @@ -83,6 +85,25 @@ required: > > unevaluatedProperties: false > > +allOf: > + - $ref: /schemas/i2c/i2c-controller.yaml# > + - if: > + properties: > + compatible: > + contains: > + const: mobileye,eyeq5-i2c > + then: > + properties: > + mobileye,olb: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: A phandle to the OLB syscon. Define properties at the top-level and then restrict them in if/then schemas. > + mobileye,id: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Platform-wide controller ID (integer starting from zero). instance indexes are a NAK. You can use i2cN aliases if you must. Why do you need it? To access OLB? If so, add cell args to the OLB phandle instead. Rob