From: Martin Kaiser <martin@kaiser.cx>
To: "Fabio Estevam" <festevam@gmail.com>,
"Lothar Waßmann" <LW@KARO-electronics.de>
Cc: Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <kernel@pengutronix.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@lists.infradead.org>,
linux-clk <linux-clk@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] clk: imx25: set correct parents for ssi ipg clocks
Date: Sun, 11 Mar 2018 17:39:46 +0100 [thread overview]
Message-ID: <20180311163946.GA11507@botnar.kaiser.cx> (raw)
In-Reply-To: <CAOMZO5Czv7Rj-wA9L42S9GJhufjw3br0d+iLcf070NWH4SjCbA@mail.gmail.com>
Hi Fabio & Lothar,
Thus wrote Fabio Estevam (festevam@gmail.com):
> On Thu, Mar 8, 2018 at 1:46 PM, Martin Kaiser <martin@kaiser.cx> wrote:
> >> I can get audio to work fine without your patch on a mx25pdk.
> > this is surprising. How come the ssi1_ipg_per clock is not turned off by
> > clk_disable_unused()? Where is it used? Do you have
> > <&clks 55>
> > anywhere in your DT?
> No, I don't. imx25-pdk board operates SSI in slave mode.
> > (My codec chip does not use a dedicated clock line. It takes the bit clock that
> > is the output of SSI. Are you maybe using ssi1_ipg_per for your codec and
> > enable it there?)
> The difference between our boards is that you use SSI in master mode
> and mx25pdk in slave mode.
> > In my first mail, I was wondering about imx25 uart1, where we also have
> > uart1_ipg and uart_ipg_per and the clock seeting is
> > clk[uart1_ipg] = imx_clk_gate("uart1_ipg", "ipg", ccm(CCM_CGCR2), 14);
> > In this case, both uart1 and uart_ipg_per are listed in the device tree
> > uart1: serial@43f90000 {
> > ...
> > clocks = <&clks 120>, <&clks 57>;
> > clock-names = "ipg", "per";
> > };
> > Documentation/devicetree/bindings/clock/imx25-clock.txt
> > uart_ipg_per 57
> > uart1_ipg 120
> > and the driver enables both clocks explicitly. So they are not unused.
> > Doing something like this is not an option for ssi, this will not work with
> > imx31, 35 etc.
> The solution to this is passing the "baud" clock as Lothar pointed out.
ok, I got your point now.
The ssi1_ipg clock does not depend on ssi1_ipg_per. This is in line with
the clock generation scheme in the reference manual.
And there's configurations where ssi1_ipg should be switched on, but not
ssi1_ipg_per.
I'll look into using the baud clock on my board.
Thanks to both of you for taking the time to explain this.
Best regards,
Martin
WARNING: multiple messages have this Message-ID (diff)
From: martin@kaiser.cx (Martin Kaiser)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clk: imx25: set correct parents for ssi ipg clocks
Date: Sun, 11 Mar 2018 17:39:46 +0100 [thread overview]
Message-ID: <20180311163946.GA11507@botnar.kaiser.cx> (raw)
In-Reply-To: <CAOMZO5Czv7Rj-wA9L42S9GJhufjw3br0d+iLcf070NWH4SjCbA@mail.gmail.com>
Hi Fabio & Lothar,
Thus wrote Fabio Estevam (festevam at gmail.com):
> On Thu, Mar 8, 2018 at 1:46 PM, Martin Kaiser <martin@kaiser.cx> wrote:
> >> I can get audio to work fine without your patch on a mx25pdk.
> > this is surprising. How come the ssi1_ipg_per clock is not turned off by
> > clk_disable_unused()? Where is it used? Do you have
> > <&clks 55>
> > anywhere in your DT?
> No, I don't. imx25-pdk board operates SSI in slave mode.
> > (My codec chip does not use a dedicated clock line. It takes the bit clock that
> > is the output of SSI. Are you maybe using ssi1_ipg_per for your codec and
> > enable it there?)
> The difference between our boards is that you use SSI in master mode
> and mx25pdk in slave mode.
> > In my first mail, I was wondering about imx25 uart1, where we also have
> > uart1_ipg and uart_ipg_per and the clock seeting is
> > clk[uart1_ipg] = imx_clk_gate("uart1_ipg", "ipg", ccm(CCM_CGCR2), 14);
> > In this case, both uart1 and uart_ipg_per are listed in the device tree
> > uart1: serial at 43f90000 {
> > ...
> > clocks = <&clks 120>, <&clks 57>;
> > clock-names = "ipg", "per";
> > };
> > Documentation/devicetree/bindings/clock/imx25-clock.txt
> > uart_ipg_per 57
> > uart1_ipg 120
> > and the driver enables both clocks explicitly. So they are not unused.
> > Doing something like this is not an option for ssi, this will not work with
> > imx31, 35 etc.
> The solution to this is passing the "baud" clock as Lothar pointed out.
ok, I got your point now.
The ssi1_ipg clock does not depend on ssi1_ipg_per. This is in line with
the clock generation scheme in the reference manual.
And there's configurations where ssi1_ipg should be switched on, but not
ssi1_ipg_per.
I'll look into using the baud clock on my board.
Thanks to both of you for taking the time to explain this.
Best regards,
Martin
next prev parent reply other threads:[~2018-03-11 16:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-06 22:02 [PATCH] clk: imx25: set correct parents for ssi ipg clocks Martin Kaiser
2018-03-06 22:02 ` Martin Kaiser
2018-03-06 22:23 ` Fabio Estevam
2018-03-06 22:23 ` Fabio Estevam
2018-03-08 14:08 ` Martin Kaiser
2018-03-08 14:08 ` Martin Kaiser
2018-03-08 15:07 ` Fabio Estevam
2018-03-08 15:07 ` Fabio Estevam
2018-03-08 16:46 ` Martin Kaiser
2018-03-08 16:46 ` Martin Kaiser
2018-03-09 16:02 ` Lothar Waßmann
2018-03-09 16:02 ` Lothar Waßmann
2018-03-09 16:02 ` Lothar Waßmann
2018-03-10 2:37 ` Fabio Estevam
2018-03-10 2:37 ` Fabio Estevam
2018-03-11 16:39 ` Martin Kaiser [this message]
2018-03-11 16:39 ` Martin Kaiser
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=20180311163946.GA11507@botnar.kaiser.cx \
--to=martin@kaiser.cx \
--cc=LW@KARO-electronics.de \
--cc=fabio.estevam@nxp.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=shawnguo@kernel.org \
/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.