xref: /linux/scripts/dtc/include-prefixes/riscv/starfive/jh7110-pine64-star64.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
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>;
215a5001d2SGuodong 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
435a5001d2SGuodong Xu&i2c0 {
445a5001d2SGuodong Xu	status = "okay";
455a5001d2SGuodong Xu};
465a5001d2SGuodong Xu
472904244aSMinda Chen&pcie1 {
482904244aSMinda Chen	status = "okay";
492904244aSMinda Chen};
502904244aSMinda Chen
512606bf58SHenry Bell&phy0 {
52825bb692SE Shattow	rx-internal-delay-ps = <1500>;
532606bf58SHenry Bell	motorcomm,rx-clk-drv-microamp = <2910>;
542606bf58SHenry Bell	motorcomm,rx-data-drv-microamp = <2910>;
552606bf58SHenry Bell	motorcomm,tx-clk-adj-enabled;
562606bf58SHenry Bell	motorcomm,tx-clk-10-inverted;
572606bf58SHenry Bell	motorcomm,tx-clk-100-inverted;
582606bf58SHenry Bell	motorcomm,tx-clk-1000-inverted;
592606bf58SHenry Bell};
602606bf58SHenry Bell
612606bf58SHenry Bell&phy1 {
622606bf58SHenry Bell	rx-internal-delay-ps = <0>;
632606bf58SHenry Bell	tx-internal-delay-ps = <300>;
642606bf58SHenry Bell	motorcomm,rx-clk-drv-microamp = <2910>;
652606bf58SHenry Bell	motorcomm,rx-data-drv-microamp = <2910>;
662606bf58SHenry Bell	motorcomm,tx-clk-adj-enabled;
672606bf58SHenry Bell	motorcomm,tx-clk-10-inverted;
682606bf58SHenry Bell	motorcomm,tx-clk-100-inverted;
692606bf58SHenry Bell};
705a5001d2SGuodong Xu
715a5001d2SGuodong Xu&pwm {
725a5001d2SGuodong Xu	status = "okay";
735a5001d2SGuodong Xu};
745a5001d2SGuodong Xu
755a5001d2SGuodong Xu&pwmdac {
765a5001d2SGuodong Xu	status = "okay";
775a5001d2SGuodong Xu};
785a5001d2SGuodong Xu
795a5001d2SGuodong Xu&spi0 {
805a5001d2SGuodong Xu	status = "okay";
815a5001d2SGuodong Xu};
82*817eac16SGuodong Xu
83*817eac16SGuodong Xu&usb0 {
84*817eac16SGuodong Xu	dr_mode = "peripheral";
85*817eac16SGuodong Xu	status = "okay";
86*817eac16SGuodong Xu};
87