xref: /linux/scripts/dtc/include-prefixes/riscv/starfive/jh7110-pine64-star64.dts (revision 5a5001d27065126d815eb54e12744b08322e3d31)
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>;
21*5a5001d2SGuodong Xu	status = "okay";
222606bf58SHenry Bell};
232606bf58SHenry Bell
242606bf58SHenry Bell&gmac1 {
252606bf58SHenry Bell	phy-handle = <&phy1>;
262606bf58SHenry Bell	phy-mode = "rgmii-id";
272606bf58SHenry Bell	starfive,tx-use-rgmii-clk;
282606bf58SHenry Bell	assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>;
292606bf58SHenry Bell	assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
302606bf58SHenry Bell	status = "okay";
312606bf58SHenry Bell
322606bf58SHenry Bell	mdio {
332606bf58SHenry Bell		#address-cells = <1>;
342606bf58SHenry Bell		#size-cells = <0>;
352606bf58SHenry Bell		compatible = "snps,dwmac-mdio";
362606bf58SHenry Bell
372606bf58SHenry Bell		phy1: ethernet-phy@1 {
382606bf58SHenry Bell			reg = <1>;
392606bf58SHenry Bell		};
402606bf58SHenry Bell	};
412606bf58SHenry Bell};
422606bf58SHenry Bell
43*5a5001d2SGuodong Xu&i2c0 {
44*5a5001d2SGuodong Xu	status = "okay";
45*5a5001d2SGuodong Xu};
46*5a5001d2SGuodong Xu
472904244aSMinda Chen&pcie1 {
482904244aSMinda Chen	status = "okay";
492904244aSMinda Chen};
502904244aSMinda Chen
512606bf58SHenry Bell&phy0 {
522606bf58SHenry Bell	rx-internal-delay-ps = <1900>;
532606bf58SHenry Bell	tx-internal-delay-ps = <1500>;
542606bf58SHenry Bell	motorcomm,rx-clk-drv-microamp = <2910>;
552606bf58SHenry Bell	motorcomm,rx-data-drv-microamp = <2910>;
562606bf58SHenry Bell	motorcomm,tx-clk-adj-enabled;
572606bf58SHenry Bell	motorcomm,tx-clk-10-inverted;
582606bf58SHenry Bell	motorcomm,tx-clk-100-inverted;
592606bf58SHenry Bell	motorcomm,tx-clk-1000-inverted;
602606bf58SHenry Bell};
612606bf58SHenry Bell
622606bf58SHenry Bell&phy1 {
632606bf58SHenry Bell	rx-internal-delay-ps = <0>;
642606bf58SHenry Bell	tx-internal-delay-ps = <300>;
652606bf58SHenry Bell	motorcomm,rx-clk-drv-microamp = <2910>;
662606bf58SHenry Bell	motorcomm,rx-data-drv-microamp = <2910>;
672606bf58SHenry Bell	motorcomm,tx-clk-adj-enabled;
682606bf58SHenry Bell	motorcomm,tx-clk-10-inverted;
692606bf58SHenry Bell	motorcomm,tx-clk-100-inverted;
702606bf58SHenry Bell};
71*5a5001d2SGuodong Xu
72*5a5001d2SGuodong Xu&pwm {
73*5a5001d2SGuodong Xu	status = "okay";
74*5a5001d2SGuodong Xu};
75*5a5001d2SGuodong Xu
76*5a5001d2SGuodong Xu&pwmdac {
77*5a5001d2SGuodong Xu	status = "okay";
78*5a5001d2SGuodong Xu};
79*5a5001d2SGuodong Xu
80*5a5001d2SGuodong Xu&spi0 {
81*5a5001d2SGuodong Xu	status = "okay";
82*5a5001d2SGuodong Xu};
83