devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/7] i2c-imx-lpi2c: add IPG clock
@ 2022-08-23  3:02 Peng Fan (OSS)
  2022-08-23  3:02 ` [PATCH V3 1/7] ARM: dts: imx7ulp: update the LPI2C clock-names Peng Fan (OSS)
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Peng Fan (OSS) @ 2022-08-23  3:02 UTC (permalink / raw)
  To: wsa, aisheng.dong, robh+dt, krzysztof.kozlowski+dt, shawnguo,
	s.hauer
  Cc: kernel, festevam, linux-imx, linux-i2c, devicetree,
	linux-arm-kernel, linux-kernel, xiaoning.wang, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

V3:
 Add R-b
 Correct clk_bulk_disable to clk_bulk_disable_unprepare in patch 7

V2:
 use clk bulk API in driver to support backward compatibility.
 Include a new patch, patch 1.

The i.MX LPI2C needs PER and IPG clock, not just PER or IPG clock.
The current driver/dts/bindings use one CLK. Although it works with
upstream kernel, but it not match the hardware design. If IPG clock is
disabled, the LPI2C will not work.

There are changes made to ARM32 i.MX7ULP dts, ARM64 i.MX8 dts, dt-
bindings, and the lpi2c driver.

The driver is updated to use bulk clk API to avoid break backward
compatibility. But it is hard to avoid dtbs_check pass, because the dts and
binding update are in separate patches.

Peng Fan (7):
  ARM: dts: imx7ulp: update the LPI2C clock-names
  dt-bindings: i2c: i2c-imx-lpi2c: add ipg clk
  dt-bindings: i2c: i2c-imx-lpi2c: add dmas property
  dt-bindings: i2c: i2c-imx-lpi2c: add i.MX93
  arm64: dts: imx8-ss-dma: add IPG clock for i2c
  ARM: dts: imx7ulp: Add IPG clock for lpi2c
  i2c: imx-lpi2c: use bulk clk API

 .../bindings/i2c/i2c-imx-lpi2c.yaml           | 20 +++++++++++++---
 arch/arm/boot/dts/imx7ulp.dtsi                | 10 ++++----
 .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 20 +++++++++-------
 drivers/i2c/busses/i2c-imx-lpi2c.c            | 24 +++++++++----------
 4 files changed, 47 insertions(+), 27 deletions(-)

-- 
2.37.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-09-03  3:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-23  3:02 [PATCH V3 0/7] i2c-imx-lpi2c: add IPG clock Peng Fan (OSS)
2022-08-23  3:02 ` [PATCH V3 1/7] ARM: dts: imx7ulp: update the LPI2C clock-names Peng Fan (OSS)
2022-08-23  3:02 ` [PATCH V3 2/7] dt-bindings: i2c: i2c-imx-lpi2c: add ipg clk Peng Fan (OSS)
2022-08-30 10:07   ` Wolfram Sang
2022-08-23  3:02 ` [PATCH V3 3/7] dt-bindings: i2c: i2c-imx-lpi2c: add dmas property Peng Fan (OSS)
2022-08-30 10:07   ` Wolfram Sang
2022-08-23  3:02 ` [PATCH V3 4/7] dt-bindings: i2c: i2c-imx-lpi2c: add i.MX93 Peng Fan (OSS)
2022-08-30 10:07   ` Wolfram Sang
2022-08-23  3:02 ` [PATCH V3 5/7] arm64: dts: imx8-ss-dma: add IPG clock for i2c Peng Fan (OSS)
2022-08-23  3:02 ` [PATCH V3 6/7] ARM: dts: imx7ulp: Add IPG clock for lpi2c Peng Fan (OSS)
2022-08-23  3:02 ` [PATCH V3 7/7] i2c: imx-lpi2c: use bulk clk API Peng Fan (OSS)
2022-08-29 20:12   ` Wolfram Sang
2022-08-30 10:00     ` Peng Fan
2022-08-30 10:04       ` Wolfram Sang
2022-09-03  3:38 ` [PATCH V3 0/7] i2c-imx-lpi2c: add IPG clock Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).