* [PATCH] ARM: dts: am4372: Add McASP nodes @ 2013-10-21 9:45 Peter Ujfalusi [not found] ` <1382348758-1083-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Peter Ujfalusi @ 2013-10-21 9:45 UTC (permalink / raw) To: Benoit Cousson, Tony Lindgren Cc: linux-omap, linux-arm-kernel, devicetree, linux-kernel, Jyri Sarha Add nodes for McASP0 and McASP1 for AM43xx. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index c328d5c..defaad1 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi @@ -633,5 +633,32 @@ dma-names = "tx", "rx"; }; + mcasp0: mcasp@48038000 { + compatible = "ti,am33xx-mcasp-audio"; + ti,hwmods = "mcasp0"; + reg = <0x48038000 0x2000>, + <0x46000000 0x400000>; + reg-names = "mpu", "dat"; + interrupts = <80>, <81>; + interrupts-names = "tx", "rx"; + status = "disabled"; + dmas = <&edma 8>, + <&edma 9>; + dma-names = "tx", "rx"; + }; + + mcasp1: mcasp@4803C000 { + compatible = "ti,am33xx-mcasp-audio"; + ti,hwmods = "mcasp1"; + reg = <0x4803C000 0x2000>, + <0x46400000 0x400000>; + reg-names = "mpu", "dat"; + interrupts = <82>, <83>; + interrupts-names = "tx", "rx"; + status = "disabled"; + dmas = <&edma 10>, + <&edma 11>; + dma-names = "tx", "rx"; + }; }; }; -- 1.8.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <1382348758-1083-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH] ARM: dts: am4372: Add McASP nodes [not found] ` <1382348758-1083-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2013-10-21 19:01 ` Sergei Shtylyov 2013-10-22 7:46 ` Peter Ujfalusi 0 siblings, 1 reply; 4+ messages in thread From: Sergei Shtylyov @ 2013-10-21 19:01 UTC (permalink / raw) To: Peter Ujfalusi, Benoit Cousson, Tony Lindgren Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA, Jyri Sarha, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hello. On 10/21/2013 01:45 PM, Peter Ujfalusi wrote: > Add nodes for McASP0 and McASP1 for AM43xx. > Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> > --- > arch/arm/boot/dts/am4372.dtsi | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi > index c328d5c..defaad1 100644 > --- a/arch/arm/boot/dts/am4372.dtsi > +++ b/arch/arm/boot/dts/am4372.dtsi > @@ -633,5 +633,32 @@ > dma-names = "tx", "rx"; > }; > > + mcasp0: mcasp@48038000 { According to ePAPR spec [1], "the name of a node should be somewhat generic, reflecting the function of the device and not its precise programming model". In this case probably "sound"? [1] http://www.power.org/resources/downloads/Power_ePAPR_APPROVED_v1.0.pdf WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: dts: am4372: Add McASP nodes 2013-10-21 19:01 ` Sergei Shtylyov @ 2013-10-22 7:46 ` Peter Ujfalusi 2013-10-22 8:33 ` Benoit Cousson 0 siblings, 1 reply; 4+ messages in thread From: Peter Ujfalusi @ 2013-10-22 7:46 UTC (permalink / raw) To: Sergei Shtylyov, Benoit Cousson, Tony Lindgren Cc: linux-arm-kernel, devicetree, linux-omap, linux-kernel, Jyri Sarha Hi, On 10/21/2013 10:01 PM, Sergei Shtylyov wrote: >> diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi >> index c328d5c..defaad1 100644 >> --- a/arch/arm/boot/dts/am4372.dtsi >> +++ b/arch/arm/boot/dts/am4372.dtsi >> @@ -633,5 +633,32 @@ >> dma-names = "tx", "rx"; >> }; >> >> + mcasp0: mcasp@48038000 { > > According to ePAPR spec [1], "the name of a node should be somewhat > generic, reflecting the function of the device and not its > precise programming model". In this case probably "sound"? We use the 'sound' node name for the sound card itself. The case with McASP is a bit complicated. It can operate in I2S mode (and similar protocols like RJM, LJM, TDM) or it can interface with S/PDIF, IEC60958-1, AES-3 codecs. The mode we put McASP depends on the external components, so the same McASP can be used in I2S mode in one board while on the other it can be S/PDIF. It would have been convenient if I could use 'i2s' as node name but it is not true for McASP (Tegra, Exynos for example have I2S, AC97, S/PDIF as separate IP). IMHO the 'mcasp' is still the best node name for this IP. McASP stands for: 'Multichannel Audio Serial Port' and this is pretty much what McASP is. -- Péter ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: dts: am4372: Add McASP nodes 2013-10-22 7:46 ` Peter Ujfalusi @ 2013-10-22 8:33 ` Benoit Cousson 0 siblings, 0 replies; 4+ messages in thread From: Benoit Cousson @ 2013-10-22 8:33 UTC (permalink / raw) To: Peter Ujfalusi, Sergei Shtylyov, Tony Lindgren Cc: devicetree, linux-omap, Jyri Sarha, linux-kernel, linux-arm-kernel On 22/10/2013 09:46, Peter Ujfalusi wrote: > Hi, > > On 10/21/2013 10:01 PM, Sergei Shtylyov wrote: > >>> diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi >>> index c328d5c..defaad1 100644 >>> --- a/arch/arm/boot/dts/am4372.dtsi >>> +++ b/arch/arm/boot/dts/am4372.dtsi >>> @@ -633,5 +633,32 @@ >>> dma-names = "tx", "rx"; >>> }; >>> >>> + mcasp0: mcasp@48038000 { >> >> According to ePAPR spec [1], "the name of a node should be somewhat >> generic, reflecting the function of the device and not its >> precise programming model". In this case probably "sound"? > > We use the 'sound' node name for the sound card itself. The case with McASP is > a bit complicated. It can operate in I2S mode (and similar protocols like RJM, > LJM, TDM) or it can interface with S/PDIF, IEC60958-1, AES-3 codecs. > The mode we put McASP depends on the external components, so the same McASP > can be used in I2S mode in one board while on the other it can be S/PDIF. > It would have been convenient if I could use 'i2s' as node name but it is not > true for McASP (Tegra, Exynos for example have I2S, AC97, S/PDIF as separate IP). > > IMHO the 'mcasp' is still the best node name for this IP. McASP stands for: > 'Multichannel Audio Serial Port' and this is pretty much what McASP is. Yes, I do agree, there are tons of nodes that cannot have generic name. Moreover, we are already using that name in few OMAP dts, so for consistency, let's keep that name. Benoit -- Benoît Cousson BayLibre Embedded Linux Technology Lab www.baylibre.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-22 8:33 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-10-21 9:45 [PATCH] ARM: dts: am4372: Add McASP nodes Peter Ujfalusi [not found] ` <1382348758-1083-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2013-10-21 19:01 ` Sergei Shtylyov 2013-10-22 7:46 ` Peter Ujfalusi 2013-10-22 8:33 ` Benoit Cousson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).