RK3288 Android7.1 PMU RK808 调试

平台:Rockchip
CPU:RK3288
PMU:RK808-B

SDIO
SDIO是在SD内存卡接口的基础上发展起来的外设接口,SDIO接口兼容以前的SD内存卡,并且可以连接SDIO接口的设备,目前根据SDIO协议的SPEC,SDIO接口支持的设备总类有蓝牙,网卡,电视卡等

SDMMC
经过我在百度上面的苦苦搜寻,关于SDMMC的总结如下:没有SDMMC卡或者是SDMMC接口,资料上出现SDMMC可能要表达的意思是SD/MMC,或者SDMMC是数字安全记忆卡(Secure Digital Memory Card)的简称,即SDMMC就是SD卡

 

一.RK808

1.kernel\arch\arm\boot\dts\rk3288-tb_zk_r32f.dts

1
2
3
4
5
6
/dts-v1/;
#include "rk3288-evb.dtsi"
#include "rk3288-android.dtsi"
 
/ {
    compatible = "rockchip,rk3288-evb-android-rk808-edp", "rockchip,rk3288";

rk808

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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
&i2c0 {
    clock-frequency = <400000>;
 
    hym8563: hym8563@51 {
        compatible = "haoyu,hym8563";
        reg = <0x51>;
 
        interrupt-parent = <&gpio0>;
        interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
 
        pinctrl-names = "default";
        pinctrl-0 = <&rtc_int>;
         
        clock-frequency = <32768>;
        #clock-cells = <0>;
        clock-output-names = "xin32k_1";
    };
    rk808: pmic@1b {
        compatible = "rockchip,rk808";
        reg = <0x1b>;
        interrupt-parent = <&gpio0>;
        interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
        pinctrl-names = "default";
        pinctrl-0 = <&pmic_int &global_pwroff>;
        rockchip,system-power-controller;
        wakeup-source;
        #clock-cells = <1>;
        clock-output-names = "rk808-clkout1", "rk808-clkout2";
        pmu_en_flag = <&gpio7 4 GPIO_ACTIVE_HIGH>;
        red_led_gpio    = <&gpio8 3 GPIO_ACTIVE_HIGH>;
        blue_led_gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
         
        extern_drv_gpio=<&gpio7 2 GPIO_ACTIVE_HIGH>;
        hub_rst_gpio= <&gpio2 2 GPIO_ACTIVE_HIGH>;
         
        vcc1-supply = <&vcc_sys>;
        vcc2-supply = <&vcc_sys>;
        vcc3-supply = <&vcc_sys>;
        vcc4-supply = <&vcc_sys>;
        vcc6-supply = <&vcc_sys>;
        vcc8-supply = <&vcc_io>;
        vcc9-supply = <&vcc_io>;
        vcc12-supply = <&vcc_io>;
        vddio-supply = <&vcc_io>;
 
        regulators {
            vdd_cpu: DCDC_REG1 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <750000>;
                regulator-max-microvolt = <1400000>;
                regulator-name = "vdd_arm";
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
 
            vdd_gpu: DCDC_REG2 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <850000>;
                regulator-max-microvolt = <1250000>;
                regulator-name = "vdd_gpu";
                regulator-ramp-delay = <6000>;
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
 
            vcc_ddr: DCDC_REG3 {
                regulator-always-on;
                regulator-boot-on;
                regulator-name = "vcc_ddr";
                regulator-state-mem {
                    regulator-on-in-suspend;
                };
            };
 
            vcc_io: DCDC_REG4 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                regulator-name = "vcc_io";
                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = <3300000>;
                };
            };
 
            vcc_tp: LDO_REG1 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                regulator-name = "vcc_tp";
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
 
            vcca_codec: LDO_REG2 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                regulator-name = "vcca_codec";
                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = <3300000>;
                };
            };
 
            vdd_10: LDO_REG3 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <1000000>;
                regulator-max-microvolt = <1000000>;
                regulator-name = "vdd_10";
                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = <1000000>;
                };
            };
 
            vcc_wl: LDO_REG4 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
                regulator-name = "vcc_wl";
                regulator-state-mem {
                    regulator-on-in-suspend;
                };
            };
 
            vccio_sd: LDO_REG5 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <3300000>;
                regulator-name = "vccio_sd";
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
 
            vdd10_lcd: LDO_REG6 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <1000000>;
                regulator-max-microvolt = <1000000>;
                regulator-name = "vdd10_lcd";
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
 
            vcc_18: LDO_REG7 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
                regulator-name = "vcc_18";
                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = <1800000>;
                };
            };
 
            vcc18_lcd: LDO_REG8 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
                regulator-name = "vcc18_lcd";
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
 
            vcc_sd: SWITCH_REG1 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                regulator-name = "vcc_sd";
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
 
            vcc_lcd: SWITCH_REG2 {
                regulator-always-on;
                regulator-boot-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                regulator-name = "vcc_lcd";
                regulator-state-mem {
                    regulator-off-in-suspend;
                };
            };
        };
    };
};

 编译

 

2.kernel\arch\arm\boot\dts\rk3288-evb.dtsi

vcc_sd1  sdmmc

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
    vcc_sd1: sdmmc-regulator {
        compatible = "regulator-fixed";
        pinctrl-names = "default";
        pinctrl-0 = <&sdmmc_pwr>;
        regulator-name = "vcc_sd1";
        regulator-min-microvolt = <3300000>;
        regulator-max-microvolt = <3300000>;
        startup-delay-us = <100000>;
        vin-supply = <&vcc_io>;
    };
 
 
&sdmmc {
    supports-sd;
    bus-width = <4>;
    cap-mmc-highspeed;
    sd-uhs-sdr12;
    sd-uhs-sdr25;
    sd-uhs-sdr50;
    sd-uhs-sdr104;
    cap-sd-highspeed;
    card-detect-delay = <200>;
    disable-wp;         /* wp not hooked up */
    num-slots = <1>;
    pinctrl-names = "default";
    pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
    status = "okay";
    vmmc-supply = <&vcc_sd1>;
    vqmmc-supply = <&vccio_sd>;
    supports-sd;
};

  

  

posted @   CrushGirl  阅读(617)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
历史上的今天:
2021-03-25 RK3288 recovery ota升级包
点击右上角即可分享
微信分享提示