From patchwork Mon Oct 17 21:05:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13009621 X-Patchwork-Delegate: mail@conchuod.ie 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 4DDE2C4332F for ; Mon, 17 Oct 2022 21:06:16 +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:References:In-Reply-To: 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: List-Owner; bh=k77A6D0md8K0gWInKaXM0pdrFGOgVS+G9T6LNC+NyMg=; b=lTpm4aoneRXNl8 EfMzi9uMft1Ni57eR2Ssmp0gXa5tDGucn29LOUDygwkw3msPnf8wUDN3PdfhbVaqA/Iy2ehJ/MPUZ BYzXXGw/hXgVgaBIfHsd6N05GigICPNNOigaC/WZhqXHAXNv8tVghoDu7qMcN9SwJMiH0VMhOg4pk v/mzSo5oPtrQaT4RRuIshtoxIUzFP3o4biNds+Ynk3lkfO7NLXN4LPog2bomGvgFptu4SvAxpxKKc /v+IX8BO9WTegzbx5zwtMTIBJ23SKOR0XH+J7D5gDgcJnL2HDjogeFcbVphcgrLmJF3aLdfgMFYxb 6DcZLdSJvh0WCLdG7k9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okXJD-00Ew2r-BF; Mon, 17 Oct 2022 21:06:03 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okXJA-00Ew01-Aj for linux-riscv@lists.infradead.org; Mon, 17 Oct 2022 21:06:01 +0000 Received: from localhost (unknown [188.24.131.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 744686602388; Mon, 17 Oct 2022 22:05:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666040756; bh=otsKF/+v2g1BKX/jeoDOYhNievXPsQMKLPsSjeR7+5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bciaPkiDr8chqe4cIPG3GJilW9ioy0uPx6xaIKga1q1VCqFZ6zzWAFHIejMw3WaJ4 nzd7P5dTNYYW94sDIIqfWXAKZJsIJsrZMfUKFjvtHzIrGExqZgfIY7J9ebqi5EsskU vf4M0u0g8kutia8ltXtcbjOargt+YZd4Q2tdxyufF+hw4a3O3fbx1Ve0CboOXn/J12 lrxLEi2lDkVLusuBuSJClqaXJInn9p69iItztUxf/6Ii/Il8Q15/kaiDk0kclLYm5D H2Fo/HILbGM6C10z+TnNjsXJYrpDUXjGupZOo+BBmecwk6AZGgI9BYh0zafuKwi4nh ZcDQPewncVg1A== From: Cristian Ciocaltea To: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Michael Zhu , Drew Fustini , Emil Renner Berthing , Conor Dooley Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v4 3/3] riscv: dts: starfive: Add StarFive VisionFive V1 device tree Date: Tue, 18 Oct 2022 00:05:42 +0300 Message-Id: <20221017210542.979051-4-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221017210542.979051-1-cristian.ciocaltea@collabora.com> References: <20221017210542.979051-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221017_140600_539354_0BAAF312 X-CRM114-Status: GOOD ( 13.00 ) 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 Add initial device tree for the StarFive VisionFive V1 SBC [1], which is similar with the already supported BeagleV Starlight Beta board, both being based on the StarFive JH7100 SoC. [1] https://github.com/starfive-tech/VisionFive Signed-off-by: Cristian Ciocaltea Reviewed-by: Conor Dooley Reviewed-by: Matthias Brugger --- arch/riscv/boot/dts/starfive/Makefile | 2 +- .../jh7100-starfive-visionfive-v1.dts | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile index 0ea1bc15ab30..039c143cba33 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -1,2 +1,2 @@ # SPDX-License-Identifier: GPL-2.0 -dtb-$(CONFIG_SOC_STARFIVE) += jh7100-beaglev-starlight.dtb +dtb-$(CONFIG_SOC_STARFIVE) += jh7100-beaglev-starlight.dtb jh7100-starfive-visionfive-v1.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dts b/arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dts new file mode 100644 index 000000000000..e82af72f1aaf --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2021 StarFive Technology Co., Ltd. + * Copyright (C) 2021 Emil Renner Berthing + */ + +/dts-v1/; +#include "jh7100-common.dtsi" +#include + +/ { + model = "StarFive VisionFive V1"; + compatible = "starfive,visionfive-v1", "starfive,jh7100"; + + gpio-restart { + compatible = "gpio-restart"; + gpios = <&gpio 63 GPIO_ACTIVE_HIGH>; + priority = <224>; + }; +};