Message ID | 20240130233700.2287442-1-andre.draszik@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-45488-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1563649dyb; Tue, 30 Jan 2024 15:38:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFn2AgMNtaswtmSrV+sJf8hBm6fZZbWDi1fJZe/RAQQN8ra3P0AtJZt5GJBCTw7KIm9xDTY X-Received: by 2002:ae9:e903:0:b0:783:1887:80e6 with SMTP id x3-20020ae9e903000000b00783188780e6mr3073447qkf.35.1706657882778; Tue, 30 Jan 2024 15:38:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706657882; cv=pass; d=google.com; s=arc-20160816; b=zv2IiBI9QIl9ux9ywGlV/MLg9f36n1/vJxt8w/uy+mE1374QcT7PRuzqWCwoc8BDQV CF2pZ9aAwK9/oE3WHclLTIH0mweCkrM36gIDZAQW6/FYy5SCC+s73nYkbkhoTCkBBiSz D5jy/glWBkBhGoC72TWVPwcejKCkxFzOwaZivSG9vmE2Nm1P3dNLbhA27O5UtcYiabAG ddH82u4VFjrGleiMyJuD6EIeSvgGpOzShqVMWlJYEv+65xFUQTqqAVjbPBHSMzI/zd1j ozbvtZn50Ds/88XCVa+GcTUq+hdFfJmmmiE/ToacS+bmcdXKt9S/SeafOfhHvBibdG+p Jtcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=gsxL/I99xpEvCIDVwY097FiG8G++5DelyKefubwrp9s=; fh=smw/I0EjMgrgN52jU2W4DOONtSdA9gcVXn6lfjhHgdg=; b=qM8Eb73pf9ePgfRROY6mVoiTkgg6/52jmQdEIrghEt/ENtk3HTyPnblKGYTgw0myMO ziG093ZPFo+PTZiEK++GUwJFnRJvRhEBFdmeQay309qCxrrzCU/HpFshN7j8JCFI7Y2t ljkJT5R/lBUtg0mKCUdpgAk8ZDUUhQDJ7eeM0TJXDQOoYEiYn6o8wSRC6el/GI/h+HHY IqD9puSG/tRROxP3zupPM9JbFEkw99tyG0zPw6mvZGDLwbQ1VHqRfFYdXiAaFZsB8j0D TpyBm2VdpuX+uCrbt1uxcJevpo3YIiyjGJ5XbN6jwyrF22c106Yc62wF36c63rjh8UJT XMqQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMZlGmcD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45488-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45488-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q10-20020a05620a0d8a00b0078335f7a17esi12008736qkl.581.2024.01.30.15.38.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:38:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45488-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMZlGmcD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45488-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45488-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8FBF71C225E7 for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 23:38:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E7927D41D; Tue, 30 Jan 2024 23:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tMZlGmcD" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E88E79957 for <linux-kernel@vger.kernel.org>; Tue, 30 Jan 2024 23:37:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706657856; cv=none; b=sRuQgHRkiVcGOMRbF7PRohAekmwHnYikLCHp5gz2M6EdltECPgfRAc7EfRcqmf+Opmzb1r26PX/yuog8pRaR6700/DMhFAbZBBbOfEgjS4YVrskGmwfqKaBlOjUNOhU0o7jpaumP8tvCPPnmhXi92Mg4ukEjVXkKgYgZjqWiEJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706657856; c=relaxed/simple; bh=1s19bgggjYqjahoc37BYPQjaNkY0EJv/JXA/THdndYc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ux1sw4/vTPyP1Rdwh70guGlbE9P7lpGlyTN1tyKdAhTQBgsx1pxVAXikUeSaLRLpmlPjWvzFSzdgCkBiTr8fm0iB8Exv2DoRdzx9wiUUkoBU5BLV2IalVEcKiDun/mXhjwifdDV9K25Ueg6q1YvhZK8EYnrG0gMPV8IMlry6YTs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tMZlGmcD; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a34c5ca2537so513022866b.0 for <linux-kernel@vger.kernel.org>; Tue, 30 Jan 2024 15:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706657853; x=1707262653; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gsxL/I99xpEvCIDVwY097FiG8G++5DelyKefubwrp9s=; b=tMZlGmcDEvVipqDGLA8Baj+4Fx+MHVV7OYXcTinPrBr/k0MX9ZWMwPRQOwehx67pn/ jHA2pv7mcXWWYc31xN309oWRKS1wcpYRR24OpFmzyVWM0PqXGb3FVxoXLaPX8dU7uGzR vyElFZCUZLo+odsJ7sSjvPFMDb3sBYVt4UuVwm21VrE1EToXIXXQeBmGI9OtfHMhYAPr 5/8v0cBhNhKxqsm6hXjkwvfCjaDI2opyBdpk88EkmjS9Ug61BlriY79RBsnOOA6JOg79 Qw3RWNfPla1+PvTA4cxrvY1gJqMc91fqYkdEWomKNEjAa1OTbtO47zHQB23dn+EwBOAb 8eWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706657853; x=1707262653; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gsxL/I99xpEvCIDVwY097FiG8G++5DelyKefubwrp9s=; b=eHyLOQl+oJ03hRwBhpEmc5Yo8rPiQKrpo7tgUw+G0VrEx+5qde93vm3KJB82aNmW9W Zp49/3EUc+D9gd34wNT5cKiSrQzvBFI2xcHlnC4oc0HNp02Tp6oXRfVDnNg8vniuhqoU SrhaBAhNMlK+fI2//cdiAGQyrtEnX/YEneu8lyO5syPzNqehvWUk68h2S8lVXHX1F0Cf OcYysorOcNSOxedl0pT9A7Kv8zcqX8yj5YXtapHtKlGR4eYGOBc7yBK2KSuuB7sx7xNh NJXa2TDVjV06Uv/CAp8rvvTduVl4SJ9/xuP0o6CgBhwI/FIJ++yM0dY11lqeK+TFx5bg 1tCQ== X-Gm-Message-State: AOJu0YySglwAlchY8s4poo/MgXjGuKAM/QEN0fSMZHDUGZpfwZasL20H QTZP80afIs2rfQNaTDw4eHnOrZxTemw/UzEcF6xjbqZbMLpzNoHl0uOEzbyJaYc= X-Received: by 2002:a17:907:10db:b0:a31:8a51:67df with SMTP id rv27-20020a17090710db00b00a318a5167dfmr7027211ejb.9.1706657852290; Tue, 30 Jan 2024 15:37:32 -0800 (PST) Received: from puffmais.c.googlers.com.com (94.189.141.34.bc.googleusercontent.com. [34.141.189.94]) by smtp.gmail.com with ESMTPSA id hw18-20020a170907a0d200b00a3600d7c2fbsm1676507ejc.176.2024.01.30.15.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:37:31 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= <andre.draszik@linaro.org> To: peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, tudor.ambarus@linaro.org, willmcvicker@google.com, semen.protsenko@linaro.org, alim.akhtar@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= <andre.draszik@linaro.org> Subject: [PATCH] arm64: dts: exynos: gs101: add stable i2c aliases for gs101-oriole Date: Tue, 30 Jan 2024 23:37:00 +0000 Message-ID: <20240130233700.2287442-1-andre.draszik@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789560496180940150 X-GMAIL-MSGID: 1789560496180940150 |
Series |
arm64: dts: exynos: gs101: add stable i2c aliases for gs101-oriole
|
|
Commit Message
André Draszik
Jan. 30, 2024, 11:37 p.m. UTC
Now that we have more than i2c interface, add aliases to ensure
deterministic bus number assignment.
So as to keep compatibility with existing Pixel userspace builds, use
the same bus numbers for hsi2c_8 and hsi2c_12 as the downstream
drivers with the intention to eventually add all the earlier busses as
well.
Suggested-by: Will McVicker <willmcvicker@google.com>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
---
Note, this patch should only be applied after series
"[PATCH v3 0/7] gs101 oriole: peripheral block 1 (peric1) and i2c12 support"
https://lore.kernel.org/all/20240129174703.1175426-1-andre.draszik@linaro.org/
---
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 2 ++
1 file changed, 2 insertions(+)
Comments
Hi Andre, On 01/30/2024, André Draszik wrote: > Now that we have more than i2c interface, add aliases to ensure > deterministic bus number assignment. > > So as to keep compatibility with existing Pixel userspace builds, use > the same bus numbers for hsi2c_8 and hsi2c_12 as the downstream > drivers with the intention to eventually add all the earlier busses as > well. > > Suggested-by: Will McVicker <willmcvicker@google.com> > Signed-off-by: André Draszik <andre.draszik@linaro.org> Tested-by: Will McVicker <willmcvicker@google.com> > > --- > Note, this patch should only be applied after series > "[PATCH v3 0/7] gs101 oriole: peripheral block 1 (peric1) and i2c12 support" > https://lore.kernel.org/all/20240129174703.1175426-1-andre.draszik@linaro.org/ > --- > arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > index 6ccade2c8cb4..23314ed78c96 100644 > --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > @@ -18,6 +18,8 @@ / { > compatible = "google,gs101-oriole", "google,gs101"; > > aliases { > + i2c7 = &hsi2c_8; > + i2c8 = &hsi2c_12; > serial0 = &serial_0; > }; > > -- > 2.43.0.429.g432eaa2c6b-goog > I verified this works on my device: # ls -l /sys/bus/i2c/devices/ total 0 <snip> 7-0050 -> ../../../devices/platform/soc@0/109700c0.usi/10970000.i2c/i2c-7/7-0050 <snip> i2c-7 -> ../../../devices/platform/soc@0/109700c0.usi/10970000.i2c/i2c-7 <snip> i2c-8 -> ../../../devices/platform/soc@0/10d500c0.usi/10d50000.i2c/i2c-8 Thanks, Will
On Tue, 30 Jan 2024 23:37:00 +0000, André Draszik wrote: > Now that we have more than i2c interface, add aliases to ensure > deterministic bus number assignment. > > So as to keep compatibility with existing Pixel userspace builds, use > the same bus numbers for hsi2c_8 and hsi2c_12 as the downstream > drivers with the intention to eventually add all the earlier busses as > well. > > [...] Applied, thanks! [1/1] arm64: dts: exynos: gs101: add stable i2c aliases for gs101-oriole https://git.kernel.org/krzk/linux/c/72ccd925dcbd2ad6935a4874679b6cf5b3de7156 Best regards,
Hi Krzysztof, On Thu, 2024-02-08 at 09:08 +0100, Krzysztof Kozlowski wrote: > > On Tue, 30 Jan 2024 23:37:00 +0000, André Draszik wrote: > > Now that we have more than i2c interface, add aliases to ensure > > deterministic bus number assignment. > > > > So as to keep compatibility with existing Pixel userspace builds, use > > the same bus numbers for hsi2c_8 and hsi2c_12 as the downstream > > drivers with the intention to eventually add all the earlier busses as > > well. > > > > [...] > > Applied, thanks! > > [1/1] arm64: dts: exynos: gs101: add stable i2c aliases for gs101-oriole > https://git.kernel.org/krzk/linux/c/72ccd925dcbd2ad6935a4874679b6cf5b3de7156 Is it too late to ask for this patch to be dropped please? It appears downstream has just changed all their aliases on Friday, whereas the point of this patch was to keep things aligned. I won't post anything similar until we start integrating with Android/AOSP at some point in the future. Thanks, Andre'
On 12/02/2024 11:17, André Draszik wrote: > Hi Krzysztof, > > On Thu, 2024-02-08 at 09:08 +0100, Krzysztof Kozlowski wrote: >> >> On Tue, 30 Jan 2024 23:37:00 +0000, André Draszik wrote: >>> Now that we have more than i2c interface, add aliases to ensure >>> deterministic bus number assignment. >>> >>> So as to keep compatibility with existing Pixel userspace builds, use >>> the same bus numbers for hsi2c_8 and hsi2c_12 as the downstream >>> drivers with the intention to eventually add all the earlier busses as >>> well. >>> >>> [...] >> >> Applied, thanks! >> >> [1/1] arm64: dts: exynos: gs101: add stable i2c aliases for gs101-oriole >> https://git.kernel.org/krzk/linux/c/72ccd925dcbd2ad6935a4874679b6cf5b3de7156 > > Is it too late to ask for this patch to be dropped please? It appears > downstream has just changed all their aliases on Friday, whereas the > point of this patch was to keep things aligned. > > I won't post anything similar until we start integrating with Android/AOSP > at some point in the future. I can drop it, but the actual problem is that what if downstream keeps changing aliases? They can do it... The aliases are not there to match with downstream, but to have stable interface matching SCHEMATICS. Best regards, Krzysztof
On Mon, 2024-02-12 at 12:18 +0100, Krzysztof Kozlowski wrote: > I can drop it, but the actual problem is that what if downstream keeps > changing aliases? They can do it... We won't care at that stage, downstream should have no reason to divert from upstream for numbering at some point in the future. > The aliases are not there to match > with downstream, but to have stable interface matching SCHEMATICS. Except the schematics don't refer to the i2c busses by number. Cheers, Andre'
On 12/02/2024 12:30, André Draszik wrote: > On Mon, 2024-02-12 at 12:18 +0100, Krzysztof Kozlowski wrote: >> I can drop it, but the actual problem is that what if downstream keeps >> changing aliases? They can do it... > > We won't care at that stage, downstream should have no reason to divert from > upstream for numbering at some point in the future. What do you mean by "no reason"? The reason is they can do whatever they want. Some project leader says: "I want this" and they will do it. They won't care about our upstream choice at all. And then what, you change it again? If downstream was caring, then they could pick as well aliases which we already committed. To remind: the downstream was released 3 years ago! So the downstream DTS is long past "beta" phase and should be considered stable. If they keep changing the aliases after three years, then they can keep doing it for next 20 years. Best regards, Krzysztof
On Mon, 2024-02-12 at 12:40 +0100, Krzysztof Kozlowski wrote: > On 12/02/2024 12:30, André Draszik wrote: > > On Mon, 2024-02-12 at 12:18 +0100, Krzysztof Kozlowski wrote: > > > I can drop it, but the actual problem is that what if downstream keeps > > > changing aliases? They can do it... > > > > We won't care at that stage, downstream should have no reason to divert from > > upstream for numbering at some point in the future. > > What do you mean by "no reason"? The reason is they can do whatever they > want. Some project leader says: "I want this" and they will do it. They > won't care about our upstream choice at all. > > And then what, you change it again? As I said above, we won't care if downstream changes again at that stage, so no, I wouldn't plan on changing again. Cheers, Andre'
On 12/02/2024 12:52, André Draszik wrote: > On Mon, 2024-02-12 at 12:40 +0100, Krzysztof Kozlowski wrote: >> On 12/02/2024 12:30, André Draszik wrote: >>> On Mon, 2024-02-12 at 12:18 +0100, Krzysztof Kozlowski wrote: >>>> I can drop it, but the actual problem is that what if downstream keeps >>>> changing aliases? They can do it... >>> >>> We won't care at that stage, downstream should have no reason to divert from >>> upstream for numbering at some point in the future. >> >> What do you mean by "no reason"? The reason is they can do whatever they >> want. Some project leader says: "I want this" and they will do it. They >> won't care about our upstream choice at all. >> >> And then what, you change it again? > > As I said above, we won't care if downstream changes again at that stage, so > no, I wouldn't plan on changing again. Then I am lost. What stage are you thinking? What differs between now and let's say 1 month for the GS101 which was released more than three years ago? BTW, the aliases I see in downstream DTS (gs101-usi.dtsi) - since beginning up to Android 14 are: hsi2c8 = &hsi2c_8; hsi2c9 = &hsi2c_9; hsi2c10 = &hsi2c_10; hsi2c11 = &hsi2c_11; hsi2c12 = &hsi2c_12; They were set like this in 2020 and never changed afterwards. Best regards, Krzysztof
On Mon, 2024-02-12 at 13:07 +0100, Krzysztof Kozlowski wrote: > On 12/02/2024 12:52, André Draszik wrote: > > As I said above, we won't care if downstream changes again at that stage, so > > no, I wouldn't plan on changing again. > > Then I am lost. What stage are you thinking? What differs between now > and let's say 1 month for the GS101 which was released more than three > years ago? The idea was to make the initial transition to using upstream easier, hence we added the same aliases as downstream (at the time). Given the transition is not happening right now, we might as well hold off with the aliases and add them later, with whatever downstream will be using at that time. If in the future somebody downstream decides 'I want this' (changed again), why should upstream care at that stage? Again, this patch was just trying to make initial transition easier, do you have a better recommendation? > BTW, the aliases I see in downstream DTS (gs101-usi.dtsi) - since > beginning up to Android 14 are: > > hsi2c8 = &hsi2c_8; > hsi2c9 = &hsi2c_9; > hsi2c10 = &hsi2c_10; > hsi2c11 = &hsi2c_11; > hsi2c12 = &hsi2c_12; > > They were set like this in 2020 and never changed afterwards. Those were incorrect and didn't actually work as intended, here's a better place to look: https://android.googlesource.com/kernel/google-modules/raviole-device/+log/refs/heads/android-gs-raviole-mainline and https://android.googlesource.com/kernel/google-modules/raviole-device/+/9864593c894da90cd8b631ab57f15c25f4e11465%5E%21/ Cheers, Andre'
On 12/02/2024 13:38, André Draszik wrote: > On Mon, 2024-02-12 at 13:07 +0100, Krzysztof Kozlowski wrote: >> On 12/02/2024 12:52, André Draszik wrote: >>> As I said above, we won't care if downstream changes again at that stage, so >>> no, I wouldn't plan on changing again. >> >> Then I am lost. What stage are you thinking? What differs between now >> and let's say 1 month for the GS101 which was released more than three >> years ago? > > The idea was to make the initial transition to using upstream easier, > hence we added the same aliases as downstream (at the time). > Given the transition is not happening right now, we might as well hold > off with the aliases and add them later, with whatever downstream will > be using at that time. Hm ok, I just did not understand what are the criteria of choosing point in time when you take the aliases from dowstream. > > If in the future somebody downstream decides 'I want this' (changed again), > why should upstream care at that stage? > > Again, this patch was just trying to make initial transition easier, do you > have a better recommendation? > >> BTW, the aliases I see in downstream DTS (gs101-usi.dtsi) - since >> beginning up to Android 14 are: >> >> hsi2c8 = &hsi2c_8; >> hsi2c9 = &hsi2c_9; >> hsi2c10 = &hsi2c_10; >> hsi2c11 = &hsi2c_11; >> hsi2c12 = &hsi2c_12; >> >> They were set like this in 2020 and never changed afterwards. > > Those were incorrect and didn't actually work as intended, here's a > better place to look: > > https://android.googlesource.com/kernel/google-modules/raviole-device/+log/refs/heads/android-gs-raviole-mainline > and > https://android.googlesource.com/kernel/google-modules/raviole-device/+/9864593c894da90cd8b631ab57f15c25f4e11465%5E%21/ Thanks, so it's like Qualcomm - DTS separate from the kernel, although here a bit confusing because partially overlapping. Best regards, Krzysztof
On 31/01/2024 00:37, André Draszik wrote: > Now that we have more than i2c interface, add aliases to ensure > deterministic bus number assignment. > > So as to keep compatibility with existing Pixel userspace builds, use > the same bus numbers for hsi2c_8 and hsi2c_12 as the downstream > drivers with the intention to eventually add all the earlier busses as > well. > > Suggested-by: Will McVicker <willmcvicker@google.com> > Signed-off-by: André Draszik <andre.draszik@linaro.org> > > --- > Note, this patch should only be applied after series > "[PATCH v3 0/7] gs101 oriole: peripheral block 1 (peric1) and i2c12 support" > https://lore.kernel.org/all/20240129174703.1175426-1-andre.draszik@linaro.org/ Dropped on request. Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 6ccade2c8cb4..23314ed78c96 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -18,6 +18,8 @@ / { compatible = "google,gs101-oriole", "google,gs101"; aliases { + i2c7 = &hsi2c_8; + i2c8 = &hsi2c_12; serial0 = &serial_0; };