* [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates @ 2016-03-07 15:17 Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 02/10] ARM: DTS: dra7: Enable eDMA Peter Ujfalusi ` (6 more replies) 0 siblings, 7 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul-DWxLp4Yu+b8AvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Hi, Changes since v1: - hwmod patch for eDMA (tpcc/tptc0/tptc1) removed as it is already in linux-next - mcasp hwmod changes: - all module have HWMOD_OPT_CLKS_NEEDED and no HWMOD_SWSUP_SIDLE (per Paul's comment) - mcasp1,2: add ahclkr as opt clock since those modules have fclk, ahclkx and ahclkr marked as functional clocks. Same change is added to the DTS patch On dra7 family we have two DMA engine available: sDMA (omap-dma) and eDMA. For some peripherals the use of eDMA is better due to L3 interconnect limitation when using sDMA. Such peripherals are McASP1/2/3. By switching to eDMA we can enable the AFIFO which will help to avoid under or overruns in audio. This set will: - add the hwmod data for eDMA TPCC and TPTCs - add the needed DT nodes for eDMA and the crossbar - we will enable the AFIFO use for audio - add hwmod data and DT nodes for all McASP ports - Fix the beagle-x15's clkout2 parent setting for the codec The patch set has been tested on top of linux-next. Regards, Peter --- Misael Lopez Cruz (1): ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3 Peter Ujfalusi (9): ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm ARM: DTS: dra7: Enable eDMA ARM: DTS: dra7-evm: Enable AFIFO use for McASP3 ARM: DTS: dra72-evm: Enable AFIFO use for McASP3 ARM: DTS: am57xx-beagle-x15: Move clkout2 source selection to codec node ARM: DTS: am57xx-beagle-x15: Enable AFIFO use for McASP3 ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 ARM: DTS: dra7: Add nodes for McASP1/2/4/5/6/7/8 arch/arm/boot/dts/am57xx-beagle-x15.dts | 7 +- arch/arm/boot/dts/dra7-evm.dts | 2 + arch/arm/boot/dts/dra7.dtsi | 183 +++++++++++++++++++++-- arch/arm/boot/dts/dra72-evm.dts | 2 + arch/arm/boot/dts/dra7xx-clocks.dtsi | 2 +- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 237 ++++++++++++++++++++++++++++++ drivers/clk/ti/clk-7xx.c | 2 +- 7 files changed, 421 insertions(+), 14 deletions(-) -- 2.7.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 [flat|nested] 14+ messages in thread
* [PATCH v2 02/10] ARM: DTS: dra7: Enable eDMA 2016-03-07 15:17 [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 03/10] ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3 Peter Ujfalusi ` (5 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul, robh+dt Cc: Tero Kristo, devicetree, linux-omap, linux-kernel, linux-arm-kernel DRA7 family has eDMA available along with the sDMA and in some cases it is better suited for servicing peripherals. Add the needed nodes for eDMA to be usable: edma-tpcc, edma-tptc0/1 and the edma-xbar. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/dra7.dtsi | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index db7fda97a4fa..b99f51288e71 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -170,6 +170,15 @@ ti,dma-safe-map = <0>; dma-masters = <&sdma>; }; + + edma_xbar: dma-router@c78 { + compatible = "ti,dra7-dma-crossbar"; + reg = <0xc78 0x7c>; + #dma-cells = <2>; + dma-requests = <204>; + ti,dma-safe-map = <0>; + dma-masters = <&edma>; + }; }; cm_core_aon: cm_core_aon@5000 { @@ -324,6 +333,45 @@ dma-requests = <127>; }; + edma: edma@43300000 { + compatible = "ti,edma3-tpcc"; + ti,hwmods = "tpcc"; + reg = <0x43300000 0x100000>; + reg-names = "edma3_cc"; + interrupts = <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "edma3_ccint", "emda3_mperr", + "edma3_ccerrint"; + dma-requests = <64>; + #dma-cells = <2>; + + ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 0>; + + /* + * memcpy is disabled, can be enabled with: + * ti,edma-memcpy-channels = <20 21>; + * for example. Note that these channels need to be + * masked in the xbar as well. + */ + }; + + edma_tptc0: tptc@43400000 { + compatible = "ti,edma3-tptc"; + ti,hwmods = "tptc0"; + reg = <0x43400000 0x100000>; + interrupts = <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "edma3_tcerrint"; + }; + + edma_tptc1: tptc@43500000 { + compatible = "ti,edma3-tptc"; + ti,hwmods = "tptc1"; + reg = <0x43500000 0x100000>; + interrupts = <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "edma3_tcerrint"; + }; + gpio1: gpio@4ae10000 { compatible = "ti,omap4-gpio"; reg = <0x4ae10000 0x200>; -- 2.7.2 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 03/10] ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3 2016-03-07 15:17 [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 02/10] ARM: DTS: dra7: Enable eDMA Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 05/10] ARM: DTS: dra72-evm: Enable AFIFO use " Peter Ujfalusi ` (4 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul, robh+dt Cc: Tero Kristo, devicetree, linux-omap, linux-kernel, linux-arm-kernel From: Misael Lopez Cruz <misael.lopez@ti.com> McASP3 does not support constant addressing mode on the DAT port, so increment transfers must be used instead. This restriction is also applicable for McASP1 and McASP2. This DMA addressing constraint poses a major problem for sDMA where constant addressing mode is used on the peripheral side. Unfortunately, using increment transfers in sDMA comes with important side effects. The addressing mode used in eDMA is INC, so the silicon limitation described above has no impact and the McASP3 DAT port can be safely added by switching to eDMA instead of sDMA. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/dra7.dtsi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index b99f51288e71..4c192ea8ae29 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -1469,12 +1469,13 @@ mcasp3: mcasp@48468000 { compatible = "ti,dra7-mcasp-audio"; ti,hwmods = "mcasp3"; - reg = <0x48468000 0x2000>; - reg-names = "mpu"; + reg = <0x48468000 0x2000>, + <0x46000000 0x1000>; + reg-names = "mpu","dat"; interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "tx", "rx"; - dmas = <&sdma_xbar 133>, <&sdma_xbar 132>; + dmas = <&edma_xbar 133 1>, <&edma_xbar 132 1>; dma-names = "tx", "rx"; clocks = <&mcasp3_aux_gfclk_mux>, <&mcasp3_ahclkx_mux>; clock-names = "fck", "ahclkx"; -- 2.7.2 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 05/10] ARM: DTS: dra72-evm: Enable AFIFO use for McASP3 2016-03-07 15:17 [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 02/10] ARM: DTS: dra7: Enable eDMA Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 03/10] ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3 Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 06/10] ARM: DTS: am57xx-beagle-x15: Move clkout2 source selection to codec node Peter Ujfalusi ` (3 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul, robh+dt Cc: Tero Kristo, linux-omap, linux-arm-kernel, devicetree, linux-kernel Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/dra72-evm.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts index 6affe2d137da..bdfc9476f036 100644 --- a/arch/arm/boot/dts/dra72-evm.dts +++ b/arch/arm/boot/dts/dra72-evm.dts @@ -834,6 +834,8 @@ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 1 2 0 0 >; + tx-num-evt = <32>; + rx-num-evt = <32>; }; &mailbox5 { -- 2.7.2 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 06/10] ARM: DTS: am57xx-beagle-x15: Move clkout2 source selection to codec node 2016-03-07 15:17 [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi ` (2 preceding siblings ...) 2016-03-07 15:17 ` [PATCH v2 05/10] ARM: DTS: dra72-evm: Enable AFIFO use " Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> ` (2 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul, robh+dt Cc: Tero Kristo, devicetree, linux-omap, linux-kernel, linux-arm-kernel The assigned-clock* needs to be in the root of the device's node. If it is in the sub-node the CCF will ignore it. Since the clkout2 is used by the codec as MCLK, move the clock parent selection to that node. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/am57xx-beagle-x15.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts index 0a5fc5d02ce2..2bbc8ae00ada 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15.dts +++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts @@ -173,8 +173,6 @@ sound0_master: simple-audio-card,codec { sound-dai = <&tlv320aic3104>; - assigned-clocks = <&clkoutmux2_clk_mux>; - assigned-clock-parents = <&sys_clk2_dclk_div>; clocks = <&clkout2_clk>; }; }; @@ -584,6 +582,9 @@ pinctrl-names = "default", "sleep"; pinctrl-0 = <&clkout2_pins_default>; pinctrl-1 = <&clkout2_pins_sleep>; + assigned-clocks = <&clkoutmux2_clk_mux>; + assigned-clock-parents = <&sys_clk2_dclk_div>; + status = "okay"; adc-settle-ms = <40>; -- 2.7.2 ^ permalink raw reply related [flat|nested] 14+ messages in thread
[parent not found: <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>]
* [PATCH v2 01/10] ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 04/10] ARM: DTS: dra7-evm: Enable AFIFO use for McASP3 Peter Ujfalusi ` (3 subsequent siblings) 4 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul-DWxLp4Yu+b8AvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Move the sDMA xbar nodes under the L4 interconnect node. Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/dra7.dtsi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 098b4dd14b01..db7fda97a4fa 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -161,6 +161,15 @@ compatible = "syscon"; reg = <0x1c24 0x0024>; }; + + sdma_xbar: dma-router@b78 { + compatible = "ti,dra7-dma-crossbar"; + reg = <0xb78 0xfc>; + #dma-cells = <1>; + dma-requests = <205>; + ti,dma-safe-map = <0>; + dma-masters = <&sdma>; + }; }; cm_core_aon: cm_core_aon@5000 { @@ -315,15 +324,6 @@ dma-requests = <127>; }; - sdma_xbar: dma-router@4a002b78 { - compatible = "ti,dra7-dma-crossbar"; - reg = <0x4a002b78 0xfc>; - #dma-cells = <1>; - dma-requests = <205>; - ti,dma-safe-map = <0>; - dma-masters = <&sdma>; - }; - gpio1: gpio@4ae10000 { compatible = "ti,omap4-gpio"; reg = <0x4ae10000 0x200>; -- 2.7.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] 14+ messages in thread
* [PATCH v2 04/10] ARM: DTS: dra7-evm: Enable AFIFO use for McASP3 [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2016-03-07 15:17 ` [PATCH v2 01/10] ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 07/10] ARM: DTS: am57xx-beagle-x15: " Peter Ujfalusi ` (2 subsequent siblings) 4 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul-DWxLp4Yu+b8AvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/dra7-evm.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index d9b87236019d..1b2a2f8c38e7 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -904,6 +904,8 @@ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 1 2 0 0 >; + tx-num-evt = <32>; + rx-num-evt = <32>; }; &mailbox5 { -- 2.7.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] 14+ messages in thread
* [PATCH v2 07/10] ARM: DTS: am57xx-beagle-x15: Enable AFIFO use for McASP3 [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2016-03-07 15:17 ` [PATCH v2 01/10] ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 04/10] ARM: DTS: dra7-evm: Enable AFIFO use for McASP3 Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 08/10] ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 Peter Ujfalusi 4 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul-DWxLp4Yu+b8AvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/am57xx-beagle-x15.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts index 2bbc8ae00ada..08fd3c37d628 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15.dts +++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts @@ -813,6 +813,8 @@ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 1 2 0 0 >; + tx-num-evt = <32>; + rx-num-evt = <32>; }; &mailbox5 { -- 2.7.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] 14+ messages in thread
* [PATCH v2 08/10] ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> ` (2 preceding siblings ...) 2016-03-07 15:17 ` [PATCH v2 07/10] ARM: DTS: am57xx-beagle-x15: " Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 Peter Ujfalusi 4 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul-DWxLp4Yu+b8AvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA rename the mcasp8_ahclk_mux to mcasp8_ahclkx_mux. Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 2 +- drivers/clk/ti/clk-7xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi index d0bae06b7eb7..4d614b3c7ec2 100644 --- a/arch/arm/boot/dts/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/dra7xx-clocks.dtsi @@ -1856,7 +1856,7 @@ reg = <0x1908>; }; - mcasp8_ahclk_mux: mcasp8_ahclk_mux { + mcasp8_ahclkx_mux: mcasp8_ahclkx_mux { #clock-cells = <0>; compatible = "ti,mux-clock"; clocks = <&abe_24m_fclk>, <&abe_sys_clk_div>, <&func_24m_clk>, <&atl_clkin3_ck>, <&atl_clkin2_ck>, <&atl_clkin1_ck>, <&atl_clkin0_ck>, <&sys_clkin2>, <&ref_clkin0_ck>, <&ref_clkin1_ck>, <&ref_clkin2_ck>, <&ref_clkin3_ck>, <&mlb_clk>, <&mlbp_clk>; diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c index a911d7de3377..6b5a309d9939 100644 --- a/drivers/clk/ti/clk-7xx.c +++ b/drivers/clk/ti/clk-7xx.c @@ -223,7 +223,7 @@ static struct ti_dt_clk dra7xx_clks[] = { DT_CLK(NULL, "mcasp6_aux_gfclk_mux", "mcasp6_aux_gfclk_mux"), DT_CLK(NULL, "mcasp7_ahclkx_mux", "mcasp7_ahclkx_mux"), DT_CLK(NULL, "mcasp7_aux_gfclk_mux", "mcasp7_aux_gfclk_mux"), - DT_CLK(NULL, "mcasp8_ahclk_mux", "mcasp8_ahclk_mux"), + DT_CLK(NULL, "mcasp8_ahclkx_mux", "mcasp8_ahclkx_mux"), DT_CLK(NULL, "mcasp8_aux_gfclk_mux", "mcasp8_aux_gfclk_mux"), DT_CLK(NULL, "mmc1_fclk_mux", "mmc1_fclk_mux"), DT_CLK(NULL, "mmc1_fclk_div", "mmc1_fclk_div"), -- 2.7.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] 14+ messages in thread
* [PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> ` (3 preceding siblings ...) 2016-03-07 15:17 ` [PATCH v2 08/10] ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name Peter Ujfalusi @ 2016-03-07 15:17 ` Peter Ujfalusi [not found] ` <1457363857-20797-10-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 4 siblings, 1 reply; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul-DWxLp4Yu+b8AvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Add missing data for all McASP ports for the dra7 family Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 237 ++++++++++++++++++++++++++++++ 1 file changed, 237 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 9442d89bd229..7610f3ef28b7 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -1374,6 +1374,52 @@ static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = { .sysc = &dra7xx_mcasp_sysc, }; +/* mcasp1 */ +static struct omap_hwmod_opt_clk mcasp1_opt_clks[] = { + { .role = "ahclkx", .clk = "mcasp1_ahclkx_mux" }, + { .role = "ahclkr", .clk = "mcasp1_ahclkr_mux" }, +}; + +static struct omap_hwmod dra7xx_mcasp1_hwmod = { + .name = "mcasp1", + .class = &dra7xx_mcasp_hwmod_class, + .clkdm_name = "ipu_clkdm", + .main_clk = "mcasp1_aux_gfclk_mux", + .flags = HWMOD_OPT_CLKS_NEEDED, + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, + .opt_clks = mcasp1_opt_clks, + .opt_clks_cnt = ARRAY_SIZE(mcasp1_opt_clks), +}; + +/* mcasp2 */ +static struct omap_hwmod_opt_clk mcasp2_opt_clks[] = { + { .role = "ahclkx", .clk = "mcasp2_ahclkx_mux" }, + { .role = "ahclkr", .clk = "mcasp2_ahclkr_mux" }, +}; + +static struct omap_hwmod dra7xx_mcasp2_hwmod = { + .name = "mcasp2", + .class = &dra7xx_mcasp_hwmod_class, + .clkdm_name = "l4per2_clkdm", + .main_clk = "mcasp2_aux_gfclk_mux", + .flags = HWMOD_OPT_CLKS_NEEDED, + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, + .opt_clks = mcasp2_opt_clks, + .opt_clks_cnt = ARRAY_SIZE(mcasp2_opt_clks), +}; + /* mcasp3 */ static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = { { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" }, @@ -1396,6 +1442,116 @@ static struct omap_hwmod dra7xx_mcasp3_hwmod = { .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks), }; +/* mcasp4 */ +static struct omap_hwmod_opt_clk mcasp4_opt_clks[] = { + { .role = "ahclkx", .clk = "mcasp4_ahclkx_mux" }, +}; + +static struct omap_hwmod dra7xx_mcasp4_hwmod = { + .name = "mcasp4", + .class = &dra7xx_mcasp_hwmod_class, + .clkdm_name = "l4per2_clkdm", + .main_clk = "mcasp4_aux_gfclk_mux", + .flags = HWMOD_OPT_CLKS_NEEDED, + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, + .opt_clks = mcasp4_opt_clks, + .opt_clks_cnt = ARRAY_SIZE(mcasp4_opt_clks), +}; + +/* mcasp5 */ +static struct omap_hwmod_opt_clk mcasp5_opt_clks[] = { + { .role = "ahclkx", .clk = "mcasp5_ahclkx_mux" }, +}; + +static struct omap_hwmod dra7xx_mcasp5_hwmod = { + .name = "mcasp5", + .class = &dra7xx_mcasp_hwmod_class, + .clkdm_name = "l4per2_clkdm", + .main_clk = "mcasp5_aux_gfclk_mux", + .flags = HWMOD_OPT_CLKS_NEEDED, + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, + .opt_clks = mcasp5_opt_clks, + .opt_clks_cnt = ARRAY_SIZE(mcasp5_opt_clks), +}; + +/* mcasp6 */ +static struct omap_hwmod_opt_clk mcasp6_opt_clks[] = { + { .role = "ahclkx", .clk = "mcasp6_ahclkx_mux" }, +}; + +static struct omap_hwmod dra7xx_mcasp6_hwmod = { + .name = "mcasp6", + .class = &dra7xx_mcasp_hwmod_class, + .clkdm_name = "l4per2_clkdm", + .main_clk = "mcasp6_aux_gfclk_mux", + .flags = HWMOD_OPT_CLKS_NEEDED, + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, + .opt_clks = mcasp6_opt_clks, + .opt_clks_cnt = ARRAY_SIZE(mcasp6_opt_clks), +}; + +/* mcasp7 */ +static struct omap_hwmod_opt_clk mcasp7_opt_clks[] = { + { .role = "ahclkx", .clk = "mcasp7_ahclkx_mux" }, +}; + +static struct omap_hwmod dra7xx_mcasp7_hwmod = { + .name = "mcasp7", + .class = &dra7xx_mcasp_hwmod_class, + .clkdm_name = "l4per2_clkdm", + .main_clk = "mcasp7_aux_gfclk_mux", + .flags = HWMOD_OPT_CLKS_NEEDED, + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, + .opt_clks = mcasp7_opt_clks, + .opt_clks_cnt = ARRAY_SIZE(mcasp7_opt_clks), +}; + +/* mcasp8 */ +static struct omap_hwmod_opt_clk mcasp8_opt_clks[] = { + { .role = "ahclkx", .clk = "mcasp8_ahclkx_mux" }, +}; + +static struct omap_hwmod dra7xx_mcasp8_hwmod = { + .name = "mcasp8", + .class = &dra7xx_mcasp_hwmod_class, + .clkdm_name = "l4per2_clkdm", + .main_clk = "mcasp8_aux_gfclk_mux", + .flags = HWMOD_OPT_CLKS_NEEDED, + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, + .opt_clks = mcasp8_opt_clks, + .opt_clks_cnt = ARRAY_SIZE(mcasp8_opt_clks), +}; + /* * 'mmc' class * @@ -2726,6 +2882,38 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l4_per2 -> mcasp1 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1 = { + .master = &dra7xx_l4_per2_hwmod, + .slave = &dra7xx_mcasp1_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + +/* l3_main_1 -> mcasp1 */ +static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1 = { + .master = &dra7xx_l3_main_1_hwmod, + .slave = &dra7xx_mcasp1_hwmod, + .clk = "l3_iclk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + +/* l4_per2 -> mcasp2 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2 = { + .master = &dra7xx_l4_per2_hwmod, + .slave = &dra7xx_mcasp2_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + +/* l3_main_1 -> mcasp2 */ +static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2 = { + .master = &dra7xx_l3_main_1_hwmod, + .slave = &dra7xx_mcasp2_hwmod, + .clk = "l3_iclk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + /* l4_per2 -> mcasp3 */ static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = { .master = &dra7xx_l4_per2_hwmod, @@ -2742,6 +2930,46 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l4_per2 -> mcasp4 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4 = { + .master = &dra7xx_l4_per2_hwmod, + .slave = &dra7xx_mcasp4_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + +/* l4_per2 -> mcasp5 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5 = { + .master = &dra7xx_l4_per2_hwmod, + .slave = &dra7xx_mcasp5_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + +/* l4_per2 -> mcasp6 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6 = { + .master = &dra7xx_l4_per2_hwmod, + .slave = &dra7xx_mcasp6_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + +/* l4_per2 -> mcasp7 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7 = { + .master = &dra7xx_l4_per2_hwmod, + .slave = &dra7xx_mcasp7_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + +/* l4_per2 -> mcasp8 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = { + .master = &dra7xx_l4_per2_hwmod, + .slave = &dra7xx_mcasp8_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + /* l4_per1 -> elm */ static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = { .master = &dra7xx_l4_per1_hwmod, @@ -3484,8 +3712,17 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l4_wkup__dcan1, &dra7xx_l4_per2__dcan2, &dra7xx_l4_per2__cpgmac0, + &dra7xx_l4_per2__mcasp1, + &dra7xx_l3_main_1__mcasp1, + &dra7xx_l4_per2__mcasp2, + &dra7xx_l3_main_1__mcasp2, &dra7xx_l4_per2__mcasp3, &dra7xx_l3_main_1__mcasp3, + &dra7xx_l4_per2__mcasp4, + &dra7xx_l4_per2__mcasp5, + &dra7xx_l4_per2__mcasp6, + &dra7xx_l4_per2__mcasp7, + &dra7xx_l4_per2__mcasp8, &dra7xx_gmac__mdio, &dra7xx_l4_cfg__dma_system, &dra7xx_l3_main_1__tpcc, -- 2.7.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] 14+ messages in thread
[parent not found: <1457363857-20797-10-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 [not found] ` <1457363857-20797-10-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2016-03-08 6:37 ` Paul Walmsley 0 siblings, 0 replies; 14+ messages in thread From: Paul Walmsley @ 2016-03-08 6:37 UTC (permalink / raw) To: Peter Ujfalusi Cc: Tony Lindgren, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA On Mon, 7 Mar 2016, Peter Ujfalusi wrote: > Add missing data for all McASP ports for the dra7 family > > Signed-off-by: Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> Thanks, queued for v4.7. - Paul -- 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] 14+ messages in thread
* [PATCH v2 10/10] ARM: DTS: dra7: Add nodes for McASP1/2/4/5/6/7/8 2016-03-07 15:17 [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi ` (4 preceding siblings ...) [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> @ 2016-03-07 15:17 ` Peter Ujfalusi 2016-04-11 13:33 ` [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi 6 siblings, 0 replies; 14+ messages in thread From: Peter Ujfalusi @ 2016-03-07 15:17 UTC (permalink / raw) To: Tony Lindgren, paul, robh+dt Cc: Tero Kristo, linux-omap, linux-arm-kernel, devicetree, linux-kernel Add nodes to represent all McASP ports in the dra7 family. For system consistency use the eDMA for audio operations. sDMA would be fine for 4/5/6/7/8 since their DAT port is not through L3 interconnect. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- arch/arm/boot/dts/dra7.dtsi | 114 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 4c192ea8ae29..bb3c94aecdeb 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -1466,6 +1466,40 @@ status = "disabled"; }; + mcasp1: mcasp@48460000 { + compatible = "ti,dra7-mcasp-audio"; + ti,hwmods = "mcasp1"; + reg = <0x48460000 0x2000>, + <0x45800000 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&edma_xbar 129 1>, <&edma_xbar 128 1>; + dma-names = "tx", "rx"; + clocks = <&mcasp1_aux_gfclk_mux>, <&mcasp1_ahclkx_mux>, + <&mcasp1_ahclkr_mux>; + clock-names = "fck", "ahclkx", "ahclkr"; + status = "disabled"; + }; + + mcasp2: mcasp@48464000 { + compatible = "ti,dra7-mcasp-audio"; + ti,hwmods = "mcasp2"; + reg = <0x48464000 0x2000>, + <0x45c00000 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&edma_xbar 131 1>, <&edma_xbar 130 1>; + dma-names = "tx", "rx"; + clocks = <&mcasp2_aux_gfclk_mux>, <&mcasp2_ahclkx_mux>, + <&mcasp2_ahclkr_mux>; + clock-names = "fck", "ahclkx", "ahclkr"; + status = "disabled"; + }; + mcasp3: mcasp@48468000 { compatible = "ti,dra7-mcasp-audio"; ti,hwmods = "mcasp3"; @@ -1482,6 +1516,86 @@ status = "disabled"; }; + mcasp4: mcasp@4846c000 { + compatible = "ti,dra7-mcasp-audio"; + ti,hwmods = "mcasp4"; + reg = <0x4846c000 0x2000>, + <0x48436000 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&edma_xbar 135 1>, <&edma_xbar 134 1>; + dma-names = "tx", "rx"; + clocks = <&mcasp4_aux_gfclk_mux>, <&mcasp4_ahclkx_mux>; + clock-names = "fck", "ahclkx"; + status = "disabled"; + }; + + mcasp5: mcasp@48470000 { + compatible = "ti,dra7-mcasp-audio"; + ti,hwmods = "mcasp5"; + reg = <0x48470000 0x2000>, + <0x4843a000 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&edma_xbar 137 1>, <&edma_xbar 136 1>; + dma-names = "tx", "rx"; + clocks = <&mcasp5_aux_gfclk_mux>, <&mcasp5_ahclkx_mux>; + clock-names = "fck", "ahclkx"; + status = "disabled"; + }; + + mcasp6: mcasp@48474000 { + compatible = "ti,dra7-mcasp-audio"; + ti,hwmods = "mcasp6"; + reg = <0x48474000 0x2000>, + <0x4844c000 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&edma_xbar 139 1>, <&edma_xbar 138 1>; + dma-names = "tx", "rx"; + clocks = <&mcasp6_aux_gfclk_mux>, <&mcasp6_ahclkx_mux>; + clock-names = "fck", "ahclkx"; + status = "disabled"; + }; + + mcasp7: mcasp@48478000 { + compatible = "ti,dra7-mcasp-audio"; + ti,hwmods = "mcasp7"; + reg = <0x48478000 0x2000>, + <0x48450000 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&edma_xbar 141 1>, <&edma_xbar 140 1>; + dma-names = "tx", "rx"; + clocks = <&mcasp7_aux_gfclk_mux>, <&mcasp7_ahclkx_mux>; + clock-names = "fck", "ahclkx"; + status = "disabled"; + }; + + mcasp8: mcasp@4847c000 { + compatible = "ti,dra7-mcasp-audio"; + ti,hwmods = "mcasp8"; + reg = <0x4847c000 0x2000>, + <0x48454000 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&edma_xbar 143 1>, <&edma_xbar 142 1>; + dma-names = "tx", "rx"; + clocks = <&mcasp8_aux_gfclk_mux>, <&mcasp8_ahclkx_mux>; + clock-names = "fck", "ahclkx"; + status = "disabled"; + }; + crossbar_mpu: crossbar@4a002a48 { compatible = "ti,irq-crossbar"; reg = <0x4a002a48 0x130>; -- 2.7.2 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates 2016-03-07 15:17 [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi ` (5 preceding siblings ...) 2016-03-07 15:17 ` [PATCH v2 10/10] ARM: DTS: dra7: Add nodes " Peter Ujfalusi @ 2016-04-11 13:33 ` Peter Ujfalusi [not found] ` <570BA7A2.3080507-l0cyMroinI0@public.gmane.org> 6 siblings, 1 reply; 14+ messages in thread From: Peter Ujfalusi @ 2016-04-11 13:33 UTC (permalink / raw) To: Tony Lindgren, paul, robh+dt Cc: Tero Kristo, linux-omap, linux-arm-kernel, devicetree, linux-kernel Tony, according to Nishanth, linux-next is broken for dra7 family: http://pastebin.ubuntu.com/15758542/ on x15 next-20160411 because of the missing DT patches. Do you want me to resend this series w/o the hwmod patch? -- Péter On 03/07/16 17:17, Peter Ujfalusi wrote: > Hi, > > Changes since v1: > - hwmod patch for eDMA (tpcc/tptc0/tptc1) removed as it is already in linux-next > - mcasp hwmod changes: > - all module have HWMOD_OPT_CLKS_NEEDED and no HWMOD_SWSUP_SIDLE (per Paul's > comment) > - mcasp1,2: add ahclkr as opt clock since those modules have fclk, ahclkx and > ahclkr marked as functional clocks. > Same change is added to the DTS patch > > On dra7 family we have two DMA engine available: sDMA (omap-dma) and eDMA. > For some peripherals the use of eDMA is better due to L3 interconnect limitation > when using sDMA. Such peripherals are McASP1/2/3. By switching to eDMA we can > enable the AFIFO which will help to avoid under or overruns in audio. > > This set will: > - add the hwmod data for eDMA TPCC and TPTCs > - add the needed DT nodes for eDMA and the crossbar > - we will enable the AFIFO use for audio > - add hwmod data and DT nodes for all McASP ports > - Fix the beagle-x15's clkout2 parent setting for the codec > > The patch set has been tested on top of linux-next. > > Regards, > Peter > --- > Misael Lopez Cruz (1): > ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3 > > Peter Ujfalusi (9): > ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm > ARM: DTS: dra7: Enable eDMA > ARM: DTS: dra7-evm: Enable AFIFO use for McASP3 > ARM: DTS: dra72-evm: Enable AFIFO use for McASP3 > ARM: DTS: am57xx-beagle-x15: Move clkout2 source selection to codec > node > ARM: DTS: am57xx-beagle-x15: Enable AFIFO use for McASP3 > ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name > ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 > ARM: DTS: dra7: Add nodes for McASP1/2/4/5/6/7/8 > > arch/arm/boot/dts/am57xx-beagle-x15.dts | 7 +- > arch/arm/boot/dts/dra7-evm.dts | 2 + > arch/arm/boot/dts/dra7.dtsi | 183 +++++++++++++++++++++-- > arch/arm/boot/dts/dra72-evm.dts | 2 + > arch/arm/boot/dts/dra7xx-clocks.dtsi | 2 +- > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 237 ++++++++++++++++++++++++++++++ > drivers/clk/ti/clk-7xx.c | 2 +- > 7 files changed, 421 insertions(+), 14 deletions(-) > ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <570BA7A2.3080507-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates [not found] ` <570BA7A2.3080507-l0cyMroinI0@public.gmane.org> @ 2016-04-11 20:06 ` Tony Lindgren 0 siblings, 0 replies; 14+ messages in thread From: Tony Lindgren @ 2016-04-11 20:06 UTC (permalink / raw) To: Peter Ujfalusi Cc: paul-DWxLp4Yu+b8AvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA * Peter Ujfalusi <peter.ujfalusi-l0cyMroinI0@public.gmane.org> [160411 06:34]: > Tony, > > according to Nishanth, linux-next is broken for dra7 family: > http://pastebin.ubuntu.com/15758542/ on x15 next-20160411 > because of the missing DT patches. OK yeah thanks for letting me know. > Do you want me to resend this series w/o the hwmod patch? No need to, applying your dts patches into omap-for-v4.7/dt thanks. The epwmss entries still produce warnings, looks like there's discussion still going on with those. Tony -- 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] 14+ messages in thread
end of thread, other threads:[~2016-04-11 20:06 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-03-07 15:17 [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 02/10] ARM: DTS: dra7: Enable eDMA Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 03/10] ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3 Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 05/10] ARM: DTS: dra72-evm: Enable AFIFO use " Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 06/10] ARM: DTS: am57xx-beagle-x15: Move clkout2 source selection to codec node Peter Ujfalusi [not found] ` <1457363857-20797-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2016-03-07 15:17 ` [PATCH v2 01/10] ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 04/10] ARM: DTS: dra7-evm: Enable AFIFO use for McASP3 Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 07/10] ARM: DTS: am57xx-beagle-x15: " Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 08/10] ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name Peter Ujfalusi 2016-03-07 15:17 ` [PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 Peter Ujfalusi [not found] ` <1457363857-20797-10-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org> 2016-03-08 6:37 ` Paul Walmsley 2016-03-07 15:17 ` [PATCH v2 10/10] ARM: DTS: dra7: Add nodes " Peter Ujfalusi 2016-04-11 13:33 ` [PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi [not found] ` <570BA7A2.3080507-l0cyMroinI0@public.gmane.org> 2016-04-11 20:06 ` Tony Lindgren
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).