Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1882572rdg; Sat, 12 Aug 2023 23:27:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH9EHGtbF8XIh639bTqemsXWJ1ciP8Pn0WLBj97zzsPaC5tv/2AVl6yFNfrxjovBeKvcfS X-Received: by 2002:a05:6a00:4387:b0:688:2515:9efa with SMTP id bt7-20020a056a00438700b0068825159efamr3647152pfb.1.1691908052376; Sat, 12 Aug 2023 23:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691908052; cv=none; d=google.com; s=arc-20160816; b=Y36u9SL8QCJjdMaL/UpVNuQdFa3yEfR2rIbPk57VHsUAtHgXBkTHMyTMLXLw03d+V8 AvDSxcPjfB+HDQm/RPksPrjbDceVfyaw6Q2TS96g1oXysP2gxs8NGM7tuZ0i1qF+zHi1 5CebVFVEjHWdnb8psVpBPBC5KfZMKM0aJZBZBBRUTGbdELhV70E7RmYmCMLxIkMq95kp ZIY1Veq87zJWby6FpN9u/guRAll2uFbID3vexI4a1C7OJYvSIGNF62WxCgC8SCMQws7I KDFARxpiwHC04t8Yy3xm25WohV3jVdWEO8/5MHhSGmP4yW/vCG1i39acJIuz+KwfcKzf C5LQ== 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=Gg9in8nrdWWD6JHWK8ft+Tx9zucIAkXA7z5gcxOK1bE=; fh=L8kZx5IRsejq+oy52O5o/V66qj4Z2Fr/Z2s+KWnks6M=; b=E7d9UQfk6n0yyMZxfiCVG/NExw9zAgc9V1yKBgKHJtdKmPSLXKdV9rnNNBHbAAnbcB URBbblaJCYfFo+ke+avM1cycFoRxbYdQOOWgmRnLQ9XJqCZyOMpvoxDW1M4jy3ml6zgN 2I1kZRicxNtRw8otc4SPiEgEEf87IoFj+ObK0NPfr4C4/cDsKj0FvEePMqFPiRTUYf2Z zhYlx8/l/U0U8fsHmD5SkcoyswPGY7qrS4XsuBhAIPUbtrYtgp8Sppyn5b0PqmEk66Qz ddGlskhxoCzPI6ZSxcQnCGdK3V2Lqj9gv6AdhrtDa6juNSYXaCrG2L5l+cRbAV0usUYV MCkQ== 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 g124-20020a636b82000000b00564bfbb19e7si5865152pgc.728.2023.08.12.23.27.06; Sat, 12 Aug 2023 23:27:32 -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 S229716AbjHMGPA convert rfc822-to-8bit (ORCPT + 99 others); Sun, 13 Aug 2023 02:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjHMGPA (ORCPT ); Sun, 13 Aug 2023 02:15:00 -0400 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C0A4110; Sat, 12 Aug 2023 23:14:59 -0700 (PDT) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1bc7e65ea44so22612155ad.1; Sat, 12 Aug 2023 23:14:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691907298; x=1692512098; 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=PquNnrwc6lc8WzSRLbxFenC5bqhWO9QOMiyMhVomEDw=; b=T2C3D9/2fDYL1yyof7eqvAjtBSrYZkalfj1BcEI3OJu89FElbm3y0Hg84ivs67y28c t0VXDBgwbKNiKEY5FnWaFbAHV6LMQ2jpteyT9cVdzb/bxJuKqJ+0KS5XfwJNo2I0bwvB MteLmiH7aEaXEi5w6LYkItxBjrnPZ8FDMedwIH7HD33nYmgLJmC8CNxHrqF4wOLEby5G zcZVG4SaQpvyB6bXq5ZCebxWi1Yzq4+T160l27WK8hhdUGN9+AhSI534Seg24Fzs25vv U53I7PLa/1o8QupLmr6ETjEFBoDhN0P6t2c9hpMKvPedcYj+ywZC4/opgO45+S1jqGT3 n89A== X-Gm-Message-State: AOJu0YxpPxq5d14JTeeAbyG0FYQNPeHH+Xwg3y4/nYeJCpTHr9it+59M vFa/G7ywGC4rFv7NF4yQYkya/ltmVScBSA== X-Received: by 2002:a17:902:f549:b0:1bd:d510:78fb with SMTP id h9-20020a170902f54900b001bdd51078fbmr2070651plf.3.1691907298184; Sat, 12 Aug 2023 23:14:58 -0700 (PDT) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com. [209.85.210.181]) by smtp.gmail.com with ESMTPSA id i9-20020a170902eb4900b001bc5dc0cd75sm713611pli.180.2023.08.12.23.14.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Aug 2023 23:14:56 -0700 (PDT) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-68730bafa6bso2959966b3a.1; Sat, 12 Aug 2023 23:14:54 -0700 (PDT) X-Received: by 2002:a17:90a:e0f:b0:267:f8f4:73ab with SMTP id v15-20020a17090a0e0f00b00267f8f473abmr12065548pje.16.1691907294402; Sat, 12 Aug 2023 23:14:54 -0700 (PDT) MIME-Version: 1.0 References: <20230807191952.2019208-1-contact@jookia.org> In-Reply-To: Reply-To: wens@csie.org From: Chen-Yu Tsai Date: Sun, 13 Aug 2023 14:14:42 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] riscv: dts: allwinner: d1: Add CAN controller nodes To: John Watts Cc: linux-sunxi@lists.linux.dev, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jernej Skrabec , Samuel Holland , Maksim Kiselev , Marc Kleine-Budde , Cristian Ciocaltea , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 Sun, Aug 13, 2023 at 12:23 PM John Watts wrote: > > On Sun, Aug 13, 2023 at 12:17:27PM +0800, Chen-Yu Tsai wrote: > > > Signed-off-by: John Watts > > > --- > > > Changes in v3: > > > - Set default pinctrl for can controller > > > - Moved can nodes to proper location > > > - Moved can pins to proper location > > > > > > .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 34 +++++++++++++++++++ > > > 1 file changed, 34 insertions(+) > > > > > > diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > > > index d59b4acf183a..24f2e70d5886 100644 > > > --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > > > +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi > > > @@ -52,6 +52,18 @@ pio: pinctrl@2000000 { > > > #gpio-cells = <3>; > > > #interrupt-cells = <3>; > > > > > > + /omit-if-no-ref/ > > > > Just FYI this likely ends up doing nothing if you also have them > > referenced through a default pinctrl setting. They end up always > > referenced and always included. For the D1 series it looks like no > > peripheral has default pinctrl setting given. > > > > We can still keep it though. It would help when future chip variants > > specify different pinmuxes. > > Oops, thanks for pointing that out. I'll try to avoid that mistake in future. > > > The compatible string should be the first property. In other sunxi SoC dtsi > > files, we put the pinctrl just before the "status" property if it's present > > to specify a default pin muxing. > > Oh that makes sense. > > > > > I can fix it up while applying. > > Please do! Applied. Please check here: https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?h=sunxi/dt-for-6.6&id=f05af44f691351bfd954f39ec376666dc5e1b869