From patchwork Mon Oct 17 21:05:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 3745 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1643554wrs; Mon, 17 Oct 2022 14:11:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4CoeBXydwZ2Vf7b6r4w9nWdYWCIwg2JO3UBg4FnR3Biy5i9y9X1sQjajKgzlGHTqBMWa8o X-Received: by 2002:a05:6a00:3493:b0:562:f7c0:cbd9 with SMTP id cp19-20020a056a00349300b00562f7c0cbd9mr14466017pfb.4.1666041073511; Mon, 17 Oct 2022 14:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666041073; cv=none; d=google.com; s=arc-20160816; b=umoXB3BHRM1zEbU5XJ4+x+HjfzfIJDs9PZRbyGRlii35qNIV+eq+yOuDo+Tyu48DcJ u/EziOQecPGCPbpwNzp7iF0ggdSmx5ugb7l7G1OVm99xPtXwjOcFrAlLVsAFmJWr/xCZ lsm0LQ6Rhzu71yk2h0JUL6OniNCbTtKGNcrawQ73s0bYT4n70tbtOPMEeRaqK564NOP4 5ml+BNaU/DyOf9YqhxjTf9ATaxK7N6iFTziCzQv6HQt71kHk5CwJkdd3oRlxjcw57Zy6 GkhqU0DNgu1GAvre8EzByPoT65dz7iM2cNxA+LF2m1AwntWIno8vXT87UyDR6Ck7M69b PNow== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WHln5MGxoWrW2Zb4gW3ZmAYixjg5DpU0q60nv81Io3E=; b=xsz1Ot9Az9lZqP8nqdc5kfuoPHoHZmJK1LCyquZmroUKdKghwSNRcGh0evTji6/+Pk 8jHflmuA8JyL01lLDOPcX+kWXM73TsindoI1RZPH15D+3oTiSkFt27VgrHaJudUvJvpT b403sRjB/Ji/7lzW2HTiTNYw1d/rCpC3NZ1KgPOrFI1BcG4N++iBQK10cl1ynSChmn7I Z5yvK1+RA+v9Ht9p7MywdyJyijBflzSEvbm2uPcNMUy2KSz74ZUtH4mgnpc8e/4OBWB5 7y5/IGlzoywI8A8fXsdQnPYt8uCvMUAQ36ts0+tRgUl80sQxBqHCZNg178bmJlMNnGaV EUyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Wt9cEePW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a170902e3cd00b00172dd2494cfsi10627904ple.103.2022.10.17.14.11.01; Mon, 17 Oct 2022 14:11:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Wt9cEePW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230376AbiJQVF7 (ORCPT + 99 others); Mon, 17 Oct 2022 17:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbiJQVFx (ORCPT ); Mon, 17 Oct 2022 17:05:53 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D872C6BCDB; Mon, 17 Oct 2022 14:05:51 -0700 (PDT) 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 EDC66660232A; Mon, 17 Oct 2022 22:05:49 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666040750; bh=AaMf44NQLs0FWOmJ2NB4kVWHiWutQgTR2F4DGQiSUCA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wt9cEePWTnKmky3w2jqKP2BTP15iidh99hKmwyyPFVK4MBWhROmtRUonUkShnnSvS I7LDAOyqHVRh/Alp29RBzgyBz36h8PyxAq3z59t9OYcl3nrStywKmxPyICSjr/Xj7R hvchqd64Jsg6KnKaEE6hUxgSxCN9kUVCZILg/GhgaEsLQ0dUGFMoSmtdPKw41/uzT/ V24qWkgoQvT+NA+9g0p25EqFxZFf4ezyyWIWqsTcyKb/kcx4Ni0lkXb9QW3vjuGRWg JGeINxoZXhO+vhMhUrnanb+y8iVIcFaIfszjElo7A3uchpO83jnen/Uc4BAIcWGNLA NFnT/3tz4vHNw== 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, Krzysztof Kozlowski Subject: [PATCH v4 1/3] dt-bindings: riscv: starfive: Add StarFive VisionFive V1 board Date: Tue, 18 Oct 2022 00:05:40 +0300 Message-Id: <20221017210542.979051-2-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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746970684658960445?= X-GMAIL-MSGID: =?utf-8?q?1746970684658960445?= Document the compatibles for StarFive VisionFive V1 SBC [1]. The board is based on the StarFive JH7100 SoC. [1] https://github.com/starfive-tech/VisionFive Signed-off-by: Cristian Ciocaltea Reviewed-by: Conor Dooley Reviewed-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger --- Documentation/devicetree/bindings/riscv/starfive.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/riscv/starfive.yaml b/Documentation/devicetree/bindings/riscv/starfive.yaml index 5b36243fd674..5d3fcee52d59 100644 --- a/Documentation/devicetree/bindings/riscv/starfive.yaml +++ b/Documentation/devicetree/bindings/riscv/starfive.yaml @@ -19,7 +19,9 @@ properties: compatible: oneOf: - items: - - const: beagle,beaglev-starlight-jh7100-r0 + - enum: + - beagle,beaglev-starlight-jh7100-r0 + - starfive,visionfive-v1 - const: starfive,jh7100 additionalProperties: true From patchwork Mon Oct 17 21:05:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 3743 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1643128wrs; Mon, 17 Oct 2022 14:09:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XD1mGtJ18G940pgs+p5bs1laR/ZiYFdGozY0M+L9dMnHXlUlLO8Y6LgQo2t5G6+fUipD2 X-Received: by 2002:a17:903:40c1:b0:185:4421:253 with SMTP id t1-20020a17090340c100b0018544210253mr14103900pld.39.1666040991164; Mon, 17 Oct 2022 14:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666040991; cv=none; d=google.com; s=arc-20160816; b=mGP4zfsMmCObaq/0najln+ioURfTI376kTF2UxrmBwmWG4uN9owxgUBHm2vi3tk0Oi c7+31e6vLUR5MJoq3wsg4PX4BIgLjwbbUM3nwwHcrOEtVKg7ZJ0dT10sh15lepBo7vPl uXyJJeW12+vJTDAC1qK0OWOBE/s696eZteItPe0J36IpoGMFPo3XmgcpWZmQZkHje5dk ocnLTJ2QTpPslgCvzesaR1LK3LVplAQaGmZcoPephe0FZoVgjP29eM1nZ8zdFO6nyei6 GO0hRIix3Yoy+HEEkGWijV52cwgknCQaQyO4jCTBPJM0LsnXjJdN8nIlEPEWAfRSoSBw cBLg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6ZfrquJ9IWVjvcUEt4zumUlt5eyaUqnKB5foG6mTVwE=; b=azLPvcBMjv3qweFQqAH2wZkYvWdINrUc1+2ElNnn5eKr1zEsysjvPYNlLtI3hx0PQj XPW5EnSGoXjd9NAayoCQsmnH+y8isaRUXlQPQEGwTXc5AEgfsJc6TqMp/8H/29SuENC2 xfatvX4z28ZXQt9eUhfRoltrOTkgpHKvzijYdjY4Jz8GTKYlXBUjPMfwdxfDEECK2p5S GSktS87vn0aU7Rjyh63PVqLPykJ4EU0RrOEnvNqpGpCgaXgrW1gyKmKVRa28PcHI4uGM +3h2sD9GJh2obGvo65aYlERoH5C5hzc1z63W181WUVEBZyQ2rlTE4FmMTivbOX6CdzGz ZwVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=g78qkBJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l198-20020a633ecf000000b0043ce6a5a14bsi12828206pga.99.2022.10.17.14.09.31; Mon, 17 Oct 2022 14:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=g78qkBJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230303AbiJQVGD (ORCPT + 99 others); Mon, 17 Oct 2022 17:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbiJQVF4 (ORCPT ); Mon, 17 Oct 2022 17:05:56 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EA736AA18; Mon, 17 Oct 2022 14:05:54 -0700 (PDT) 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 08F3F6602375; Mon, 17 Oct 2022 22:05:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666040753; bh=yycwqIbhA3eIvwk7JwT11l2jes6mL6qKAAIBSC01wFk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g78qkBJz1mk8YR7l4mSawhETreDUkudJ4CYQCcHJZ7TzBIXskROEIOIqYoMM5430/ R+VNA7mFfJ9yIwiCI8LHOzb6mpKmRiCWjaX9v3WPnOQfFtk2313CF+hGymfUaDIda2 oudDK5Q1zXdjAjXrXAmzNmHhWKqxW5Prv7nFapOgTWv3BQl3iguhUuoWoV/MZVT45j tL5CkBQNImHcr0l0/5qoUzbdqW8pi8TJNYxD9RX/ApCUzQTe0PodactddS0gKykMkB L5vp1BkaAEdA94wdRPo+R9jb0vbfHjcyH//xb6pzuwqYx9+zx5f4DoCOUlrKdPzBjC dYFVQP+TSGmyA== 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 2/3] riscv: dts: starfive: Add common DT for JH7100 based boards Date: Tue, 18 Oct 2022 00:05:41 +0300 Message-Id: <20221017210542.979051-3-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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746970598320053983?= X-GMAIL-MSGID: =?utf-8?q?1746970598320053983?= In preparation for adding initial device tree support for the StarFive VisionFive board, which is similar with BeagleV Starlight, move most of the content from jh7100-beaglev-starlight.dts to a new file, to be shared between the two boards. Signed-off-by: Cristian Ciocaltea Reviewed-by: Conor Dooley Reviewed-by: Matthias Brugger --- .../dts/starfive/jh7100-beaglev-starlight.dts | 153 +----------------- ...aglev-starlight.dts => jh7100-common.dtsi} | 3 - 2 files changed, 1 insertion(+), 155 deletions(-) copy arch/riscv/boot/dts/starfive/{jh7100-beaglev-starlight.dts => jh7100-common.dtsi} (96%) diff --git a/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts b/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts index f7a230110512..7cda3a89020a 100644 --- a/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts +++ b/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts @@ -5,160 +5,9 @@ */ /dts-v1/; -#include "jh7100.dtsi" -#include -#include -#include +#include "jh7100-common.dtsi" / { model = "BeagleV Starlight Beta"; compatible = "beagle,beaglev-starlight-jh7100-r0", "starfive,jh7100"; - - aliases { - serial0 = &uart3; - }; - - chosen { - stdout-path = "serial0:115200n8"; - }; - - cpus { - timebase-frequency = <6250000>; - }; - - memory@80000000 { - device_type = "memory"; - reg = <0x0 0x80000000 0x2 0x0>; - }; - - leds { - compatible = "gpio-leds"; - - led-ack { - gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; - color = ; - function = LED_FUNCTION_HEARTBEAT; - linux,default-trigger = "heartbeat"; - label = "ack"; - }; - }; -}; - -&gpio { - i2c0_pins: i2c0-0 { - i2c-pins { - pinmux = , - ; - bias-disable; /* external pull-up */ - input-enable; - input-schmitt-enable; - }; - }; - - i2c1_pins: i2c1-0 { - i2c-pins { - pinmux = , - ; - bias-pull-up; - input-enable; - input-schmitt-enable; - }; - }; - - i2c2_pins: i2c2-0 { - i2c-pins { - pinmux = , - ; - bias-disable; /* external pull-up */ - input-enable; - input-schmitt-enable; - }; - }; - - uart3_pins: uart3-0 { - rx-pins { - pinmux = ; - bias-pull-up; - drive-strength = <14>; - input-enable; - input-schmitt-enable; - slew-rate = <0>; - }; - tx-pins { - pinmux = ; - bias-disable; - drive-strength = <35>; - input-disable; - input-schmitt-disable; - slew-rate = <0>; - }; - }; -}; - -&i2c0 { - clock-frequency = <100000>; - i2c-sda-hold-time-ns = <300>; - i2c-sda-falling-time-ns = <500>; - i2c-scl-falling-time-ns = <500>; - pinctrl-names = "default"; - pinctrl-0 = <&i2c0_pins>; - status = "okay"; - - pmic@5e { - compatible = "ti,tps65086"; - reg = <0x5e>; - gpio-controller; - #gpio-cells = <2>; - - regulators { - }; - }; -}; - -&i2c1 { - clock-frequency = <400000>; - i2c-sda-hold-time-ns = <300>; - i2c-sda-falling-time-ns = <100>; - i2c-scl-falling-time-ns = <100>; - pinctrl-names = "default"; - pinctrl-0 = <&i2c1_pins>; - status = "okay"; -}; - -&i2c2 { - clock-frequency = <100000>; - i2c-sda-hold-time-ns = <300>; - i2c-sda-falling-time-ns = <500>; - i2c-scl-falling-time-ns = <500>; - pinctrl-names = "default"; - pinctrl-0 = <&i2c2_pins>; - status = "okay"; -}; - -&osc_sys { - clock-frequency = <25000000>; -}; - -&osc_aud { - clock-frequency = <27000000>; -}; - -&uart3 { - pinctrl-names = "default"; - pinctrl-0 = <&uart3_pins>; - status = "okay"; }; diff --git a/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi similarity index 96% copy from arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts copy to arch/riscv/boot/dts/starfive/jh7100-common.dtsi index f7a230110512..b93ce351a90f 100644 --- a/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi @@ -11,9 +11,6 @@ #include / { - model = "BeagleV Starlight Beta"; - compatible = "beagle,beaglev-starlight-jh7100-r0", "starfive,jh7100"; - aliases { serial0 = &uart3; }; 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: 3744 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1643260wrs; Mon, 17 Oct 2022 14:10:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7tgy/X6/WAcOsNyj5m1I3oQpIJPWNAw3Nd0lBqXRetbMv9p9FOXhdveRE9R5hEdcBqb1vt X-Received: by 2002:a05:6a00:10cf:b0:563:34ce:412f with SMTP id d15-20020a056a0010cf00b0056334ce412fmr14670560pfu.67.1666041017826; Mon, 17 Oct 2022 14:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666041017; cv=none; d=google.com; s=arc-20160816; b=l5+AO35Vf/pn1b/tGyau4PwTL/3Ox1m2yJl/qLJsL71fQ7Eqc67swYiEQ9pX/IPiUv OhXfXylszG/XVmhDIFaa2CXzPSN/4xY/qxzFBv+GEcORYm9CSTwduLxuszwDVbz1R5SK o/bbWCmNq2aQ4mQ4luDHQVqC5stu3oVpsseQjqCfe/OWqcJ6vJARNb6fCL4C3SIw81YV ybsJJmA0MvxuVUuoQ+xB5Z86lW5GsFrKFHQbgYORtt+zoOJ/oHcSlDWL4uQ8voCBUbqa Oy5k4ZAmGcA8xev/pA8j5xVQ11VUfEwIvwPrwZS79dFgCrztgScB+v94PDtgEB/8IZkQ 41mw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7C2knDVt8QBB5N1ohiL2m4jGI5fxT9LxP3LlUa0aXp4=; b=rzvbMx48sukW3EnAR6kpDbI/LHcFtCFAYIq16g8USwyxoPiszEbvtDgiabxDHENKfV VY+JTBMdu2lJWY3r1K4SVfB6x1xWOUUtPnFCeCqs8DOYVKK69gVzOcau+Bp6p3PBRvOh fyN3ulyN7m+3GLNRV7Zq/I1B2BsgFUgeOdAmG9ltTNrXdXAa04uOjnHvxqqnKC1v0sFi 8pkPM6n245JY+lcFIAk7YCTZxa5UgLM5602pL0A9fm5nRVhC91dl7HjUs4foJvj+xfkH vsY7LKLI6t0wmUPQYIApkPibqURGr7mcV7+k/+5+HKg2cYxx7oUzULuCb0qniqyfZph3 f5xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bciaPkiD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a170902e80700b001786d7bc2dfsi11450959plg.400.2022.10.17.14.10.00; Mon, 17 Oct 2022 14:10:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bciaPkiD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230425AbiJQVGL (ORCPT + 99 others); Mon, 17 Oct 2022 17:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbiJQVGC (ORCPT ); Mon, 17 Oct 2022 17:06:02 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F3AB647E6; Mon, 17 Oct 2022 14:05:58 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746970626092242101?= X-GMAIL-MSGID: =?utf-8?q?1746970626092242101?= 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>; + }; +};