All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerome Brunet <jbrunet@baylibre.com>
To: Yixun Lan <yixun.lan@amlogic.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: robh@kernel.org, Neil Armstrong <narmstrong@baylibre.com>,
	sboyd@kernel.org, khilman@baylibre.com, mturquette@baylibre.com,
	linux-kernel@vger.kernel.org, boris.brezillon@bootlin.com,
	jian.hu@amlogic.com, liang.yang@amlogic.com,
	qiufang.dai@amlogic.com, miquel.raynal@bootlin.com,
	carlo@caione.org, linux-amlogic@lists.infradead.org,
	linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/3] clk: meson: add sub EMMC clock controller driver
Date: Wed, 04 Jul 2018 10:07:08 +0200	[thread overview]
Message-ID: <1530691628.2900.216.camel@baylibre.com> (raw)
In-Reply-To: <ad673997-927e-76f4-23a4-bcf28f269968@amlogic.com>

On Wed, 2018-07-04 at 15:17 +0800, Yixun Lan wrote:
> > you are describing the mux and the divider here
> > however, meson-gx-mmc.c has a few more clock related bits:
> > - CLK_CORE_PHASE_MASK
> > - CLK_TX_PHASE_MASK
> > - CLK_RX_PHASE_MASK
> > - CLK_V2_TX_DELAY_MASK / CLK_V3_TX_DELAY_MASK
> > - CLK_V2_RX_DELAY_MASK / CLK_V3_RX_DELAY_MASK
> > - CLK_V2_ALWAYS_ON / CLK_V3_ALWAYS_ON
> > 
> > are these used for the MMC clock or are some of these routed to the
> > NAND pins as well?
> 
> There clocks are not used in NAND driver..
> 
> I understand your concern here, if there clocks are also routed to NAND
> pins, then we also need to implement them here
> actually, to answer your question, I need to query the ASIC team..

Even if the NAND driver does not need to change the phases, it might need to
make sure these phases are reset on init. It would not hurt to handle these
phases in your clock controller.

WARNING: multiple messages have this Message-ID (diff)
From: jbrunet@baylibre.com (Jerome Brunet)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] clk: meson: add sub EMMC clock controller driver
Date: Wed, 04 Jul 2018 10:07:08 +0200	[thread overview]
Message-ID: <1530691628.2900.216.camel@baylibre.com> (raw)
In-Reply-To: <ad673997-927e-76f4-23a4-bcf28f269968@amlogic.com>

On Wed, 2018-07-04 at 15:17 +0800, Yixun Lan wrote:
> > you are describing the mux and the divider here
> > however, meson-gx-mmc.c has a few more clock related bits:
> > - CLK_CORE_PHASE_MASK
> > - CLK_TX_PHASE_MASK
> > - CLK_RX_PHASE_MASK
> > - CLK_V2_TX_DELAY_MASK / CLK_V3_TX_DELAY_MASK
> > - CLK_V2_RX_DELAY_MASK / CLK_V3_RX_DELAY_MASK
> > - CLK_V2_ALWAYS_ON / CLK_V3_ALWAYS_ON
> > 
> > are these used for the MMC clock or are some of these routed to the
> > NAND pins as well?
> 
> There clocks are not used in NAND driver..
> 
> I understand your concern here, if there clocks are also routed to NAND
> pins, then we also need to implement them here
> actually, to answer your question, I need to query the ASIC team..

Even if the NAND driver does not need to change the phases, it might need to
make sure these phases are reset on init. It would not hurt to handle these
phases in your clock controller.

WARNING: multiple messages have this Message-ID (diff)
From: jbrunet@baylibre.com (Jerome Brunet)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH 3/3] clk: meson: add sub EMMC clock controller driver
Date: Wed, 04 Jul 2018 10:07:08 +0200	[thread overview]
Message-ID: <1530691628.2900.216.camel@baylibre.com> (raw)
In-Reply-To: <ad673997-927e-76f4-23a4-bcf28f269968@amlogic.com>

On Wed, 2018-07-04 at 15:17 +0800, Yixun Lan wrote:
> > you are describing the mux and the divider here
> > however, meson-gx-mmc.c has a few more clock related bits:
> > - CLK_CORE_PHASE_MASK
> > - CLK_TX_PHASE_MASK
> > - CLK_RX_PHASE_MASK
> > - CLK_V2_TX_DELAY_MASK / CLK_V3_TX_DELAY_MASK
> > - CLK_V2_RX_DELAY_MASK / CLK_V3_RX_DELAY_MASK
> > - CLK_V2_ALWAYS_ON / CLK_V3_ALWAYS_ON
> > 
> > are these used for the MMC clock or are some of these routed to the
> > NAND pins as well?
> 
> There clocks are not used in NAND driver..
> 
> I understand your concern here, if there clocks are also routed to NAND
> pins, then we also need to implement them here
> actually, to answer your question, I need to query the ASIC team..

