xref: /linux/scripts/dtc/include-prefixes/riscv/starfive/jh7110-pine64-star64.dts (revision 825bb69228c8ab85637d21cdf4d44207937130b6)
12606bf58SHenry Bell// SPDX-License-Identifier: GPL-2.0 OR MIT
22606bf58SHenry Bell/*
32606bf58SHenry Bell * Copyright (C) 2024 Henry Bell <dmoo_dv@protonmail.com>
42606bf58SHenry Bell */
52606bf58SHenry Bell
62606bf58SHenry Bell/dts-v1/;
72606bf58SHenry Bell#include "jh7110-common.dtsi"
82606bf58SHenry Bell
92606bf58SHenry Bell/ {
102606bf58SHenry Bell	model = "Pine64 Star64";
112606bf58SHenry Bell	compatible = "pine64,star64", "starfive,jh7110";
122606bf58SHenry Bell	aliases {
132606bf58SHenry Bell		ethernet1 = &gmac1;
142606bf58SHenry Bell	};
152606bf58SHenry Bell};
162606bf58SHenry Bell
172606bf58SHenry Bell&gmac0 {
182606bf58SHenry Bell	starfive,tx-use-rgmii-clk;
192606bf58SHenry Bell	assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
202606bf58SHenry Bell	assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
212606bf58SHenry Bell};
222606bf58SHenry Bell
232606bf58SHenry Bell&gmac1 {
242606bf58SHenry Bell	phy-handle = <&phy1>;
252606bf58SHenry Bell	phy-mode = "rgmii-id";
262606bf58SHenry Bell	starfive,tx-use-rgmii-clk;
272606bf58SHenry Bell	assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>;
282606bf58SHenry Bell	assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
292606bf58SHenry Bell	status = "okay";
302606bf58SHenry Bell
312606bf58SHenry Bell	mdio {
322606bf58SHenry Bell		#address-cells = <1>;
332606bf58SHenry Bell		#size-cells = <0>;
342606bf58SHenry Bell		compatible = "snps,dwmac-mdio";
352606bf58SHenry Bell
362606bf58SHenry Bell		phy1: ethernet-phy@1 {
372606bf58SHenry Bell			reg = <1>;
382606bf58SHenry Bell		};
392606bf58SHenry Bell	};
402606bf58SHenry Bell};
412606bf58SHenry Bell
422904244aSMinda Chen&pcie1 {
432904244aSMinda Chen	status = "okay";
442904244aSMinda Chen};
452904244aSMinda Chen
462606bf58SHenry Bell&phy0 {
47*825bb692SE Shattow	rx-internal-delay-ps = <1500>;
482606bf58SHenry Bell	motorcomm,rx-clk-drv-microamp = <2910>;
492606bf58SHenry Bell	motorcomm,rx-data-drv-microamp = <2910>;
502606bf58SHenry Bell	motorcomm,tx-clk-adj-enabled;
512606bf58SHenry Bell	motorcomm,tx-clk-10-inverted;
522606bf58SHenry Bell	motorcomm,tx-clk-100-inverted;
532606bf58SHenry Bell	motorcomm,tx-clk-1000-inverted;
542606bf58SHenry Bell};
552606bf58SHenry Bell
562606bf58SHenry Bell&phy1 {
572606bf58SHenry Bell	rx-internal-delay-ps = <0>;
582606bf58SHenry Bell	tx-internal-delay-ps = <300>;
592606bf58SHenry Bell	motorcomm,rx-clk-drv-microamp = <2910>;
602606bf58SHenry Bell	motorcomm,rx-data-drv-microamp = <2910>;
612606bf58SHenry Bell	motorcomm,tx-clk-adj-enabled;
622606bf58SHenry Bell	motorcomm,tx-clk-10-inverted;
632606bf58SHenry Bell	motorcomm,tx-clk-100-inverted;
642606bf58SHenry Bell};
65