From patchwork Sun Oct 8 11:14:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13412703 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53A80E95A67 for ; Sun, 8 Oct 2023 11:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xE2TP+oHSaJkHPce/ghR/9dCFP2RyCm+8cCVz4MaMfs=; b=qpuJx9a/lwemWM 9m6q4zaRdcfj8ZPTAk1O4KAItYJgH9VE3W4vBxNJyoL/3NdKGexb+EWvBR6dgXlrp9aTQ7QgDKCKG Qjvfih984GqBSYI10xyfMzb211mnNbj8K+m8M7a7AmtCdN1sK8vFV0FS7uFbTlRDAnf7l1GmALpbm 1S3WJCJMZ60H0g3JLL+Aobk8F5/P2B2mJ+epobGLI136PCwMlsLbDOb99MGPu4IeGl+D6bAZ39q4P 5ieAHsiRvOL1WQClDYC7VdW/r9NN17iPtyPH9BDSLaOxsJ+vaFcyCvXMt5/tMGpzE29furWW8tzLm RYoPP2ImGgXeywehncXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qpRkz-008mtL-0K; Sun, 08 Oct 2023 11:15:33 +0000 Received: from mail-dm6nam11olkn20815.outbound.protection.outlook.com ([2a01:111:f400:7eaa::815] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qpRkv-008msV-1Q for linux-riscv@lists.infradead.org; Sun, 08 Oct 2023 11:15:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KWEOAwuAxnboYR3/1f5Xk7MxWwKK475z6EzfNskqE630bhEtBb7zdfDTBwWhpLUOJR5KPB2qSfPiVDn8LP4iKw9wvoaJCYeGwjgaqBMtlw2k0dLz/WofQCuAZDAlPFp/E3rDyOFtUOcGyWV5VacnYYTdjHRx30hyCrslGd3e4H0D0XuPEEIeg+oGjo/cr0xEmlBTyWbG3sjGAYHVaBg7mvIQd8Tvh88FUcSn/vfaRVYj5gI2cP/f7KtmhKL3ls8M1XSMV0RtWOVjmYYvA+REcurOWAsIsGgmBe9jlt3d/io6/OKybYvhLDZjP3pOQRdjmKhHR+a5aIFyM0IxWEoPKQ== 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=ijK+v5AZGKZe91kQNi0coJvod0Jk5qRjGr6ArISOSjk=; b=V0iI+5fbChf03AwKX7kSkHH52Lpo/bjUwtCAwUeXyMwhdGd+r6shqlibHUpvC9IJPioD2p6c+UUxdKUFMXwAC1qFw0LQyyLQjb8QO1bhnzG7RL+KJ3BZgNOt9hVray12Ih+qgj+1gyEpfg0Zfn77LTKG6tlB1fdt5F5a4ZAtn6LsUhPYy5gS1qBAwFXWoK4vXv5SE68t9hTD8NcBVmIB/pBdVs2QS1KAlxhGhAo8/kMZwu+CKR1lr7fjVrYDlF59A2hlytYh3xGqV9KX9G/A50u6DIG38BQOPOoQQxHkAxxSopMlKkXs6P84QOyFQ614CNPx5FD5+7I9hDyFRuG9nA== 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=ijK+v5AZGKZe91kQNi0coJvod0Jk5qRjGr6ArISOSjk=; b=rWPyfGWcOHL62oai/suk4h4GIiJBypn9Vl3fH2oUs/gc9oSGoBczu7Ai4NwdlCy51d28j+q+TpzubCKPjkMk05ggXUYakrd+iZEHPyS0y1gx92EEHbot+TTqxpMlrJhxQk96zYqR+r95sYoEoUJPOkqdDufMxMrzoWd2Ri2lrYSGKP399lDXCAgr24l+z2ECy7LALNzDYSzVTTpM0AUjHR6AfMOszRruQ/yewm/1+i/daF3nz0ts5F9fpdE/SjmMEZBR06gDvQa8ZljTe4AeYYON804zOHhxofvDJPBpbJeAxROjhWlTeJoDoOSlP2x2LVBfCgZE4HcsDPUY0lx/qg== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH7PR20MB6969.namprd20.prod.outlook.com (2603:10b6:510:2fc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Sun, 8 Oct 2023 11:15:18 +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.6838.040; Sun, 8 Oct 2023 11:15:18 +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 0/5] Add Huashan Pi board support Date: Sun, 8 Oct 2023 19:14:51 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 X-TMN: [RUix+Dtj22dbst0DTOIqgCJU+5/LtFGIze2U1vuBcso=] X-ClientProxiedBy: SJ0PR05CA0063.namprd05.prod.outlook.com (2603:10b6:a03:332::8) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231008111501.325200-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH7PR20MB6969:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c6db1f5-f2e5-4ee6-03ee-08dbc7efda20 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AbS9VieWm+B0aZ+7gflNxLGLP11CbG8FXwtsuYqKsm/G9nDEP+rcVtnXqgT041BFkAJWRzqm5teuvMx/S79rBdOrJYgtaKLDzMPpDVvGbsSBZ+WPFhZQ4/JZknO8O70ZbQLtx6R0/bfx0y9i4bBBUuclzA15V2HBUHKqPLYkgZuf/21v5fFBGs5VFtElfKnu5frp/ZHBEIU9N1tfrAb9Gf18wQgi3XMnrAyNK28qAohg/olKjWBNVh3nbEr77sEq+EAf6+kIx36St9UMpaz90MI2KLXlWcG05B0YD9QJ4TMEgHIaxmfSss42DmqGuoxoxr3gw7oXqFbPgxkGp52HgVrChpxRyB9owpIbHMXyGSVGqy7FO97FepDPk4Ad1KnO7K7f1V6Gct44FjgQkO99JeTJtFl6JA7t9wRloU4BaHJscSlbZb7epQVD2JqTULWzXYfXCDekKw7e57+8dAar9Pmt0AH7HXCFyuQWG1dlLxDDGNQyBrXaNCCZouAdpi6SayI0+VGi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WazXEwtcoF+T0qAmTQZUa5JI0FZTSLMwOCb7PhSBXgdYgCCjh2s5qvMUOQXSKAnyxNhrTwIRVy13QGgm11/03DEZiy5rAXyQDKcbivUpNjyvoP4JUHIxb7kpxXiTxFz/nm8N8daBbtZmm/6xJcY4Hq8XgYdI67zrwKsSPCVjYGSOf6APw8T++Gx20lE47Xzk7vKgxCDS6h0cE0XxSAE8UOTQrKCr02S9WG87GRwgASYo9NKTwMPLlvMh5FW8uX/9mFKiw6ADnBa6Lc99e6lDdkHtuDHydbdQCaf15mHAFWF3euAV2w8/yA7xjCwQqZ3EtqluNOLltdckZhmelhs36ak1rslrM7J1+1UdgPnU6BodVNiyTxVP5p8K0Nj8CuU7gJRvNHMEDMWz6eTR/mTe96AVTX7nooxnzEF/HYhQAy70H8= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c6db1f5-f2e5-4ee6-03ee-08dbc7efda20 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2023 11:15:18.5073 (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: PH7PR20MB6969 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231008_041529_481132_B0E83DA7 X-CRM114-Status: UNSURE ( 7.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 Inochi Amaoto (5): 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: 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 | 95 +--------- arch/riscv/boot/dts/sophgo/cv180x.dtsi | 178 ++++++++++++++++++ .../boot/dts/sophgo/cv1812h-huashan-pi.dts | 48 +++++ arch/riscv/boot/dts/sophgo/cv1812h.dtsi | 36 ++++ 8 files changed, 270 insertions(+), 94 deletions(-) create mode 100644 arch/riscv/boot/dts/sophgo/cv180x.dtsi create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h.dtsi --- 2.42.0