Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3800528rwb; Sun, 30 Jul 2023 16:48:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEXzgvZWMMMjAgZZIhthirhK3wj5fL8uBkkdOqZk39RmfTE3Jr1FIW6hifaSzink8Ok4U6 X-Received: by 2002:a05:6870:c186:b0:1bb:c50d:7451 with SMTP id h6-20020a056870c18600b001bbc50d7451mr8370739oad.46.1690760905146; Sun, 30 Jul 2023 16:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690760905; cv=none; d=google.com; s=arc-20160816; b=Brm8JJrTGzhYsZehmcM9S0ybYTQJiyZQVRgKxUQ9Y+qf28VdxEP6jBG5syRZY3CQOF lMCjj2EzQvaNvZhLqBFzij+aXU+nxy3FduVh0cDMARn/iCaG1n4fsi8JjjS3h/jyzc6x R8Huzm4SHfFMFbVDiTgbYDZ198DiIjKERR5uxDPikbiae26Ynhpl3I8Jgs6QHuUoqOwx qEgAbjyOXUx0kBzmBvmPqHY8oXqXdvX4LLV5FzntHtFiZ/P6NA810KSvVOQCAyBqQQwa 2wOYfjnGhbSPhcnYsFRRwTDJPa9NPg18Hr2lZIFWNId1Xa5Py8CtGZ63PFz/5816pm1n O8bA== 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=pahPU3wSvsqJHIDLsqPi1ulLhJMWKZSO5rvQ5dMXskQ=; fh=lT6cY+V6zTQH//c2ZrhfCTlnQJslc2L2Gt1hcQgN2+k=; b=FgG55Ymj9dktQHEgHM6wlsVYJ17ZkqrabXLfpFBSF40r/w2hw2A6M6aVeP516ar8rb 7TG8/8oTuLajWpaZEnijV2a0nTaczsYzQHr1IhkSDzJIlePdGNPR0GMfAL7xYJzGznhH Z4S4z/pVjOtzaOGctSGd10U5+EUT4G2S7xjIxrHlLWcTY+iaKmVUvmGj/tTe5K7PGhuP kr2sAxBpDJ1mmGBTdvYertc97uBeEWq8sgM0J1dvEy8EASyaa6362Lc5+8GO8CFnAdcS DXwyvA8R6k9e4Ew4zqyRQUkcsDjZhTsEhnWNt4woO2wUFIFaA8tOIpfPy0Gua3Pu/qHW GqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=q0sSR9AX; 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 n1-20020a639701000000b00563d4175769si6318048pge.814.2023.07.30.16.48.13; Sun, 30 Jul 2023 16:48:25 -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=q0sSR9AX; 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 S229614AbjG3WEG (ORCPT + 99 others); Sun, 30 Jul 2023 18:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjG3WEE (ORCPT ); Sun, 30 Jul 2023 18:04:04 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DD8610D0; Sun, 30 Jul 2023 15:04:03 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe167d4a18so16516865e9.0; Sun, 30 Jul 2023 15:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690754642; x=1691359442; 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=pahPU3wSvsqJHIDLsqPi1ulLhJMWKZSO5rvQ5dMXskQ=; b=q0sSR9AXHGYYmyVNDr+xpag+Dw277dZX9Y4ekqdWpmmrFAk+IkylG9pts4k/utI7SB zHxzRfyKPebgYRJYkunUtLvj5sS8zxKQl/rhUk5cZJQIXFjNIZ/nNClC0D6BWdCUF1kr fzAyd0fX7gdRjXwXHsIBljOjfQ2Pkl9bdDOji8mRYkSKOyEo1mHn2Y/99CtOUV7UOkQe KxzfIg/nQMircpIV0T3thGF+3HJlvdO6sZVPjU2MIA6s6Go9vK32qNngksFxfQBf571Z 60mN9fdB21OXpFV8KY3m4hJg5j4fWeOvu585h2Cu3kZsVc1XjPt+g2fNfR9rszK7il5D lU+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690754642; x=1691359442; 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=pahPU3wSvsqJHIDLsqPi1ulLhJMWKZSO5rvQ5dMXskQ=; b=JfyASavspLr+F6tT5nQJJ9En37T32BSp4JSxrM8Atan4oDdO+WPVy5Ny0gbGfjCmrM zcw3VrPS2SOi34sVjLTZklTq/2QKq6OgoGMuotip+O0yZ46QuAKvIcn9f9Kbuwv+xCt6 4KvpXES1lcFpjc11Nqbe7DVtSf7J7sy2ZmW73FN0VrCmvdtAwdGeuGE3ZrntRmbf++n8 3hHdnr/11XNz61TvoUC1GruCJqzBHDgnQtwNilw8odKLhrfhfg8iCeZEnYxAdYHTx31X fzPllNeRiT1j6XXY9jlem9M46XswnxTJpAjI1eXuckm0QW+VV24o2Zvf3HYOIALjNueT 3arw== X-Gm-Message-State: ABy/qLZeMP5S1jUVH5yQ5Lei6q6So4x7mFYTMYHzgn8wDTyW+D99thgQ eOp87KGQhwoyqm0g/qbvJH8= X-Received: by 2002:a05:6000:1289:b0:313:ecd3:7167 with SMTP id f9-20020a056000128900b00313ecd37167mr5545390wrx.42.1690754641719; Sun, 30 Jul 2023 15:04:01 -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 u13-20020a5d514d000000b003172510d19dsm11132401wrt.73.2023.07.30.15.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 15:04:01 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: linux-sunxi@lists.linux.dev, John Watts Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 2/4] riscv: dts: allwinner: d1: Add CAN controller nodes Date: Mon, 31 Jul 2023 00:03:59 +0200 Message-ID: <5694691.DvuYhMxLoT@jernej-laptop> In-Reply-To: References: <20230721221552.1973203-2-contact@jookia.org> <20230721221552.1973203-4-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_NONE,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 Dne nedelja, 23. julij 2023 ob 11:18:33 CEST je John Watts napisal(a): > On Sat, Jul 22, 2023 at 08:15:51AM +1000, John Watts wrote: > > ... > > + /omit-if-no-ref/ > > + can0_pins: can0-pins { > > + pins = "PB2", "PB3"; > > + function = "can0"; > > + }; > > ... > > + can0: can@2504000 { > > + compatible = "allwinner,sun20i-d1-can"; > > + reg = <0x02504000 0x400>; > > + interrupts = ; > > + clocks = <&ccu CLK_BUS_CAN0>; > > + resets = <&ccu RST_BUS_CAN0>; > > + status = "disabled"; > > + }; > > Just a quick late night question to people with more knowledge than me: > > These chips only have one pinctrl configuration for can0 and can1. Should > the can nodes have this pre-set instead of the board dts doing this? Yes, that's usually how it's done. > > I see this happening in sun4i-a10.dtsi for instance, but it also seems like > it could become a problem when it comes to re-using the dtsi for newer chip > variants. Properties can be either rewritten or deleted further down, so don't worry about that. Best regards, Jernej > > John.