Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1006224rdb; Fri, 16 Feb 2024 02:19:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKfXjPDwM/p1gIgGFTWDzwsaPu58oRATDUyb2BIaphMDd4vL/halWAc6NIasjD+33sZ4ZKftbMOFgZ7YW10QIV7flNl51yYgv1swZO1w== X-Google-Smtp-Source: AGHT+IEwvkSi+0TEUtQMBcnw0Jy6E4FPJcuVkSR0ed8WIDsJMF0l8IKJwwd3STg/raE9nua80X6q X-Received: by 2002:a0d:cc4a:0:b0:607:cc6a:dcc5 with SMTP id o71-20020a0dcc4a000000b00607cc6adcc5mr4545314ywd.16.1708078771875; Fri, 16 Feb 2024 02:19:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708078771; cv=pass; d=google.com; s=arc-20160816; b=XnrR2lyHryqbLQPjR+Jc6jNNEfhJtSc+J2nf3PKEFvKn30kfZk/dPFM0vppIa71q/y KjSMKlbzjESc3qJ8+4oLBnbvONZy6ajsOdJlBR0kl7eb7Tra8wrt0EO4ZWRf9i7jR2TR yZHasjxwCmNo+On/b3nbhUlLhDTu/mXdt9ZYv+7xPhWIC9MwIK+nRA/UPyyYPzvItTZ7 ZRLyYvTSPq3VlOH5X2nMBUSVMLauYiEe5p2JQw0mUg7+QZcSAJTDxZByv4srVtCXZMuP X1SA9GN0y41AdSzj0JC2GmAJT9mUEZrNzhwkSTcUEMuo5nU3YaJT6gOVKBM8HqUs/zL5 Hiyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:cc:subject:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=QkIxqpdXEsO6giA3YQnaxtDqAl6uPWLK8CAbLV3KLI0=; fh=va4913oJQYF/v0TVPabWfIhXxka6EvMZC7TBwTGa7aQ=; b=bebvGmqjmuyEtRQ6eZz0GDSJMP33Ezllhaa5amadXBCZePPVMNWPQb0NXzyRro8m8d nZw5q3mu0ZHbrpBKq8VEpFwqpoK4OK14zSbh5eiPMxglZAWvimb4l2OzX4j+hLYU4nnE Cz/kCElZGPY11uTErdBqwr0Bpem7XwwQSjcRACM4vyDBcGJJH1TP3vXjI8J0ko/UZEWb VHaT3XEi+gzUsAEyGjSx+9Lp8u1vgCm22TDhgihy4AacorycqI3wEjWvqAOQYasfAEe7 X3bOAcfxp6XIH11kkN6CPHqltZQuJIKMdyee2oePSbyWO17KXUh6Xejnd39bbRboBSSB fzdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eh8YJm3k; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d21-20020ac85355000000b0042ce6438831si3316559qto.93.2024.02.16.02.19.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:19:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eh8YJm3k; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A02D21C23477 for ; Fri, 16 Feb 2024 10:19:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3B8C20B28; Fri, 16 Feb 2024 10:19:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="eh8YJm3k" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 152DE1C2AF; Fri, 16 Feb 2024 10:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708078762; cv=none; b=dV56Z1DjEMxCvK0jaCVbyiuAI6K9XgrGPttnwe/h4qqE++n6PB6PqCBn2PkwK3sNac68TAIsMstAuxMJsIbMWbOPjb3YV/o2hb/wv3mXEbgbXllzNTs170No7zICOREkUKQxump2TaP2Rm+IJw+M1FOaRjCVB5NYVxua9mLKi/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708078762; c=relaxed/simple; bh=HpbFXax0SSZwQVzKfKJjbyz8O1acvNAm90x+8EqL0dg=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=UXlGn+LINLvs6qy5+eTEWEFOLPOgPbaUYXP7avCiXw6v1tPgvjN/QnThwuOe1jmRkN2uYHoNRZtpBQs5LJvyVjSo5JgPn/6t3MZOYDpZcmOccjnvB4PauVVFYy23Gg+iy/QAymIxZU2B2PA+W82ea2rhPjacyv1/36waSqnC+To= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=eh8YJm3k; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 0C906C000B; Fri, 16 Feb 2024 10:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708078703; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QkIxqpdXEsO6giA3YQnaxtDqAl6uPWLK8CAbLV3KLI0=; b=eh8YJm3kUD1UuhBwS35H7wRNZy4ZF6hgzNJpUu35b50ZAg+V/H/jT5FrzGVZeywZdOFVOO qWjMGMJ7YUoXZn4AdzwFlqvvxO0Yjhj/5X0cybxa1eMp7xSASJLcuroACW1ofq4QybyH61 bahy1K3tVUurkVZo8QX307ELC4hrLQHabc/teilfUjUvRoy9M3KJCDb+Mk84nOBbi29KSG Vej84jav2Q1yR90dBRgocxHeSc7JasGEuswPpI/CQ+PUfkTgYJaMtyYo7HwXDCj6QEW8t8 KSY5nkRoXwlm4mDG0JETgFIxMUtBDEvL/Cca2D++XD/DWFc9Ip8rXsxO3THTvA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 16 Feb 2024 11:18:22 +0100 Message-Id: From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH 02/13] dt-bindings: i2c: nomadik: add mobileye,eyeq5-i2c bindings and example Cc: "Linus Walleij" , "Andi Shyti" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" , , , , , , "Gregory Clement" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Rob Herring" X-Mailer: aerc 0.15.2 References: <20240215-mbly-i2c-v1-0-19a336e91dca@bootlin.com> <20240215-mbly-i2c-v1-2-19a336e91dca@bootlin.com> <20240216022227.GA850600-robh@kernel.org> In-Reply-To: <20240216022227.GA850600-robh@kernel.org> X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Fri Feb 16, 2024 at 3:22 AM CET, Rob Herring wrote: > On Thu, Feb 15, 2024 at 05:52:09PM +0100, Th=C3=A9o 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. [...] > > +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=20 > schemas. Noted, thanks. > > + mobileye,id: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: Platform-wide controller ID (integer starting f= rom 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=20 > phandle instead. Why we do what we do: I2C controller must write a 2 bit value depending on the bus speed. All I2C controllers write into the same register. Index is used to compute the shift. mobileye,olb is a phandle to a syscon. I'll be using i2cN aliases I guess. Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com