Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5563035rwi; Tue, 18 Oct 2022 00:26:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WWpSHeWk2G7u45u7xPo/OuBw/rcVihSGpcitC2rDQJew5ZIoy9IvK7sxIdEeTDTMk2AwS X-Received: by 2002:a17:907:1c8a:b0:782:1a0d:3373 with SMTP id nb10-20020a1709071c8a00b007821a0d3373mr1221756ejc.135.1666078014612; Tue, 18 Oct 2022 00:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666078014; cv=none; d=google.com; s=arc-20160816; b=uWDxZ6tNKRCLNTdHQLCvga1aTv2ejsA//EstSYDOjLP1REnB3CR+jpKyMjMUERKLxn CFj1D1ic3XoXWYgbbcREYWyMWYkXKOvM1c8Y63bu4ldBDtzxp/POwhUIJjlvqTVcU78X tWQnhDUn24MHf4VutvYgP3Vps5FP6muSp/g6pxaTs5xE3S+AoA03+RAAGmmkedR3Jzz7 9Lzais3PmvF9iNJ31cGuUBhRqn88AracUA6CXNRkdjuLgoEohZYhVwi+5H8oBjYgo85H kgxe+ySYxCc6lkkVb5GJZvHtl4DYDBkzIkkJAX1x7u92oO7HSmeiBDvBeDMI1mjxxMmw ZTYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IAGj1lKGN9zHdLIAaa+8k2WGvGRtgT1Nau/Jlmhp4JI=; b=SaavmJcj2KEyhfdtg3A3rDCwdO8KbR7CXMBX+nl8VwG1jS2v2B8cUlatnH08bEP76M ST4YBUKua8f5E/ifwEMOMoijBY9iKCl8Osk8EaiLnyLC7UQi4sCZynSseeBtPXkWKozK zNi3rWE2PJCzeeiwCotHhjhyNEfcai1y+OQtBUlqwBB+zLQ59rP5VWGxYA3Ci0yeMB7G 9aozyKnimgDvZ2qy85qFAGXsgwD5C4BZHE3yZgNFOgO/uMgj6E3YSiwELvaHuSN0i6qP UYI2C00Weie+3QBve9JMnTGWQ9RtkjVj2FRKQB9RpzDVZOAFWwhWvlu4JsgPVldBNQvw m8NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PI5cJjdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a50aa84000000b00458b87a0919si10423927edc.114.2022.10.18.00.26.29; Tue, 18 Oct 2022 00:26:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PI5cJjdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230309AbiJRG26 (ORCPT + 99 others); Tue, 18 Oct 2022 02:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbiJRG2y (ORCPT ); Tue, 18 Oct 2022 02:28:54 -0400 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E14DBA599A for ; Mon, 17 Oct 2022 23:28:52 -0700 (PDT) Received: by mail-ua1-x92b.google.com with SMTP id a8so5169946uaj.11 for ; Mon, 17 Oct 2022 23:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IAGj1lKGN9zHdLIAaa+8k2WGvGRtgT1Nau/Jlmhp4JI=; b=PI5cJjdk125nNbORefNwPn3dHrb2DtMqrwV5OXfVD43plQbvrx5fUPudwMhDnjNrfg G9EppTZJ3Q1Y9WAJGE4DwwxHkn5xuZmObKFVPgks31eGfJlhD9u9Ay9cO6i7deDNmBgQ ja1HckyzidsXZaj/5AfHUDtw0laL4iGuEQuqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IAGj1lKGN9zHdLIAaa+8k2WGvGRtgT1Nau/Jlmhp4JI=; b=ds09mnSpW/JsR++S1R385Uu9+V1ZhrKQvpcJVu6URO1BKDZ0xMtNYJDoHtTu/+xp6y YrxBD/RF5rMmWDtuvmnVPEHZDCo7KzLpH+eojW0L3Lhn5vcbrHSmQDBQm6zO2XNijdYZ EMythBPzE9pE7e2C5IGlE4AnLh0fRkjtGamG295X4Jve+BN5+/yOlWN6ypQKpVDgqffD SWc4Mw3yoIg3BkadHC/VfhnK2EdYKW5y7KSt7UNe2ibFcDHHXUQ0O7VE9zzL3ZJjDcMv F8oYb3mdVtLMiPfV/Vdue49QYFgPFPy558j/poNQj+G7ekZxEzUUxveqbyw6kVHE2WcW saLA== X-Gm-Message-State: ACrzQf2d4oBNDgD2wZ+l0+TVCD6FOg0f5aegpiZ75gsWVa14lK3DVKcg 14ijSsRJ+v94u/7//gNd1wVL7xME8K9lvUmjEf/8Kg== X-Received: by 2002:ab0:38c5:0:b0:383:eed8:dd45 with SMTP id l5-20020ab038c5000000b00383eed8dd45mr785773uaw.11.1666074532048; Mon, 17 Oct 2022 23:28:52 -0700 (PDT) MIME-Version: 1.0 References: <20221006212528.103790-1-nfraprado@collabora.com> <20221006212528.103790-6-nfraprado@collabora.com> <20221013202438.unfa4fqinwhgvfiz@notapiano> In-Reply-To: <20221013202438.unfa4fqinwhgvfiz@notapiano> From: Chen-Yu Tsai Date: Tue, 18 Oct 2022 14:28:40 +0800 Message-ID: Subject: Re: [PATCH v2 5/5] arm64: dts: mediatek: asurada: Add aliases for i2c and mmc To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Matthias Brugger , kernel@collabora.com, AngeloGioacchino Del Regno , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 14, 2022 at 4:24 AM N=C3=ADcolas F. R. A. Prado wrote: > > On Fri, Oct 07, 2022 at 12:02:03PM +0800, Chen-Yu Tsai wrote: > > On Fri, Oct 7, 2022 at 11:51 AM Chen-Yu Tsai wrote= : > > > > > > On Fri, Oct 7, 2022 at 5:25 AM N=C3=ADcolas F. R. A. Prado > > > wrote: > > > > > > > > Add aliases for the i2c and mmc nodes on the Asurada platform DT to > > > > ensure that we get stable ids for those devices on userspace. > > > > > > > > Signed-off-by: N=C3=ADcolas F. R. A. Prado > > > > > > > > --- > > > > > > > > Changes in v2: > > > > - Added this commit > > > > > > > > arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 12 ++++++++++++ > > > > 1 file changed, 12 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arc= h/arm64/boot/dts/mediatek/mt8192-asurada.dtsi > > > > index dac2d4f5e670..758ca42a6156 100644 > > > > --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi > > > > +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi > > > > @@ -11,6 +11,18 @@ > > > > > > > > / { > > > > aliases { > > > > + i2c0 =3D &i2c0; > > > > + i2c1 =3D &i2c1; > > > > + i2c2 =3D &i2c2; > > > > + i2c3 =3D &i2c3; > > > > + i2c4 =3D &i2c4; > > > > + i2c5 =3D &i2c5; > > > > + i2c6 =3D &i2c6; > > > > + i2c7 =3D &i2c7; > > > > + i2c8 =3D &i2c8; > > > > + i2c9 =3D &i2c9; > > > > > > You should only add aliases for interfaces that are actually enabled. > > Ok, will drop the extra ones. > > > > > > > Also, I think we can disable i2c6. None of the current products use i= t. > > It's already disabled upstream. > > > > > > > ChenYu > > > > > > > + mmc0 =3D &mmc0; > > > > + mmc1 =3D &mmc1; > > > > Also, Spherion does not have an SD card slot. It might be better to mov= e > > the mmc aliases to the end .dts files. > > Based on the downstream dts, rev0 and rev1 do have SD card slot (or at le= ast the > mmc1 controller isn't disabled on those). However upstream we have a sing= le dts > (asurada-spherion-r0) shared by those two and rev2 and rev3 (which don't = have > the SD card slot), given that this way we can have a single dts and there= 's no > disadvantage to keeping the mmc1 node enabled because the CD IRQ will nev= er be > triggered. With this in mind, I think it makes more sense to keep the mmc > aliases in the asurada dtsi, as there's no harm in having them, and will = ensure > fixed ids for the rev0 and rev1 spherion boards. Sounds good to me. ChenYu