2021-07-05 C rv1126 DTS设备树详细说明

1/kernel/arch/arm/configs 直接添加或修改增加内核驱动

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

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按键等。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值