Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1067532lqa; Sun, 28 Apr 2024 17:37:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYniRAjDcxAVjVwZiFFVjQHYN/WK6Akjo7qiYhNW1Jyimx1IJOZ0UJfd5Uazp+A4Rv5CivybN+VSg6hjVfgE/4XEQRLPzQHi9Vj4jr2w== X-Google-Smtp-Source: AGHT+IEqrgz1mXmxCeR0yuo2tKet116hbLNGgT1mOEc+XqzLsjgnp28gHVqK+O3C4/A4NCSh0x7Q X-Received: by 2002:a50:99d2:0:b0:56e:2c34:cfec with SMTP id n18-20020a5099d2000000b0056e2c34cfecmr5734891edb.7.1714351043999; Sun, 28 Apr 2024 17:37:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714351043; cv=pass; d=google.com; s=arc-20160816; b=nDEkJI10acU57GDo2/QEF+7sVRDu1p+wPua8+qOijc56PruRdtSEjyZWj9uFQNoc6Z 43FoAbjlMM+WbhTn+bdHjDw2EVXATgwzJcClPcQF7W7f6ZMUK3ufUJIUjurqLOvvqM7Q np532I0c/LelnW/RMd+5IeM6YCC4KbOv2MMh3VfDrjmECAozH5d3Lvvx/Dgbge/I6DpZ o80HF3SmCcf50ShuTuXOGRjiWr1p+DCczJ08k06BQm2HRn4DCb5QXhVSJr4+eCI7Yvku F3sut3n0gUfZl2fZRAWYE62Nt8MyDNeXhj4vbQLPtUAnSoRtC+sYtVEpv1+vgFOjMqvf 9X8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WboFrquy+kegd8VnUC2p9WD2QlTLsJWMtzAiTDzX6qI=; fh=kbAU6oRH5x8NbVM5pF41Q38yiWCWwEYU8aG0gWBHvcc=; b=HjGYiow/Y7eGm9PMyQwSUEp+w0VjFZKASfyGqiRWfJ4/ZBAOLcMDt73N0wls9o+Vy+ j9J6EfQODxh7RHh2dZojsENADRd/nA9u2DIi7s5OxlFDpsQQiDBM3g5dNzhZ0zAbTQgG ErGfgHHAmn/4Qs5bUBa46SnY2HcN7+tytnz018t6WnyAgx8JooAR6yROLfXuj/dWlfZb uGLGRVSmu10IDpfPfnvTtnv3E2cKHlAjwrLJoud1KwTR5ethG4ovYEyOoFNLlKNGvJcl Uni4MnlW+se7AlfMoan6zAk/gUPlBJnYHw/oPDnV/Yps3e1KT9X3qE2+rQxX3l+AZEAQ nzrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrHLlhOP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t1-20020a05640203c100b005721bd24d96si7829705edw.617.2024.04.28.17.37.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 17:37:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nrHLlhOP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4DB951F2202A for ; Mon, 29 Apr 2024 00:28:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0240612E6C; Mon, 29 Apr 2024 00:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nrHLlhOP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2AD03111A3; Mon, 29 Apr 2024 00:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714350428; cv=none; b=NZC9NdF7gqvKgQEIgI8p1P8H/u+B6RCUUo+99OfTQLRI7JqYxoBk/xhsOTZPxyRRFFO38oGEtwzwlC2OlzPEsmmFqF+NFIWs0vILTj6SBgJdS+uOMSbsYE10PDtoqoxV5e4bPkCnFPmW8nNtU5XHJINo2RMYvOQXctF/6S5C7Tk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714350428; c=relaxed/simple; bh=Me6kV0m1Pfmm/VqxiWspxINMuSUzJ8rjhLb86dLUq5k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WFhD+QK96ZT1n35FuhZf/5FH1AK78KIrzbJYoJvNin19bac8G05EP6DV0p2DJBV6w8BwbC5aoB+DYErmp/mYCENSCMvn0o6PBX78P6FZ/yaFT159bOhyP2dWKqnGiOw708UYdtEe7SEq9CBsyl5C2RBt2hZvegEo3bpopoNMess= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nrHLlhOP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B201C4AF1B; Mon, 29 Apr 2024 00:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714350428; bh=Me6kV0m1Pfmm/VqxiWspxINMuSUzJ8rjhLb86dLUq5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nrHLlhOPF9845cevx6RTVszjP9xR769xlV9mNn5CNFexjwSTOVuh78FztRGyk8szx xcvRWUmMcbDokAHnt9EsBeBFHE0Zfp8IzDnrJ5DqhfPI9GizymFU/rX+VOxrVqXbIo FN8iYSmKdv3JngOQ8X7WXjrlD8pdrLgdMFs3dZIg8GyJOB8QBbB7dt7aI4gspgbZEc XQljSieLVHSmPsYiWinlaQYD4NdItDTyC9rGlnfsVKYPD4ZdAPgv3PV5cBO96IJD+3 HKeWsVsp4KkYJtOM28uU6bniF4uXwI3kU0SoWiO0RxTPNc7IjZ1q9PJuNz+gxmd/RJ Nl0ZCHM1rWaTw== From: Jisheng Zhang To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Emil Renner Berthing Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 8/8] riscv: dts: starfive: add Milkv Mars board device tree Date: Mon, 29 Apr 2024 08:13:17 +0800 Message-ID: <20240429001317.432-9-jszhang@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240429001317.432-1-jszhang@kernel.org> References: <20240429001317.432-1-jszhang@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Milkv Mars is a development board based on the Starfive JH7110 SoC. The board features: - JH7110 SoC - 1/2/4/8 GiB LPDDR4 DRAM - AXP15060 PMIC - 40 pin GPIO header - 3x USB 3.0 host port - 1x USB 2.0 host port - 1x M.2 E-Key - 1x eMMC slot - 1x MicroSD slot - 1x QSPI Flash - 1x 1Gbps Ethernet port - 1x HDMI port - 1x 2-lane DSI and 1x 4-lane DSI - 1x 2-lane CSI Add the devicetree file describing the currently supported features, namely PMIC, UART, I2C, GPIO, SD card, QSPI Flash, eMMC and Ethernet. Signed-off-by: Jisheng Zhang --- arch/riscv/boot/dts/starfive/Makefile | 1 + .../boot/dts/starfive/jh7110-milkv-mars.dts | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile index 0141504c0f5c..2fa0cd7f31c3 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -8,5 +8,6 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b := -@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb +dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-milkv-mars.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts new file mode 100644 index 000000000000..fa0eac78e0ba --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2023 Jisheng Zhang + */ + +/dts-v1/; +#include "jh7110-common.dtsi" + +/ { + model = "Milk-V Mars"; + compatible = "milkv,mars", "starfive,jh7110"; +}; + +&gmac0 { + starfive,tx-use-rgmii-clk; + assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>; + assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; +}; + + +&phy0 { + motorcomm,tx-clk-adj-enabled; + motorcomm,tx-clk-10-inverted; + motorcomm,tx-clk-100-inverted; + motorcomm,tx-clk-1000-inverted; + motorcomm,rx-clk-drv-microamp = <3970>; + motorcomm,rx-data-drv-microamp = <2910>; + rx-internal-delay-ps = <1500>; + tx-internal-delay-ps = <1500>; +}; -- 2.43.0