From: Corentin Labbe <clabbe.montjoie@gmail.com>
To: Chen-Yu Tsai <wens@csie.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-sunxi@googlegroups.com
Subject: Re: [linux-sunxi] [PATCH v2 0/8] clk: sunxi-ng: Add support for A83T CCU
Date: Fri, 5 May 2017 08:46:45 +0200 [thread overview]
Message-ID: <20170505064645.GA31657@Red> (raw)
In-Reply-To: <20170503031658.29299-1-wens@csie.org>
On Wed, May 03, 2017 at 11:16:50AM +0800, Chen-Yu Tsai wrote:
> Hi everyone,
>
> (Resent with devicetree mailing list CC-ed.)
> This is v2 of my A83T CCU series. This is for 4.13.
>
> Changes since v1:
>
> - Dropped two patches that were merged
>
> - Added clk core flag to disable caching of clock phases
>
> - Added support for multiple variable pre-dividers
>
> - Merged "pll-periph-ahb1" pre-divider clock into "ahb1" clock
> with multiple variable pre-dividers
>
> - Introduced new class of phase clocks that return -ENOTSUPP
> when the clock is in new timing mode
>
> - Force mmc2 clock to new timing mode
>
> - Added back mmc2 output and sample clocks
>
> - Fixed bit ops for forcing audio PLL configuration
>
> - Added requirement for "losc" clock in device tree binding
>
> - Stripped leading 0 in device node name
>
> - Updated subject prefixes for various patches
>
> Patch 1 adds a compatible string for the A83T CCU to the sunxi-ccu
> bindings.
>
> Patch 2 adds a CLK_GET_PHASE_NOCACHE flag to the clk core, asking it
> not to cache clock phase values. This is similar to CLK_GET_RATE_NOCACHE.
> Patch 5 has a compile time dependency on this patch, for the flag value.
>
> Patch 3 adds a new class of phase clocks that check the new timing mode
> bit, and returns an error if it is set, which indicates the phase delays
> no longer apply. This is a clean way to signal which timing mode the mmc
> clock is in, without using any custom functions or callbacks. We don't
> support runtime switching of modes.
>
> Patch 4 adds support for multiple variable pre-dividers to the sunxi-ng
> mux class.
>
> Patch 5 adds the driver for the A83T CCU.
>
> Patch 6 adds the CCU device nodes, and fixes up any existing clock
> phandles in the dtsi, without using the macros.
>
> Patch 7 sets the clock accuracy for the main oscillator.
>
> Patch 8 is for the next -rc2, switch the clock indices from raw numbers
> to macros we introduced with the driver. This will be updated if more
> peripherals are introduced in the same cycle.
>
> Let me know what you think.
>
> Cover letter excerpt from v1:
>
> This is yet another series that adds support for the A83T CCU.
> The A83T CCU has a mix of new styled (like the A80) clocks at
> old (like A3x) offsets. Some differences include:
>
> - D1/D2 style PLL clocks
> - divisible audio module clocks
> - new timing mode for mmc2 module clock
>
>
> Regards
> ChenYu
>
> Chen-Yu Tsai (8):
> dt-bindings: clock: sunxi-ccu: Add compatible string for A83T CCU
> clk: Provide option to query hardware for clk phase
> clk: sunxi-ng: Add class of phase clocks supporting MMC new timing
> modes
> clk: sunxi-ng: Support multiple variable pre-dividers
> clk: sunxi-ng: Add driver for A83T CCU
> ARM: sun8i: a83t: Add CCU device nodes
> ARM: sun8i: a83t: Set clock accuracy for 24MHz oscillator
> ARM: sun8i: a83t: Switch to CCU device tree binding macros
>
> .../devicetree/bindings/clock/sunxi-ccu.txt | 2 +
> arch/arm/boot/dts/sun8i-a83t.dtsi | 19 +-
> drivers/clk/clk.c | 6 +-
> drivers/clk/sunxi-ng/Kconfig | 10 +
> drivers/clk/sunxi-ng/Makefile | 1 +
> drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 911 +++++++++++++++++++++
> drivers/clk/sunxi-ng/ccu-sun8i-a83t.h | 64 ++
> drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-r.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 10 +-
> drivers/clk/sunxi-ng/ccu_mux.c | 15 +-
> drivers/clk/sunxi-ng/ccu_mux.h | 13 +-
> drivers/clk/sunxi-ng/ccu_phase.c | 47 ++
> drivers/clk/sunxi-ng/ccu_phase.h | 16 +
> include/dt-bindings/clock/sun8i-a83t-ccu.h | 140 ++++
> include/dt-bindings/reset/sun8i-a83t-ccu.h | 98 +++
> include/linux/clk-provider.h | 1 +
> 21 files changed, 1363 insertions(+), 50 deletions(-)
> create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
> create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.h
> create mode 100644 include/dt-bindings/clock/sun8i-a83t-ccu.h
> create mode 100644 include/dt-bindings/reset/sun8i-a83t-ccu.h
>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
WARNING: multiple messages have this Message-ID (diff)
From: clabbe.montjoie@gmail.com (Corentin Labbe)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] [PATCH v2 0/8] clk: sunxi-ng: Add support for A83T CCU
Date: Fri, 5 May 2017 08:46:45 +0200 [thread overview]
Message-ID: <20170505064645.GA31657@Red> (raw)
In-Reply-To: <20170503031658.29299-1-wens@csie.org>
On Wed, May 03, 2017 at 11:16:50AM +0800, Chen-Yu Tsai wrote:
> Hi everyone,
>
> (Resent with devicetree mailing list CC-ed.)
> This is v2 of my A83T CCU series. This is for 4.13.
>
> Changes since v1:
>
> - Dropped two patches that were merged
>
> - Added clk core flag to disable caching of clock phases
>
> - Added support for multiple variable pre-dividers
>
> - Merged "pll-periph-ahb1" pre-divider clock into "ahb1" clock
> with multiple variable pre-dividers
>
> - Introduced new class of phase clocks that return -ENOTSUPP
> when the clock is in new timing mode
>
> - Force mmc2 clock to new timing mode
>
> - Added back mmc2 output and sample clocks
>
> - Fixed bit ops for forcing audio PLL configuration
>
> - Added requirement for "losc" clock in device tree binding
>
> - Stripped leading 0 in device node name
>
> - Updated subject prefixes for various patches
>
> Patch 1 adds a compatible string for the A83T CCU to the sunxi-ccu
> bindings.
>
> Patch 2 adds a CLK_GET_PHASE_NOCACHE flag to the clk core, asking it
> not to cache clock phase values. This is similar to CLK_GET_RATE_NOCACHE.
> Patch 5 has a compile time dependency on this patch, for the flag value.
>
> Patch 3 adds a new class of phase clocks that check the new timing mode
> bit, and returns an error if it is set, which indicates the phase delays
> no longer apply. This is a clean way to signal which timing mode the mmc
> clock is in, without using any custom functions or callbacks. We don't
> support runtime switching of modes.
>
> Patch 4 adds support for multiple variable pre-dividers to the sunxi-ng
> mux class.
>
> Patch 5 adds the driver for the A83T CCU.
>
> Patch 6 adds the CCU device nodes, and fixes up any existing clock
> phandles in the dtsi, without using the macros.
>
> Patch 7 sets the clock accuracy for the main oscillator.
>
> Patch 8 is for the next -rc2, switch the clock indices from raw numbers
> to macros we introduced with the driver. This will be updated if more
> peripherals are introduced in the same cycle.
>
> Let me know what you think.
>
> Cover letter excerpt from v1:
>
> This is yet another series that adds support for the A83T CCU.
> The A83T CCU has a mix of new styled (like the A80) clocks at
> old (like A3x) offsets. Some differences include:
>
> - D1/D2 style PLL clocks
> - divisible audio module clocks
> - new timing mode for mmc2 module clock
>
>
> Regards
> ChenYu
>
> Chen-Yu Tsai (8):
> dt-bindings: clock: sunxi-ccu: Add compatible string for A83T CCU
> clk: Provide option to query hardware for clk phase
> clk: sunxi-ng: Add class of phase clocks supporting MMC new timing
> modes
> clk: sunxi-ng: Support multiple variable pre-dividers
> clk: sunxi-ng: Add driver for A83T CCU
> ARM: sun8i: a83t: Add CCU device nodes
> ARM: sun8i: a83t: Set clock accuracy for 24MHz oscillator
> ARM: sun8i: a83t: Switch to CCU device tree binding macros
>
> .../devicetree/bindings/clock/sunxi-ccu.txt | 2 +
> arch/arm/boot/dts/sun8i-a83t.dtsi | 19 +-
> drivers/clk/clk.c | 6 +-
> drivers/clk/sunxi-ng/Kconfig | 10 +
> drivers/clk/sunxi-ng/Makefile | 1 +
> drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 911 +++++++++++++++++++++
> drivers/clk/sunxi-ng/ccu-sun8i-a83t.h | 64 ++
> drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-r.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 10 +-
> drivers/clk/sunxi-ng/ccu_mux.c | 15 +-
> drivers/clk/sunxi-ng/ccu_mux.h | 13 +-
> drivers/clk/sunxi-ng/ccu_phase.c | 47 ++
> drivers/clk/sunxi-ng/ccu_phase.h | 16 +
> include/dt-bindings/clock/sun8i-a83t-ccu.h | 140 ++++
> include/dt-bindings/reset/sun8i-a83t-ccu.h | 98 +++
> include/linux/clk-provider.h | 1 +
> 21 files changed, 1363 insertions(+), 50 deletions(-)
> create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
> create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.h
> create mode 100644 include/dt-bindings/clock/sun8i-a83t-ccu.h
> create mode 100644 include/dt-bindings/reset/sun8i-a83t-ccu.h
>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
WARNING: multiple messages have this Message-ID (diff)
From: Corentin Labbe <clabbe.montjoie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Michael Turquette
<mturquette-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH v2 0/8] clk: sunxi-ng: Add support for A83T CCU
Date: Fri, 5 May 2017 08:46:45 +0200 [thread overview]
Message-ID: <20170505064645.GA31657@Red> (raw)
In-Reply-To: <20170503031658.29299-1-wens-jdAy2FN1RRM@public.gmane.org>
On Wed, May 03, 2017 at 11:16:50AM +0800, Chen-Yu Tsai wrote:
> Hi everyone,
>
> (Resent with devicetree mailing list CC-ed.)
> This is v2 of my A83T CCU series. This is for 4.13.
>
> Changes since v1:
>
> - Dropped two patches that were merged
>
> - Added clk core flag to disable caching of clock phases
>
> - Added support for multiple variable pre-dividers
>
> - Merged "pll-periph-ahb1" pre-divider clock into "ahb1" clock
> with multiple variable pre-dividers
>
> - Introduced new class of phase clocks that return -ENOTSUPP
> when the clock is in new timing mode
>
> - Force mmc2 clock to new timing mode
>
> - Added back mmc2 output and sample clocks
>
> - Fixed bit ops for forcing audio PLL configuration
>
> - Added requirement for "losc" clock in device tree binding
>
> - Stripped leading 0 in device node name
>
> - Updated subject prefixes for various patches
>
> Patch 1 adds a compatible string for the A83T CCU to the sunxi-ccu
> bindings.
>
> Patch 2 adds a CLK_GET_PHASE_NOCACHE flag to the clk core, asking it
> not to cache clock phase values. This is similar to CLK_GET_RATE_NOCACHE.
> Patch 5 has a compile time dependency on this patch, for the flag value.
>
> Patch 3 adds a new class of phase clocks that check the new timing mode
> bit, and returns an error if it is set, which indicates the phase delays
> no longer apply. This is a clean way to signal which timing mode the mmc
> clock is in, without using any custom functions or callbacks. We don't
> support runtime switching of modes.
>
> Patch 4 adds support for multiple variable pre-dividers to the sunxi-ng
> mux class.
>
> Patch 5 adds the driver for the A83T CCU.
>
> Patch 6 adds the CCU device nodes, and fixes up any existing clock
> phandles in the dtsi, without using the macros.
>
> Patch 7 sets the clock accuracy for the main oscillator.
>
> Patch 8 is for the next -rc2, switch the clock indices from raw numbers
> to macros we introduced with the driver. This will be updated if more
> peripherals are introduced in the same cycle.
>
> Let me know what you think.
>
> Cover letter excerpt from v1:
>
> This is yet another series that adds support for the A83T CCU.
> The A83T CCU has a mix of new styled (like the A80) clocks at
> old (like A3x) offsets. Some differences include:
>
> - D1/D2 style PLL clocks
> - divisible audio module clocks
> - new timing mode for mmc2 module clock
>
>
> Regards
> ChenYu
>
> Chen-Yu Tsai (8):
> dt-bindings: clock: sunxi-ccu: Add compatible string for A83T CCU
> clk: Provide option to query hardware for clk phase
> clk: sunxi-ng: Add class of phase clocks supporting MMC new timing
> modes
> clk: sunxi-ng: Support multiple variable pre-dividers
> clk: sunxi-ng: Add driver for A83T CCU
> ARM: sun8i: a83t: Add CCU device nodes
> ARM: sun8i: a83t: Set clock accuracy for 24MHz oscillator
> ARM: sun8i: a83t: Switch to CCU device tree binding macros
>
> .../devicetree/bindings/clock/sunxi-ccu.txt | 2 +
> arch/arm/boot/dts/sun8i-a83t.dtsi | 19 +-
> drivers/clk/clk.c | 6 +-
> drivers/clk/sunxi-ng/Kconfig | 10 +
> drivers/clk/sunxi-ng/Makefile | 1 +
> drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 911 +++++++++++++++++++++
> drivers/clk/sunxi-ng/ccu-sun8i-a83t.h | 64 ++
> drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-r.c | 10 +-
> drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 10 +-
> drivers/clk/sunxi-ng/ccu_mux.c | 15 +-
> drivers/clk/sunxi-ng/ccu_mux.h | 13 +-
> drivers/clk/sunxi-ng/ccu_phase.c | 47 ++
> drivers/clk/sunxi-ng/ccu_phase.h | 16 +
> include/dt-bindings/clock/sun8i-a83t-ccu.h | 140 ++++
> include/dt-bindings/reset/sun8i-a83t-ccu.h | 98 +++
> include/linux/clk-provider.h | 1 +
> 21 files changed, 1363 insertions(+), 50 deletions(-)
> create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
> create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.h
> create mode 100644 include/dt-bindings/clock/sun8i-a83t-ccu.h
> create mode 100644 include/dt-bindings/reset/sun8i-a83t-ccu.h
>
Tested-by: Corentin Labbe <clabbe.montjoie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
next prev parent reply other threads:[~2017-05-05 6:46 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-03 3:16 [PATCH v2 0/8] clk: sunxi-ng: Add support for A83T CCU Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` [PATCH v2 1/8] dt-bindings: clock: sunxi-ccu: Add compatible string " Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-08 16:12 ` Rob Herring
2017-05-08 16:12 ` Rob Herring
2017-05-08 16:12 ` Rob Herring
2017-05-03 3:16 ` [PATCH v2 2/8] clk: Provide option to query hardware for clk phase Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` [PATCH v2 3/8] clk: sunxi-ng: Add class of phase clocks supporting MMC new timing modes Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 20:34 ` Maxime Ripard
2017-05-03 20:34 ` Maxime Ripard
2017-05-03 20:34 ` Maxime Ripard
2017-05-04 3:08 ` Chen-Yu Tsai
2017-05-04 3:08 ` Chen-Yu Tsai
2017-05-04 3:08 ` Chen-Yu Tsai
2017-05-05 7:58 ` Maxime Ripard
2017-05-05 7:58 ` Maxime Ripard
2017-05-05 7:58 ` Maxime Ripard
2017-05-03 3:16 ` [PATCH v2 4/8] clk: sunxi-ng: Support multiple variable pre-dividers Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` [PATCH v2 5/8] clk: sunxi-ng: Add driver for A83T CCU Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` [PATCH v2 6/8] ARM: sun8i: a83t: Add CCU device nodes Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` [PATCH v2 7/8] ARM: sun8i: a83t: Set clock accuracy for 24MHz oscillator Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` [PATCH v2 8/8] ARM: sun8i: a83t: Switch to CCU device tree binding macros Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-03 3:16 ` Chen-Yu Tsai
2017-05-05 6:46 ` Corentin Labbe [this message]
2017-05-05 6:46 ` [PATCH v2 0/8] clk: sunxi-ng: Add support for A83T CCU Corentin Labbe
2017-05-05 6:46 ` [linux-sunxi] " Corentin Labbe
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=20170505064645.GA31657@Red \
--to=clabbe.montjoie@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@free-electrons.com \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=wens@csie.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.