Skip to content

Commit 9276bad

Browse files
xhackerustcConchuOD
authored andcommitted
riscv: dts: starfive: add Milkv Mars board device tree
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 <jszhang@kernel.org> Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent ac9a37e commit 9276bad

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

arch/riscv/boot/dts/starfive/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b := -@
88
dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb
99
dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb
1010

11+
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-milkv-mars.dtb
1112
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb
1213
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// SPDX-License-Identifier: GPL-2.0 OR MIT
2+
/*
3+
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
4+
*/
5+
6+
/dts-v1/;
7+
#include "jh7110-common.dtsi"
8+
9+
/ {
10+
model = "Milk-V Mars";
11+
compatible = "milkv,mars", "starfive,jh7110";
12+
};
13+
14+
&gmac0 {
15+
starfive,tx-use-rgmii-clk;
16+
assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
17+
assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
18+
};
19+
20+
21+
&phy0 {
22+
motorcomm,tx-clk-adj-enabled;
23+
motorcomm,tx-clk-10-inverted;
24+
motorcomm,tx-clk-100-inverted;
25+
motorcomm,tx-clk-1000-inverted;
26+
motorcomm,rx-clk-drv-microamp = <3970>;
27+
motorcomm,rx-data-drv-microamp = <2910>;
28+
rx-internal-delay-ps = <1500>;
29+
tx-internal-delay-ps = <1500>;
30+
};

0 commit comments

Comments
 (0)