From patchwork Sat Dec 31 23:14:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 37918 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3541214wrt; Sat, 31 Dec 2022 15:16:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXutCbVk3zjogZ1GZX+KsKDKerjaG+eswZjZ1Qcd/i8R18wu8zO0MY5XrCH+j5vIKuoOEQfQ X-Received: by 2002:a05:6a21:6da2:b0:b2:56ba:63ee with SMTP id wl34-20020a056a216da200b000b256ba63eemr57429983pzb.24.1672528560707; Sat, 31 Dec 2022 15:16:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672528560; cv=none; d=google.com; s=arc-20160816; b=e5XTN8Ep4geaPgLbnowtEy+i+t9X8ww0TBlQVUJUIXKNWyJm1Rcv4mARrPV/QXd1aI mhsCOdePRYOUb7+sCiqBU+E90WLY+ZczrQkB+lLAvFRg8k/PmXWBz0yjWvCLd2r++Cvq qsYi2WTBe6DQx8Q1UVIi6cbVq55utHaYb2GymYeWsPHEpjiTq+OyOxcCsbqxCG8Cf+9Y 5GqhRuPNSybizI0u+yYR4AaQBKohCEroTjTypGn8hDrRhVhS1X/YTz5JmjxDhaQT6mEL 33jIt/q/kVEGxKIsHGmQKFFq1xnyKfEcyN9EfrTINafTIwPzwVxtfS0TqzxHqxmV8u5z v1Hg== 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 :feedback-id:dkim-signature:dkim-signature; bh=vV7vYH4agevEo5q+yfciQz3W+RJ72+EvdN+fDOEeFek=; b=u+a3RQ8/Mul8cfBJmY246qMPwUluBoKvH53mpoTAPrW0t75a+oG5Qgq5qqSqwRKSbJ QnTjqQsasJ5wbDeQgBHBEJLca4Bm+Umu+dlXjt0XNu9w+zJKV0iIWvR1HQUdp36P7ItV MWI0g9LfGn3JZ80e21B4oeAFCjy52LzPpaGPq8IfWxHOh5qJPZTs2QwDnXjWUx8DLvlv RJ1USVjxYUgr6lLUxlVUau0VjtFyBnNGi81nwnfzhwjx+YGLnLvnnxm3nluDL9dXzReD DawffgXbm4eWk9ls5pxY1Eb7txSKvHk5MeYsLZkGImuvkw8xFF2jE3eHoutlk0O6cHiq Ov2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=jlddHFvb; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="WGx3j//K"; 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=NONE dis=NONE) header.from=sholland.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a17090ac20100b00200b014d2adsi27666580pjt.26.2022.12.31.15.15.48; Sat, 31 Dec 2022 15:16:00 -0800 (PST) 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=@sholland.org header.s=fm3 header.b=jlddHFvb; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="WGx3j//K"; 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=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235964AbiLaXO4 (ORCPT + 99 others); Sat, 31 Dec 2022 18:14:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235892AbiLaXOj (ORCPT ); Sat, 31 Dec 2022 18:14:39 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF9CD88; Sat, 31 Dec 2022 15:14:38 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1C8E25C00B2; Sat, 31 Dec 2022 18:14:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 31 Dec 2022 18:14:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1672528478; x=1672614878; bh=vV 7vYH4agevEo5q+yfciQz3W+RJ72+EvdN+fDOEeFek=; b=jlddHFvbspOwBPLYXf qYITsjOeyq0HnzQCHkE3fAZjqQsTX9iSs9H4+Fo41ubJKLP7d+HXrHgfkzeWaMoV 9EJXlOYlDSca0TWW12LtCg+mzMuo8sL+oVdC8B+FVWjuFVTDiFDXpxCJpxLBfvmf IGYDde2fw/OONOkKsrB1OBBLf67GvXKcPSWoQLZhNtmdXaE4RQXfNHe7BMLp0Oq0 hLcKiGJ6/Dy/3+Q6CAqb0oxkxOruBXz1QQU4mfMaTZpPBKKRYZTt8+nXppXyK8C9 PjJqrphtz0hHgzLSmw56P41mO0YSUwIc4oguovXBBAjx+M6hCXbBeNKYXk8F55Vw C5Lw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1672528478; x=1672614878; bh=vV7vYH4agevEo 5q+yfciQz3W+RJ72+EvdN+fDOEeFek=; b=WGx3j//KHynZU1d4sSGXSfeiYmt0R t68DjBq6DWJi0hwSZ4NeJPZYIjRerFW1fg2s1cHmc2Kj5NrG0CINZug/sLbecTrR dx91tl3eOymA9i5bGnHpxydhqsxYWz+IUSpnEP6vPZkj2VoiCmgZMtNx5hwBYfRX TqnRHgsPYCZ9syD7fwFt66hSNjxlBGSgLU9/UWXy6pf0GWL95tJF03rbODG81CJk 4GbRye59LXM0Kh4PCPlJ5sLKKL5O5iJwi8UIoz+NqMGYR5zoiR6TUE06Uqzg8sab QhET3CpReEkXgDCDIBkIk6WGhDq8S6Fp8fCFSLYnP359f883EfYhwBmCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieelgddtlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 31 Dec 2022 18:14:37 -0500 (EST) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec , Michael Turquette , Stephen Boyd Cc: Samuel Holland , Albert Ou , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev, Andre Przywara Subject: [PATCH v2 5/6] dt-bindings: clock: Add D1 CAN bus gates and resets Date: Sat, 31 Dec 2022 17:14:28 -0600 Message-Id: <20221231231429.18357-6-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221231231429.18357-1-samuel@sholland.org> References: <20221231231429.18357-1-samuel@sholland.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753773308163303997?= X-GMAIL-MSGID: =?utf-8?q?1753773308163303997?= The D1 CCU contains gates and resets for two CAN buses. While the CAN bus controllers are only documented for the T113 SoC, the CCU is the same across all SoC variants. Reviewed-by: Andre Przywara Signed-off-by: Samuel Holland Acked-by: Krzysztof Kozlowski Acked-by: Philipp Zabel --- Changes in v2: - Move dt-bindings header changes to a separate patch include/dt-bindings/clock/sun20i-d1-ccu.h | 2 ++ include/dt-bindings/reset/sun20i-d1-ccu.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/dt-bindings/clock/sun20i-d1-ccu.h b/include/dt-bindings/clock/sun20i-d1-ccu.h index e3ac53315e1a..e143b9929763 100644 --- a/include/dt-bindings/clock/sun20i-d1-ccu.h +++ b/include/dt-bindings/clock/sun20i-d1-ccu.h @@ -152,5 +152,7 @@ #define CLK_FANOUT0 142 #define CLK_FANOUT1 143 #define CLK_FANOUT2 144 +#define CLK_BUS_CAN0 145 +#define CLK_BUS_CAN1 146 #endif /* _DT_BINDINGS_CLK_SUN20I_D1_CCU_H_ */ diff --git a/include/dt-bindings/reset/sun20i-d1-ccu.h b/include/dt-bindings/reset/sun20i-d1-ccu.h index de9ff5203239..f8001cf50bf1 100644 --- a/include/dt-bindings/reset/sun20i-d1-ccu.h +++ b/include/dt-bindings/reset/sun20i-d1-ccu.h @@ -73,5 +73,7 @@ #define RST_BUS_DSP_CFG 63 #define RST_BUS_DSP_DBG 64 #define RST_BUS_RISCV_CFG 65 +#define RST_BUS_CAN0 66 +#define RST_BUS_CAN1 67 #endif /* _DT_BINDINGS_RST_SUN20I_D1_CCU_H_ */