Skip to contentSkip to conversation

clock consumer for output clocks?

DISCUSSION Alexander Stein 2 participants 3 messages Jun 1, 2022 – Jun 16, 2022 Common clk

lore
Share & tools
lore
#0 lore raw

Hi,

I want to use an output clock, which provides some internal clock on an putput pad, such as IMX8MP_CLK_CLKOUT1 or IMX6QDL_CLK_CKO.
To prepare and enable a clock I need a consumer, but in my case there is no (local) consumer. Is there some way, DT node or some kind of driver/uapi, which I can use to enable the clock?

Best regards,
Alexander

maintainer
#1 lore raw

Quoting Alexander Stein (2022-06-01 07:15:54)

Quoted 7 lines

Hi,

I want to use an output clock, which provides some internal clock on an putput pad, such as IMX8MP_CLK_CLKOUT1 or IMX6QDL_CLK_CKO.
To prepare and enable a clock I need a consumer, but in my case there is no (local) consumer. Is there some way, DT node or some kind of driver/uapi, which I can use to enable the clock?

I think you want to use an "always-on-clocks" property in DT for your device. See the proposal[1].

[1] https://lore.kernel.org/linux-clk/[email protected]

#2 lore raw

Re: (EXT) Re: clock consumer for output clocks?

Hello Stephen,

Am Donnerstag, 16. Juni 2022, 04:52:50 CEST schrieb Stephen Boyd:

Quoted 11 lines

Quoting Alexander Stein (2022-06-01 07:15:54)

Quoted 8 lines

Hi,

I want to use an output clock, which provides some internal clock on an putput pad, such as IMX8MP_CLK_CLKOUT1 or IMX6QDL_CLK_CKO.
To prepare and enable a clock I need a consumer, but in my case there is no
(local) consumer. Is there some way, DT node or some kind of driver/uapi, which I can use to enable the clock?

Quoted 4 lines

I think you want to use an "always-on-clocks" property in DT for your device. See the proposal[1].

[1] https://lore.kernel.org/linux-clk/[email protected]

Nice, this looks interesting. Thanks for the link.

Best regards,
Alexander