Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1014346rdb; Fri, 16 Feb 2024 02:41:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW9Axikqd5bYIRNhHCqmSYv9a7hBuFw0OiVKEdFSuPVmRezZFFogyQR9la7WmLZihLvTTI6iKVDgj0+aBH5hM8LwqgnQfBlg5eGD4N51w== X-Google-Smtp-Source: AGHT+IGDQUIz/k3RpsN5YbJyxtTJ+sJhW5qtbtCjNN6LordOdNooyklGEZQkTr9NmJISwkVI0iwF X-Received: by 2002:a05:6402:3608:b0:561:edfe:7a58 with SMTP id el8-20020a056402360800b00561edfe7a58mr6599228edb.2.1708080066151; Fri, 16 Feb 2024 02:41:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708080066; cv=pass; d=google.com; s=arc-20160816; b=fPgC2jSGbeLY4Zwztqa0KvtF9mQ5QHTV5cPV0n4R49QDTV4M7wSLafEJCt8Bt3OyBg ijftUxA9LyVFeT+NmAPId9CKimowbGAn+jt9IICHgIrGHFpWlyN7Ue08ISUy4C3y7bH0 5/d8hFG2jpZgS6x27zsWQzei1MRK09Sr6bEo1a42MicqE5NZp/GoHxLvx4F+1TvmI5bv iiLcvvIMJ33Eecf6GDj3YRIogNONpZO4sFkpaVMm6UwR3wnk+sdDKk9iTT7xuqXRGj8f Atr399DqdR6Zq33lrmzHYD5QLztS0an8iDk1+FEzdJpdJ57kvIHDzSW6473P7qjkNwGm 14AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:from:to:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=pW+H2/+M3nwxvUrdeb949EaUZPq3QzVW/JZ2LL5ih34=; fh=e/vBB/taU+b4MBWYw40SyvVRJMpe4xETYcVi/ejziYU=; b=fln0a0NTyHhM1RbeFPa1aQ5p+dyNB4/YbukX8qVx3ZUGbQYdbRb5SE2iBAOCRcR9SX 2mpmO99Y3yQQI+E32bkixXLioA2OzjrLTt+wjZqgdoBcT/VuhocU+Z7FnXLx4ku2ne6Q cB3nGCsqQuPSJKaK6AXAC8OlvdatgAS8IQDghUZM2Rc/orUCdji0mUkvXffMmhMfvnjP n33fJ2jfPlBFS75hgEAWj/ZiMJ552i76EhYJ+jVjAULzpZomY6hoUmzRGvRidn7QbC/Z qmXuHTn21JEbJEeZbNuZAwfeZRsB3BJz0WkzMpzKexitjixANWeT9DP6UK8//NVq00+s /5QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lz2U9uLV; 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-68461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a8-20020aa7d748000000b00563eb937926si471918eds.499.2024.02.16.02.41.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:41:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lz2U9uLV; 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-68461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68461-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CD5831F2423E for ; Fri, 16 Feb 2024 10:41:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0CA9535A8; Fri, 16 Feb 2024 10:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="lz2U9uLV" 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 E297B1BDE6; Fri, 16 Feb 2024 10:40:52 +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=1708080055; cv=none; b=QCcwYZgoDi+rS0Dbw27yn71v4ZlzzvbK7AYVvmbXOvIanDcRwbSz8XG0sdmucFHCjf6gqxGHyRQyP7ceg80uEJGUpKst9wkBCQP+qauatd7/BHxB2j7LVC/kDO4KVD5uZOwlFh3ax8spckPHcwHSoMk8c82NCFp1G7suY6fEXZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708080055; c=relaxed/simple; bh=4vCY6JZJluyOURcmliUjf8D4UGdWpWhqShAztx1q4U0=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=l3fmVSntOxxdol43dk/rqUaCUxNuq8kAG57GVqsJn+mEHbbZ0Qga4jkNqbvQq2ONkYXjdqa7fR6SID31+j2tJCwf+2j5IpdS8POjx0LUe79PlKvaPdzXoKsC4OxM7DgQsVKTLNKaISgSofd3EksW65DHPLSVLTSVzNY6dJenE/U= 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=lz2U9uLV; 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 3A5F7C000A; Fri, 16 Feb 2024 10:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708080050; 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=pW+H2/+M3nwxvUrdeb949EaUZPq3QzVW/JZ2LL5ih34=; b=lz2U9uLVS3/HdJM1KiMEiUYoPgnBtLLrRboc8aNuca5J5CJu0LxWUJqVuayCZz+nR9Ueem GJV80VRxBtCaNXb+RaZQzFs9VnINWRo7LxEGKea1LN+T5iiTAWeYwM1yVHh4eMOcWhzONe I2fhfxZYlkk+hNNSIbQoJM5bSsSv/VEurY7+Z2pOjHGACRR2Jgv4naaUQuz9SGgpxBbJ5t J27ZBToyYYAC2DSRAZowyPiTmeNOhTg73wSd4xiCwSTtH5AsOiSur6xqzkssVjeJs2Rcb9 VG5VdMHV6ulPW1rl2IMIj2P7PThpBSQ5Ct9nhZ0wDGw0WjvznvT9upEFnGxmXg== 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:40:50 +0100 Message-Id: Cc: "Linus Walleij" , "Andi Shyti" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" , , , , , , "Gregory Clement" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Krzysztof Kozlowski" , "Rob Herring" From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH 02/13] dt-bindings: i2c: nomadik: add mobileye,eyeq5-i2c bindings and example 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> <6effca50-29a4-43b9-86eb-310bd4e08e5c@linaro.org> In-Reply-To: <6effca50-29a4-43b9-86eb-310bd4e08e5c@linaro.org> X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Fri Feb 16, 2024 at 11:33 AM CET, Krzysztof Kozlowski wrote: > On 16/02/2024 11:18, Th=C3=A9o Lebrun wrote: > >=20 > >>> + 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=20 > >> phandle instead. > >=20 > > 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. > > Which register? Your devices do not share IO address space. mobileye,olb is a prop with a phandle to a syscon. That syscon contains the register we are interested in. The Linux code side of things is in the following patch. We use syscon_regmap_lookup_by_phandle(). [PATCH 10/13] i2c: nomadik: support Mobileye EyeQ5 I2C controller https://lore.kernel.org/lkml/20240215-mbly-i2c-v1-10-19a336e91dca@bootli= n.com/ Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com