Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5034562rwi; Mon, 17 Oct 2022 14:33:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6FaBpGIm75xigmASTAxLK/CFUy1YfMtlZ1QpOv6XDIJ8OPskaQh2MOK/Ls24GrYUptaVsO X-Received: by 2002:a17:906:9be9:b0:78d:2f63:10dd with SMTP id de41-20020a1709069be900b0078d2f6310ddmr10224413ejc.479.1666042419844; Mon, 17 Oct 2022 14:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666042419; cv=none; d=google.com; s=arc-20160816; b=K0U7UyqXKM5a/eWV+FEli1rVk77xS+h1vlHM0snX94uT3q1KxTZsJVdKo6sKsfqwAc lwgho/VytbObXcJ6Bu5iaI5ahOwklhBPztelZFmHPyRO3yeeq1nI5zJNigWMy4k0fIj/ f9kCscx6AHAFSLUssPE1yd8i3Ewi7v6om6Q5ThKjuSkcBamLYLCvi9THG93zveUY8M10 tUdGdVNcWu/bDFyh+pBIymdDGF7b4cBG59HM73vXPorho2mz2abMU6LuSeFCb8GYPwEY qtC3mcggGQVq8c9B56+RVheixIfjVp/Hm8q7jjQBek32k3FNTJNQ7vPPT3aS9r+sKxxc N9aw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id st11-20020a170907c08b00b007806c7c3fc1si7963522ejc.975.2022.10.17.14.33.13; Mon, 17 Oct 2022 14:33:39 -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 Content-Transfer-Encoding: 8bit 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 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 --- .../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; }; -- 2.38.0