Debian Codegraph @

scripts/dtc/include-prefixes/riscv/spacemit/k1-musepi-pro.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright (C) 2024 Yangyu Chen <[email protected]>
4 * Copyright (C) 2025 SpacemiT, Inc
5 * Copyright (C) 2025 Troy Mitchell <[email protected]>
6 */
7
8 /dts-v1/;
9
10 #include "k1.dtsi"
11 #include "k1-pinctrl.dtsi"
12
13 / {
14 model = "SpacemiT MusePi Pro";
15 compatible = "spacemit,musepi-pro", "spacemit,k1";
16
17 aliases {
18 ethernet0 = &eth0;
19 serial0 = &uart0;
20 };
21
22 chosen {
23 stdout-path = "serial0";
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 led1 {
30 label = "sys-led";
31 gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
32 linux,default-trigger = "heartbeat";
33 default-state = "on";
34 };
35 };
36 };
37
38 &emmc {
39 bus-width = <8>;
40 mmc-hs400-1_8v;
41 mmc-hs400-enhanced-strobe;
42 non-removable;
43 no-sd;
44 no-sdio;
45 status = "okay";
46 };
47
48 &eth0 {
49 phy-handle = <&rgmii0>;
50 phy-mode = "rgmii-id";
51 pinctrl-0 = <&gmac0_cfg>;
52 pinctrl-names = "default";
53 rx-internal-delay-ps = <0>;
54 tx-internal-delay-ps = <0>;
55 status = "okay";
56
57 mdio-bus {
58 #address-cells = <0x1>;
59 #size-cells = <0x0>;
60
61 reset-gpios = <&gpio K1_GPIO(110) GPIO_ACTIVE_LOW>;
62 reset-delay-us = <10000>;
63 reset-post-delay-us = <100000>;
64
65 rgmii0: phy@1 {
66 reg = <0x1>;
67 };
68 };
69 };
70
71 &pdma {
72 status = "okay";
73 };
74
75 &uart0 {
76 pinctrl-0 = <&uart0_2_cfg>;
77 pinctrl-names = "default";
78 status = "okay";
79 };