Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3568-qnap-ts233.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
4 * Copyright (c) 2024 Heiko Stuebner <[email protected]>
5 */
6
7 /dts-v1/;
8
9 #include "rk3568.dtsi"
10 #include "rk3568-qnap-tsx33.dtsi"
11
12 / {
13 model = "Qnap TS-233-2G NAS System 2-Bay";
14 compatible = "qnap,ts233", "rockchip,rk3568";
15
16 aliases {
17 ethernet0 = &gmac0;
18 };
19 };
20
21 /* Connected to usb_host0_xhci */
22 &combphy0 {
23 status = "okay";
24 };
25
26 &gmac0 {
27 assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
28 assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>;
29 assigned-clock-rates = <0>, <125000000>;
30 clock_in_out = "output";
31 phy-handle = <&rgmii_phy0>;
32 phy-mode = "rgmii-id";
33 pinctrl-names = "default";
34 pinctrl-0 = <&gmac0_miim
35 &gmac0_tx_bus2
36 &gmac0_rx_bus2
37 &gmac0_rgmii_clk
38 &gmac0_rgmii_bus>;
39 status = "okay";
40 };
41
42 &i2c1 {
43 /* eeprom for vital-product-data on the backplane */
44 eeprom@56 {
45 compatible = "giantec,gt24c04a", "atmel,24c04";
46 reg = <0x56>;
47 label = "VPD_BP";
48 num-addresses = <2>;
49 pagesize = <16>;
50 read-only;
51 };
52 };
53
54 &keys {
55 pinctrl-names = "default";
56 pinctrl-0 = <&copy_button_pin>, <&reset_button_pin>;
57
58 key-copy {
59 label = "copy";
60 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_COPY>;
62 };
63 };
64
65 &leds {
66 led-1 {
67 color = <LED_COLOR_ID_GREEN>;
68 function = LED_FUNCTION_DISK;
69 gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
70 label = "hdd2:green:disk";
71 linux,default-trigger = "disk-activity";
72 pinctrl-names = "default";
73 pinctrl-0 = <&hdd2_led_pin>;
74 };
75 };
76
77 &mcu {
78 compatible = "qnap,ts233-mcu";
79 };
80
81 &mdio0 {
82 rgmii_phy0: ethernet-phy@3 {
83 /* Motorcomm YT8521 phy */
84 compatible = "ethernet-phy-ieee802.3-c22";
85 reg = <0x3>;
86 pinctrl-0 = <&eth_phy0_reset_pin>;
87 pinctrl-names = "default";
88 reset-assert-us = <10000>;
89 reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
90 };
91 };
92
93 &pinctrl {
94 gmac0 {
95 eth_phy0_reset_pin: eth-phy0-reset-pin {
96 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
97 };
98 };
99
100 leds {
101 hdd2_led_pin: hdd2-led-pin {
102 rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
103 };
104 };
105 };
106
107 &sata1 {
108 status = "okay";
109 };
110
111 &usb2phy1 {
112 status = "okay";
113 };
114
115 /* connected to usb_host1_ehci/ohci */
116 &usb2phy1_host {
117 phy-supply = <&vcc5v0_host>;
118 status = "okay";
119 };
120
121 /* connected to usb_host0_ehci/ohci */
122 &usb2phy1_otg {
123 phy-supply = <&vcc5v0_host>;
124 status = "okay";
125 };
126
127 /* right port backside */
128 &usb_host0_ehci {
129 status = "okay";
130 };
131
132 &usb_host0_ohci {
133 status = "okay";
134 };
135
136 /* left port backside */
137 &usb_host1_ehci {
138 status = "okay";
139 };
140
141 &usb_host1_ohci {
142 status = "okay";
143 };