[PATCH v4 02/14] dt-bindings: reset: imx8mp: Add audio blk_ctl reset IDs

2020-10-26 Thread Abel Vesa
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

[PATCH v4 00/14] Add BLK_CTL support for i.MX8MP

2020-10-26 Thread Abel Vesa
* 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

[PATCH v4 07/14] dt-bindings: reset: imx8mp: Add hdmi blk_ctl reset IDs

2020-10-26 Thread Abel Vesa
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

[PATCH v4 01/14] dt-bindings: clocks: imx8mp: Rename audiomix ids clocks to audio_blk_ctl

2020-10-26 Thread Abel Vesa
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

[PATCH v4 05/14] dt-bindings: reset: imx8mp: Add media blk_ctl reset IDs

2020-10-26 Thread Abel Vesa
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

[PATCH v4 06/14] dt-bindings: clock: imx8mp: Add hdmi blk_ctl clock IDs

2020-10-26 Thread Abel Vesa
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

[PATCH v4 14/14] arm64: dts: imx8mp: Add hdmi_blk_ctl node

2020-10-26 Thread Abel Vesa
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

[PATCH v4 10/14] clk: imx: Add generic blk-ctl driver

2020-10-26 Thread Abel Vesa
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

[PATCH v4 11/14] clk: imx: Add blk-ctl driver for i.MX8MP

2020-10-26 Thread Abel Vesa
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

[PATCH v4 04/14] dt-bindings: clock: imx8mp: Add media blk_ctl clock IDs

2020-10-26 Thread Abel Vesa
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

[PATCH v4 13/14] arm64: dts: imx8mp: Add media_blk_ctl node

2020-10-26 Thread Abel Vesa
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

[PATCH] clk: imx: gate2: Fix the is_enabled op

2020-10-26 Thread Abel Vesa
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") --

Re: [RFC 0/3] clk: imx: Implement blk-ctl driver for i.MX8MN

2020-10-26 Thread Abel Vesa
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

Re: [RFC 0/3] clk: imx: Implement blk-ctl driver for i.MX8MN

2020-10-25 Thread Abel Vesa
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

Re: [RFC 0/3] clk: imx: Implement blk-ctl driver for i.MX8MN

2020-10-24 Thread Abel Vesa
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

[RFC 3/4] clk: imx: composite-8m: Add DRAM clock registration variant

2020-10-21 Thread Abel Vesa
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

[RFC 4/4] clk: imx8m: Use dram variant registration for dram clocks

2020-10-21 Thread Abel Vesa
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

[RFC 2/4] clk: Add clk_gate_ro_ops for read-only gate clocks

2020-10-21 Thread Abel Vesa
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

[RFC 0/4] clk: imx: Register the dram_apb and dram_alt as read-only

2020-10-21 Thread Abel Vesa
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

[RFC 1/4] clk: Add CLK_GET_PARENT_NOCACHE flag

2020-10-21 Thread Abel Vesa
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

Re: [PATCH 0/2] clk: imx: Make the dram_apb and dram_alt as read-only

2020-10-21 Thread Abel Vesa
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

[PATCH 1/2] clk: imx: composite-8m: Add DRAM clock registration variant

2020-10-21 Thread Abel Vesa
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

[PATCH 2/2] clk: imx8m: Use dram variant registration for dram clocks

2020-10-21 Thread Abel Vesa
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

[PATCH 0/2] clk: imx: Make the dram_apb and dram_alt as read-only

2020-10-21 Thread Abel Vesa
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

Re: [PATCH 0/5] clk: imx: fix bus critical clk registration

2020-10-21 Thread Abel Vesa
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

[PATCH] clk: imx8mq: Fix usdhc parents order

2020-10-15 Thread Abel Vesa
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

Re: [PATCH v3 10/14] clk: imx: Add generic blk-ctl driver

2020-09-30 Thread Abel Vesa
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

[PATCH v3 07/14] dt-bindings: reset: imx8mp: Add hdmi blk_ctl reset IDs

2020-09-08 Thread Abel Vesa
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

[PATCH v3 08/14] clk: imx8mp: Add audio shared gate

2020-09-08 Thread Abel Vesa
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

[PATCH v3 04/14] dt-bindings: clock: imx8mp: Add media blk_ctl clock IDs

2020-09-08 Thread Abel Vesa
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

[PATCH v3 03/14] dt-bindings: clock: imx8mp: Add ids for the audio shared gate

2020-09-08 Thread Abel Vesa
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

[PATCH v3 09/14] Documentation: bindings: clk: Add bindings for i.MX BLK_CTL

2020-09-08 Thread Abel Vesa
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

[PATCH v3 05/14] dt-bindings: reset: imx8mp: Add media blk_ctl reset IDs

2020-09-08 Thread Abel Vesa
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

[PATCH v3 06/14] dt-bindings: clock: imx8mp: Add hdmi blk_ctl clock IDs

2020-09-08 Thread Abel Vesa
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

[PATCH v3 12/14] arm64: dts: imx8mp: Add audio_blk_ctl node

2020-09-08 Thread Abel Vesa
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

[PATCH v3 13/14] arm64: dts: imx8mp: Add media_blk_ctl node

2020-09-08 Thread Abel Vesa
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

[PATCH v3 14/14] arm64: dts: imx8mp: Add hdmi_blk_ctl node

2020-09-08 Thread Abel Vesa
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

[PATCH v3 11/14] clk: imx: Add blk-ctl driver for i.MX8MP

2020-09-08 Thread Abel Vesa
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

[PATCH v3 02/14] dt-bindings: reset: imx8mp: Add audio blk_ctl reset IDs

2020-09-08 Thread Abel Vesa
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

[PATCH v3 10/14] clk: imx: Add generic blk-ctl driver

2020-09-08 Thread Abel Vesa
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

[PATCH v3 01/14] dt-bindings: clocks: imx8mp: Rename audiomix ids clocks to audio_blk_ctl

2020-09-08 Thread Abel Vesa
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

[PATCH v3 00/14] Add BLK_CTL support for i.MX8MP

2020-09-08 Thread Abel Vesa
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

Re: [PATCH] clk: imx: lpcg-scu: SW workaround for errata (e10858)

2020-09-08 Thread Abel Vesa
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

Re: [PATCH v2 16/17] arm64: dts: imx8mp: Add media_blk_ctrl node

2020-09-07 Thread Abel Vesa
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

Re: [PATCH v2 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-25 Thread Abel Vesa
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) >

Re: [PATCH v2 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-25 Thread Abel Vesa
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) >

Re: [PATCH v2 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-25 Thread Abel Vesa
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

Re: [PATCH v2 16/17] arm64: dts: imx8mp: Add media_blk_ctrl node

2020-08-19 Thread Abel Vesa
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

Re: [PATCH v2 15/17] arm64: dts: imx8mp: Add audio_blk_ctrl node

2020-08-19 Thread Abel Vesa
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

Re: [PATCH v2 12/17] clk: imx8mp: Add audio blk_ctrl clocks and resets

2020-08-19 Thread Abel Vesa
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

Re: [PATCH v2 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-19 Thread Abel Vesa
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

Re: [PATCH v2 09/17] arm64: dts: Remove imx-hdmimix-reset header file

2020-08-19 Thread Abel Vesa
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

[PATCH v2 01/17] dt-bindings: clocks: imx8mp: Rename audiomix ids clocks to audio_blk_ctrl

2020-08-14 Thread Abel Vesa
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

[PATCH v2 02/17] dt-bindings: reset: imx8mp: Add audio blk_ctrl reset IDs

2020-08-14 Thread Abel Vesa
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

[PATCH v2 05/17] dt-bindings: reset: imx8mp: Add media blk_ctrl reset IDs

2020-08-14 Thread Abel Vesa
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

[PATCH v2 04/17] dt-bindings: clock: imx8mp: Add media blk_ctrl clock IDs

2020-08-14 Thread Abel Vesa
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

[PATCH v2 07/17] dt-bindings: reset: imx8mp: Add hdmi blk_ctrl reset IDs

2020-08-14 Thread Abel Vesa
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

[PATCH v2 10/17] Documentation: bindings: clk: Add bindings for i.MX BLK_CTRL

2020-08-14 Thread Abel Vesa
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

[PATCH v2 06/17] dt-bindings: clock: imx8mp: Add hdmi blk_ctrl clock IDs

2020-08-14 Thread Abel Vesa
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

[PATCH v2 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-14 Thread Abel Vesa
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

[PATCH v2 15/17] arm64: dts: imx8mp: Add audio_blk_ctrl node

2020-08-14 Thread Abel Vesa
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

[PATCH v2 12/17] clk: imx8mp: Add audio blk_ctrl clocks and resets

2020-08-14 Thread Abel Vesa
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

[PATCH v2 13/17] clk: imx8mp: Add hdmi blk_ctrl clocks and resets

2020-08-14 Thread Abel Vesa
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

[PATCH v2 17/17] arm64: dts: imx8mp: Add hdmi_blk_ctrl node

2020-08-14 Thread Abel Vesa
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

[PATCH v2 09/17] arm64: dts: Remove imx-hdmimix-reset header file

2020-08-14 Thread Abel Vesa
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

[PATCH v2 14/17] clk: imx8mp: Add media blk_ctrl clocks and resets

2020-08-14 Thread Abel Vesa
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

[PATCH v2 16/17] arm64: dts: imx8mp: Add media_blk_ctrl node

2020-08-14 Thread Abel Vesa
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

[PATCH v2 00/17] Add BLK_CTRL support for i.MX8MP

2020-08-14 Thread Abel Vesa
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

[PATCH v2 03/17] dt-bindings: clock: imx8mp: Add ids for the audio shared gate

2020-08-14 Thread Abel Vesa
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

[PATCH v2 08/17] clk: imx8mp: Add audio shared gate

2020-08-14 Thread Abel Vesa
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

Re: [PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-12 Thread Abel Vesa
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

Re: [PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-07-30 Thread Abel Vesa
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

Re: [PATCH 10/17] Documentation: bindings: clk: Add bindings for i.MX BLK_CTRL

2020-07-30 Thread Abel Vesa
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

Re: [PATCH 01/17] dt-bindings: clocks: imx8mp: Rename audiomix ids clocks to audio_blk_ctrl

2020-07-30 Thread Abel Vesa
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'

Re: [PATCH 17/17] arm64: dts: imx8mp: Add hdmi_blk_ctrl node

2020-07-29 Thread Abel Vesa
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

Re: [PATCH 16/17] arm64: dts: imx8mp: Add media_blk_ctrl node

2020-07-29 Thread Abel Vesa
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

Re: [PATCH 15/17] arm64: dts: imx8mp: Add audio_blk_ctrl node

2020-07-29 Thread Abel Vesa
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

[PATCH 03/17] dt-bindings: clock: imx8mp: Add ids for the audio shared gate

2020-07-29 Thread Abel Vesa
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

[PATCH 17/17] arm64: dts: imx8mp: Add hdmi_blk_ctrl node

2020-07-29 Thread Abel Vesa
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

[PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-07-29 Thread Abel Vesa
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

[PATCH 10/17] Documentation: bindings: clk: Add bindings for i.MX BLK_CTRL

2020-07-29 Thread Abel Vesa
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

[PATCH 12/17] clk: imx8mp: Add audio blk_ctrl clocks and resets

2020-07-29 Thread Abel Vesa
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

[PATCH 14/17] clk: imx8mp: Add media blk_ctrl clocks and resets

2020-07-29 Thread Abel Vesa
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

[PATCH 09/17] arm64: dts: Remove imx-hdmimix-reset header file

2020-07-29 Thread Abel Vesa
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

[PATCH 08/17] clk: imx8mp: Add audio shared gate

2020-07-29 Thread Abel Vesa
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

[PATCH 07/17] dt-bindings: reset: imx8mp: Add hdmi blk_ctrl reset IDs

2020-07-29 Thread Abel Vesa
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

[PATCH 04/17] dt-bindings: clock: imx8mp: Add media blk_ctrl clock IDs

2020-07-29 Thread Abel Vesa
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

[PATCH 15/17] arm64: dts: imx8mp: Add audio_blk_ctrl node

2020-07-29 Thread Abel Vesa
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

[PATCH 06/17] dt-bindings: clock: imx8mp: Add hdmi blk_ctrl clock IDs

2020-07-29 Thread Abel Vesa
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

[PATCH 01/17] dt-bindings: clocks: imx8mp: Rename audiomix ids clocks to audio_blk_ctrl

2020-07-29 Thread Abel Vesa
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

[PATCH 02/17] dt-bindings: reset: imx8mp: Add audio blk_ctrl reset IDs

2020-07-29 Thread Abel Vesa
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

[PATCH 16/17] arm64: dts: imx8mp: Add media_blk_ctrl node

2020-07-29 Thread Abel Vesa
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

[PATCH 13/17] clk: imx8mp: Add hdmi blk_ctrl clocks and resets

2020-07-29 Thread Abel Vesa
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

[PATCH 05/17] dt-bindings: reset: imx8mp: Add media blk_ctrl reset IDs

2020-07-29 Thread Abel Vesa
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

[PATCH 00/17] Add BLK_CTRL support for i.MX8MP

2020-07-29 Thread Abel Vesa
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

[RESEND v2] arm64: dts: imx8m: Add NOC nodes

2020-07-06 Thread Abel Vesa
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

[RESEND] arm64: dts: imx8m: Add NOC nodes

2020-06-23 Thread Abel Vesa
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

Re: [PATCH] clk: imx8mp: Set the correct parent for audio_root_clk

2020-05-22 Thread Abel Vesa
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 >

Re: [PATCH v3 01/13] mfd: Add i.MX generic mix support

2020-04-30 Thread 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

Re: [PATCH] clk: imx8mp: Set the correct parent for audio_root_clk

2020-04-30 Thread Abel Vesa
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: >

<    1   2   3   4   5   6   >