From patchwork Mon Nov 27 01:35:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JeeHeng Sia X-Patchwork-Id: 17117 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2788653vqx; Sun, 26 Nov 2023 17:36:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxKnYj6qJdScZG9MY6gis4uAsa0PhISXGHMvJ5GKiejMGbkxKqI3RuErN/b6HMUlWV1yMU X-Received: by 2002:a05:6808:1b13:b0:3b8:44da:1002 with SMTP id bx19-20020a0568081b1300b003b844da1002mr14298367oib.21.1701049002573; Sun, 26 Nov 2023 17:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701049002; cv=none; d=google.com; s=arc-20160816; b=n0wJ65kMYxz2SIhLO+WJJ2u7aSvJ7PlP9yXQmwaUIXpVkaHDAF+iEbQrzoF0CEiSIe 38+gRh+YKX9gI9KtWr3mxkHEmUC64oR2HT87aMYY2MaEH/3IIc9O+OnV3s4QVKNDyzmb wfuAum5dLwUeId+5PrfHn61juYrYbgE37p3El5J0zohz7RXSXcJswQjAF6evzDfb7BpQ 871LXZfKqd9vs3ZnHV2KoQflbs0h/VxuWHNT4hzpOpvV72ecdGPnrsUUxSz5h9sHTR9H QT6k1lhPk4r6slv3wX6L7bKHa8khRCH4oxPaJH7DfeMaMNNoSrwJxwWsyDRl5ZAFd/n+ IPCA== 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 :message-id:date:subject:cc:to:from; bh=FE2vh8mj5CqUgz7L55RP8rohUbbsFVmYtlm22xhaCTc=; fh=NwY0g3O8p+TEjJRhPyjQLQ8C7jChqXBBckF6d4Husj0=; b=fvZjZy/F6SrfIEZSRl+WSUOTHSOl48CMgkhTXrAx4v7JCTul8PBMluMAckceDJzE8J NLA+SIza725T/kTIe90mUHOABwGKVuxeQsmsx1X9/db2kdtVeAGEXYoF+CwxxwX3iqDg /S+P7Ng1AOmqNsmaZCxCxeCjdmsyhzEHhoW2xlknoiJvaBwubqfrkA3fCYr2t5sIRM5W zrjm6qFOj2nwDiPPicedhYHE9iTr8rSzCK5gQ56gDDeZviNq70Qy7vcx2MQX2U7v5JgS FyAXKm2arg9clUdSvOpaCe6fyP2djD+mbHH2D1v+QYGJScyzU6E5eAzd98gKJ4TPmR4w hjcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id j72-20020a638b4b000000b00573fe48c908si8839971pge.128.2023.11.26.17.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 17:36:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 727028087209; Sun, 26 Nov 2023 17:36:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231305AbjK0BgT convert rfc822-to-8bit (ORCPT + 99 others); Sun, 26 Nov 2023 20:36:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjK0BgS (ORCPT ); Sun, 26 Nov 2023 20:36:18 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C4811A for ; Sun, 26 Nov 2023 17:36:18 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 06E9624DBF3; Mon, 27 Nov 2023 09:36:11 +0800 (CST) Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 27 Nov 2023 09:36:10 +0800 Received: from jsia-virtual-machine.localdomain (202.188.176.82) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 27 Nov 2023 09:36:06 +0800 From: Sia Jee Heng To: , , , , , , CC: , , , Subject: [PATCH 0/7] Initial device tree support for StarFive JH8100 SoC Date: Mon, 27 Nov 2023 09:35:55 +0800 Message-ID: <20231127013602.253835-1-jeeheng.sia@starfivetech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Sun, 26 Nov 2023 17:36:30 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783679158949259253 X-GMAIL-MSGID: 1783679158949259253 StarFive JH8100 SoC consists of 4 RISC-V performance Cores (Dubhe-90) and 2 RISC-V energy efficient cores (Dubhe-80). It also features various interfaces such as DDR4, Gbit-Ether, CAN, USB 3.2, SD/MMC, etc., making it ideal for high-performance computing scenarios. This patch series introduces initial SoC DTSI support for the StarFive JH8100 SoC. The relevant dt-binding documentation has been updated accordingly. Below is the list of IP blocks added in the initial SoC DTSI, which can be used for booting via initramfs on FPGA: - StarFive Dubhe-80 CPU - StarFive Dubhe-90 CPU - PLIC - CLINT - UART The primary goal is to include foundational patches so that additional drivers can be built on top of this framework. Sia Jee Heng (7): dt-bindings: riscv: Add StarFive Dubhe compatibles dt-bindings: riscv: Add StarFive JH8100 SoC dt-bindings: timer: Add StarFive JH8100 clint dt-bindings: interrupt-controller: Add StarFive JH8100 plic dt-bindings: xilinx: Add StarFive compatible string serial: xilinx_uartps: Add new compatible string for StarFive riscv: dts: starfive: Add initial StarFive JH8100 device tree .../sifive,plic-1.0.0.yaml | 1 + .../devicetree/bindings/riscv/cpus.yaml | 2 + .../devicetree/bindings/riscv/starfive.yaml | 5 +- .../devicetree/bindings/serial/cdns,uart.yaml | 3 + .../bindings/timer/sifive,clint.yaml | 1 + arch/riscv/boot/dts/starfive/Makefile | 1 + arch/riscv/boot/dts/starfive/jh8100-evb.dts | 42 ++ arch/riscv/boot/dts/starfive/jh8100.dtsi | 365 ++++++++++++++++++ drivers/tty/serial/xilinx_uartps.c | 3 +- 9 files changed, 421 insertions(+), 2 deletions(-) create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi base-commit: d2da77f431ac49b5763b88751a75f70daa46296c