Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1908058rdg; Sun, 13 Aug 2023 00:48:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDn/Xtishso/EJ/3z1Pi+EHUDriS4agr9Ek2BYanMwQKrBt8X1QYB/KgAkYXQz9pAYAaBF X-Received: by 2002:a17:902:6a82:b0:1bc:6799:3f6c with SMTP id n2-20020a1709026a8200b001bc67993f6cmr6655149plk.35.1691912928949; Sun, 13 Aug 2023 00:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691912928; cv=none; d=google.com; s=arc-20160816; b=G/lM2JL32T6M5JeHOFG5I5bN4RQWBmJm8uzhDIqgtNA1jxxGBW5B4xkDlB/6Adtx+8 HtfHNgCJqfeM6WG+RGjwx1HCBnj0imTSs7qHkR6S2I678lOjogDPo4YIuiwTHiXHlXVM jlntwIa8Hh3pnyDNbSMA8SU8Z11JCLmpIzJiq3aFRyZMlfuEzSmxPHZfg9lCEy0vfNc/ fsg0s73Dg130GUnXpdQlSQRSG6xk4MMagkd7eYnxxX0NvvMfF5diZgWJ9ekt6Pmqjt/Y /jkvDg5/6ookX9MKQXOYiOWF3RlWl9fp0O/Ts2p1tkYHC+S36BvfGAZcO3CL5POj4K7I d3hg== 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:reply-to:in-reply-to:references:mime-version; bh=Vydo7O77Wr+7Y7kG6W7LFYS4gH9mv3fpENAW9dRFT38=; fh=pwjH/w2bBPgba9R8LTq+ePju/W5UdeGurVpGm17zlrg=; b=02pJJiKSfaYfSbbYcC9MBgaTaV7I6Srvyoe+QpcZdhO7BGt9Nh2UcIdOVWSzw7WkYj tjpTGP7MGiqwi8xeIhD5bf8si5P2aNSBl382Pzg/U8/uy8y+XaI4GG4T2r+YMC40nhfQ xSxpEn2GPrGO1Y9qJcHrFsJ0QgP7X35zqNQ7mQgMQxwyv6lB90eII5y2IU/B01d2/oFL JGmfM/3jFT7qzJIW9+vOmAqsvYFvfnHm2WLBddObeuzBCy1sCzPanGoSUNvcnFiMwRl6 mevliTgo0meMkQ9zlxAddjQeromT4/jBn7rlMk3uh7J/2z3k/Pk6HZcyqWv+KqaYg0V6 byOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a170902e74200b001b8b37f0ab0si6224542plf.280.2023.08.13.00.48.29; Sun, 13 Aug 2023 00:48:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbjHMETA convert rfc822-to-8bit (ORCPT + 99 others); Sun, 13 Aug 2023 00:19:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjHMES7 (ORCPT ); Sun, 13 Aug 2023 00:18:59 -0400 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4D3A10F9; Sat, 12 Aug 2023 21:19:02 -0700 (PDT) Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-63d10da0f26so23327656d6.3; Sat, 12 Aug 2023 21:19:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691900341; x=1692505141; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HI593M9zMN8epqOMj2ahalMMsfEOiEZNyKM6XMUdoUI=; b=jGIQqWqCrr/m7Rvt2JvowGL1TWp7QrRSfQ4/Yf+c6Up8vkvLoyHi6xdVdOh1YBU2k2 sbdXvmbmR13OeMY53RJ1R2NHM+4Zg575E2ddwpYl1QIPGXRXN/8yek+YaNpAge58UMjT mGVK1MN8XrxWvVXKI+ZDbTiIBPqiC/6qI5oPhAmaPbikuqUL10gIngwRoiNvtbCsBthH KTlbTqCN/IZs40MkILmNi2xoumvy68y/r9EaaF+J0JSBHi7CRLd+GOu3io0uDr9Zl++V QydDnTxVJmlkCIQJ4xYNaNryup+Nds8gmFxEzjAKgeSW2aENeZgfCeyHqiwG5h3L1OWd WuSQ== X-Gm-Message-State: AOJu0Yz1eHrzKfdEBWFkaYxMahWFLtzofTP6p7DRJ8N8KpAjCjZZXwoF sgkZVq//zPxAeigPjnks45Pwcp0K6t6ngety X-Received: by 2002:ad4:4521:0:b0:633:45e2:5603 with SMTP id l1-20020ad44521000000b0063345e25603mr5973829qvu.60.1691900341507; Sat, 12 Aug 2023 21:19:01 -0700 (PDT) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com. [209.85.219.48]) by smtp.gmail.com with ESMTPSA id n4-20020a0ce544000000b00636e767d445sm2362553qvm.62.2023.08.12.21.19.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Aug 2023 21:19:00 -0700 (PDT) Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-6430bf73e1cso11969086d6.0; Sat, 12 Aug 2023 21:19:00 -0700 (PDT) X-Received: by 2002:a17:902:e741:b0:1bb:8e13:deba with SMTP id p1-20020a170902e74100b001bb8e13debamr7297585plf.11.1691900000803; Sat, 12 Aug 2023 21:13:20 -0700 (PDT) MIME-Version: 1.0 References: <20230731023701.2581713-1-contact@jookia.org> <3248110.44csPzL39Z@jernej-laptop> In-Reply-To: <3248110.44csPzL39Z@jernej-laptop> Reply-To: wens@csie.org From: Chen-Yu Tsai Date: Sun, 13 Aug 2023 12:13:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: dts: allwinner: d1: Specify default CAN pins To: =?UTF-8?Q?Jernej_=C5=A0krabec?= Cc: linux-sunxi@lists.linux.dev, John Watts , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Samuel Holland , Cristian Ciocaltea , Maksim Kiselev , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mkl@pengutronix.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no 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, Aug 4, 2023 at 4:59 AM Jernej Škrabec wrote: > > /cc Marc > > Dne ponedeljek, 31. julij 2023 ob 04:36:59 CEST je John Watts napisal(a): > > There are only one set of CAN pins available on these chips. > > Specify these as the default to avoid redundancy in board device trees. > > > > Signed-off-by: John Watts > > --- > > arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > > b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi index > > 4086c0cc0f9d..b27c3fc13b0d 100644 > > --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > > +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > > @@ -898,6 +898,8 @@ can0: can@2504000 { > > interrupts = IRQ_TYPE_LEVEL_HIGH>; > > clocks = <&ccu CLK_BUS_CAN0>; > > resets = <&ccu RST_BUS_CAN0>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&can0_pins>; > > status = "disabled"; > > }; > > pinctrl-names and pinctrl-0 are usually at the top. However, since there is no > hard rule (I've seen it mixed), I'm fine with it. AFAIK this only applies to board files where there are mostly none of the resource (clocks, reg, resets, interrupts) properties. OOTH the compatible property is always the first property. I would normally put the pinctrl stuff after the internal resources, since it is an external property. In the SoC dtsi files, they would end up after the resource properties I mentioned above, and before the "status" property. ChenYu > Acked-by: Jernej Skrabec > > Since original DT node entry goes through netdev tree, this should be picked > there or it can be dropped there and I pick both patches or I can pick patch > for later kernel version. > > Best regards, > Jernej > > > > > @@ -907,6 +909,8 @@ can1: can@2504400 { > > interrupts = IRQ_TYPE_LEVEL_HIGH>; > > clocks = <&ccu CLK_BUS_CAN1>; > > resets = <&ccu RST_BUS_CAN1>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&can1_pins>; > > status = "disabled"; > > }; > > }; > > > >