mbox series

[v2,0/2] pinctrl: spacemit: add clock/reset support

Message ID 20250416-02-k1-pinctrl-clk-v2-0-2b5fcbd4183c@gentoo.org (mailing list archive)
Headers show
Series pinctrl: spacemit: add clock/reset support | expand

Message

Yixun Lan April 16, 2025, 12:15 a.m. UTC
SpacemiT K1 pinctrl requires two clocks in order to be functional,
also one reset line from hardware persepective.

In this series, adding clock property in dt-binding, and activate
them in the driver. But for reset, making it optional for now.

For DT part patch, I plan to submit after clock driver merged.
This may result dtb warnings in this version due to the mising
clock property in pinctrl dt node.

Signed-off-by: Yixun Lan <dlan@gentoo.org>
---
Changes in v2:
- fix typo
- drop the _optional_ API
- Link to v1: https://lore.kernel.org/r/20250412-02-k1-pinctrl-clk-v1-0-e39734419a2d@gentoo.org

---
Yixun Lan (2):
      dt-bindings: pinctrl: spacemit: add clock and reset property
      pinctrl: spacemit: add clock support for K1 SoC

 .../bindings/pinctrl/spacemit,k1-pinctrl.yaml          | 18 ++++++++++++++++++
 drivers/pinctrl/spacemit/pinctrl-k1.c                  | 10 ++++++++++
 2 files changed, 28 insertions(+)
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250412-02-k1-pinctrl-clk-9649d6ad22c4

Best regards,

Comments

Yixun Lan April 18, 2025, 11:59 p.m. UTC | #1
Hi Linus,

On 08:15 Wed 16 Apr     , Yixun Lan wrote:
> SpacemiT K1 pinctrl requires two clocks in order to be functional,
> also one reset line from hardware persepective.
> 
> In this series, adding clock property in dt-binding, and activate
> them in the driver. But for reset, making it optional for now.
> 
> For DT part patch, I plan to submit after clock driver merged.
> This may result dtb warnings in this version due to the mising
> clock property in pinctrl dt node.
> 
> Signed-off-by: Yixun Lan <dlan@gentoo.org>
> ---
> Changes in v2:
> - fix typo
> - drop the _optional_ API
> - Link to v1: https://lore.kernel.org/r/20250412-02-k1-pinctrl-clk-v1-0-e39734419a2d@gentoo.org
> 
> ---
> Yixun Lan (2):
>       dt-bindings: pinctrl: spacemit: add clock and reset property
>       pinctrl: spacemit: add clock support for K1 SoC
> 
>  .../bindings/pinctrl/spacemit,k1-pinctrl.yaml          | 18 ++++++++++++++++++
>  drivers/pinctrl/spacemit/pinctrl-k1.c                  | 10 ++++++++++
>  2 files changed, 28 insertions(+)
> ---
> base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
> change-id: 20250412-02-k1-pinctrl-clk-9649d6ad22c4
> 

I think this series is good to go, can you queue for 6.16,
we need it along with clock merged (see link below)..

thanks

https://lore.kernel.org/r/174484549885.160158.3249067849153986093.b4-ty@gentoo.org