From patchwork Wed Oct 18 23:18:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 15579 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp52990vqb; Wed, 18 Oct 2023 16:20:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8yutMLQPYUeypflGr+VLKop1Eg9a6hDil/9kLau3EMOdt+2PTDGYHRKi/0NjM+hJAe9de X-Received: by 2002:a05:6a20:2590:b0:16b:c20d:fcd1 with SMTP id k16-20020a056a20259000b0016bc20dfcd1mr763043pzd.21.1697671218138; Wed, 18 Oct 2023 16:20:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697671218; cv=pass; d=google.com; s=arc-20160816; b=mKBjpkXwOLL2q1ySjUlABxnrhbCP2u7TVZJnhDJ0etp6DwNJ3szmA60xCfrR7fOQGs WZ+oY/PvMzjyAJYLf7Rjifpa919z2p+xfHTSZh8RwyA+tproZGhVYogDhi6kIom0nsBv LBDYoZOMo2sna331DWbTg4yN/qMWDgM8hHZSyGp5wxf1DSs8NhIuyrOI/81yCgZiX+Xn WUM/5++PIk0JsHeLFnVTZkPyfT7ryr0cWlxQUP0jw0rH+R9MBVi326IuXk/dz17TxNRt fdITWqqtqKCUbYwg87Kr9THxFeFqRNzu/qzA+0qapLyJVFtXXkv4RY3DtrSUaX+8xdxo ZGHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=582MOPMCWjoYtgrFOW2pgtTVA6nxyUTk0c8+lCoD1WM=; fh=mcWLIN6mbRIL8JrNNX/ZF3ks7u7qlfWJqKsFcQ+QGeQ=; b=ffbd/h1yWSvq9jMTyt5dEAZlCAY9SEgaHTU0R7jcXUaBblLSnbmjWgDMiCxzE1/6mG 4N9t1d85Qt2Eif80T3aDjya6JwP19q1i9lyaqoywxB2Yz6D1dDW9/N8xLWcCmAgJcVw2 aL4R6dcjY3RbGVrTw4XzdIc5chBNfuVizIo7b5FrPwAnTTB3PgsB75h8tUqOCrjCoYw7 B++Iwjm4w85LELftvEfXgf2yMcfPHOVX8dQt9MTvFoHA6txz7lNa1NgYwAJKIPiBeVI9 cWlpHn0BUFhuVlPgw9NjgjPyxVLR0SMoBL6PstM8mELx7QuGJgXlo1FjQQ0v4I3VeMb+ Cvjg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=LiiqZuy6; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n1-20020a170902d2c100b001c5f37aeebdsi905530plc.579.2023.10.18.16.20.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 16:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=LiiqZuy6; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E116C8225CAA; Wed, 18 Oct 2023 16:20:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232490AbjJRXTh (ORCPT + 24 others); Wed, 18 Oct 2023 19:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232363AbjJRXTZ (ORCPT ); Wed, 18 Oct 2023 19:19:25 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2020.outbound.protection.outlook.com [40.92.18.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20B073269; Wed, 18 Oct 2023 16:18:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FI++m/pd45HSRGeJTJ6H0GR4AdS52Lk5m5fc3lh7eLtByH3Xlg8tj9kMS/TAphp9pF8XbFiUnDnGGg4XSazOxzK3TdhNXWEtn8q2wvI9FDSsxHAYVOU/ptY5EYPXkGs3/FVw5nNptL2WhijCfePjVjLp75IaIQX6sQV3Qch0qSRgvAhWbxus5V+X551lY7EAB98MLiYDOmTCDq4QyfPXlwmwvGSKChK2SG1oZUWPTSwcl47ZGNxqSl0urlDXJxaAPuBhT6YhK7vzyCmV0cyxLTuxuB+aUXIG9N+ZGyrrnmAiqvT8iTYXFqabuzWpoyMtEGCaFV0+M0lidMwi7XfRpg== 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=582MOPMCWjoYtgrFOW2pgtTVA6nxyUTk0c8+lCoD1WM=; b=KXP2PKmKTrdAHNXur3GnBAYUde6hixh1kiNedONXA/Cow0WKi14NN3A6f44cxnAseGdK6n3HvalmzcEaVqmkAJKJPWE43BtYn1SpGOU5CvKNoLhiYg5bNNFM+HDjrsXTGvYhPIg7WiUrCn4bZ87hty2lRsONGVDj2ge6wPhpB9pRhU97QLSxJoprCiYG4liKHRxmGBAXegq4eTc51NiKb5PoD/Dujf+Nl1agBOK29HmYaYTc4mKr1wm9NeDpSNZ2MO59zZpnwU1pLoVAn+V8Sdm7NCHMcup1uZn+bbXr8RPDutV3rUN0V1HWk0BX6//ZKOsaNFbSgcraPhlB/7qWJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=582MOPMCWjoYtgrFOW2pgtTVA6nxyUTk0c8+lCoD1WM=; b=LiiqZuy6z3+xHVb7/A5ubC5yazwm3cXLH8onvzSh5/BCzj8zlkEnal153EyUDEKD3IgngeykzdOlEd05SBzeFNBEOTUoeczA3Rp1VI5wPU376MDCqriFIXtGTisaR/EREaIULD92dEjPqCynXd7w4qbkI3YjWykd3rhBji/lgDRfvA2Z0qp09Ox5ft/nQ5LCMjn3iApGwBSFULjZ7MUoxWBLM5U486s09k0onUMpSoFznIMhUfYwW9sYKLBP8rjDN+RHduNCyLyAfYsXkgumGT0lBxF/C0HVqHxK8/KywNTS2KGc0m2y8lvWHbFF8B5xngoIB9MM475knrlSFr5Yjw== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by CO6PR20MB3649.namprd20.prod.outlook.com (2603:10b6:5:345::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23; Wed, 18 Oct 2023 23:17:44 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263%5]) with mapi id 15.20.6907.021; Wed, 18 Oct 2023 23:17:44 +0000 From: Inochi Amaoto To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Chao Wei , Chen Wang , Albert Ou , Daniel Lezcano , Anup Patel Cc: Jisheng Zhang , Inochi Amaoto , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v4 0/7] Add Huashan Pi board support Date: Thu, 19 Oct 2023 07:18:00 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 X-TMN: [Y3YjBzVCFMw78wGdKqQMphN2eLy9DK4LEq8kVZmYKyA=] X-ClientProxiedBy: TYCP286CA0044.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29d::17) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231018231803.28262-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|CO6PR20MB3649:EE_ X-MS-Office365-Filtering-Correlation-Id: 991da175-f9cc-4805-65a5-08dbd0306ee2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c84eTu+LEa+VE6Q0J0s7MXYB60waJHeDpO+3gO46o7f6HohRw5LZJbhW064lfTp5LFpiK+TELZJoCZSh+DIXo/QkoPHrtbt13VRm0t8xCgx0MIF1tpc9zomHlrqBQm9JrGkZf5IRnwuQEoOL8AatWsfr3so30czak2d6ic9UWUi3itlg84ZejTsRstMN/UQGz3fbXLxbrR+Tw0CzRfIAjL4czKTtfwtkDEU3PCVMWozruKoFMmhI98UgeoaewZI8wyoyNNOsMMjS7uo4eGBHeYRkjS6W/behASX7kS+r6l2pqIYBEak3Sr/Bolw1ID+0n44sMmjSN/3UfS7qWYaNOYTsgk1VdSCXerBt52SBxLDw38oxnoy7ZbdRMef7WnllajHQ2RfDSbAC0mg8yxoAi5YVn174gSSJtHWRpCycSz/1ApFBBr8wbJO7xuqc/IM98JfTZwmTf30sNIgmUNJDrGBIxn9bFY73noDxusLyMuzL3t/Y7DemOuW1IafVHpGSKjpewqZ0/lluQY7fGYuRx69eLiMy3OLb6HILk8UMRGkFOzdoKzX4voigcYcpluH5slJzTaKq7SOrjacyTe+idswie9alkwl3LrAVV6pdH4OE62umYi+HZyQ3nhgkIpRka8cEcSMnAuZG2BIWKJVUpHjBBUXcN7kibiHya2C6mN4= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: seen2FLAB13wPcglgTkRmY1Q99XE8vCOyBO/m38DskFbxwz12FFKP+ewFoewMRZJ6wgXtebs3XpRbO9KwyyIrGtaBBL+aWraTOqMDyLkOvqPJ5LekZW9RC3iYECv0v4Ab7ReMRoYwF8cVNv9yg+IV7CD03/JJ05wDZtVkIHA5JSRj3vCm3BlIYLyYeZOHgUQ9xv3V2tToEvww5vBTinEnz+RsLX81Zg1fOlZnP7QIw0LtTQfIsqrLNeirFeS9qJSqXo/DmaVs1L2dUDyyKSj0D13Iw6wC6piwsFmcATIMvZmVXB/wVgVHmT0yhYHsux2JXE8SWB6suN+ccYnxkUapcuzow4e2BOciO89nXWaEhwraXP9Pp71LlY6ok+j5KMHFvdFJ+soXalR/mqLhz52xqOv0mMhFv/OE/vY9ydhejRzFMIbDS7mTreuIkM+a1wMdUan9la/tQdO+uu++U8ZudVvdupQQUts/RZYVRYZd2q+tsAk7JawZZGpG88NHK8O//gz3scyaoLsj8MDaSEG8yltQO/ffFDlVzqyTlLoQ0I66ycktJAQoD5aUkvqU0sCACjLxvShvXlErds4ZWCANJmtw7El6QtPDcDXuLBTLXIxFMQff/f2xrRHYxr4tgmMIDWogAoT87tHZCTaxVUg/C8QazPjFYMWRh6cBho9NoOzH/1viXQE1CVeCMmdMV/1VjDhniFXDHtvfK87e4XDkz6rxxK6cL8/2UOcP3xHh8IxqwSVyxBAWO1SeS+4MjAv8N78ht7mkJsiHnxJsfum7KvwG42jCIJkzknViU8esQIldEKBP/utye0oDXqpXwZqtwELknwc0nyWvEEXB52Wpq0BG4OueSMEWDlCru5Nrb5PqBOMdnRJq98kLiPZuQTBnPm6coK6+Gwu6DdPt/JRcCcLFPrfnfQOn9JajuPC/1m54wc/88YN6ZRg9IRe446lemrADVbwWgwUiHIUgBKq3+rUS6wV9en3iR8J+7w8jswMcYLfzzdaW/TloRJ6BrNx0AtH3kBYbfsmbf+4J3/0AXSjWKoOY8nyWpKnFcNRX3PRTdj1twLi0LDvsPyRZ94aSEtbr4nGZUyZHo6ioPZCAzJK/0tgaAX18oUben8L0Y/izS7/9btMgtdDSUvhS4nsx5lArbTQEm0Nj2APpOT6NvLWTCP63XO4N7EjirgRy3c6La1QBJdLppZiyWIoSffHOlCRpMMYKpuYe+UkgmemQyNzkBsWz2CvYSSRRfAxo24= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 991da175-f9cc-4805-65a5-08dbd0306ee2 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 23:17:44.5925 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR20MB3649 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 16:20:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780092686033112046 X-GMAIL-MSGID: 1780137294921858465 Huashan Pi board is an embedded development platform based on the CV1812H chip. Add minimal device tree files for this board. Currently, it can boot to a basic shell. NOTE: this series is based on the Jisheng's Milk-V Duo patch. Link: https://en.sophgo.com/product/introduce/huashan.html Link: https://en.sophgo.com/product/introduce/cv181xH.html Link: https://lore.kernel.org/linux-riscv/20231006121449.721-1-jszhang@kernel.org/ Changed from v3: 1. merge the patch 4 and 5 of v2 to preserve bisectability. Changed from v2: 1. use dt override to save code. 2. code cleanup. Changed from v1: 1. split the patch into several patch and refactor them. Inochi Amaoto (7): dt-bindings: interrupt-controller: Add SOPHGO CV1812H plic dt-bindings: timer: Add SOPHGO CV1812H clint dt-bindings: riscv: Add SOPHGO Huashan Pi board compatibles riscv: dts: sophgo: Separate compatible specific for CV1800B soc riscv: dts: sophgo: cv18xx: Add gpio devices riscv: dts: sophgo: add initial CV1812H SoC device tree riscv: dts: sophgo: add Huashan Pi board device tree .../sifive,plic-1.0.0.yaml | 1 + .../devicetree/bindings/riscv/sophgo.yaml | 4 + .../bindings/timer/sifive,clint.yaml | 1 + arch/riscv/boot/dts/sophgo/Makefile | 1 + arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 119 +---------- .../boot/dts/sophgo/cv1812h-huashan-pi.dts | 48 +++++ arch/riscv/boot/dts/sophgo/cv1812h.dtsi | 24 +++ arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 193 ++++++++++++++++++ 8 files changed, 279 insertions(+), 112 deletions(-) create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h.dtsi create mode 100644 arch/riscv/boot/dts/sophgo/cv18xx.dtsi Acked-by: Chen Wang --- 2.42.0