rk3588s 平台配置 AP6275 芯片,请提供配置DTS文件,采用UART9
时间: 2024-03-27 16:39:19 浏览: 179
以下是一个可能的DTS配置文件,用于在rk3588s平台上配置AP6275芯片,采用UART9接口:
```
/dts-v1/;
/plugin/;
/ {
model = "rk3588s-ap6275";
compatible = "rockchip,rk3588s", "rockchip,rk3588";
chosen {
bootargs = "console=ttyS9,115200n8 root=/dev/mmcblk0p1 rw rootwait earlycon";
};
memory@60000000 {
device_type = "memory";
reg = <0x0 0x60000000 0x0 0x80000000>;
};
chosen {
bootargs = "console=ttyS9,115200n8 root=/dev/mmcblk0p1 rw rootwait earlycon";
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
ap6275_reserved: ap6275_reserved@0 {
reg = <0x0 0xff000000 0x0 0x400000>;
no-map;
linux,phandle = <&ap6275_reserved>;
phandle = <&ap6275_reserved>;
};
};
aliases {
serial9 = "/soc/serial@f7300000";
};
soc {
#address-cells = <2>;
#size-cells = <2>;
compatible = "simple-bus";
ranges;
serial@f7300000 {
compatible = "snps,dw-apb-uart";
reg = <0xf7300000 0x1000>;
interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru UART9_CLK>;
clock-names = "uart_clk";
status = "okay";
};
};
&serial9 {
status = "okay";
};
&mmc {
status = "okay";
vmmc-supply = <&vcc_3v3>;
pinctrl-0 = <&emmc_clk_4bit>;
pinctrl-names = "default";
bus-width = <4>;
max-frequency = <200000000>;
non-removable;
assigned-clocks = <&cru EMMC_CLK>;
assigned-clock-rates = <200000000>;
status = "okay";
};
&mmc_phy {
status = "okay";
};
&sdhci {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&sdcard_clk>;
bus-width = <8>;
max-frequency = <200000000>;
non-removable;
vmmc-supply = <&vcc_3v3>;
};
&sdcard_clk {
rockchip,pins = <10 14 RK_FUNC_2 &pcfg_pull_none>;
};
&i2c2 {
status = "okay";
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&i2c2_mclk>;
};
&i2c2_mclk {
rockchip,pins = <11 12 RK_FUNC_1 &pcfg_pull_none>;
};
};
```
请注意,这只是一个参考配置文件,具体的配置可能会因为具体的硬件配置而有所不同。另外,这个配置文件并没有包含AP6275的具体配置信息,你需要在你的设备上根据实际情况进行配置。
阅读全文