Even if the NAND driver does not need to change the phases, it might need to
make sure these phases are reset on init. It would not hurt to handle these
phases in your clock controller.

  reply	other threads:[~2018-07-04  8:09 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-03 14:57 [PATCH 0/3] clk: meson: add a sub EMMC clock controller support Yixun Lan
2018-07-03 14:57 ` Yixun Lan
2018-07-03 14:57 ` Yixun Lan
2018-07-03 14:57 ` Yixun Lan
2018-07-03  7:17 ` Boris Brezillon
2018-07-03  7:17   ` Boris Brezillon
2018-07-03  7:17   ` Boris Brezillon
2018-07-03  7:17   ` Boris Brezillon
2018-07-03 14:57 ` [PATCH 1/3] clk: meson: add DT documentation for emmc clock controller Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03  8:16   ` Jerome Brunet
2018-07-03  8:16     ` Jerome Brunet
2018-07-03  8:16     ` Jerome Brunet
2018-07-03  8:16     ` Jerome Brunet
2018-07-03  9:59     ` Yixun Lan
2018-07-03  9:59       ` Yixun Lan
2018-07-03  9:59       ` Yixun Lan
2018-07-03  9:59       ` Yixun Lan
2018-07-03 14:57 ` [PATCH 2/3] clk: meson: add sub EMMC clock dt-bindings IDs Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03  7:21   ` Boris Brezillon
2018-07-03  7:21     ` Boris Brezillon
2018-07-03  7:21     ` Boris Brezillon
2018-07-03  7:21     ` Boris Brezillon
2018-07-03  7:36     ` Yixun Lan
2018-07-03  7:36       ` Yixun Lan
2018-07-03  7:36       ` Yixun Lan
2018-07-03  7:36       ` Yixun Lan
2018-07-03  8:09       ` Jerome Brunet
2018-07-03  8:09         ` Jerome Brunet
2018-07-03  8:09         ` Jerome Brunet
2018-07-03  8:09         ` Jerome Brunet
2018-07-03  9:56         ` Yixun Lan
2018-07-03  9:56           ` Yixun Lan
2018-07-03  9:56           ` Yixun Lan
2018-07-03  9:56           ` Yixun Lan
2018-07-03 10:01           ` Jerome Brunet
2018-07-03 10:01             ` Jerome Brunet
2018-07-03 10:01             ` Jerome Brunet
2018-07-03 10:01             ` Jerome Brunet
2018-07-03 14:57 ` [PATCH 3/3] clk: meson: add sub EMMC clock controller driver Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03 14:57   ` Yixun Lan
2018-07-03  8:51   ` Jerome Brunet
2018-07-03  8:51     ` Jerome Brunet
2018-07-03  8:51     ` Jerome Brunet
2018-07-03  8:51     ` Jerome Brunet
2018-07-03  9:56     ` Yixun Lan
2018-07-03  9:56       ` Yixun Lan
2018-07-03  9:56       ` Yixun Lan
2018-07-03 18:58   ` Martin Blumenstingl
2018-07-03 18:58     ` Martin Blumenstingl
2018-07-03 18:58     ` Martin Blumenstingl
2018-07-04  7:17     ` Yixun Lan
2018-07-04  7:17       ` Yixun Lan
2018-07-04  7:17       ` Yixun Lan
2018-07-04  7:17       ` Yixun Lan
2018-07-04  8:07       ` Jerome Brunet [this message]
2018-07-04  8:07         ` Jerome Brunet
2018-07-04  8:07         ` Jerome Brunet
2018-07-04  8:07         ` Jerome Brunet

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=1530691628.2900.216.camel@baylibre.com \
    --to=jbrunet@baylibre.com \
    --cc=boris.brezillon@bootlin.com \
    --cc=carlo@caione.org \
    --cc=jian.hu@amlogic.com \
    --cc=khilman@baylibre.com \
    --cc=liang.yang@amlogic.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=mturquette@baylibre.com \
    --cc=narmstrong@baylibre.com \
    --cc=qiufang.dai@amlogic.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=yixun.lan@amlogic.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.