All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@csie.org>
To: Icenowy Zheng <icenowy@aosc.io>
Cc: Chen-Yu Tsai <wens@csie.org>,
	Maxime Ripard <maxime.ripard@free-electrons.com>,
	Rob Herring <robh+dt@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	devicetree <devicetree@vger.kernel.org>,
	linux-clk <linux-clk@vger.kernel.org>,
	"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>
Subject: Re: [PATCH v3 08/10] clk: sunxi-ng: support R40 SoC
Date: Sat, 12 Aug 2017 12:05:38 +0800	[thread overview]
Message-ID: <CAGb2v64_aUYrU0gJyVMiTpJq83FhPUfo9rj_51d4X5mK0NSONQ@mail.gmail.com> (raw)
In-Reply-To: <7e211ba8fd8ae0296f678294d09fcf0d@aosc.io>

On Sat, Aug 12, 2017 at 12:04 PM,  <icenowy@aosc.io> wrote:
> 在 2017-05-29 15:34,Chen-Yu Tsai 写道:
>>
>> Hi,
>>
>> On Sat, May 27, 2017 at 06:23:06PM +0800, Icenowy Zheng wrote:
>>>
>>> Allwinner R40 SoC have a clock controller module in the style of the
>>> SoCs beyond sun6i, however, it's more rich and complex.
>>>
>>> Add support for it.
>>>
>>> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
>>> ---
>>> Changes in v3:
>>> - Rebased on current linux-next.
>>> Changes in v2:
>>> - Fixes according to the SoC's user manual.
>>>
>>>  drivers/clk/sunxi-ng/Kconfig              |   10 +
>>>  drivers/clk/sunxi-ng/Makefile             |    1 +
>>>  drivers/clk/sunxi-ng/ccu-sun8i-r40.c      | 1153
>>> +++++++++++++++++++++++++++++
>>>  drivers/clk/sunxi-ng/ccu-sun8i-r40.h      |   68 ++
>>>  include/dt-bindings/clock/sun8i-r40-ccu.h |  191 +++++
>>>  include/dt-bindings/reset/sun8i-r40-ccu.h |  129 ++++
>>>  6 files changed, 1552 insertions(+)
>>>  create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-r40.c
>>>  create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-r40.h
>>>  create mode 100644 include/dt-bindings/clock/sun8i-r40-ccu.h
>>>  create mode 100644 include/dt-bindings/reset/sun8i-r40-ccu.h
>>>
>> ...
>>>
>>> +static SUNXI_CCU_NM_WITH_GATE_LOCK(pll_ddr1_clk, "pll-ddr1",
>>> +                                  "osc24M", 0x04c,
>>> +                                  8, 7,        /* N */
>>
>>
>> N has minimum and maximum limits.
>
>
> These constraints are never implemented in old SoCs.

Then we should implement them if we find that they are
missing.

ChenYu

WARNING: multiple messages have this Message-ID (diff)
From: wens@csie.org (Chen-Yu Tsai)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 08/10] clk: sunxi-ng: support R40 SoC
Date: Sat, 12 Aug 2017 12:05:38 +0800	[thread overview]
Message-ID: <CAGb2v64_aUYrU0gJyVMiTpJq83FhPUfo9rj_51d4X5mK0NSONQ@mail.gmail.com> (raw)
In-Reply-To: <7e211ba8fd8ae0296f678294d09fcf0d@aosc.io>

