1、属性值配置:
- compa
tible : "rk312x-spdif"
- reg: 设置audio的寄存器物理基地址,以及寄存器的空间大小;
- clocks: 设置3128 spdif audio时钟,与clock-names 一一对应;
- clocks-names: 设置时钟名称;
- interrupts: 设置audio codec的中断;
- dmas: 设置audio codec的dma;
- dma-names: 设置dma的名称;
- pinctrl-names: 设置为 default;
- pinctrl-0: 设置与audio codec相关的pin脚;
2、以rk3128为例:
Example:
spdif: spdif@10204000 {
compatible = "rk312x-spdif";
reg = <0x10204000 0x1000>;
clocks = , ;
clock-names = "spdif_8ch_mclk", "spdif_hclk";
interrupts = ;
dmas = ;
//#dma-cells = <1>;
dma-names = "tx";
pinctrl-names = "default";
pinctrl-0 = ;
};
原作者:帅小伙-路飞