hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
 */
 
#include "rv1106-evb.dtsi"
 
/ {
   chosen {
       bootargs = "earlycon=uart8250,mmio32,0xff4c0000 console=ttyFIQ0 root=/dev/mmcblk0p5 rootfstype=ext4 rootwait snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0";
   };
 
   acodec_sound: acodec-sound {
       compatible = "simple-audio-card";
       simple-audio-card,name = "rv1103-acodec";
       simple-audio-card,format = "i2s";
       simple-audio-card,mclk-fs = <256>;
       simple-audio-card,cpu {
           sound-dai = <&i2s0_8ch>;
       };
       simple-audio-card,codec {
           sound-dai = <&acodec>;
       };
   };
 
   vdd_arm: vdd-arm {
       compatible = "pwm-regulator";
       pwms = <&pwm0 0 5000 1>;
       regulator-name = "vdd_arm";
       regulator-min-microvolt = <724000>;
       regulator-max-microvolt = <1078000>;
       regulator-init-microvolt = <950000>;
       regulator-always-on;
       regulator-boot-on;
       regulator-settling-time-up-us = <250>;
   };
};
 
&acodec {
   #sound-dai-cells = <0>;
   pa-ctl-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
   status = "okay";
};
 
&cpu0 {
   cpu-supply = <&vdd_arm>;
};
 
&emmc {
   bus-width = <4>;
   cap-mmc-highspeed;
   non-removable;
   mmc-hs200-1_8v;
   rockchip,default-sample-phase = <90>;
   no-sdio;
   no-sd;
   status = "okay";
};
 
&i2c4 {
   status = "okay";
   clock-frequency = <400000>;
   pinctrl-names = "default";
   pinctrl-0 = <&i2c4m2_xfer>;
};
 
&i2s0_8ch {
   #sound-dai-cells = <0>;
   status = "okay";
};
 
&pwm0 {
   status = "okay";
};
 
&sdmmc {
   max-frequency = <50000000>;
   no-sdio;
   no-mmc;
   bus-width = <4>;
   cap-mmc-highspeed;
   cap-sd-highspeed;
   disable-wp;
   pinctrl-names = "normal", "idle";
   pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>;
   pinctrl-1 = <&sdmmc0_idle_pins &sdmmc0_det>;
   status = "okay";
};
 
&sfc {
   status = "okay";
 
   flash@0 {
       compatible = "jedec,spi-nor";
       reg = <0>;
       spi-max-frequency = <80000000>;
       spi-rx-bus-width = <4>;
       spi-tx-bus-width = <1>;
   };
};