Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3528-rock-2a.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3 /dts-v1/;
4
5 #include "rk3528-rock-2.dtsi"
6
7 / {
8 model = "Radxa ROCK 2A";
9 compatible = "radxa,rock-2a", "rockchip,rk3528";
10
11 aliases {
12 ethernet0 = &gmac1;
13 };
14
15 vcc5v0_usb30_otg: regulator-5v0-vcc-usb30-otg {
16 compatible = "regulator-fixed";
17 enable-active-high;
18 gpios = <&gpio1 RK_PC3 GPIO_ACTIVE_HIGH>;
19 pinctrl-names = "default";
20 pinctrl-0 = <&usb_otg_en>;
21 regulator-name = "vcc5v0_usb30_otg";
22 regulator-min-microvolt = <5000000>;
23 regulator-max-microvolt = <5000000>;
24 vin-supply = <&vcc5v0_sys>;
25 };
26 };
27
28 &gmac1 {
29 clock_in_out = "output";
30 phy-handle = <&rgmii_phy>;
31 phy-mode = "rgmii-id";
32 phy-supply = <&vcc_3v3>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&rgmii_miim>, <&rgmii_tx_bus2>, <&rgmii_rx_bus2>,
35 <&rgmii_rgmii_clk>, <&rgmii_rgmii_bus>;
36 status = "okay";
37 };
38
39 &leds {
40 pinctrl-names = "default";
41 pinctrl-0 = <&state_led_b>, <&sys_led_g>;
42
43 led-1 {
44 color = <LED_COLOR_ID_GREEN>;
45 default-state = "on";
46 function = LED_FUNCTION_STATUS;
47 gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 &mdio1 {
52 rgmii_phy: ethernet-phy@1 {
53 compatible = "ethernet-phy-ieee802.3-c22";
54 reg = <0x1>;
55 pinctrl-names = "default";
56 pinctrl-0 = <&gmac1_rstn_l>;
57 reset-assert-us = <20000>;
58 reset-deassert-us = <100000>;
59 reset-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 &pinctrl {
64 ethernet {
65 gmac1_rstn_l: gmac1-rstn-l {
66 rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
67 };
68 };
69
70 leds {
71 sys_led_g: sys-led-g {
72 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
73 };
74 };
75
76 usb {
77 usb_otg_en: usb-otg-en {
78 rockchip,pins = <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
79 };
80 };
81 };