rv1126EVB板的设备树
时间: 2023-10-24 07:09:10 浏览: 235
韦-设备树,自己留着的,可以可以
rv1126EVB是一款基于瑞芯微rv1126芯片的开发板,设备树文件一般位于 `/arch/arm64/boot/dts/rockchip/` 目录下,名为 `rockchip-rv1126-evb.dts`。
以下是该设备树文件的部分内容:
```
/ {
model = "Rockchip RV1126 EVB Board";
compatible = "rockchip,rv1126-evb", "rockchip,rv1126", "rockchip,rk1808";
chosen {
bootargs = "root=/dev/mmcblk1p2 rw rootwait console=ttyS2,1500000n8 earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 coherent_pool=1m cgroup_enable=memory swapaccount=1 panic=10 consoleblank=0";
stdout-path = "serial@ff1a0000:1500000";
};
memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
};
chosen {
bootargs = "console=ttyS2,1500000n8 earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 coherent_pool=1m cgroup_enable=memory swapaccount=1 panic=10 consoleblank=0";
};
uart2: serial@ff1a0000 {
status = "okay";
};
mmcblk1: mmc@fe320000 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_pins_a>;
bus-width = <4>;
vmmc-supply = <&vcc_io>;
vqmmc-supply = <&vcc_sd>;
cd-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
max-frequency = <150000000>;
cap-sd-highspeed;
cap-mmc-highspeed;
disable-wp;
assigned-clocks = <&cru SCLK_EMMC>;
assigned-clock-rates = <200000000>;
status = "okay";
};
sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "rv1126-evb";
simple-audio-card,bitclock-master = <&i2s1>;
simple-audio-card,frame-master = <&i2s1>;
i2s1: i2s-controller@ff140000 {
compatible = "rockchip,rv1126-i2s";
reg = <0x0 0xff140000 0x0 0x1000>;
rockchip,grf = <&syscon>;
rockchip,audio-codec = <&wm8960>;
#sound-dai-cells = <0>;
#sound-dai-cpu = <&cpu_dai>;
#sound-dai-codec = <&codec_dai>;
};
cpu_dai: simple-audio-card,cpu {
sound-dai-name = "rv1126-i2s-hifi";
sound-dai-codec = <&codec_dai>;
sound-dai-tdm-slot-num = <2>;
sound-dai-tdm-slot-width = <16>;
sound-dai-tdm-slot-offset = <0>;
sound-dai-tdm-slot-out = <1>;
};
codec_dai: simple-audio-card,codec {
sound-dai-name = "wm8960-hifi";
sound-dai-tdm-slot-num = <2>;
sound-dai-tdm-slot-width = <16>;
sound-dai-tdm-slot-offset = <0>;
sound-dai-tdm-slot-in = <1>;
};
wm8960: codec {
compatible = "wlf,wm8960";
reg = <0x1a>;
reset-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>;
clocking = "mclk";
#sound-dai-cells = <0>;
#sound-dai-codec = <&codec_dai>;
#sound-dai-tdm-slot-num = <2>;
#sound-dai-tdm-slot-width = <16>;
#sound-dai-tdm-slot-offset = <0>;
#sound-dai-tdm-slot-in = <1>;
#sound-dai-tdm-slot-out = <1>;
#sound-dai-bitclock-inversion;
#sound-dai-frame-inversion;
};
};
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
button@1 {
label = "gpio_key1";
gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
linux,code = <116>;
debounce-interval = <30>;
wakeup-source;
};
button@2 {
label = "gpio_key2";
gpios = <&gpio4 3 GPIO_ACTIVE_LOW>;
linux,code = <115>;
debounce-interval = <30>;
wakeup-source;
};
};
};
```
该设备树文件包含了关于该开发板上的各种硬件设备的信息和配置,如串口、MMC、I2S音频、GPIO按键等。
阅读全文