Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2771053rwo; Thu, 3 Aug 2023 14:57:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5FmF+GeuysQGhPR8AueDZ9xx3h8NvN74HuhYewmYp54jMTXR675XJPQ5cbJAvtPTOAbN0 X-Received: by 2002:a17:902:6909:b0:1b8:9461:6729 with SMTP id j9-20020a170902690900b001b894616729mr14522plk.2.1691099832681; Thu, 03 Aug 2023 14:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691099832; cv=none; d=google.com; s=arc-20160816; b=I8wFm9FGbcAn8Ej41YE2hLsUs81+z7qx4fXppda9XKqwOty3GUvujol1ejON6GFv4z 7TIBd0u5PjruCnbrtkYEdXDgCn3l2dWnGQ3vThyaclrm0TlE/RfRzVHbYcqJiQSJNfsQ l9yj4JtaNo5vZSePwExyt7AbpqCIxPvrefSY4ZNTM8otsxcBPL2MIGSfWxIA2VUkwAzP b7jV5dmxq1+fT31rpWAFlD1K0lLaEsN+p7/aajemADbjCblF7lgPYFoM/hRm0u53H9aM 2KvjwOtMl/FeICfHf0F9F2amAEpMoa+OXSAByZa/va6Pyt18EgE8VmagHZfaUiJV628P rpqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DP2b+AILmlpdJLSBdLdZp7i7Y6kRAXSbaj0B+upIxrM=; fh=7Hg8TpBAM0GDxhpTLqtLOjhqc8MXU5cvjvb0Pojm7nY=; b=kQKty8g/7W2JlG+V73vQD9ms6RNNWUwWj5l6dc7jRhsdBNfUYya4+kLwjN/GKb8OLB x5vKk5lyHgkmAI8txkDMHbpKj5+LYFPCuLQDqkkF421YWN16sc3JThrqSnwrCspSPyEk sfq28dv09Po1Jb9N/QLcgyQMVget+IGPWuG7120hoT0LdzRPQ7T0GIrbr5s76jGkrAZH +Y2JnFeTaz5eb/+OHxbJMyd4BAeQNqRpZ/NOJ4z3bdX0DNNcydGw9ygi8GuiwhCjERfk qnOtwNPXSen9onWc+HVXcDDxYmNikG3h26unkjujxahbqERCeD0oC6pzCIdT6QdKbFKC ndvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KzzRQ4S2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b23-20020a17090aa59700b00267fb8a89eesi3901907pjq.146.2023.08.03.14.56.59; Thu, 03 Aug 2023 14:57:12 -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=@gmail.com header.s=20221208 header.b=KzzRQ4S2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231187AbjHCU7h (ORCPT + 99 others); Thu, 3 Aug 2023 16:59:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbjHCU7g (ORCPT ); Thu, 3 Aug 2023 16:59:36 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481701AB; Thu, 3 Aug 2023 13:59:34 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe24dd8898so14237945e9.2; Thu, 03 Aug 2023 13:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691096373; x=1691701173; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DP2b+AILmlpdJLSBdLdZp7i7Y6kRAXSbaj0B+upIxrM=; b=KzzRQ4S29CvAU+TMW8J+OxQJT0N2VhnDo449Nyam5kEaT/lCE1i/60oslFCK2Hsg9Y GJ8tR5nS/QQr2daknYxum4FyeNCoXDvPajZSppWA6fXsarteFlTEBTQle6I5+qDh5yVh ngnmh8QazL+AyBdq85o1BjPm/64gbyFgTStzkiooUU9Phj5GbPjSBKK5KeinEBVRMQLR MDoaI9uwvFjXnuP2iW6YwDSKktwQRl82ymGuY3S2+HdlfHslVj6n95vbQklGMBrrmdrM 8IYb17FZ/8wMlU/YHeTfKrPsbOBC64FDYeO76bYT6bsFN3xrpmEJ2qCgl3q0dXPynKZV LtBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691096373; x=1691701173; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DP2b+AILmlpdJLSBdLdZp7i7Y6kRAXSbaj0B+upIxrM=; b=IqpQEWhkKFJJM34Eq92X+IYDXm4Iusjd7Cyj8xeRzWmLriZNW+C2ln9Q5o0M+S9TZm CooJxplPy9zhtcShiYUuP//hmEclXnYMAdi87I0ZZPGQlIVaYQ+8UZysxru6M3OfUT/S 4yajWg6S2U7PZo/QuPStkDOyyD12lkycW7OvgJqdogYn7EjDSuQbGScwFUslaiKyhaRf +16x0zPvWZjSXe1lcLtIHuYPXRVfVuXLU8IJM1RGKJb4pjNBZLX8pGtwFElQ3in3VEyK pCzAJiQRd3dGP0OBPAwcW7O2Zd6SaUXp+u8RBoiVPFg6VIeQgxwvEgXv/fBhkubjyGXI 00PA== X-Gm-Message-State: ABy/qLYQf+SWwGc6zgF/3Ygj6NSIDOa+Th/iAD+CUK252N/dItxEtwXo YwLShwR0O9zNTFJqZAblzg0= X-Received: by 2002:a5d:69c1:0:b0:314:c9c:bc96 with SMTP id s1-20020a5d69c1000000b003140c9cbc96mr7821541wrw.7.1691096372657; Thu, 03 Aug 2023 13:59:32 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-1-233.dynamic.telemach.net. [82.149.1.233]) by smtp.gmail.com with ESMTPSA id u7-20020a5d5147000000b0031437ec7ec1sm770658wrt.2.2023.08.03.13.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 13:59:32 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: linux-sunxi@lists.linux.dev, John Watts Cc: John Watts , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen-Yu Tsai , 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 Subject: Re: [PATCH] riscv: dts: allwinner: d1: Specify default CAN pins Date: Thu, 03 Aug 2023 22:59:30 +0200 Message-ID: <3248110.44csPzL39Z@jernej-laptop> In-Reply-To: <20230731023701.2581713-1-contact@jookia.org> References: <20230731023701.2581713-1-contact@jookia.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 /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 = ; > 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. 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 = ; > clocks = <&ccu CLK_BUS_CAN1>; > resets = <&ccu RST_BUS_CAN1>; > + pinctrl-names = "default"; > + pinctrl-0 = <&can1_pins>; > status = "disabled"; > }; > };