On Sat, Aug 12, 2017 at 12:04 PM,  <icenowy@aosc.io> wrote:
> ? 2017-05-29 15:34?Chen-Yu Tsai ???
>>
>> Hi,
>>
>> On Sat, May 27, 2017 at 06:23:06PM +0800, Icenowy Zheng wrote:
>>>
>>> Allwinner R40 SoC have a clock controller module in the style of the
>>> SoCs beyond sun6i, however, it's more rich and complex.
>>>
>>> Add support for it.
>>>
>>> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
>>> ---
>>> Changes in v3:
>>> - Rebased on current linux-next.
>>> Changes in v2:
>>> - Fixes according to the SoC's user manual.
>>>
>>>  drivers/clk/sunxi-ng/Kconfig              |   10 +
>>>  drivers/clk/sunxi-ng/Makefile             |    1 +
>>>  drivers/clk/sunxi-ng/ccu-sun8i-r40.c      | 1153
>>> +++++++++++++++++++++++++++++
>>>  drivers/clk/sunxi-ng/ccu-sun8i-r40.h      |   68 ++
>>>  include/dt-bindings/clock/sun8i-r40-ccu.h |  191 +++++
>>>  include/dt-bindings/reset/sun8i-r40-ccu.h |  129 ++++
>>>  6 files changed, 1552 insertions(+)
>>>  create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-r40.c
>>>  create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-r40.h
>>>  create mode 100644 include/dt-bindings/clock/sun8i-r40-ccu.h
>>>  create mode 100644 include/dt-bindings/reset/sun8i-r40-ccu.h
>>>
>> ...
>>>
>>> +static SUNXI_CCU_NM_WITH_GATE_LOCK(pll_ddr1_clk, "pll-ddr1",
>>> +                                  "osc24M", 0x04c,
>>> +                                  8, 7,        /* N */
>>
>>
>> N has minimum and maximum limits.
>
>
> These constraints are never implemented in old SoCs.

Then we should implement them if we find that they are
missing.

ChenYu

  reply	other threads:[~2017-08-12  4:05 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-27 10:22 [PATCH v3 00/10] Initial Allwinner R40 support Icenowy Zheng
2017-05-27 10:22 ` Icenowy Zheng
2017-05-27 10:22 ` Icenowy Zheng
2017-05-27 10:22 ` [PATCH v3 01/10] arm: sunxi: add support for R40 SoC Icenowy Zheng
2017-05-27 10:22   ` Icenowy Zheng
2017-05-28 14:57   ` Chen-Yu Tsai
2017-05-28 14:57     ` Chen-Yu Tsai
2017-05-31 19:42   ` Rob Herring
2017-05-31 19:42     ` Rob Herring
2017-05-27 10:23 ` [PATCH v3 02/10] pinctrl: sunxi: Add SoC ID definitions for A10, A20 and R40 SoCs Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
     [not found]   ` <20170527102308.1988-3-icenowy-h8G6r0blFSE@public.gmane.org>
2017-05-28 14:58     ` Chen-Yu Tsai
2017-05-28 14:58       ` Chen-Yu Tsai
2017-05-28 14:58       ` Chen-Yu Tsai
2017-05-29 16:33   ` Linus Walleij
2017-05-29 16:33     ` Linus Walleij
2017-05-29 16:33     ` Linus Walleij
2017-05-27 10:23 ` [PATCH v3 03/10] pinctrl: sunxi: add A20 support to A10 driver Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
     [not found]   ` <20170527102308.1988-4-icenowy-h8G6r0blFSE@public.gmane.org>
2017-05-28 15:06     ` Chen-Yu Tsai
2017-05-28 15:06       ` Chen-Yu Tsai
2017-05-28 15:06       ` Chen-Yu Tsai
2017-05-29 16:35   ` Linus Walleij
2017-05-29 16:35     ` Linus Walleij
2017-05-29 16:35     ` Linus Walleij
2017-05-27 10:23 ` [PATCH v3 04/10] pinctrl: sunxi: drop dedicated A20 driver Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
     [not found]   ` <20170527102308.1988-5-icenowy-h8G6r0blFSE@public.gmane.org>
2017-05-28 15:08     ` Chen-Yu Tsai
2017-05-28 15:08       ` Chen-Yu Tsai
2017-05-28 15:08       ` Chen-Yu Tsai
2017-05-29 16:39   ` Linus Walleij
2017-05-29 16:39     ` Linus Walleij
2017-05-29 16:39     ` Linus Walleij
2017-05-27 10:23 ` [PATCH v3 05/10] dt-bindings: add compatible string for Allwinner R40 pinctrl Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
2017-05-28 15:09   ` Chen-Yu Tsai
2017-05-28 15:09     ` Chen-Yu Tsai
     [not found]   ` <20170527102308.1988-6-icenowy-h8G6r0blFSE@public.gmane.org>
2017-05-29 16:40     ` Linus Walleij
2017-05-29 16:40       ` Linus Walleij
2017-05-29 16:40       ` Linus Walleij
2017-05-29 16:40       ` Linus Walleij
2017-05-27 10:23 ` [PATCH v3 06/10] pinctrl: sunxi: add support of R40 to A10 pinctrl driver Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
2017-05-29 13:11   ` Chen-Yu Tsai
2017-05-29 13:11     ` Chen-Yu Tsai
     [not found]     ` <20170529131100.a56rv3e5z3kpcxuo-SLa5LZP+eSXNLxjTenLetw@public.gmane.org>
2017-05-29 13:19       ` icenowy-h8G6r0blFSE
2017-05-29 13:19         ` icenowy at aosc.io
2017-05-29 13:19         ` icenowy
2017-05-29 13:25         ` Chen-Yu Tsai
2017-05-29 13:25           ` Chen-Yu Tsai
2017-05-29 16:43   ` Linus Walleij
2017-05-29 16:43     ` Linus Walleij
2017-05-29 16:43     ` Linus Walleij
     [not found] ` <20170527102308.1988-1-icenowy-h8G6r0blFSE@public.gmane.org>
2017-05-27 10:23   ` [PATCH v3 07/10] dt-bindings: add compatible string for Allwinner R40 CCU Icenowy Zheng
2017-05-27 10:23     ` Icenowy Zheng
2017-05-27 10:23     ` Icenowy Zheng
2017-05-28 15:09     ` Chen-Yu Tsai
2017-05-28 15:09       ` Chen-Yu Tsai
2017-08-19  8:17       ` Chen-Yu Tsai
2017-08-19  8:17         ` Chen-Yu Tsai
2017-05-27 10:23 ` [PATCH v3 08/10] clk: sunxi-ng: support R40 SoC Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
2017-05-29  7:34   ` Chen-Yu Tsai
2017-05-29  7:34     ` Chen-Yu Tsai
2017-07-22  3:00     ` icenowy
2017-07-22  3:00       ` icenowy at aosc.io
2017-08-12  4:04       ` Chen-Yu Tsai
2017-08-12  4:04         ` Chen-Yu Tsai
2017-08-12  4:51         ` icenowy
2017-08-12  4:51           ` icenowy at aosc.io
2017-08-12  5:16           ` Chen-Yu Tsai
2017-08-12  5:16             ` Chen-Yu Tsai
2017-08-12  4:04     ` icenowy
2017-08-12  4:04       ` icenowy at aosc.io
2017-08-12  4:05       ` Chen-Yu Tsai [this message]
2017-08-12  4:05         ` Chen-Yu Tsai
2017-05-27 10:23 ` [PATCH v3 09/10] ARM: dts: sun8i: Add basic dtsi file for Allwinner R40 Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
     [not found]   ` <20170527102308.1988-10-icenowy-h8G6r0blFSE@public.gmane.org>
2017-05-29  8:15     ` Chen-Yu Tsai
2017-05-29  8:15       ` Chen-Yu Tsai
2017-05-29  8:15       ` Chen-Yu Tsai
2017-05-27 10:23 ` [PATCH v3 10/10] ARM: dts: sun8i: Add board dts file for Banana Pi M2 Ultra Icenowy Zheng
2017-05-27 10:23   ` Icenowy Zheng
2017-05-29  8:59   ` Chen-Yu Tsai
2017-05-29  8:59     ` Chen-Yu Tsai

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=CAGb2v64_aUYrU0gJyVMiTpJq83FhPUfo9rj_51d4X5mK0NSONQ@mail.gmail.com \
    --to=wens@csie.org \
    --cc=devicetree@vger.kernel.org \
    --cc=icenowy@aosc.io \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxime.ripard@free-electrons.com \
    --cc=robh+dt@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.