Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp157557rdb; Sun, 28 Jan 2024 19:14:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IE10rftBRpmycMxnMif1te3Z9M/96hLsrr9zvd7Plodh91H62vLCr19ecbPiblfkd8z6aa1 X-Received: by 2002:a05:622a:315:b0:42a:5192:aed0 with SMTP id q21-20020a05622a031500b0042a5192aed0mr4422621qtw.10.1706498068555; Sun, 28 Jan 2024 19:14:28 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k16-20020ac85fd0000000b0042a96418f3esi3655078qta.461.2024.01.28.19.14.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 19:14:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-42119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42119-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 44F1F1C21198 for ; Mon, 29 Jan 2024 03:14:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ABB110949; Mon, 29 Jan 2024 03:14:13 +0000 (UTC) Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2064.outbound.protection.partner.outlook.cn [139.219.17.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50C91FC08; Mon, 29 Jan 2024 03:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.64 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706498052; cv=fail; b=txgkV/OpJuucDJKhMhxMb+0IBYehxjnFif09g9HKVHeZpM0w5fVUmRKHzWa1SNg5Ac77+qh0m33mDacoyNKUPqWfpDMrtJlqeHgHpq0fDQELwKXWsAxKdR8kwsh2iugaurdIdL88DymkfoT32oFFk8G2D30iJci2Gob8IjtG0aI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706498052; c=relaxed/simple; bh=xqaaritMvEuHOv9tp1YYV6T9sLGbyxgp7VNmSn7inSo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=qS+6NUIeVObowLb9ot7OMUV6jcmpwCeDVILjfVE1gAVchkKUJ1Yq0384N0ataAsfFHQeycMbkU+go4MBRO3m+W0s4V+S+HQmr0coR3Dqi1y3w5WKlmSdcXW42A8MVAwCZ2gJsmwleyOWGpIfyV8pqKJKIv7R4Xt/sHOJ0gM4Q2A= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.17.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aqxOj3q2szFxcLHIIdjVKsbc6FHSBmzugrpb/xtGQvAJS2hQAvp2nhzsf1RbyJu+KY9BX8v66xpeOxXzBWjtp//x5YC+kGCUeH83zfgcYTkNtJR02B3z4p4s4NSBVkKWSKAllKM1h66+SUlBFt5aiCL9jldAxdcwAoaEq40I/y2Ky9IaAMLN70huENrzJebofRnHRV8iNJ1A8KgjUvF3Ji+Q1wyfrIGOpEUE2g4VYqz/G2ao95eYOoIcZU7v3TsZr7CwVtVlmS63yXSZhAtmthDpoO5nl5H1DWY00j2kUTBtukqfkF1TVhTUOZV1mcrSjHjxId57ojqf0b6a+bn+ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pUqTSg2Lr5dBOScYgGzdVACwSz+PGqFqgO6ivaqTbXk=; b=XCmt0rurJjyARSPzPTRYC2bmSAbEyD3Ub69wWZqNmW0qn5nsobF1iFN1Ie2gbM9gOQGB9hoaANLfK6Af379T8kI2oExUR9ybR5nr/jTyqph5khWqketfhGAU98Jn96fgt2ysO9Bj7N263go9347EP5s/9NY+dkVCXQTWvILFSMgOEwPyPcstO1uoyrT5srVKV6Z5Q/V0Ksyn0JK5R7x7QUDByWma6WLKR8RDAikcCR2v9nYgs6vZ4P8COcFJ4bPgdZzrlaI25f1NNNf1SSacFRy9Chuf840dshzqx6FPwCCbkfO8ZoZuplT0A+Xm9CcOvB7nlzV6m7XkB6dA3YER2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:1b::8) by ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:1b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Mon, 29 Jan 2024 03:12:56 +0000 Received: from ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn ([fe80::a5c6:9ab0:d20f:cb78]) by ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn ([fe80::a5c6:9ab0:d20f:cb78%6]) with mapi id 15.20.7228.029; Mon, 29 Jan 2024 03:12:56 +0000 From: William Qiu To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-can@vger.kernel.org Cc: Emil Renner Berthing , Rob Herring , Wolfgang Grandegger , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , Marc Kleine-Budde , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Paul Walmsley , Palmer Dabbelt , Albert Ou , William Qiu Subject: [PATCH v1 4/4] riscv: dts: starfive: jh7110: Add CAN node Date: Mon, 29 Jan 2024 11:12:39 +0800 Message-Id: <20240129031239.17037-5-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240129031239.17037-1-william.qiu@starfivetech.com> References: <20240129031239.17037-1-william.qiu@starfivetech.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SH0PR01CA0011.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::23) To ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:1b::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ0PR01MB1253:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b795a98-d339-4be3-94a2-08dc20783067 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g6FbwVVqsv5dYinb5qOBdHsrocUd2ukHeWUZXck+g4/S/WrwczUExNYRAZy1Ykx7w/XZ6Px6Fm5jMUz0TNO4stthABcaN/KnwEHSgLxMYHu5vIpA7feTjV4Bn/ANy2DAuC3ywlJtk8HCnuqYHE34rnPFm5bA1SJ/cAWbtTl/bM+8ywOsZb0on/tmokbUy3KT5LC995/tckYlusi5ajJbEJfYRQd1mX8NJrf1OV5DyFCojEJNBm9KXSaRl839uX1BhhN0hlvU0bUWp51vOFhSkeFlwf8Ev/984nPfmjqGJtbc8Gh6lhCK7784La6DTTYGuLsxrZ3U17NiUD+QVBqkk9ROIXZffvi02XvDq6D6W7hpdOoNh5qZJUl/4jgX32S2u92Uq7aCr6Gm8YLtQStezs4wEKDD03coph79A4JRlMf03+JkxhSPlx7ueDx6NqgfPT1AeW7nOdGq9xjATR7IT9y3QTKAC/WFUAzxW60sNdpg9Yzeu+h25HU2brk3PONtxnsUIBeD3JRtiaZYFlSpnwn4R1208KXeQTS7CLzwtMVB2OxLg5LuDyNDS1rzK5rW X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(136003)(39830400003)(346002)(366004)(396003)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(41320700001)(4326008)(8936002)(8676002)(7416002)(5660300002)(44832011)(86362001)(54906003)(66946007)(66556008)(66476007)(38350700005)(2906002)(40180700001)(41300700001)(36756003)(38100700002)(52116002)(508600001)(6666004)(2616005)(83380400001)(1076003)(40160700002)(107886003)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HlkAh32VuEPjlJmJlWRek2tJSUJWa7EhrTG2iRb6GKPiE9GHOP8D/M0Q4UEK?= =?us-ascii?Q?uteDvzsPJ/L9bOU8edC4j/DvYaskViKzsilGrCM4T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0+s519jIU9EFiousDDCOXrh304bn79qdBJAc5R/ujPbSfzjm?= =?us-ascii?Q?tw6xfEGTZJ4x+2pEeA1h8fkb0hFEYCcLtuXMJoHUQpozitaifbAgunqLOtIH?= =?us-ascii?Q?UJ5sQiKylFaOMFmUGLTl9/4egu+5FT7wvH0M56EIoQ17kcJhClTxMx8EiFCJ?= =?us-ascii?Q?XQPTD0b/km3fYS+XCo2G6HkWPbSg7JQjGRZ4EOhPkPxXxDU/R2w1PjtyK5UL?= =?us-ascii?Q?PX8sCbBjjCJFI84EVmRc9ZmdUIyeB7wY4X2FH5BXAWU9pzFG3ZIfld8QtgQf?= =?us-ascii?Q?Mvk30zGcx6IaE6/c9lJFRDKak+KbV9rbGO6XjvpybnEAAHR5SVe/G8W23mWt?= =?us-ascii?Q?wBvpdXvQOpXmLESAqgvT5ifQlYWIKENfKAUbvqourJdAu5EsVM2n4wT0/GFb?= =?us-ascii?Q?LZpoAjr1oviM54sE8ylhLQnjDjlB+cK8v0GbeX1H7XsjsIheLsWdnUNB9Z/8?= =?us-ascii?Q?x/cbuuE+Kmjwxd3Dtkmrt4dUheQwXAFQ3jRqa831AjuYAwIIuo19xfs0bw8R?= =?us-ascii?Q?7IqkQkCxI+owfb8bxXf5i6FEqZjVBCE0zHbu55HX2py0fo66y0K/L8afEAgg?= =?us-ascii?Q?RDVrb75srA0xy+6kPbza5wBHXVY70sOT+KuY2Zc12pnxe0MnLHdDKFzKVISG?= =?us-ascii?Q?eA=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b795a98-d339-4be3-94a2-08dc20783067 X-MS-Exchange-CrossTenant-AuthSource: ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 03:12:56.1251 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QVLE4Hcs2sFOK+QrEAjtcqwWQWo4DgsRTjyBLaz8MyaNFa8Jj93bLBQRfiGbYGsdT5g0IXIVDlhOwKRyR9VKfb6SySBkHB2Tlc0Ev2OPUi8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ0PR01MB1253 Add CAST CAN controller node in JH7110 SoC. Signed-off-by: William Qiu --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 45213cdf50dc..4d0469cb8ca9 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -914,6 +914,38 @@ watchdog@13070000 { <&syscrg JH7110_SYSRST_WDT_CORE>; }; + can0: can@130d0000 { + compatible = "starfive,can"; + reg = <0x0 0x130d0000 0x0 0x1000>; + interrupts = <112>; + clocks = <&syscrg JH7110_SYSCLK_CAN0_APB>, + <&syscrg JH7110_SYSCLK_CAN0_TIMER>, + <&syscrg JH7110_SYSCLK_CAN0_CAN>; + clock-names = "apb_clk", "timer_clk", "can_clk"; + resets = <&syscrg JH7110_SYSRST_CAN0_APB>, + <&syscrg JH7110_SYSRST_CAN0_CORE>, + <&syscrg JH7110_SYSRST_CAN0_TIMER>; + reset-names = "rst_apb", "rst_core", "rst_timer"; + starfive,syscon = <&sys_syscon 0x10 0x3 0x8>; + status = "disabled"; + }; + + can1: can@130e0000 { + compatible = "starfive,can"; + reg = <0x0 0x130e0000 0x0 0x1000>; + interrupts = <113>; + clocks = <&syscrg JH7110_SYSCLK_CAN1_APB>, + <&syscrg JH7110_SYSCLK_CAN1_TIMER>, + <&syscrg JH7110_SYSCLK_CAN1_CAN>; + clock-names = "apb_clk", "timer_clk", "can_clk"; + resets = <&syscrg JH7110_SYSRST_CAN1_APB>, + <&syscrg JH7110_SYSRST_CAN1_CORE>, + <&syscrg JH7110_SYSRST_CAN1_TIMER>; + reset-names = "rst_apb", "rst_core", "rst_timer"; + starfive,syscon = <&sys_syscon 0x88 0x12 0x40000>; + status = "disabled"; + }; + crypto: crypto@16000000 { compatible = "starfive,jh7110-crypto"; reg = <0x0 0x16000000 0x0 0x4000>; -- 2.34.1