[PATCH 3/3 v5] ASoC: simple-card: add Device Tree support

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed Feb 13 12:13:46 EST 2013


Hi Stephen

> > +- simple-audio,[prefix],bitclock-inversion	: if CPU/CODEC needs clock inversion
> > +- simple-audio,[prefix],frame-inversion		: if CPU/CODEC needs frame inversion
> > +- simple-audio,[prefix],system-clock-frequency	: system clock rate for each CPU/CODEC
> 
> I know Mark had a preference to store DAI-specific data in sub-nodes
> rather than using this "[prefix]" thing... If that doesn't end up
> happening though, rather than "[prefix],", I think it'd be more typical
> to use "[prefix]-" since I've never seen a DT property name with two
> ","; "-" is typically used as the word separator in DT property names.

Hmm...
If I can use sub-node, I can use below style for getting dai name ?
I guess it is easy/simple, but, what do you think about this ?

sound {

	ak4642-hifi {
		simple-audio,codec;
		simple-audio,dev = <&ak4642>;
		...
	}
	fsia-dai {
		simple-audio,cpu;
		simple-audio,dev = <&sh_fsi2>;
		...
	}
}


Best regards
---
Kuninori Morimoto


More information about the devicetree-discuss mailing list