Skip to content

Commit cf7411f

Browse files
vidplace7igorpecovnik
authored andcommitted
arch: arm: dts: add Luckfox Lyra Ultra W
1 parent dd1b791 commit cf7411f

File tree

2 files changed

+215
-0
lines changed

2 files changed

+215
-0
lines changed

arch/arm/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
12281228
rk3506b-armsom-forge1.dtb \
12291229
rk3506b-evb1-v10.dtb \
12301230
rk3506b-test2-v10.dtb \
1231+
rk3506b-luckfox-lyra-ultra-w.dtb \
12311232
rk3506b-luckfox-lyra-zero-w-sd.dtb \
12321233
rk3506g-demo-display-control.dtb \
12331234
rk3506g-evb1-v10.dtb \
Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "rk3506-luckfox-lyra-ultra.dtsi"
9+
10+
/ {
11+
model = "Luckfox Lyra Ultra W";
12+
compatible = "rockchip,rk3506g-demo-display-control", "rockchip,rk3506";
13+
14+
//acodec_sound: acodec-sound {
15+
// compatible = "simple-audio-card";
16+
// simple-audio-card,name = "rockchip-acodec-sound";
17+
// simple-audio-card,format = "i2s";
18+
// simple-audio-card,mclk-fs = <1024>;
19+
// simple-audio-card,bitclock-master = <&codec_master>;
20+
// simple-audio-card,frame-master = <&codec_master>;
21+
// simple-audio-card,cpu {
22+
// sound-dai = <&sai4>;
23+
// };
24+
// codec_master: simple-audio-card,codec {
25+
// sound-dai = <&audio_codec>;
26+
// };
27+
//};
28+
29+
dsm_sound: dsm-sound {
30+
status = "okay";
31+
compatible = "simple-audio-card";
32+
simple-audio-card,format = "i2s";
33+
simple-audio-card,mclk-fs = <256>;
34+
simple-audio-card,name = "rockchip-dsm-sound";
35+
simple-audio-card,bitclock-master = <&dsm_master>;
36+
simple-audio-card,frame-master = <&dsm_master>;
37+
simple-audio-card,cpu {
38+
sound-dai = <&sai3>;
39+
};
40+
dsm_master: simple-audio-card,codec {
41+
sound-dai = <&acdcdig_dsm>;
42+
};
43+
};
44+
45+
wireless_bluetooth: wireless-bluetooth {
46+
compatible = "bluetooth-platdata";
47+
BT,power_gpio = <&gpio1 RK_PC5 GPIO_ACTIVE_HIGH>;
48+
status = "okay";
49+
};
50+
51+
vcc3v3_lcd: vcc3v3-lcd {
52+
status = "okay";
53+
compatible = "regulator-fixed";
54+
pinctrl-names = "default";
55+
pinctrl-0 = <&lcd_pwren_h>;
56+
regulator-name = "vcc3v3_lcd";
57+
regulator-always-on;
58+
};
59+
};
60+
61+
/**********media**********/
62+
&mmc{
63+
/* For eMMC */
64+
max-frequency = <52000000>;
65+
mmc-ddr-1_8v;
66+
bus-width = <4>;
67+
supports-emmc;
68+
cap-mmc-highspeed;
69+
disable-wp;
70+
//no-sd;
71+
//no-sdio;
72+
non-removable;
73+
pinctrl-names = "default";
74+
pinctrl-0 = <&sdmmc_clk_pins &sdmmc_cmd_pins &sdmmc_bus4_pins>;
75+
status = "okay";
76+
};
77+
78+
&fspi {
79+
status = "okay";
80+
81+
flash@0 {
82+
compatible = "spi-nand";
83+
reg = <0>;
84+
spi-max-frequency = <80000000>;
85+
spi-rx-bus-width = <4>;
86+
spi-tx-bus-width = <1>;
87+
};
88+
};
89+
90+
/**********display**********/
91+
&cma {
92+
size = <0x400000>;
93+
};
94+
95+
&dsi {
96+
status = "okay";
97+
};
98+
99+
&dsi_dphy {
100+
status = "okay";
101+
};
102+
103+
&dsi_in_vop {
104+
status = "okay";
105+
};
106+
107+
&route_dsi {
108+
status = "okay";
109+
};
110+
111+
&dsi_panel {
112+
power-supply = <&vcc3v3_lcd>;
113+
};
114+
115+
/**********ethernet**********/
116+
&gmac1 {
117+
phy-mode = "rmii";
118+
clock_in_out = "output";
119+
120+
snps,reset-gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
121+
snps,reset-active-low;
122+
snps,reset-delays-us = <0 20000 100000>;
123+
124+
pinctrl-names = "default";
125+
pinctrl-0 = <&eth_rmii1_miim_pins &eth_rmii1_tx_bus2_pins &eth_rmii1_rx_bus2_pins &eth_rmii1_clk_pins>;
126+
127+
phy-handle = <&rmii_phy1>;
128+
status = "okay";
129+
};
130+
131+
&mdio1 {
132+
rmii_phy1: phy@1 {
133+
compatible = "ethernet-phy-ieee802.3-c22";
134+
reg = <0x1>;
135+
};
136+
};
137+
138+
/**********usb**********/
139+
&usb20_otg0 {
140+
dr_mode = "host";
141+
status = "okay";
142+
};
143+
144+
&usb20_otg1 {
145+
dr_mode = "host";
146+
status = "okay";
147+
};
148+
149+
/**********audio**********/
150+
&sai4 {
151+
status = "okay";
152+
};
153+
154+
&audio_codec {
155+
status = "okay";
156+
};
157+
158+
&sai3 {
159+
status = "okay";
160+
pinctrl-names = "default";
161+
pinctrl-0 = <&sai3_mclk_pins>;
162+
};
163+
164+
&acdcdig_dsm {
165+
rockchip,dsm-audm-en = <0x2>; // 0x2: enable dsm1
166+
pa-ctl-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>;
167+
status = "okay";
168+
};
169+
170+
/**********rtc**********/
171+
&i2c2 {
172+
tcs8563: tcs8563@51 {
173+
status = "okay";
174+
compatible = "nxp,pcf8563";
175+
reg = <0x51>;
176+
#clock-cells = <0>;
177+
};
178+
};
179+
180+
/**********pinctrl**********/
181+
&pinctrl {
182+
lcd {
183+
lcd_pwren_h: lcd-pwren-h {
184+
rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
185+
};
186+
};
187+
188+
acodec-dsm {
189+
/omit-if-no-ref/
190+
dsm_spk_ctrl: dsm-spk-ctrl {
191+
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
192+
};
193+
};
194+
195+
dsm_aud {
196+
/omit-if-no-ref/
197+
dsm_audm1_pins: dsm-audm1-pins {
198+
rockchip,pins =
199+
/* dsm_aud_rn_m1 */
200+
<2 RK_PB4 2 &pcfg_pull_none>,
201+
/* dsm_aud_rp_m1 */
202+
<2 RK_PB5 2 &pcfg_pull_none>;
203+
};
204+
205+
/omit-if-no-ref/
206+
dsm_audm1_iodown_pins: dsm-audm1-iodown-pins {
207+
rockchip,pins =
208+
/* dsm_aud_rn_m1 */
209+
<2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>,
210+
/* dsm_aud_rp_m1 */
211+
<2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
212+
};
213+
};
214+
};

0 commit comments

Comments
 (0)