* [PATCH 0/3] Enable audio for J784S4-EVM platform
@ 2024-06-19 9:52 Jayesh Choudhary
2024-06-19 9:52 ` [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes Jayesh Choudhary
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jayesh Choudhary @ 2024-06-19 9:52 UTC (permalink / raw)
To: linux-kernel, nm, vigneshr, j-luthra, j-choudhary
Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree,
u-kumar1
Hello All,
These three patches enable audio on J784S4-EVM platform.
- First patch adds the McASP nodes.
- Second patch adds the audio_refclk1 node that is required
to configure the CTRL_MMR register for the external clock
- Third patch enables the analog audio
For audio to work, the ti-dm firmware that should be picked
for uboot is now publically available and will be shortly
merged to the ti-linux-firmware branch:
<https://git.ti.com/cgit/processor-firmware/ti-linux-firmware/tree/ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f?h=ti-linux-firmware-next>
For testing, ~/.asoundrc file was created in root partition
which can be seen in the test logs:
<https://gist.github.com/Jayesh2000/3ca38cbac2f37842b1010af79dfe9b4c>
Jayesh Choudhary (3):
arm64: dts: ti: k3-j784s4-main: Add McASP nodes
arm64: dts: ti: k3-j784s4-main: Add audio_refclk node
arm64: dts: ti: k3-j784s4-evm: Enable analog audio support
arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 112 +++++++++++++++++++++
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 89 ++++++++++++++++
2 files changed, 201 insertions(+)
--
2.25.1
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes 2024-06-19 9:52 [PATCH 0/3] Enable audio for J784S4-EVM platform Jayesh Choudhary @ 2024-06-19 9:52 ` Jayesh Choudhary 2024-06-25 8:31 ` Vignesh Raghavendra 2024-06-19 9:52 ` [PATCH 2/3] arm64: dts: ti: k3-j784s4-main: Add audio_refclk node Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 3/3] arm64: dts: ti: k3-j784s4-evm: Enable analog audio support Jayesh Choudhary 2 siblings, 1 reply; 8+ messages in thread From: Jayesh Choudhary @ 2024-06-19 9:52 UTC (permalink / raw) To: linux-kernel, nm, vigneshr, j-luthra, j-choudhary Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, u-kumar1 Add McASP 0-4 instances and keep them disabled as several required properties are missing as they are board specific. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index fd3d3344efbe..96085dc7bc18 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -2617,4 +2617,84 @@ dss_ports: ports { */ }; }; + + mcasp0: mcasp@2b00000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x0 0x02b00000 0x0 0x2000>, + <0x0 0x02b08000 0x0 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>; + dma-names = "tx", "rx"; + clocks = <&k3_clks 265 1>; + clock-names = "fck"; + power-domains = <&k3_pds 265 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp1: mcasp@2b10000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x0 0x02b10000 0x0 0x2000>, + <0x0 0x02b18000 0x0 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 546 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 547 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&main_udmap 0xc401>, <&main_udmap 0x4401>; + dma-names = "tx", "rx"; + clocks = <&k3_clks 266 1>; + clock-names = "fck"; + power-domains = <&k3_pds 266 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp2: mcasp@2b20000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x0 0x02b20000 0x0 0x2000>, + <0x0 0x02b28000 0x0 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 548 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 549 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&main_udmap 0xc402>, <&main_udmap 0x4402>; + dma-names = "tx", "rx"; + clocks = <&k3_clks 267 1>; + clock-names = "fck"; + power-domains = <&k3_pds 267 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp3: mcasp@2b30000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x0 0x02b30000 0x0 0x2000>, + <0x0 0x02b38000 0x0 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 550 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 551 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>; + dma-names = "tx", "rx"; + clocks = <&k3_clks 268 1>; + clock-names = "fck"; + power-domains = <&k3_pds 268 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp4: mcasp@2b40000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x0 0x02b40000 0x0 0x2000>, + <0x0 0x02b48000 0x0 0x1000>; + reg-names = "mpu","dat"; + interrupts = <GIC_SPI 552 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 553 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + dmas = <&main_udmap 0xc501>, <&main_udmap 0x4501>; + dma-names = "tx", "rx"; + clocks = <&k3_clks 269 1>; + clock-names = "fck"; + power-domains = <&k3_pds 269 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; }; -- 2.25.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes 2024-06-19 9:52 ` [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes Jayesh Choudhary @ 2024-06-25 8:31 ` Vignesh Raghavendra 2024-06-25 9:57 ` Jayesh Choudhary 0 siblings, 1 reply; 8+ messages in thread From: Vignesh Raghavendra @ 2024-06-25 8:31 UTC (permalink / raw) To: Jayesh Choudhary, linux-kernel, nm, j-luthra Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, u-kumar1 On 19/06/24 15:22, Jayesh Choudhary wrote: > Add McASP 0-4 instances and keep them disabled as several required > properties are missing as they are board specific. > > Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> > --- > arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 80 ++++++++++++++++++++++ > 1 file changed, 80 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > index fd3d3344efbe..96085dc7bc18 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > @@ -2617,4 +2617,84 @@ dss_ports: ports { > */ > }; > }; > + > + mcasp0: mcasp@2b00000 { > + compatible = "ti,am33xx-mcasp-audio"; > + reg = <0x0 0x02b00000 0x0 0x2000>, > + <0x0 0x02b08000 0x0 0x1000>; ^^ Should be 0x00 (elsewhere as well) to be inline with rest of the file > + reg-names = "mpu","dat"; > + interrupts = <GIC_SPI 544 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "tx", "rx"; > + dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>; > + dma-names = "tx", "rx"; > + clocks = <&k3_clks 265 1>; > + clock-names = "fck"; > + power-domains = <&k3_pds 265 TI_SCI_PD_EXCLUSIVE>; > + status = "disabled"; > + }; > + > + mcasp1: mcasp@2b10000 { > + compatible = "ti,am33xx-mcasp-audio"; > + reg = <0x0 0x02b10000 0x0 0x2000>, > + <0x0 0x02b18000 0x0 0x1000>; > + reg-names = "mpu","dat"; > + interrupts = <GIC_SPI 546 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 547 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "tx", "rx"; > + dmas = <&main_udmap 0xc401>, <&main_udmap 0x4401>; > + dma-names = "tx", "rx"; > + clocks = <&k3_clks 266 1>; > + clock-names = "fck"; > + power-domains = <&k3_pds 266 TI_SCI_PD_EXCLUSIVE>; > + status = "disabled"; > + }; > + > + mcasp2: mcasp@2b20000 { > + compatible = "ti,am33xx-mcasp-audio"; > + reg = <0x0 0x02b20000 0x0 0x2000>, > + <0x0 0x02b28000 0x0 0x1000>; > + reg-names = "mpu","dat"; > + interrupts = <GIC_SPI 548 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 549 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "tx", "rx"; > + dmas = <&main_udmap 0xc402>, <&main_udmap 0x4402>; > + dma-names = "tx", "rx"; > + clocks = <&k3_clks 267 1>; > + clock-names = "fck"; > + power-domains = <&k3_pds 267 TI_SCI_PD_EXCLUSIVE>; > + status = "disabled"; > + }; > + > + mcasp3: mcasp@2b30000 { > + compatible = "ti,am33xx-mcasp-audio"; > + reg = <0x0 0x02b30000 0x0 0x2000>, > + <0x0 0x02b38000 0x0 0x1000>; > + reg-names = "mpu","dat"; > + interrupts = <GIC_SPI 550 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 551 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "tx", "rx"; > + dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>; > + dma-names = "tx", "rx"; > + clocks = <&k3_clks 268 1>; > + clock-names = "fck"; > + power-domains = <&k3_pds 268 TI_SCI_PD_EXCLUSIVE>; > + status = "disabled"; > + }; > + > + mcasp4: mcasp@2b40000 { > + compatible = "ti,am33xx-mcasp-audio"; > + reg = <0x0 0x02b40000 0x0 0x2000>, > + <0x0 0x02b48000 0x0 0x1000>; > + reg-names = "mpu","dat"; > + interrupts = <GIC_SPI 552 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 553 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "tx", "rx"; > + dmas = <&main_udmap 0xc501>, <&main_udmap 0x4501>; > + dma-names = "tx", "rx"; > + clocks = <&k3_clks 269 1>; > + clock-names = "fck"; > + power-domains = <&k3_pds 269 TI_SCI_PD_EXCLUSIVE>; > + status = "disabled"; > + }; > }; -- Regards Vignesh ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes 2024-06-25 8:31 ` Vignesh Raghavendra @ 2024-06-25 9:57 ` Jayesh Choudhary 0 siblings, 0 replies; 8+ messages in thread From: Jayesh Choudhary @ 2024-06-25 9:57 UTC (permalink / raw) To: Vignesh Raghavendra, linux-kernel, nm, j-luthra Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, u-kumar1 Hello Vignesh! On 25/06/24 14:01, Vignesh Raghavendra wrote: > > > On 19/06/24 15:22, Jayesh Choudhary wrote: >> Add McASP 0-4 instances and keep them disabled as several required >> properties are missing as they are board specific. >> >> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> >> --- >> arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 80 ++++++++++++++++++++++ >> 1 file changed, 80 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >> index fd3d3344efbe..96085dc7bc18 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >> @@ -2617,4 +2617,84 @@ dss_ports: ports { >> */ >> }; >> }; >> + >> + mcasp0: mcasp@2b00000 { >> + compatible = "ti,am33xx-mcasp-audio"; >> + reg = <0x0 0x02b00000 0x0 0x2000>, >> + <0x0 0x02b08000 0x0 0x1000>; > > ^^ Should be 0x00 (elsewhere as well) to be inline with rest of the file Will fix the padding. Warm Regards, -Jayesh ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/3] arm64: dts: ti: k3-j784s4-main: Add audio_refclk node 2024-06-19 9:52 [PATCH 0/3] Enable audio for J784S4-EVM platform Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes Jayesh Choudhary @ 2024-06-19 9:52 ` Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 3/3] arm64: dts: ti: k3-j784s4-evm: Enable analog audio support Jayesh Choudhary 2 siblings, 0 replies; 8+ messages in thread From: Jayesh Choudhary @ 2024-06-19 9:52 UTC (permalink / raw) To: linux-kernel, nm, vigneshr, j-luthra, j-choudhary Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, u-kumar1 On J784S4 SoC, the AUDIO_REFCLK1 can be used as input to external peripherals when configured through CTRL_MMR. Add audio_refclk1 node which would be used as system clock for audio codec PCM3168A. Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index 96085dc7bc18..4ea7d89ca4a8 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -115,6 +115,15 @@ usb_serdes_mux: mux-controller@4000 { #mux-control-cells = <1>; mux-reg-masks = <0x0 0x8000000>; /* USB0 to SERDES0 lane 3 mux */ }; + + audio_refclk1: clock@82e4 { + compatible = "ti,am62-audio-refclk"; + reg = <0x82e4 0x4>; + clocks = <&k3_clks 157 34>; + assigned-clocks = <&k3_clks 157 34>; + assigned-clock-parents = <&k3_clks 157 63>; + #clock-cells = <0>; + }; }; gic500: interrupt-controller@1800000 { -- 2.25.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] arm64: dts: ti: k3-j784s4-evm: Enable analog audio support 2024-06-19 9:52 [PATCH 0/3] Enable audio for J784S4-EVM platform Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 2/3] arm64: dts: ti: k3-j784s4-main: Add audio_refclk node Jayesh Choudhary @ 2024-06-19 9:52 ` Jayesh Choudhary 2024-06-22 6:44 ` Vignesh Raghavendra 2 siblings, 1 reply; 8+ messages in thread From: Jayesh Choudhary @ 2024-06-19 9:52 UTC (permalink / raw) To: linux-kernel, nm, vigneshr, j-luthra, j-choudhary Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, u-kumar1 The audio support on J784S4-EVM is using PCM3168A[0] codec connected to McASP0 serializers. - Add the nodes for sound-card, audio codec, MAIN_I2C3 and McASP0. - Add pinmux for I2C3, McASP0 and AUDIO_EXT_REFCLK1. - Add necessary GPIO hogs to route the MAIN_I2C3 lines and McASP serializer. - Add idle-state as 1 in mux1 to route McASP clock signals. [0]: <https://www.ti.com/lit/gpn/pcm3168a> Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com> --- arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 112 +++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index a4a6efcce362..cb061986bd93 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -312,6 +312,20 @@ mux1: mux-controller { compatible = "gpio-mux"; #mux-state-cells = <1>; mux-gpios = <&exp2 14 GPIO_ACTIVE_HIGH>; + idle-state = <1>; + }; + + codec_audio: sound { + compatible = "ti,j7200-cpb-audio"; + model = "j784s4-cpb"; + + ti,cpb-mcasp = <&mcasp0>; + ti,cpb-codec = <&pcm3168a_1>; + + clocks = <&k3_clks 265 0>, <&k3_clks 265 1>, + <&k3_clks 157 34>, <&k3_clks 157 63>; + clock-names = "cpb-mcasp-auxclk", "cpb-mcasp-auxclk-48000", + "cpb-codec-scki", "cpb-codec-scki-48000"; }; }; @@ -422,6 +436,28 @@ main_usbss0_pins_default: main-usbss0-default-pins { J784S4_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AN37) TIMER_IO1.USB0_DRVVBUS */ >; }; + + main_i2c3_pins_default: main-i2c3-default-pins { + pinctrl-single,pins = < + J784S4_IOPAD(0x064, PIN_INPUT, 13) /* (AF38) MCAN0_TX.I2C3_SCL */ + J784S4_IOPAD(0x060, PIN_INPUT, 13) /* (AE36) MCASP2_AXR1.I2C3_SDA */ + >; + }; + + mcasp0_pins_default: mcasp0-default-pins { + pinctrl-single,pins = < + J784S4_IOPAD(0x038, PIN_OUTPUT_PULLDOWN, 1) /* (AK35) MCASP0_ACLKX */ + J784S4_IOPAD(0x03c, PIN_OUTPUT_PULLDOWN, 1) /* (AK38) MCASP0_AFSX */ + J784S4_IOPAD(0x07c, PIN_OUTPUT_PULLDOWN, 1) /* (AJ38) MCASP0_AXR3 */ + J784S4_IOPAD(0x080, PIN_INPUT_PULLDOWN, 1) /* (AK34) MCASP0_AXR4 */ + >; + }; + + audio_ext_refclk1_pins_default: audio-ext-refclk1-default-pins { + pinctrl-single,pins = < + J784S4_IOPAD(0x078, PIN_OUTPUT, 1) /* (AH37) MCAN2_RX.AUDIO_EXT_REFCLK1 */ + >; + }; }; &wkup_pmx2 { @@ -881,6 +917,14 @@ exp1: gpio@20 { "PCIE0_4L_RC_RSTZ", "PCIE0_4L_EP_RST_EN", "PCIE1_4L_PRSNT#", "PCIE0_4L_PRSNT#", "CDCI1_OE1/OE4", "CDCI1_OE2/OE3", "AUDIO_MUX_SEL", "EXP_MUX2", "EXP_MUX3", "GESI_EXP_PHY_RSTZ"; + + p12-hog { + /* P12 - AUDIO_MUX_SEL */ + gpio-hog; + gpios = <12 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "AUDIO_MUX_SEL"; + }; }; exp2: gpio@22 { @@ -896,6 +940,22 @@ exp2: gpio@22 { "CANUART_MUX1_SEL1", "ENET1_EXP_PWRDN", "ENET1_EXP_RESETZ", "ENET1_I2CMUX_SEL", "ENET1_EXP_SPARE2", "ENET2_EXP_RESETZ", "USER_INPUT1", "USER_LED1", "USER_LED2"; + + p13-hog { + /* P13 - CANUART_MUX_SEL0 */ + gpio-hog; + gpios = <13 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "CANUART_MUX_SEL0"; + }; + + p15-hog { + /* P15 - CANUART_MUX1_SEL1 */ + gpio-hog; + gpios = <15 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "CANUART_MUX1_SEL1"; + }; }; }; @@ -1373,3 +1433,55 @@ &pcie0_rc { phys = <&serdes1_pcie0_link>; phy-names = "pcie-phy"; }; + +&k3_clks { + /* Confiure AUDIO_EXT_REFCLK2 pin as output */ + pinctrl-names = "default"; + pinctrl-0 = <&audio_ext_refclk1_pins_default>; +}; + +&main_i2c3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c3_pins_default>; + clock-frequency = <400000>; + + exp3: gpio@20 { + compatible = "ti,tca6408"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + pcm3168a_1: audio-codec@44 { + compatible = "ti,pcm3168a"; + reg = <0x44>; + #sound-dai-cells = <1>; + reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>; + /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */ + clocks = <&audio_refclk1>; + clock-names = "scki"; + VDD1-supply = <&vsys_3v3>; + VDD2-supply = <&vsys_3v3>; + VCCAD1-supply = <&vsys_5v0>; + VCCAD2-supply = <&vsys_5v0>; + VCCDA1-supply = <&vsys_5v0>; + VCCDA2-supply = <&vsys_5v0>; + }; +}; + +&mcasp0 { + status = "okay"; + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&mcasp0_pins_default>; + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + auxclk-fs-ratio = <256>; + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ + 0 0 0 1 + 2 0 0 0 + 0 0 0 0 + 0 0 0 0 + >; +}; -- 2.25.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] arm64: dts: ti: k3-j784s4-evm: Enable analog audio support 2024-06-19 9:52 ` [PATCH 3/3] arm64: dts: ti: k3-j784s4-evm: Enable analog audio support Jayesh Choudhary @ 2024-06-22 6:44 ` Vignesh Raghavendra 2024-06-24 7:52 ` Jayesh Choudhary 0 siblings, 1 reply; 8+ messages in thread From: Vignesh Raghavendra @ 2024-06-22 6:44 UTC (permalink / raw) To: Jayesh Choudhary, linux-kernel, nm, j-luthra Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, u-kumar1 On 19/06/24 15:22, Jayesh Choudhary wrote: > &wkup_pmx2 { > @@ -881,6 +917,14 @@ exp1: gpio@20 { > "PCIE0_4L_RC_RSTZ", "PCIE0_4L_EP_RST_EN", "PCIE1_4L_PRSNT#", > "PCIE0_4L_PRSNT#", "CDCI1_OE1/OE4", "CDCI1_OE2/OE3", > "AUDIO_MUX_SEL", "EXP_MUX2", "EXP_MUX3", "GESI_EXP_PHY_RSTZ"; > + > + p12-hog { > + /* P12 - AUDIO_MUX_SEL */ > + gpio-hog; > + gpios = <12 GPIO_ACTIVE_HIGH>; > + output-low; > + line-name = "AUDIO_MUX_SEL"; > + }; > }; > > exp2: gpio@22 { > @@ -896,6 +940,22 @@ exp2: gpio@22 { > "CANUART_MUX1_SEL1", "ENET1_EXP_PWRDN", "ENET1_EXP_RESETZ", > "ENET1_I2CMUX_SEL", "ENET1_EXP_SPARE2", "ENET2_EXP_RESETZ", > "USER_INPUT1", "USER_LED1", "USER_LED2"; > + > + p13-hog { > + /* P13 - CANUART_MUX_SEL0 */ > + gpio-hog; > + gpios = <13 GPIO_ACTIVE_HIGH>; > + output-high; > + line-name = "CANUART_MUX_SEL0"; > + }; > + > + p15-hog { > + /* P15 - CANUART_MUX1_SEL1 */ > + gpio-hog; > + gpios = <15 GPIO_ACTIVE_HIGH>; > + output-high; > + line-name = "CANUART_MUX1_SEL1"; > + }; > }; > }; Does this break CAN instances already enabled in the dts? If you consider making this a overlay as defaults seem to be set for CAN -- Regards Vignesh ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] arm64: dts: ti: k3-j784s4-evm: Enable analog audio support 2024-06-22 6:44 ` Vignesh Raghavendra @ 2024-06-24 7:52 ` Jayesh Choudhary 0 siblings, 0 replies; 8+ messages in thread From: Jayesh Choudhary @ 2024-06-24 7:52 UTC (permalink / raw) To: Vignesh Raghavendra, linux-kernel, nm, j-luthra Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, u-kumar1 Hello Vignesh, On 22/06/24 12:14, Vignesh Raghavendra wrote: > > > On 19/06/24 15:22, Jayesh Choudhary wrote: >> &wkup_pmx2 { >> @@ -881,6 +917,14 @@ exp1: gpio@20 { >> "PCIE0_4L_RC_RSTZ", "PCIE0_4L_EP_RST_EN", "PCIE1_4L_PRSNT#", >> "PCIE0_4L_PRSNT#", "CDCI1_OE1/OE4", "CDCI1_OE2/OE3", >> "AUDIO_MUX_SEL", "EXP_MUX2", "EXP_MUX3", "GESI_EXP_PHY_RSTZ"; >> + >> + p12-hog { >> + /* P12 - AUDIO_MUX_SEL */ >> + gpio-hog; >> + gpios = <12 GPIO_ACTIVE_HIGH>; >> + output-low; >> + line-name = "AUDIO_MUX_SEL"; >> + }; >> }; >> >> exp2: gpio@22 { >> @@ -896,6 +940,22 @@ exp2: gpio@22 { >> "CANUART_MUX1_SEL1", "ENET1_EXP_PWRDN", "ENET1_EXP_RESETZ", >> "ENET1_I2CMUX_SEL", "ENET1_EXP_SPARE2", "ENET2_EXP_RESETZ", >> "USER_INPUT1", "USER_LED1", "USER_LED2"; >> + >> + p13-hog { >> + /* P13 - CANUART_MUX_SEL0 */ >> + gpio-hog; >> + gpios = <13 GPIO_ACTIVE_HIGH>; >> + output-high; >> + line-name = "CANUART_MUX_SEL0"; >> + }; >> + >> + p15-hog { >> + /* P15 - CANUART_MUX1_SEL1 */ >> + gpio-hog; >> + gpios = <15 GPIO_ACTIVE_HIGH>; >> + output-high; >> + line-name = "CANUART_MUX1_SEL1"; >> + }; >> }; >> }; > > > Does this break CAN instances already enabled in the dts? If you > consider making this a overlay as defaults seem to be set for CAN > This does not break CAN. The only issue was with p14-hog that was being used by can-3 instance as mux-gpio and hogging it here was making the resource busy for can. That I have handled with the idle-state in the gpio mux itself. Thanks, Jayesh ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-06-25 9:58 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-06-19 9:52 [PATCH 0/3] Enable audio for J784S4-EVM platform Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 1/3] arm64: dts: ti: k3-j784s4-main: Add McASP nodes Jayesh Choudhary 2024-06-25 8:31 ` Vignesh Raghavendra 2024-06-25 9:57 ` Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 2/3] arm64: dts: ti: k3-j784s4-main: Add audio_refclk node Jayesh Choudhary 2024-06-19 9:52 ` [PATCH 3/3] arm64: dts: ti: k3-j784s4-evm: Enable analog audio support Jayesh Choudhary 2024-06-22 6:44 ` Vignesh Raghavendra 2024-06-24 7:52 ` Jayesh Choudhary
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox