These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/reset/imx8mp-reset.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings
* renamed the imx_blk_ctl_probe to imx_blk_ctl_register since
it's gonna be used by all the i.MX8M for their paltform blk_ctl
driver.
* added dedicated probe function for i.MX8MP blk_ctl driver
* fixed the reset deassert first issue reported by Aisheng Dong
Abel Vesa (14):
dt-bin
These will be used imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/reset/imx8mp-reset.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings
In the reference manual the actual name is Audio BLK_CTL.
Lets make it more obvious here by renaming from audiomix to audio_blk_ctl.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/clock/imx8mp-clock.h | 120 +++
1
These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/reset/imx8mp-reset.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/clock/imx8mp-clock.h | 40
1 file changed, 40 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
b/include/dt-bindings
Some of the features of the hdmi_ctl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
be able to use the imx clock API, this needs to be
in a clock driver. From there it can use the reset controller API and
leave the rest to the syscon.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/Makefile | 2 +-
drivers/clk/imx/clk-blk-ctl.c | 302
This driver is intended to work with the following BLK_CTL IPs found in
i.MX8MP:
- Audio
- Media
- HDMI
Signed-off-by: Abel Vesa
---
drivers/clk/imx/Makefile | 2 +-
drivers/clk/imx/clk-blk-ctl-imx8mp.c | 316 +++
2 files changed, 317 insertions
These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/clock/imx8mp-clock.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
Some of the features of the media_ctl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctl driver.
Signed-off-by: Abel Vesa
Reviewed-by: Dong
The clock is considered to be enabled only if the controlling bits
match the cgr_val mask. Also make sure the is_enabled returns the
correct vaule by locking the access to the register.
Signed-off-by: Abel Vesa
Fixes: 1e54afe9fcfe ("clk: imx: gate2: Allow single bit gating clock")
--
On 20-10-25 11:05:32, Adam Ford wrote:
> On Sun, Oct 25, 2020 at 7:19 AM Marek Vasut wrote:
> >
> > On 10/25/20 1:05 PM, Abel Vesa wrote:
> >
> > [...]
> >
> > >> Together, both the GPC and the clk-blk driver should be able to pull
> > >> t
On 20-10-24 16:03:17, Adam Ford wrote:
> On Sat, Oct 24, 2020 at 3:23 PM Abel Vesa wrote:
> >
> > On 20-10-24 11:20:12, Adam Ford wrote:
> > > There are some less-documented registers which control clocks and
> > > resets for the multimedia block which controls th
On 20-10-24 11:20:12, Adam Ford wrote:
> There are some less-documented registers which control clocks and
> resets for the multimedia block which controls the LCDIF, ISI, MIPI
> CSI, and MIPI DSI.
>
> The i.Mx8M Nano appears to have a subset of the i.MX8MP registers with
> a couple shared regis
The switch between parents for dram_apb and dram_alt is done in EL3,
so make all the ops read-only. That means none of the ops that write
any of the registers is used for such a clock.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-composite-8m.c | 12 +++-
drivers/clk/imx/clk.h
Both dram_apb and dram_alt are controlled by EL3. Using the dram
variant registration of the composite-8m clock, the mux and the
divider will be read only. Do this for all i.MX8M platforms.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-imx8mm.c | 4 ++--
drivers/clk/imx/clk-imx8mn.c | 4
The clocks that can be changed from outside of the clock common framework
scope (for example, EL3) need to have only the .is_enabled gate op.
Signed-off-by: Abel Vesa
---
drivers/clk/clk-gate.c | 5 +
include/linux/clk-provider.h | 1 +
2 files changed, 6 insertions(+)
diff --git a
registers.
Abel Vesa (4):
clk: Add CLK_GET_PARENT_NOCACHE flag
clk: Add clk_gate_ro_ops for read-only gate clocks
clk: imx: composite-8m: Add DRAM clock registration variant
clk: imx8m: Use dram variant registration for dram clocks
drivers/clk/clk-gate.c | 5 +
drivers
This can be used by the clocks that have their parents changed from EL3.
This way the clk_get_parent will read the value from register instead of
using the value stored in the core framework.
Signed-off-by: Abel Vesa
Suggested-by: Peng Fan
---
drivers/clk/clk.c| 31
On 20-10-21 15:40:41, Abel Vesa wrote:
> On i.MX8M platforms the dram_apb and dram_alt are controlled from EL3.
> So in order to keep track of the actual clock tree in kernel, we need
> to actually declare the clocks but never actually change their parents
> or divider settings. W
The switch between parents for dram_apb and dram_alt is done in EL3,
so lets mark the mux and divider as read only with the CLK_DIVIDER_READ_ONLY
and CLK_MUX_READ_ONLY flags.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-composite-8m.c | 7 +++
drivers/clk/imx/clk.h | 6
Both dram_apb and dram_alt are controlled by EL3. Using the dram
variant registration of the composite-8m clock, the mux and the
divider will be read only. Do this for all i.MX8M platforms.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-imx8mm.c | 4 ++--
drivers/clk/imx/clk-imx8mn.c | 4
CLK_DIVIDER_READ_ONLY and CLK_MUX_READ_ONLY flags.
Abel Vesa (2):
clk: imx: composite-8m: Add DRAM clock registration variant
clk: imx8m: Use dram variant registration for dram clocks
drivers/clk/imx/clk-composite-8m.c | 7 +++
drivers/clk/imx/clk-imx8mm.c | 4 ++--
drivers/clk/imx/clk
bus
clocks and that is the 'right' to reparent on rate change. I'll probably send
that myself.
For this entire series:
Reviewed-by: Abel Vesa
> Peng Fan (5):
> clk: imx: add imx8m_clk_hw_composite_bus_critical
> clk: imx8mq: fix noc and noc_io registration
> cl
the audio_pll2_out and sys3_pll_out have to be swapped.
Fixes: b80522040cd3 ("clk: imx: Add clock driver for i.MX8MQ CCM")
Signed-off-by: Abel Vesa
Reported-by: Cosmin Stefan Stoica
---
drivers/clk/imx/clk-imx8mq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
On 20-09-11 17:36:06, Dong Aisheng wrote:
> On Tue, Sep 8, 2020 at 6:27 PM Abel Vesa wrote:
> >
> > The i.MX8MP platform introduces a new type of IP which is called BLK_CTL in
> > RM and usually is comprised of some GPRs that are considered too
> > generic to be part of
These will be used imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/reset/imx8mp-reset.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings
According to the RM, the CCGR101 is shared for the following root clocks:
- AUDIO_AHB_CLK_ROOT
- AUDIO_AXI_CLK_ROOT
- SAI2_CLK_ROOT
- SAI3_CLK_ROOT
- SAI5_CLK_ROOT
- SAI6_CLK_ROOT
- SAI7_CLK_ROOT
- PDM_CLK_ROOT
Signed-off-by: Abel Vesa
Reviewed-by: Dong Aisheng
---
drivers/clk/imx/clk-imx8mp.c
These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/clock/imx8mp-clock.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
All these IDs are for one single HW gate (CCGR101) that is shared
between these root clocks.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/clock/imx8mp-clock.h | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/include/dt-bindings/clock
Document the i.MX BLK_CTL with its devicetree properties.
Signed-off-by: Abel Vesa
Reviewed-by: Dong Aisheng
---
.../devicetree/bindings/clock/fsl,imx-blk-ctl.yaml | 60 ++
1 file changed, 60 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/fsl,imx
These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/reset/imx8mp-reset.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/clock/imx8mp-clock.h | 40
1 file changed, 40 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
b/include/dt-bindings
Some of the features of the audio_ctl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctl driver.
Signed-off-by: Abel Vesa
Reviewed-by: Dong
Some of the features of the media_ctl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctl driver.
Signed-off-by: Abel Vesa
Reviewed-by: Dong
Some of the features of the hdmi_ctl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
This driver is intended to work with the following BLK_CTL IPs found in
i.MX8MP:
- Audio
- Media
- HDMI
Signed-off-by: Abel Vesa
---
drivers/clk/imx/Makefile | 2 +-
drivers/clk/imx/clk-blk-ctl-imx8mp.c | 313 +++
2 files changed, 314 insertions
These will be used by the imx8mp for blk_ctl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/reset/imx8mp-reset.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings
be able to use the imx clock API, this needs to be
in a clock driver. From there it can use the reset controller API and
leave the rest to the syscon.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/Makefile | 2 +-
drivers/clk/imx/clk-blk-ctl.c | 297
In the reference manual the actual name is Audio BLK_CTL.
Lets make it more obvious here by renaming from audiomix to audio_blk_ctl.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
Reviewed-by: Dong Aisheng
---
include/dt-bindings/clock/imx8mp-clock.h | 120 +++
1
naming consistent with the RM: BLK_CTL (not BLK_CTRL)
* fixed the reset set procedure as discussed with Philipp Zabel
* removed the patch that includes the imx8mp-reset header in dtsi
as there is no user yet.
* added i.MX8MP specific blk_ctl driver as suggested by Aisheng Dong
Abel Vesa (14):
dt
V_ROUND_UP(10, rate)));
> + }
Just to make sure this is totally understood, if the lpcg consumer
needs to two enables/disables in less than 4 multiplied by the clock
period, the second enable/disable will be delayed.
If we're fine with this, then here is my R-b.
Re
On 20-08-20 09:31:27, Dong Aisheng wrote:
> Hi Rob, Stephen,
>
> On Thu, Aug 20, 2020 at 4:37 AM Abel Vesa wrote:
> >
> > On 20-08-18 19:34:14, Dong Aisheng wrote:
> > > On Fri, Aug 14, 2020 at 8:12 PM Abel Vesa wrote:
> > > >
> > > > Some
On 20-08-25 14:07:29, Philipp Zabel wrote:
> On Tue, 2020-08-25 at 14:24 +0300, Abel Vesa wrote:
> [...]
> > > > +static int imx_blk_ctrl_reset_set(struct reset_controller_dev *rcdev,
> > > > + unsigned long id, bool assert)
>
On 20-08-25 14:07:29, Philipp Zabel wrote:
> On Tue, 2020-08-25 at 14:24 +0300, Abel Vesa wrote:
> [...]
> > > > +static int imx_blk_ctrl_reset_set(struct reset_controller_dev *rcdev,
> > > > + unsigned long id, bool assert)
>
On 20-08-25 12:48:41, Philipp Zabel wrote:
> On Fri, 2020-08-14 at 15:09 +0300, Abel Vesa wrote:
> > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in
> > RM and usually is comprised of some GPRs that are considered too
> > generic to be part of any dedicated
On 20-08-18 19:34:14, Dong Aisheng wrote:
> On Fri, Aug 14, 2020 at 8:12 PM Abel Vesa wrote:
> >
> > Some of the features of the media_ctrl will be used by some
> > different drivers in a way those drivers will know best, so adding the
> > syscon compatible we allow
On 20-08-18 19:32:05, Dong Aisheng wrote:
> On Fri, Aug 14, 2020 at 8:12 PM Abel Vesa wrote:
> >
> > Some of the features of the audio_ctrl will be used by some
> > different drivers in a way those drivers will know best, so adding the
> > syscon compatible we allow
On 20-08-18 19:29:47, Dong Aisheng wrote:
> On Fri, Aug 14, 2020 at 8:12 PM Abel Vesa wrote:
> >
> > Add audio blk_ctrl clocks and resets in the i.MX8MP clock
> > driver to be picked up by the clk-blk-ctrl driver.
> >
> > Signed-off-by: Abel Vesa
> > ---
&g
On 20-08-18 19:27:03, Dong Aisheng wrote:
> On Fri, Aug 14, 2020 at 8:12 PM Abel Vesa wrote:
> >
> > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in
> > RM and usually is comprised of some GPRs that are considered too
> > generic to be part of any dedi
On 20-08-17 15:51:13, Dong Aisheng wrote:
> On Fri, Aug 14, 2020 at 8:13 PM Abel Vesa wrote:
> >
> > The hdmi BLK_CTRL ids have been moved to imx8mp-reset.h
> >
> > Signed-off-by: Abel Vesa
>
> The change seems do not comply with the patch title?
>
Will fi
In the reference manual the actual name is Audio BLK_CTRL.
Lets make it more obvious here by renaming from audiomix to audio_blk_ctrl.
Signed-off-by: Abel Vesa
---
include/dt-bindings/clock/imx8mp-clock.h | 120 +++
1 file changed, 60 insertions(+), 60 deletions
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
---
include/dt-bindings/reset/imx8mp-reset.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings/reset/imx8mp-reset.h
index 2e8c910..fca0c9bff
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/reset/imx8mp-reset.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/clock/imx8mp-clock.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
b/include/dt-bindings
These will be used imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/reset/imx8mp-reset.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings/reset/imx8mp-reset.h
Document the i.MX BLK_CTRL with its devicetree properties.
Signed-off-by: Abel Vesa
---
.../bindings/clock/fsl,imx-blk-ctrl.yaml | 60 ++
1 file changed, 60 insertions(+)
create mode 100644
Documentation/devicetree/bindings/clock/fsl,imx-blk-ctrl.yaml
diff --git
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/clock/imx8mp-clock.h | 40
1 file changed, 40 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
b/include/dt
IP in their design):
- Audio
- Media
- HDMI
Signed-off-by: Abel Vesa
---
drivers/clk/imx/Makefile | 2 +-
drivers/clk/imx/clk-blk-ctrl.c | 327 +
drivers/clk/imx/clk-blk-ctrl.h | 81 ++
3 files changed, 409 insertions(+), 1 deletion
Some of the features of the audio_ctrl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
Add audio blk_ctrl clocks and resets in the i.MX8MP clock
driver to be picked up by the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-blk-ctrl.c | 4 ++
drivers/clk/imx/clk-imx8mp.c | 138 +
2 files changed, 142 insertions
Add hdmi blk_ctrl clocks and resets in the i.MX8MP clock
driver to be picked up by the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-blk-ctrl.c | 4 +++
drivers/clk/imx/clk-imx8mp.c | 63 ++
2 files changed, 67 insertions
Some of the features of the hdmi_ctrl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
The hdmi BLK_CTRL ids have been moved to imx8mp-reset.h
Signed-off-by: Abel Vesa
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 9de2aa1..daa1769 100644
Add media blk_ctrl clocks and resets in the i.MX8MP clock
driver to be picked up by the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-blk-ctrl.c | 4 +++
drivers/clk/imx/clk-imx8mp.c | 68 ++
2 files changed, 72 insertions
Some of the features of the media_ctrl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
the runtime pm in blk_ctrl as discussed with Philipp Zabel on
v1 thread
* changed the blk-ctl to clock-controller in the dts and doc
* fixed the yaml doc
* removed the power-domains properties since the power-domains driver
is not yet upstream for i.MX8MP.
Abel Vesa (17):
dt-bindings: clocks
All these IDs are for one single HW gate (CCGR101) that is shared
between these root clocks.
Signed-off-by: Abel Vesa
Acked-by: Rob Herring
---
include/dt-bindings/clock/imx8mp-clock.h | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/include/dt-bindings/clock
According to the RM, the CCGR101 is shared for the following root clocks:
- AUDIO_AHB_CLK_ROOT
- AUDIO_AXI_CLK_ROOT
- SAI2_CLK_ROOT
- SAI3_CLK_ROOT
- SAI5_CLK_ROOT
- SAI6_CLK_ROOT
- SAI7_CLK_ROOT
- PDM_CLK_ROOT
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-imx8mp.c | 12 +++-
1 file
On 20-07-30 11:39:22, Philipp Zabel wrote:
> On Thu, 2020-07-30 at 11:55 +0300, Abel Vesa wrote:
> > On 20-07-29 14:46:28, Philipp Zabel wrote:
> > > Hi Abel,
> > >
> > > On Wed, 2020-07-29 at 15:07 +0300, Abel Vesa wrote:
> > > > On i.MX8MP, there
On 20-07-29 14:46:28, Philipp Zabel wrote:
> Hi Abel,
>
> On Wed, 2020-07-29 at 15:07 +0300, Abel Vesa wrote:
> > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in
[...]
> > +
> > +static int imx_blk_ctrl_reset_set(struct
On 20-07-29 12:49:41, Stephen Boyd wrote:
> Quoting Abel Vesa (2020-07-29 05:07:56)
> > diff --git a/Documentation/devicetree/bindings/clock/fsl,imx-blk-ctrl.yaml
> > b/Documentation/devicetree/bindings/clock/fsl,imx-blk-ctrl.yaml
> > new file mode 100644
> > index 000
On 20-07-29 12:47:26, Stephen Boyd wrote:
> Quoting Abel Vesa (2020-07-29 05:07:47)
> > In the reference manual the actual name is Audio BLK_CTRL.
> > Lets make it more obvious here by renaming from audiomix to audio_blk_ctrl.
>
> And this is safe because there aren'
On 20-07-29 15:08:03, Abel Vesa wrote:
> Some of the features of the hdmi_ctrl will be used by some
> different drivers in a way those drivers will know best, so adding the
> syscon compatible we allow those to do just that. Only the resets
> and the clocks are registered bit the
On 20-07-29 15:08:02, Abel Vesa wrote:
> Some of the features of the media_ctrl will be used by some
> different drivers in a way those drivers will know best, so adding the
> syscon compatible we allow those to do just that. Only the resets
> and the clocks are registered bit the
On 20-07-29 15:08:01, Abel Vesa wrote:
> Some of the features of the audio_ctrl will be used by some
> different drivers in a way those drivers will know best, so adding the
> syscon compatible we allow those to do just that. Only the resets
> and the clocks are registered bit the
All these IDs are for one single HW gate (CCGR101) that is shared
between these root clocks.
Signed-off-by: Abel Vesa
---
include/dt-bindings/clock/imx8mp-clock.h | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
b/include
Some of the features of the hdmi_ctrl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
IP in their design):
- Audio
- Media
- HDMI
Signed-off-by: Abel Vesa
---
drivers/clk/imx/Makefile | 2 +-
drivers/clk/imx/clk-blk-ctrl.c | 318 +
drivers/clk/imx/clk-blk-ctrl.h | 81 +++
3 files changed, 400 insertions(+), 1 deletion
Document the i.MX BLK_CTRL with its devicetree properties.
Signed-off-by: Abel Vesa
---
.../bindings/clock/fsl,imx-blk-ctrl.yaml | 55 ++
1 file changed, 55 insertions(+)
create mode 100644
Documentation/devicetree/bindings/clock/fsl,imx-blk-ctrl.yaml
diff --git
Add audio blk_ctrl clocks and resets in the i.MX8MP clock
driver to be picked up by the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-blk-ctrl.c | 4 ++
drivers/clk/imx/clk-imx8mp.c | 138 +
2 files changed, 142 insertions
Add media blk_ctrl clocks and resets in the i.MX8MP clock
driver to be picked up by the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-blk-ctrl.c | 4 +++
drivers/clk/imx/clk-imx8mp.c | 68 ++
2 files changed, 72 insertions
The hdmi BLK_CTRL ids have been moved to imx8mp-reset.h
Signed-off-by: Abel Vesa
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 9de2aa1..daa1769 100644
According to the RM, the CCGR101 is shared for the following root clocks:
- AUDIO_AHB_CLK_ROOT
- AUDIO_AXI_CLK_ROOT
- SAI2_CLK_ROOT
- SAI3_CLK_ROOT
- SAI5_CLK_ROOT
- SAI6_CLK_ROOT
- SAI7_CLK_ROOT
- PDM_CLK_ROOT
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-imx8mp.c | 12 +++-
1 file
These will be used imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
---
include/dt-bindings/reset/imx8mp-reset.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings/reset/imx8mp-reset.h
index 13e56dd..c1ca79c
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
---
include/dt-bindings/clock/imx8mp-clock.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
b/include/dt-bindings/clock/imx8mp-clock.h
Some of the features of the audio_ctrl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
---
include/dt-bindings/clock/imx8mp-clock.h | 40
1 file changed, 40 insertions(+)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h
b/include/dt-bindings/clock/imx8mp-clock.h
In the reference manual the actual name is Audio BLK_CTRL.
Lets make it more obvious here by renaming from audiomix to audio_blk_ctrl.
Signed-off-by: Abel Vesa
---
include/dt-bindings/clock/imx8mp-clock.h | 120 +++
1 file changed, 60 insertions(+), 60 deletions
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
---
include/dt-bindings/reset/imx8mp-reset.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings/reset/imx8mp-reset.h
index 2e8c910..fca0c9bff
Some of the features of the media_ctrl will be used by some
different drivers in a way those drivers will know best, so adding the
syscon compatible we allow those to do just that. Only the resets
and the clocks are registered bit the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
arch/arm64
Add hdmi blk_ctrl clocks and resets in the i.MX8MP clock
driver to be picked up by the clk-blk-ctrl driver.
Signed-off-by: Abel Vesa
---
drivers/clk/imx/clk-blk-ctrl.c | 4 +++
drivers/clk/imx/clk-imx8mp.c | 63 ++
2 files changed, 67 insertions
These will be used by the imx8mp for blk-ctrl driver.
Signed-off-by: Abel Vesa
---
include/dt-bindings/reset/imx8mp-reset.h | 28
1 file changed, 28 insertions(+)
diff --git a/include/dt-bindings/reset/imx8mp-reset.h
b/include/dt-bindings/reset/imx8mp-reset.h
that does
not fit into clocks or resets. Since the clocks are registered using the i.MX
clock subsystem API, the driver is placed into the clock subsystem, but it
also registers the resets. For the other functionalities that other GPRs might
have, the syscon is used.
Abel Vesa (17):
dt-bindings
From: Leonard Crestez
Add nodes for the main interconnect of the imx8m series chips.
These nodes are bound to by devfreq and interconnect drivers.
Signed-off-by: Leonard Crestez
Signed-off-by: Abel Vesa
Tested-by: Martin Kepplinger
Acked-by: Georgi Djakov
---
Changes since v1:
- picked
From: Leonard Crestez
Add nodes for the main interconnect of the imx8m series chips.
These nodes are bound to by devfreq and interconnect drivers.
Signed-off-by: Leonard Crestez
Signed-off-by: Abel Vesa
Tested-by: Martin Kepplinger
---
This is part of the following patchset:
https
On 20-04-30 10:18:24, Aisheng Dong wrote:
> > From: Abel Vesa
> > Sent: Thursday, April 30, 2020 6:11 PM
> >
Sorry I didn't answer the other ones earlier. See below.
> > On 20-04-28 08:15:51, Aisheng Dong wrote:
> > > > From: Abel Vesa
>
On 20-04-30 10:22:04, Aisheng Dong wrote:
> > From: Abel Vesa
> > Sent: Thursday, April 30, 2020 6:04 PM
> > To: Lee Jones
> > On 20-04-24 07:27:27, Lee Jones wrote:
> > > On Thu, 23 Apr 2020, Aisheng Dong wrote:
> > >
> > > > > From: Abe
On 20-04-28 08:15:51, Aisheng Dong wrote:
> > From: Abel Vesa
> > Sent: Monday, April 27, 2020 11:11 PM
> >
> > Instead of ipg_root, the parent needs to be ipg_audio_root.
> >
> > Signed-off-by: Abel Vesa
>
> I have a few doubts about this patch:
>
101 - 200 of 587 matches
Mail list logo