* [PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot @ 2014-07-31 10:18 Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0 Peter Ujfalusi ` (5 more replies) 0 siblings, 6 replies; 17+ messages in thread From: Peter Ujfalusi @ 2014-07-31 10:18 UTC (permalink / raw) To: nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi, The following series will enable audio via simple card on the board when booted with DT. For edma one patch is needed to have working dma: http://marc.info/?l=linux-omap&m=140680159327749&w=2 Regards, Peter --- Peter Ujfalusi (6): ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0 ARM: DTS: da850: Add node for edma0 ARM: DTS: da850: Add node for McASP ARM: DTS: da850-evm: Enable McASP via DT boot ARM: DTS: da850-evm: Add node for tlv320aic3106 codec ARM: DTS: da850-evm: Enable audio via simple-card arch/arm/boot/dts/da850-evm.dts | 72 ++++++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/da850.dtsi | 19 +++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 3 files changed, 92 insertions(+) -- 2.0.2 ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0 2014-07-31 10:18 [PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot Peter Ujfalusi @ 2014-07-31 10:18 ` Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 2/6] ARM: DTS: da850: Add node for edma0 Peter Ujfalusi ` (4 subsequent siblings) 5 siblings, 0 replies; 17+ messages in thread From: Peter Ujfalusi @ 2014-07-31 10:18 UTC (permalink / raw) To: nsekhar, robh+dt Cc: khilman, linux, linux-arm-kernel, davinci-linux-open-source, pawel.moll, devicetree, linux-kernel Add OF_DEV_AUXDATA for mcasp to be able to use clocks. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/mach-davinci/da8xx-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index ed1928740b5f..f703d82f08a8 100644 --- a/arch/arm/mach-davinci/da8xx-dt.c +++ b/arch/arm/mach-davinci/da8xx-dt.c @@ -46,6 +46,7 @@ static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = { OF_DEV_AUXDATA("ti,davinci_mdio", 0x01e24000, "davinci_mdio.0", NULL), OF_DEV_AUXDATA("ti,davinci-dm6467-emac", 0x01e20000, "davinci_emac.1", NULL), + OF_DEV_AUXDATA("ti,da830-mcasp-audio", 0x01d00000, "davinci-mcasp.0", NULL), {} }; -- 2.0.2 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/6] ARM: DTS: da850: Add node for edma0 2014-07-31 10:18 [PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0 Peter Ujfalusi @ 2014-07-31 10:18 ` Peter Ujfalusi [not found] ` <1406801934-23334-3-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2014-07-31 10:18 ` [PATCH 3/6] ARM: DTS: da850: Add node for McASP Peter Ujfalusi ` (3 subsequent siblings) 5 siblings, 1 reply; 17+ messages in thread From: Peter Ujfalusi @ 2014-07-31 10:18 UTC (permalink / raw) To: nsekhar, robh+dt Cc: khilman, linux, linux-arm-kernel, davinci-linux-open-source, pawel.moll, devicetree, linux-kernel Add DT node for edma0. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/da850.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index b695548dbb4e..41ce4e8bf227 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -150,6 +150,12 @@ }; }; + edma0: edma@01c00000 { + compatible = "ti,edma3"; + reg = <0x0 0x10000>; + interrupts = <11 13 12>; + #dma-cells = <1>; + }; serial0: serial@1c42000 { compatible = "ns16550a"; reg = <0x42000 0x100>; -- 2.0.2 ^ permalink raw reply related [flat|nested] 17+ messages in thread
[parent not found: <1406801934-23334-3-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 2/6] ARM: DTS: da850: Add node for edma0 [not found] ` <1406801934-23334-3-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2014-07-31 14:26 ` Sergei Shtylyov [not found] ` <53DA5230.1050200-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Sergei Shtylyov @ 2014-07-31 14:26 UTC (permalink / raw) To: Peter Ujfalusi, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: > Add DT node for edma0. > Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> > --- > arch/arm/boot/dts/da850.dtsi | 6 ++++++ > 1 file changed, 6 insertions(+) > diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi > index b695548dbb4e..41ce4e8bf227 100644 > --- a/arch/arm/boot/dts/da850.dtsi > +++ b/arch/arm/boot/dts/da850.dtsi > @@ -150,6 +150,12 @@ > }; > > }; > + edma0: edma@01c00000 { > + compatible = "ti,edma3"; > + reg = <0x0 0x10000>; Why the mismatch between the unit-address part of the node name and the "reg" property? > + interrupts = <11 13 12>; > + #dma-cells = <1>; > + }; 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] 17+ messages in thread
[parent not found: <53DA5230.1050200-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 2/6] ARM: DTS: da850: Add node for edma0 [not found] ` <53DA5230.1050200-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> @ 2014-08-01 5:09 ` Peter Ujfalusi [not found] ` <53DB210B.5010204-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Peter Ujfalusi @ 2014-08-01 5:09 UTC (permalink / raw) To: Sergei Shtylyov, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 07/31/2014 05:26 PM, Sergei Shtylyov wrote: > On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: > >> Add DT node for edma0. > >> Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> >> --- >> arch/arm/boot/dts/da850.dtsi | 6 ++++++ >> 1 file changed, 6 insertions(+) > >> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi >> index b695548dbb4e..41ce4e8bf227 100644 >> --- a/arch/arm/boot/dts/da850.dtsi >> +++ b/arch/arm/boot/dts/da850.dtsi >> @@ -150,6 +150,12 @@ >> }; >> >> }; >> + edma0: edma@01c00000 { >> + compatible = "ti,edma3"; >> + reg = <0x0 0x10000>; > > Why the mismatch between the unit-address part of the node name and the > "reg" property? For some reason the whole da850 uses offset from 0x01c00000 for the SoC IPs. The nodes are under 'soc' and that has the ranges attribute. I do not really like this either. > >> + interrupts = <11 13 12>; >> + #dma-cells = <1>; >> + }; > > WBR, Sergei > -- Péter ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <53DB210B.5010204-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 2/6] ARM: DTS: da850: Add node for edma0 [not found] ` <53DB210B.5010204-l0cyMroinI0@public.gmane.org> @ 2014-08-01 6:18 ` Sekhar Nori 0 siblings, 0 replies; 17+ messages in thread From: Sekhar Nori @ 2014-08-01 6:18 UTC (permalink / raw) To: Peter Ujfalusi, Sergei Shtylyov, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On Friday 01 August 2014 10:39 AM, Peter Ujfalusi wrote: > On 07/31/2014 05:26 PM, Sergei Shtylyov wrote: >> On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: >> >>> Add DT node for edma0. >> >>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> >>> --- >>> arch/arm/boot/dts/da850.dtsi | 6 ++++++ >>> 1 file changed, 6 insertions(+) >> >>> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi >>> index b695548dbb4e..41ce4e8bf227 100644 >>> --- a/arch/arm/boot/dts/da850.dtsi >>> +++ b/arch/arm/boot/dts/da850.dtsi >>> @@ -150,6 +150,12 @@ >>> }; >>> >>> }; >>> + edma0: edma@01c00000 { >>> + compatible = "ti,edma3"; >>> + reg = <0x0 0x10000>; >> >> Why the mismatch between the unit-address part of the node name and the >> "reg" property? > > For some reason the whole da850 uses offset from 0x01c00000 for the SoC IPs. > The nodes are under 'soc' and that has the ranges attribute. > I do not really like this either. There is no reason I can remember for why we chose to go the offset + ranges way. Probably based it on an early OMAP example. Right now lets keep it that way unless there is a big disadvantage. Thanks, Sekhar ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 3/6] ARM: DTS: da850: Add node for McASP 2014-07-31 10:18 [PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0 Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 2/6] ARM: DTS: da850: Add node for edma0 Peter Ujfalusi @ 2014-07-31 10:18 ` Peter Ujfalusi [not found] ` <1406801934-23334-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> ` (2 subsequent siblings) 5 siblings, 0 replies; 17+ messages in thread From: Peter Ujfalusi @ 2014-07-31 10:18 UTC (permalink / raw) To: nsekhar, robh+dt Cc: khilman, linux, linux-arm-kernel, davinci-linux-open-source, pawel.moll, devicetree, linux-kernel Node for mcasp0 Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/da850.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 41ce4e8bf227..0bd98cd00816 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -276,6 +276,19 @@ ti,davinci-gpio-unbanked = <0>; status = "disabled"; }; + + mcasp0: mcasp@01d00000 { + compatible = "ti,da830-mcasp-audio"; + reg = <0x100000 0x2000>, + <0x102000 0x400000>; + reg-names = "mpu", "dat"; + interrupts = <54>; + interrupt-names = "common"; + status = "disabled"; + dmas = <&edma0 1>, + <&edma0 0>; + dma-names = "tx", "rx"; + }; }; nand_cs3@62000000 { compatible = "ti,davinci-nand"; -- 2.0.2 ^ permalink raw reply related [flat|nested] 17+ messages in thread
[parent not found: <1406801934-23334-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>]
* [PATCH 4/6] ARM: DTS: da850-evm: Enable McASP via DT boot [not found] ` <1406801934-23334-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2014-07-31 10:18 ` Peter Ujfalusi 0 siblings, 0 replies; 17+ messages in thread From: Peter Ujfalusi @ 2014-07-31 10:18 UTC (permalink / raw) To: nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-lFZ/pmaqli7XmaaqVzeoHQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, pawel.moll-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Add pinctrl nodes for the McASP0 pins and configure McASP to the desired mode for the board. Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/da850-evm.dts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 1e11e5a5f723..09118c72e83f 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -17,6 +17,18 @@ soc { pmx_core: pinmux@1c14120 { status = "okay"; + + mcasp0_pins: pinmux_mcasp0_pins { + pinctrl-single,bits = < + /* + * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR, + * AFSR, AMUTE + */ + 0x00 0x11111111 0xffffffff + /* AXR11, AXR12 */ + 0x04 0x00011000 0x000ff000 + >; + }; }; serial0: serial@1c42000 { status = "okay"; @@ -170,3 +182,22 @@ }; }; }; + +&mcasp0 { + #sound-dai-cells = <0>; + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcasp0_pins>; + + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + /* 4 serializer */ + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ + 0 0 0 0 + 0 0 0 0 + 0 0 0 1 + 2 0 0 0 + >; + tx-num-evt = <32>; + rx-num-evt = <32>; +}; -- 2.0.2 -- 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 related [flat|nested] 17+ messages in thread
* [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec 2014-07-31 10:18 [PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot Peter Ujfalusi ` (3 preceding siblings ...) [not found] ` <1406801934-23334-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2014-07-31 10:18 ` Peter Ujfalusi [not found] ` <1406801934-23334-6-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2014-07-31 10:18 ` [PATCH 6/6] ARM: DTS: da850-evm: Enable audio via simple-card Peter Ujfalusi 5 siblings, 1 reply; 17+ messages in thread From: Peter Ujfalusi @ 2014-07-31 10:18 UTC (permalink / raw) To: nsekhar, robh+dt Cc: devicetree, davinci-linux-open-source, linux, pawel.moll, khilman, linux-kernel, linux-arm-kernel The board uses aic3106 for audio. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/da850-evm.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 09118c72e83f..b9ef2be0b145 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -51,6 +51,20 @@ tps: tps@48 { reg = <0x48>; }; + tlv320aic3106: tlv320aic3106@1b { + #sound-dai-cells = <0>; + compatible = "ti,tlv320aic3106"; + reg = <0x18>; + status = "okay"; + + /* Regulators */ + IOVDD-supply = <&vdcdc2_reg>; + /* Derived from VBAT: Baseboard 3.3V / 1.8V */ + AVDD-supply = <&vbat>; + DRVDD-supply = <&vbat>; + DVDD-supply = <&vbat>; + }; + }; wdt: wdt@1c21000 { status = "okay"; -- 2.0.2 ^ permalink raw reply related [flat|nested] 17+ messages in thread
[parent not found: <1406801934-23334-6-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec [not found] ` <1406801934-23334-6-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2014-07-31 14:24 ` Sergei Shtylyov [not found] ` <53DA519A.4090905-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Sergei Shtylyov @ 2014-07-31 14:24 UTC (permalink / raw) To: Peter Ujfalusi, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hello. On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: > The board uses aic3106 for audio. > Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> > --- > arch/arm/boot/dts/da850-evm.dts | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts > index 09118c72e83f..b9ef2be0b145 100644 > --- a/arch/arm/boot/dts/da850-evm.dts > +++ b/arch/arm/boot/dts/da850-evm.dts > @@ -51,6 +51,20 @@ > tps: tps@48 { > reg = <0x48>; > }; > + tlv320aic3106: tlv320aic3106@1b { The "reg" property is <0x18>, why the unit-address part of a name is different? Also, the ePAPR standard [1] says: The name of a node should be somewhat generic, reflecting the function of the device and not its precise programming model. > + #sound-dai-cells = <0>; > + compatible = "ti,tlv320aic3106"; > + reg = <0x18>; > + status = "okay"; > + > + /* Regulators */ > + IOVDD-supply = <&vdcdc2_reg>; > + /* Derived from VBAT: Baseboard 3.3V / 1.8V */ > + AVDD-supply = <&vbat>; > + DRVDD-supply = <&vbat>; > + DVDD-supply = <&vbat>; > + }; > + [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] 17+ messages in thread
[parent not found: <53DA519A.4090905-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec [not found] ` <53DA519A.4090905-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> @ 2014-08-01 5:22 ` Peter Ujfalusi [not found] ` <53DB240F.2030908-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Peter Ujfalusi @ 2014-08-01 5:22 UTC (permalink / raw) To: Sergei Shtylyov, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 07/31/2014 05:24 PM, Sergei Shtylyov wrote: > Hello. > > On 07/31/2014 02:18 PM, Peter Ujfalusi wrote: > >> The board uses aic3106 for audio. > >> Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> >> --- >> arch/arm/boot/dts/da850-evm.dts | 14 ++++++++++++++ >> 1 file changed, 14 insertions(+) > >> diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts >> index 09118c72e83f..b9ef2be0b145 100644 >> --- a/arch/arm/boot/dts/da850-evm.dts >> +++ b/arch/arm/boot/dts/da850-evm.dts >> @@ -51,6 +51,20 @@ >> tps: tps@48 { >> reg = <0x48>; >> }; >> + tlv320aic3106: tlv320aic3106@1b { > > The "reg" property is <0x18>, why the unit-address part of a name is > different? True, I have lifted the codec part from other dts file and overlooked the unit-address. I will resend the series with this fixed. > Also, the ePAPR standard [1] says: > > The name of a node should be somewhat generic, reflecting the function of the > device and not its precise programming model. True. This is why the node for the audio support is named as 'sound'. For the components, like in this case I do not see issue to call the audio codec with it's name. > >> + #sound-dai-cells = <0>; >> + compatible = "ti,tlv320aic3106"; >> + reg = <0x18>; >> + status = "okay"; >> + >> + /* Regulators */ >> + IOVDD-supply = <&vdcdc2_reg>; >> + /* Derived from VBAT: Baseboard 3.3V / 1.8V */ >> + AVDD-supply = <&vbat>; >> + DRVDD-supply = <&vbat>; >> + DVDD-supply = <&vbat>; >> + }; >> + > > [1] http://www.power.org/resources/downloads/Power_ePAPR_APPROVED_v1.0.pdf BTW: there's a newer version available: https://www.power.org/wp-content/uploads/2012/06/Power_ePAPR_APPROVED_v1.1.pdf > > WBR, Sergei > -- Péter ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <53DB240F.2030908-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec [not found] ` <53DB240F.2030908-l0cyMroinI0@public.gmane.org> @ 2014-08-01 12:49 ` Sergei Shtylyov [not found] ` <53DB8CEA.9010902-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Sergei Shtylyov @ 2014-08-01 12:49 UTC (permalink / raw) To: Peter Ujfalusi, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hello. On 01-08-2014 9:22, Peter Ujfalusi wrote: >>> The board uses aic3106 for audio. >>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> >>> --- >>> arch/arm/boot/dts/da850-evm.dts | 14 ++++++++++++++ >>> 1 file changed, 14 insertions(+) >>> diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts >>> index 09118c72e83f..b9ef2be0b145 100644 >>> --- a/arch/arm/boot/dts/da850-evm.dts >>> +++ b/arch/arm/boot/dts/da850-evm.dts >>> @@ -51,6 +51,20 @@ >>> tps: tps@48 { >>> reg = <0x48>; >>> }; >>> + tlv320aic3106: tlv320aic3106@1b { [...] >> Also, the ePAPR standard [1] says: >> The name of a node should be somewhat generic, reflecting the function of the >> device and not its precise programming model. > True. This is why the node for the audio support is named as 'sound'. For the > components, like in this case I do not see issue to call the audio codec with > it's name. I do. We should follow the standard consistently. Why not call the node "sound-codec"? 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] 17+ messages in thread
[parent not found: <53DB8CEA.9010902-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec [not found] ` <53DB8CEA.9010902-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> @ 2014-08-01 13:02 ` Peter Ujfalusi 2014-08-01 13:13 ` Sergei Shtylyov 0 siblings, 1 reply; 17+ messages in thread From: Peter Ujfalusi @ 2014-08-01 13:02 UTC (permalink / raw) To: Sergei Shtylyov, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 08/01/2014 03:49 PM, Sergei Shtylyov wrote: > I do. We should follow the standard consistently. Why not call the node > "sound-codec"? Well, there is _zero_ cases when the audio codec node is named as "sound-codec" in linux-next but we have wmXXXX, tlvXXXX, twlXXXX, maxXXXX etc. Yeah, there are few DTS files which have codec as node name. So, no, I'm not going to change the node name from tlv320aic3106. -- Péter ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec 2014-08-01 13:02 ` Peter Ujfalusi @ 2014-08-01 13:13 ` Sergei Shtylyov [not found] ` <53DB9292.7080008-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Sergei Shtylyov @ 2014-08-01 13:13 UTC (permalink / raw) To: Peter Ujfalusi, nsekhar, robh+dt Cc: devicetree, davinci-linux-open-source, linux, pawel.moll, khilman, linux-kernel, linux-arm-kernel Hello. On 08/01/2014 05:02 PM, Peter Ujfalusi wrote: >> I do. We should follow the standard consistently. Why not call the node >> "sound-codec"? > Well, there is _zero_ cases when the audio codec node is named as > "sound-codec" in linux-next but we have wmXXXX, tlvXXXX, twlXXXX, maxXXXX etc. Which only means people don't read the standard (which is referred to on http://www.devicetree.org/Device_Tree_Usage, that says the same). > Yeah, there are few DTS files which have codec as node name. > So, no, I'm not going to change the node name from tlv320aic3106. So you prefer following the bad examples to following the standard? Well, "the Moor has done his duty, the Moor can go"... WBR, Sergei ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <53DB9292.7080008-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec [not found] ` <53DB9292.7080008-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> @ 2014-08-01 13:34 ` Peter Ujfalusi [not found] ` <53DB9751.6030508-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Peter Ujfalusi @ 2014-08-01 13:34 UTC (permalink / raw) To: Sergei Shtylyov, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi, On 08/01/2014 04:13 PM, Sergei Shtylyov wrote: > Hello. > > On 08/01/2014 05:02 PM, Peter Ujfalusi wrote: > >>> I do. We should follow the standard consistently. Why not call the node >>> "sound-codec"? > >> Well, there is _zero_ cases when the audio codec node is named as >> "sound-codec" in linux-next but we have wmXXXX, tlvXXXX, twlXXXX, maxXXXX etc. > > Which only means people don't read the standard (which is referred to on > http://www.devicetree.org/Device_Tree_Usage, that says the same). > >> Yeah, there are few DTS files which have codec as node name. >> So, no, I'm not going to change the node name from tlv320aic3106. > > So you prefer following the bad examples to following the standard? those bad examples are in the tree and they did went through the review process (arch, DT and probably alsa). But it is interesting that we do not have a single correct node name for audio codecs (probably for other types also). > Well, "the Moor has done his duty, the Moor can go"... Let's ask the DT maintainers what should be the correct approach and someone should go through all the existing DT files and clean them up? People usually start reading the code for examples before the standard... -- Péter ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <53DB9751.6030508-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec [not found] ` <53DB9751.6030508-l0cyMroinI0@public.gmane.org> @ 2014-08-04 9:09 ` Peter Ujfalusi 0 siblings, 0 replies; 17+ messages in thread From: Peter Ujfalusi @ 2014-08-04 9:09 UTC (permalink / raw) To: Sergei Shtylyov, nsekhar-l0cyMroinI0, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/, linux-lFZ/pmaqli7XmaaqVzeoHQ, pawel.moll-5wv7dgnIgG8, khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 08/01/2014 04:34 PM, Peter Ujfalusi wrote: > Hi, > > On 08/01/2014 04:13 PM, Sergei Shtylyov wrote: >> Hello. >> >> On 08/01/2014 05:02 PM, Peter Ujfalusi wrote: >> >>>> I do. We should follow the standard consistently. Why not call the node >>>> "sound-codec"? >> >>> Well, there is _zero_ cases when the audio codec node is named as >>> "sound-codec" in linux-next but we have wmXXXX, tlvXXXX, twlXXXX, maxXXXX etc. >> >> Which only means people don't read the standard (which is referred to on >> http://www.devicetree.org/Device_Tree_Usage, that says the same). >> >>> Yeah, there are few DTS files which have codec as node name. >>> So, no, I'm not going to change the node name from tlv320aic3106. >> >> So you prefer following the bad examples to following the standard? > > those bad examples are in the tree and they did went through the review > process (arch, DT and probably alsa). But it is interesting that we do not > have a single correct node name for audio codecs (probably for other types also). I have thought about this over the weekend and I would keep the node name for the codec as it is in the patch. It is the common practice for audio and it also helps when reading the DT file to quickly see the audio support on the board. We all use the 'sound' node name for audio cards and when we use the name of the codec as node name we do not need to look further in the dts file to see what is the codec in used (and what/which cpu dai we are using). All this can be seen in the main sound support node. >> Well, "the Moor has done his duty, the Moor can go"... > > Let's ask the DT maintainers what should be the correct approach and someone > should go through all the existing DT files and clean them up? People usually > start reading the code for examples before the standard... > -- Péter ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 6/6] ARM: DTS: da850-evm: Enable audio via simple-card 2014-07-31 10:18 [PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot Peter Ujfalusi ` (4 preceding siblings ...) 2014-07-31 10:18 ` [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec Peter Ujfalusi @ 2014-07-31 10:18 ` Peter Ujfalusi 5 siblings, 0 replies; 17+ messages in thread From: Peter Ujfalusi @ 2014-07-31 10:18 UTC (permalink / raw) To: nsekhar, robh+dt Cc: khilman, linux, linux-arm-kernel, davinci-linux-open-source, pawel.moll, devicetree, linux-kernel The audio on the board is using McASP <-> tlv320aic3106 codec and we have LineIn and LineOut jacks. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/da850-evm.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index b9ef2be0b145..031117a4a797 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -143,6 +143,33 @@ regulator-max-microvolt = <5000000>; regulator-boot-on; }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "DA850/OMAP-L138 EVM"; + simple-audio-card,widgets = + "Line", "Line In", + "Line", "Line Out"; + simple-audio-card,routing = + "LINE1L", "Line In", + "LINE1R", "Line In", + "Line Out", "LLOUT", + "Line Out", "RLOUT"; + simple-audio-card,format = "dsp_b"; + simple-audio-card,bitclock-master = <&link0_codec>; + simple-audio-card,frame-master = <&link0_codec>; + simple-audio-card,bitclock-inversion; + + simple-audio-card,cpu { + sound-dai = <&mcasp0>; + system-clock-frequency = <24576000>; + }; + + link0_codec: simple-audio-card,codec { + sound-dai = <&tlv320aic3106>; + system-clock-frequency = <24576000>; + }; + }; }; /include/ "tps6507x.dtsi" -- 2.0.2 ^ permalink raw reply related [flat|nested] 17+ messages in thread
end of thread, other threads:[~2014-08-04 9:09 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-07-31 10:18 [PATCH 0/6] ARM: DT/davinci: Audio for da850-evm in DT boot Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 1/6] ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for mcasp0 Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 2/6] ARM: DTS: da850: Add node for edma0 Peter Ujfalusi [not found] ` <1406801934-23334-3-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2014-07-31 14:26 ` Sergei Shtylyov [not found] ` <53DA5230.1050200-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 2014-08-01 5:09 ` Peter Ujfalusi [not found] ` <53DB210B.5010204-l0cyMroinI0@public.gmane.org> 2014-08-01 6:18 ` Sekhar Nori 2014-07-31 10:18 ` [PATCH 3/6] ARM: DTS: da850: Add node for McASP Peter Ujfalusi [not found] ` <1406801934-23334-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2014-07-31 10:18 ` [PATCH 4/6] ARM: DTS: da850-evm: Enable McASP via DT boot Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec Peter Ujfalusi [not found] ` <1406801934-23334-6-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2014-07-31 14:24 ` Sergei Shtylyov [not found] ` <53DA519A.4090905-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 2014-08-01 5:22 ` Peter Ujfalusi [not found] ` <53DB240F.2030908-l0cyMroinI0@public.gmane.org> 2014-08-01 12:49 ` Sergei Shtylyov [not found] ` <53DB8CEA.9010902-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 2014-08-01 13:02 ` Peter Ujfalusi 2014-08-01 13:13 ` Sergei Shtylyov [not found] ` <53DB9292.7080008-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> 2014-08-01 13:34 ` Peter Ujfalusi [not found] ` <53DB9751.6030508-l0cyMroinI0@public.gmane.org> 2014-08-04 9:09 ` Peter Ujfalusi 2014-07-31 10:18 ` [PATCH 6/6] ARM: DTS: da850-evm: Enable audio via simple-card Peter Ujfalusi
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).