From patchwork Mon Oct 9 11:25:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 731174 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 7712214F72 for ; Mon, 9 Oct 2023 11:25:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="nniuy8Kf" Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02olkn2050.outbound.protection.outlook.com [40.92.15.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6673A120; Mon, 9 Oct 2023 04:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WmEqVb8gf+qtU+fjl0oGWBpKTPNpLb5UbsJgNSAfRt5j8WPEwCeHbneyUvrht8VrNGzP0UG2lTk9ddnEasEe0c9rtTKiYjzh9kGw2nAjHXQZR4VcTSGUP1RAD+wr+t8v6GbaZoPKcD7BGPDnsPN4S63SShZzE/rHw7QuTdxkqn8bTkx4lFY33IAQ3rWeplhIOWoU07LxrvFIzlq1LtzP5K+7gI2pDm6kASCTuj/mIGoAuhHUMS+y5+Hxd0Q9Jpy2MJdCSILGXmghpyV+FtkQ4OfB/IeXwubhwaY5v1eFcloTnSH7TM51gwluCqJ/evOCf/OJ6rosjo9eA6EtMSsw9Q== 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=N2Q39ntiyZqWBW26kNVYngJRfZ7Rs+Igbg+vs760ZMg=; b=O3GQF3r+1ntiKYT59+aKo7kfpv08SitZfzxM9zP3AUhjHqce7b8iyEuObk/CyA0aPHAaUQgWMLXkmB2Fxz2+ZIYF36DoX0CkL5h/wC0VhWt6AEmm2klMdcGFAPbQOnGwfWsfS/f3/6YCpOEzNLSmFcfsz7wiK29G2ErfVYbGZcPPwEKM48t30W9p6GQrU7qz2nfRDkdV6nQiLtnB3gEDRHx7+DTUvYur7sAgYac13+/7HQnNyIHo61j8N3acDe+lex7whsoyaVBJlVNE3AWgJnMCYVUGU4bomWJKJSjCLBZPoswzRLcHmFPR9539QNP28DwhEDPSRyFBmWxegAmUgw== 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=N2Q39ntiyZqWBW26kNVYngJRfZ7Rs+Igbg+vs760ZMg=; b=nniuy8Kf97aLU3RYTkUhR2PTqkTdyyBwP+JEjXOFejTQYOEda+S5RHMubncnHolpoRmjhUU8rpUf6Q/gd6ddEAsxux0wRUfLRiglc8WLuYLrRSeAdemcyNXNGhXodrct8BgZ53FPs1+TzEp/wEJFogWIDIuGmS8v2nJORZwV7NBIj7zTj5ieHhZuVMSfej1v4YKvZxc3HY9npT5nbx51iaOGO05OLt5+01lKTu9kxFUMcd9oGsZ6kof88t51dtr/acTL7PlvDgpztpOU8JrF4eYYmKcKpJA2uqyEFSP1oEa5kmm/GWlpuiElyxteMgQ+tFnZUDzqUxh7huwmk1Da4Q== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH0PR20MB6129.namprd20.prod.outlook.com (2603:10b6:510:2a2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.37; Mon, 9 Oct 2023 11:25:15 +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; Mon, 9 Oct 2023 11:25:15 +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 v2 0/7] Add Huashan Pi board support Date: Mon, 9 Oct 2023 19:25:14 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 X-TMN: [8OJtKQ58U+IXxkwbUg2cUqt4spXaCenyyGuySXKtNhs=] X-ClientProxiedBy: SJ0PR13CA0153.namprd13.prod.outlook.com (2603:10b6:a03:2c7::8) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231009112517.477055-1-inochiama@outlook.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH0PR20MB6129:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c499fb9-9a13-4916-28b4-08dbc8ba6865 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kgeLRZy/27Ddtxc6OMH6cUkJ0AcxOPgT8Ec3nFcZzArHsI7NyLZ/I2Xa2+9U6G328EtNfaxwnLRa5jZ8/8kL35xO9M3NufIEE+t1rlzumGrqjcMB6+YXoZfvyBIjnKZN3x6bkengL98KWk3gG+Xi27pOmuwCGWjiEiX2Su5LQ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E82NWMxUCOtfhvWkI3LvvfYEJlytujIdHGdZOx+GmZvsfmhXVdOW3BTzuWyEU0rVFreY41G0b964X9cP2G2IMjZ3hl634V2FeEO2OHXep+VDmIPHKTyjG+xfUI5CUGBvgcAmCiVxHxPq77fgvpvEHZBCrBPNVD4dyC0x+tMpmFioebmPsu+HYSr5+g1432Xr/2yVUEbkzVAMqXicHvBpVfgt07VKSsB38J5Xk1vb65cntQ1Mj4k5QPoUHeYSyabWRQMhzitmMJKJOKIVpsYwHdDuTHIkOBT57CGP7a7BRgbZo6olvnh9W49f/g2TYCHqsHLESengyRelXaoqul/DhLiVN43qMjJsTpWsT2PZD/zxmIUxcV7yLFfrmx4iMoBLbsfB9qGSqlwAR8Nczi3+ueLyc6rLh4B3nB9Akj43RLCK6+mQhxRylAvDDfRckG9mW+QI6tSOZYtMN1bwX5k/g/ZXOKdt4B9P7VfLJtAdbwbE+Be3JFiCj2l6w/29YiNKx9vshrMW6wBNo3oajaoNi3bfTv2CEJbip6ZiZmOLRktOQyVbNYj70iBgIXQQjCRB+/8wmMX1IbZRqSYL3lj8dG27EOwRViq6HdR8pmqvRQbdl+vJJAYRmvb4siAKNdp7FfpR9PK4J1YmHH3+HhKomAH2tOTIVBdaKH0Mptw8+nxknSMzSTWkJg3FKEVgDAPYUVQB8IrhCLFRzlJdOfOi1AeUEk6hTKI2Do27zadRxYPjt0Iht7BcBY= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c499fb9-9a13-4916-28b4-08dbc8ba6865 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2023 11:25:15.4866 (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: PH0PR20MB6129 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_BLOCKED,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 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 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 common devices from cv1800b soc riscv: dts: sophgo: cv180x: 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 | 95 +------------------ .../dts/sophgo/{cv1800b.dtsi => cv180x.dtsi} | 91 ++++++++++++++---- .../boot/dts/sophgo/cv1812h-huashan-pi.dts | 48 ++++++++++ arch/riscv/boot/dts/sophgo/cv1812h.dtsi | 36 +++++++ 8 files changed, 165 insertions(+), 112 deletions(-) copy arch/riscv/boot/dts/sophgo/{cv1800b.dtsi => cv180x.dtsi} (58%) create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h.dtsi Reviewed-by: Jisheng Zhang --- 2.42.0