Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8643834rwb; Tue, 13 Dec 2022 08:43:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BdsJQ8z6bik2H9rrcw2Vw/oAdftTYvMUNXimsDwmsaUoXRltyRUWwMVJuE/kVkAuyEEJV X-Received: by 2002:a05:6a20:8c01:b0:ad:5cee:4d0 with SMTP id j1-20020a056a208c0100b000ad5cee04d0mr13858432pzh.12.1670949835574; Tue, 13 Dec 2022 08:43:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670949835; cv=none; d=google.com; s=arc-20160816; b=DW1b/q2gtml+zMSaWyjjVaSIwjt2/fDsMYEgGJ+ePyDmG37PIfUoLGocjQew8fkmJ/ RNOTPP5T2YQ/BylBjkzlxBVJ9W7zllfnD6SPKlLc/iJzjtYjXDf++S5i3rCzBdWGdXI7 D7Qy4GZrqVGLqRy2aNeQiUmX8xp0I8CyIqsH0gfXxrPweG0jdBp5sYFPnIv0ueA+qiGU DfyLQseDlNTiEl1v8Ynq16cmKvJyMuK2F5K5auE+faa7Z0IK/AgtYLewlEkGaxCMxa6y IN0A0Q1b9lplAIk5mp8KQHmcYAinHQPtIzmKie4V4f08rbyqBoM+vHmmUkKqyhf+Sl6i Y35w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3Uizg/Cbt6bIoHLE1DcvoZ69hTBaKYIMA6RZs7RZTO0=; b=wePVpd6hz+A560u+FbJecdrTZv9PU1x4TEZjiFjMz9neISfBaWZrNGYeiaBULfX0z/ +wYN8zzds1j2T5aPqWQ3BnCxbO12A0WXpCrwn9/IHLenpIQwgAIxJ4b/cRKp+OG+pGsm aICSEwWVHxeP3Stspc+Dcmgfz9gXuq3Ckn+xDmeys6VLAmsLp+ftTq0qQHBkYMWquIiu r8jow4oFN8C/RUJBXkARSvXJ4QjdRaqGAZ5oAuWooAWu+Fsm2ByGfeQVd8ar4pQdMyjp i8dzADYUdEGhVORutS/kR+PeG3AP9+1/T5qKxZnSypQq1xddIdRc1shfo2zDnPZlvegA ynAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nD5RlaeB; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b00478f1d4badcsi11995505pgp.365.2022.12.13.08.43.45; Tue, 13 Dec 2022 08:43:55 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=nD5RlaeB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236270AbiLMPmv (ORCPT + 72 others); Tue, 13 Dec 2022 10:42:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236179AbiLMPml (ORCPT ); Tue, 13 Dec 2022 10:42:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 279B62229A; Tue, 13 Dec 2022 07:42:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 25224B8123F; Tue, 13 Dec 2022 15:42:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B326DC43392; Tue, 13 Dec 2022 15:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670946149; bh=w15z9/GwHbssv+3zLnYaCJobp9cRRcve+pRpo3G+gnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nD5RlaeB8k6h1qkjWkmsjCkOxP5LFQzezUHxCSi2FkfJ/gHqr7iFqLHze7TDlHM9r Jd6lUIU7r9DAOK6gqyd4JLEUiFlm4Wx9oKaEOPzDfEhje21oZcyIyEvEv+Y0xdbFGo omKlHylmiTzyPf1Y1P3dNjhmC9/GhQmBR3d867hxbQZ3i3xmoYnh1XbRnHSJIIGlY0 k2MZBgRN3AKBCepYanuOjLA3QxRC7WjjqiYdGxH3jgWGh2th1dUFJau4RZrI/dMDH+ oU3Tw0Q6cjJn5eoTDEfZFpLDhcfbmdky3YACZ6gKe9DFoE0LIZDhEev1EpcF7pirE1 aYRvsJdsk7OvQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p57Ql-0005NX-LS; Tue, 13 Dec 2022 16:42:55 +0100 Date: Tue, 13 Dec 2022 16:42:55 +0100 From: Johan Hovold To: Shazad Hussain Cc: Brian Masney , andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, johan+linaro@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ahalaney@redhat.com, echanude@redhat.com Subject: Re: [PATCH 1/4] arm64: dts: qcom: sc8280xp: rename i2c5 to i2c21 Message-ID: References: <20221212182314.1902632-1-bmasney@redhat.com> <20221212182314.1902632-2-bmasney@redhat.com> <03252ccd-e200-a112-b4dd-ba9fbf25c480@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, Dec 13, 2022 at 04:39:54PM +0100, Johan Hovold wrote: > On Tue, Dec 13, 2022 at 09:04:39PM +0530, Shazad Hussain wrote: > > On 12/13/2022 8:58 PM, Johan Hovold wrote: > > >> So qup2_i2c18 becomes qup2_i2c2. Would I use the flat naming scheme for > > >> the alias like so? > > >> > > >> aliases { > > >> i2c18 = &qup2_i2c2; > > >> } > > > > > > Or perhaps the i2c controllers should use a zero-based index instead of > > > being named after the serial engines (e.g. as we do for the console > > > uart). > > > > > > How are they named in the schematics? > > > > We should use from 0 to N. > > With N being 23 after the number of serial engines, or the number of > available i2c buses on a particular board minus one? Looks like the more recent Qualcomm platforms use aliases that reflect the engine number (i.e. 0 to 23) for i2c and spi. Johan