Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp838125pxb; Tue, 19 Oct 2021 14:13:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEyz2A0QnnNFdnxHY5ZvMj0L8J6cYA21TgHgRD4l0gQQYOz6UPV+RI0a21Q8zp1CMyjSvN X-Received: by 2002:a17:90a:1548:: with SMTP id y8mr2634002pja.151.1634678018638; Tue, 19 Oct 2021 14:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634678018; cv=none; d=google.com; s=arc-20160816; b=RMizQGJeBKM0SitG7P5M0aEqNwbQ3PjiLFwULGg6sr0vUitpSYCoKeByyyoHsaCZKc az/42Sjc1aIUk/CY14pUbDn42tgaTIzlTjaspJ3rPknKYrVqlcTIeHWe5GuaV57+mWYQ Nf2G5LPPCYF+8Jg/Lfc0OsiXDPtn0NQRyZ/aIRVTOvDewpJGuoC3faLTN7RX1DQkc3uQ x0haR8N801GKwCu+GU3xfEAhr6YpXdC8re8dkvFcC9+K6rCHDS72i1uF2SZLgc3/phag PdyMVnJtgM6i3xOXhq/HluW500peqX1qda8uwZSaPh6slEna3BJD4x43+k5+pvNy5KHa rqtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=30BnP4r6CE0OkZvT19kcbgPK/6Ckj3KjznbN6qKawuk=; b=iJENtY9Ty7DaKkZzuhdG0gsO8vNdt3lsKrNUhDhpJQD1r1gonV2xx5iTWqoMTy8WI4 HYbosaZtb8SzxRnspT/tcpnVSmTEUPP9uPZhXBJI/XI49Ub0BCztK+z/dJf3nbVvDCcx +qgF+go/6cVzaeo7U3i5izwY1UzlL/AssK7JZfZisCyx7sWtlL1VmoN2kAiD6NOn5Zwn HrWII4kY95B+wBqm592Gy2oV3cy1cQ5vksgEFJd8eyn3Zy3V51IgOfQq5ZRUvxbDcZiT 8GTWJhCbQM61K4Is22eEVfpl37yfVOkmgW8aPFj+E23ptUas/TquBNVSk2goXV2AdykN vDNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="fpA7N/KY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x63si70826pgd.510.2021.10.19.14.13.25; Tue, 19 Oct 2021 14:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="fpA7N/KY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229483AbhJSVOS (ORCPT + 99 others); Tue, 19 Oct 2021 17:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhJSVOR (ORCPT ); Tue, 19 Oct 2021 17:14:17 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FEEAC061746 for ; Tue, 19 Oct 2021 14:12:04 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id r134so22024601iod.11 for ; Tue, 19 Oct 2021 14:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=30BnP4r6CE0OkZvT19kcbgPK/6Ckj3KjznbN6qKawuk=; b=fpA7N/KYD+Fh+EqegyotiKveYMCDZtJ4zi3/phXmtjRDphoY5PgXliB8+bY62n45i3 JVOV/VITICl2sudKvC91/HihnhlM9h8FXhI0rMD4Qmh3tsLTyLPBNsuAf+vNtdsiQ/vd X8ZS+4C8t61x+oCuOd4J4MlzH+H1psJwjmzHE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=30BnP4r6CE0OkZvT19kcbgPK/6Ckj3KjznbN6qKawuk=; b=o8ciEJXDEt/lh9Z6fbxKdYbi4o+tOF0EKwqantVYqchfUJNS3ry+Okh/lZa2C7tAul 2qDy9cwrkPDbH9GOtqbWO7IsmOvW6Q/uZmRMMT+Ur/zUqAtysnUZDfka/wsl0cbNfVw6 EC1OP0B4kHyplMC1kdXcFZ87Smq2HFZa7+zuKhzBEYo8+0a44iPLhXm+zQhkQbu2+hlt PtiWeP/6JVKQhTVvu39twnk1QiM3QvJqO629sBKMn/f3vBpMouSLj0VPXEwkkNmbbV4q ySzPxddf4fP2MCj9Ps/4hBzoaURQPmLDdedO6581pPMl12zfMFvFty5iy46eI6zuCWq9 jgeA== X-Gm-Message-State: AOAM531Qe8lwjqYVxbVcCnacJYpHNXYVESZuKhh2PkUEU84CguPQ6PGP Kmq5DUE+9MsKz7VzlyTtGt96nW9rn+VLhw== X-Received: by 2002:a02:9469:: with SMTP id a96mr5994213jai.5.1634677923372; Tue, 19 Oct 2021 14:12:03 -0700 (PDT) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com. [209.85.166.42]) by smtp.gmail.com with ESMTPSA id b6sm94396ilj.39.2021.10.19.14.12.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Oct 2021 14:12:02 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id z69so18906984iof.9 for ; Tue, 19 Oct 2021 14:12:02 -0700 (PDT) X-Received: by 2002:a05:6638:258e:: with SMTP id s14mr5926528jat.54.1634677921595; Tue, 19 Oct 2021 14:12:01 -0700 (PDT) MIME-Version: 1.0 References: <1632399378-12229-1-git-send-email-rajpat@codeaurora.org> <1632399378-12229-9-git-send-email-rajpat@codeaurora.org> In-Reply-To: From: Doug Anderson Date: Tue, 19 Oct 2021 14:11:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V10 8/8] arm64: dts: sc7280: Add aliases for I2C and SPI To: Bjorn Andersson Cc: Arnd Bergmann , Rajesh Patil , Andy Gross , Rob Herring , linux-arm-msm , Linux Kernel Mailing List , DTML , Rajendra Nayak , Sai Prakash Ranjan , msavaliy@qti.qualcomm.com, satya priya , Stephen Boyd , Matthias Kaehlcke Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Oct 19, 2021 at 1:57 PM Bjorn Andersson wrote: > > On Tue 19 Oct 13:43 PDT 2021, Arnd Bergmann wrote: > > > On Thu, Sep 23, 2021 at 2:18 PM Rajesh Patil wrote: > > > > > > Add aliases for i2c and spi for sc7280 soc. > > > > > > Signed-off-by: Rajesh Patil > > > Reviewed-by: Stephen Boyd > > > > I saw this in the pull request, can this please be reverted? > > > > Yes, this can certainly be corrected. > > > Putting the aliases into the .dtsi file is really silly, as there are > > likely boards that > > don't connect every single one of those, and then will have to > > override and renumber > > them. > > > > Please only list the aliases that are actually connected on a particular > > board. Hrm. I know this gets into slightly controversial topics, but I'm a little curious what the downside of having these in the dtsi is. In the case where these i2c/spi/mmc devices _don't_ have "well defined" numbers in the hardware manual of the SoC then I can agree that it doesn't make sense to list these in the dtsi file. However, in the case of sc7280 these numbers are well defined at the SoC level for i2c and SPI. Said another way: if you have a board that's got peripherals connected on the pins labelled "i2c2" and "i2c6" on the SoC then it's a really nice thing if these show up on /dev/i2c-2 and /dev/i2c-6. ...so I'm not sure what board exactly would be overriding and re-numbering? Unless a board really has a strong use case where they need the device connected to the pins for "i2c2" to show up on "/dev/i2c-0"? -Doug