From: Wojciech Zebrowski <wojtekz@aldec.com>
To: Nikolay Dimitrov <picmaster@mail.bg>
Cc: alsa-devel@alsa-project.org, "Fabio Estevam" <festevam@gmail.com>,
"Michal Simek" <michal.simek@xilinx.com>,
"Sören Brinkmann" <soren.brinkmann@xilinx.com>
Subject: Re: Post Audio codec sgtl5000 with ARM/Zynq under Linux
Date: Wed, 17 Jun 2015 16:28:28 +0200 [thread overview]
Message-ID: <5581840C.9060808@aldec.com> (raw)
In-Reply-To: <5580D9A1.2050801@mail.bg>
Hi Nikolay
Thx for your advice , i try use it in feature dts files.
My problem is as below , i can send you boot log or , dmesg log if you
have any other proposition i can debug it too.
1.*I use I2C* controler to configure sgtl5000 :
axi_iic_sgtl: i2c@41610000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "xlnx,xps-iic-2.00.a";
interrupt-parent = <&gic>;
interrupts = <0 31 4>;
reg = <0x41610000 0x10000>;
codec: sgtl5000@0a {
#sound-dai-cells = <0>;
compatible = "fsl,sgtl5000";
reg = <0x0a>;
/* VDDA-supply = <®_3p3v>; */
/* VDDIO-supply = <®_3p3v>;*/
clocks = <&clkc 19>;
};
*
** How can i set comment lines ? *
2. sound :
sound {
compatible = "fsl,imx51-babbage-sgtl5000",
"fsl,imx-audio-sgtl5000";
model = "imx51-babbage-sgtl5000";
/* ssi-controller = <&ssi1>; */
audio-codec = <&codec>;
audio-routing =
"MIC_IN", "Mic Jack",
"Mic Jack", "Mic Bias",
"Headphone Jack", "HP_OUT";
mux-int-port = <1>;
mux-ext-port = <3>;
};/
*I want use I2C configuration driver not SPI . How can i set comment
line ? **
***
3. I2S driver looks like ok :
axi_i2s_adi_0: axi_i2s_adi@77600000 {
compatible = "xlnx,axi-i2s-adi-1.0";
reg = <0x77600000 0x10000>;
xlnx,bclk-pol = <0x0>;
xlnx,dma-type = <0x1>;
xlnx,has-rx = <0x1>;
xlnx,has-tx = <0x1>;
xlnx,lrclk-pol = <0x0>;
xlnx,num-ch = <0x1>;
xlnx,s-axi-min-size = <0x000001FF>;
xlnx,slot-width = <0x18>;
};
W dniu 2015-06-17 o 04:21, Nikolay Dimitrov pisze:
> Hi Wojciech,
>
> On 06/11/2015 09:59 AM, Wojciech Zebrowski wrote:
>> Hi All
>>
>> I try solve problem with support SGTL5000 under Linux , ARM / ZYNQ
>> ARCHITECTURE. Please add this post to "alsa" forum. If you need any
>> others information i can send it .
>>
>> My post:
>>
>> I try use freescale audio chip sgtl5000 on my custom board with Zynq
>> chip. I need help with instance driver in device tree and debug first
>> execution.
>>
>> 1.*I use I2C* controler to configure sgtl5000 :
>> / axi_iic_sgtl: i2c@41610000 {//
>> // #address-cells = <1>;//
>> // #size-cells = <0>;//
>> // compatible = "xlnx,xps-iic-2.00.a";//
>> // interrupt-parent = <&gic>;//
>> // interrupts = <0 31 4>;//
>> // reg = <0x41610000 0x10000>;//
>> ////
>> // codec: sgtl5000@0a {//
>> // #sound-dai-cells = <0>;//
>> // compatible = "fsl,sgtl5000";//
>> // reg = <0x0a>;//
>> ////// VDDA-supply = <®_3p3v>;//
>> ////// VDDIO-supply = <®_3p3v>;//
>> // clocks = <&clkc 19>;//
>> // }; /
>>
>> How can i set comment lines ?
>>
>> 2. sound :
>> / sound {
>> compatible = "fsl,imx51-babbage-sgtl5000",
>> "fsl,imx-audio-sgtl5000";
>> model = "imx51-babbage-sgtl5000";
>> // ssi-controller = <&ssi1>;
>> audio-codec = <&codec>;
>> audio-routing =
>> "MIC_IN", "Mic Jack",
>> "Mic Jack", "Mic Bias",
>> "Headphone Jack", "HP_OUT";
>> mux-int-port = <1>;
>> mux-ext-port = <3>;
>> };/
>> I want use I2C configuration driver not SPI . How can i set comment
>> line ?
>>
>> 3. I2S driver looks like ok :
>> / axi_i2s_adi_0: axi_i2s_adi@77600000 {
>> compatible = "xlnx,axi-i2s-adi-1.0";
>> reg = <0x77600000 0x10000>;
>> xlnx,bclk-pol = <0x0>;
>> xlnx,dma-type = <0x1>;
>> xlnx,has-rx = <0x1>;
>> xlnx,has-tx = <0x1>;
>> xlnx,lrclk-pol = <0x0>;
>> xlnx,num-ch = <0x1>;
>> xlnx,s-axi-min-size = <0x000001FF>;
>> xlnx,slot-width = <0x18>;
>> };/
>>
>>
>> PS.
>> Right now i can compile device tree but audio is not detected.
>> What kind of log do you need to check Linux boot problem ?
>
> Comments in DTS files are done the old-school C way, /* */.
Changed
>
> Regarding the SGTL5K configuration, please take a look here for
> reference:
>
> https://github.com/torvalds/linux/blob/0f57d86787d8b1076ea8f9cbdddda2a46d534a27/arch/arm/boot/dts/imx6dl-riotboard.dts
>
>
I thing it is the same as my .
> If the audio codec device is detected during boot, you should see
> something like this in you boot logs:
>
>
> ...
> sgtl5000 0-000a: sgtl5000 revision 0x11
> sgtl5000 0-000a: Using internal LDO instead of VDDD
> imx-sgtl5000 sound: sgtl5000 <-> 2028000.ssi mapping ok
> ...
Nothing
> ALSA device list:
> #0: imx6-riotboard-sgtl5000
> ...
Nothing
>
>
> Regards,
> Nikolay
>
next prev parent reply other threads:[~2015-06-17 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-11 6:59 Post Audio codec sgtl5000 with ARM/Zynq under Linux Wojciech Zebrowski
2015-06-17 2:21 ` Nikolay Dimitrov
2015-06-17 14:28 ` Wojciech Zebrowski [this message]
2015-06-22 7:30 ` Wojciech Zebrowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5581840C.9060808@aldec.com \
--to=wojtekz@aldec.com \
--cc=alsa-devel@alsa-project.org \
--cc=festevam@gmail.com \
--cc=michal.simek@xilinx.com \
--cc=picmaster@mail.bg \
--cc=soren.brinkmann@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.