xref: /linux/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts (revision 26bda0dff9ca74ae071643e0176f248d72f43580)
1// SPDX-License-Identifier: GPL-2.0 OR MIT
2/*
3 * Copyright (C) 2024 Henry Bell <dmoo_dv@protonmail.com>
4 */
5
6/dts-v1/;
7#include "jh7110-common.dtsi"
8
9/ {
10	model = "Pine64 Star64";
11	compatible = "pine64,star64", "starfive,jh7110";
12	aliases {
13		ethernet1 = &gmac1;
14	};
15};
16
17&gmac0 {
18	starfive,tx-use-rgmii-clk;
19	assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
20	assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
21	status = "okay";
22};
23
24&gmac1 {
25	phy-handle = <&phy1>;
26	phy-mode = "rgmii-id";
27	starfive,tx-use-rgmii-clk;
28	assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>;
29	assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
30	status = "okay";
31
32	mdio {
33		#address-cells = <1>;
34		#size-cells = <0>;
35		compatible = "snps,dwmac-mdio";
36
37		phy1: ethernet-phy@1 {
38			reg = <1>;
39		};
40	};
41};
42
43&i2c0 {
44	status = "okay";
45};
46
47&pcie1 {
48	status = "okay";
49};
50
51&phy0 {
52	rx-internal-delay-ps = <1900>;
53	tx-internal-delay-ps = <1500>;
54	motorcomm,rx-clk-drv-microamp = <2910>;
55	motorcomm,rx-data-drv-microamp = <2910>;
56	motorcomm,tx-clk-adj-enabled;
57	motorcomm,tx-clk-10-inverted;
58	motorcomm,tx-clk-100-inverted;
59	motorcomm,tx-clk-1000-inverted;
60};
61
62&phy1 {
63	rx-internal-delay-ps = <0>;
64	tx-internal-delay-ps = <300>;
65	motorcomm,rx-clk-drv-microamp = <2910>;
66	motorcomm,rx-data-drv-microamp = <2910>;
67	motorcomm,tx-clk-adj-enabled;
68	motorcomm,tx-clk-10-inverted;
69	motorcomm,tx-clk-100-inverted;
70};
71
72&pwm {
73	status = "okay";
74};
75
76&pwmdac {
77	status = "okay";
78};
79
80&spi0 {
81	status = "okay";
82};
83
84&usb0 {
85	dr_mode = "peripheral";
86	status = "okay";
87};
88