给一份rk3288-evb-android-act8846-edp.dtssd卡启动的修改
时间: 2023-08-05 18:06:31 浏览: 176
rk3288-evb.rar_RK3288_RK3288 USB
以下是一份针对RK3288-EVB-Android SDK的DTS文件修改示例,可以实现SD卡启动:
```
/dts-v1/;
/plugin/;
/ {
model = "Rockchip RK3288-EVB board";
compatible = "rockchip,rk3288-evb";
memory@60000000 {
device_type = "memory";
reg = <0x60000000 0x40000000>;
};
chosen {
bootargs = "console=ttyS2,115200n8 root=/dev/mmcblk1p2 rw rootwait earlyprintk";
stdout-path = &uart2;
};
uart2: serial@11004000 {
compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
reg = <0x11004000 0x1000>;
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&uart2_clk>;
clock-names = "uartclk";
status = "okay";
};
sdhci@11014000 {
compatible = "rockchip,rk3288-dw-mshc";
reg = <0x11014000 0x1000>;
interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_SDMMC>, <&cru PCLK_SDMMC>;
clock-names = "sdmmc", "apb_pclk";
pinctrl-names = "default";
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4 &sdmmc_bus8 &sdmmc_cd_n>;
status = "okay";
mmc-slot@0 {
reg = <0>;
bus-width = <8>;
cd-gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
non-removable;
status = "okay";
};
};
&dpu {
status = "okay";
};
&lcdc {
status = "okay";
};
&backlight {
status = "okay";
};
&act8846_reg {
status = "okay";
};
&i2c1 {
status = "okay";
act8846: act8846@5b {
compatible = "active-semi,act8846";
reg = <0x5b>;
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&gpio2>;
interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
status = "okay";
};
};
&mmc {
status = "okay";
};
&mmc1 {
status = "okay";
};
&mmc2 {
status = "okay";
};
&mmc3 {
status = "okay";
};
&mmc4 {
status = "okay";
};
&sdmmc_clk {
rockchip,pins = <RK_GPIO3 8 RK_FUNC_2 &pcfg_pull_none>;
};
&sdmmc_cmd {
rockchip,pins = <RK_GPIO3 9 RK_FUNC_2 &pcfg_pull_none>;
};
&sdmmc_bus4 {
rockchip,pins = <RK_GPIO3 10 RK_FUNC_2 &pcfg_pull_none>;
};
&sdmmc_bus8 {
rockchip,pins = <RK_GPIO3 11 RK_FUNC_2 &pcfg_pull_none>;
};
&sdmmc_cd_n {
rockchip,pins = <RK_GPIO7 3 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
```
此外,你还需要在编译内核时加入SD卡启动相关的配置选项。具体方法可以参考RK3288-Android SDK的文档。
阅读全文