linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator
@ 2025-12-23 21:34 Andreas Kemnade
  2025-12-23 21:34 ` [PATCH 1/2] ARM: dts: imx: imx6sll-kobo-clara2e: add regulator for EPD Andreas Kemnade
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andreas Kemnade @ 2025-12-23 21:34 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Russell King
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Andreas Kemnade

Add the JD9930 regulator to the devicetree and enable the
corresponding driver in the defconfig.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
Andreas Kemnade (2):
      ARM: dts: imx: imx6sll-kobo-clara2e: add regulator for EPD.
      ARM: imx_v6_v7_defconfig: enable EPD regulator needed for Kobo Clara 2e

 .../boot/dts/nxp/imx/imx6sll-kobo-clara2e-b.dts    | 61 +++++++++++++++++++++-
 arch/arm/configs/imx_v6_v7_defconfig               |  1 +
 2 files changed, 61 insertions(+), 1 deletion(-)
---
base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
change-id: 20251223-fp9931-clara2e-59d1d51d32b0

Best regards,
--  
Andreas Kemnade <andreas@kemnade.info>



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

* [PATCH 1/2] ARM: dts: imx: imx6sll-kobo-clara2e: add regulator for EPD.
  2025-12-23 21:34 [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator Andreas Kemnade
@ 2025-12-23 21:34 ` Andreas Kemnade
  2025-12-23 21:34 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: enable EPD regulator needed for Kobo Clara 2e Andreas Kemnade
  2025-12-30 14:02 ` [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Kemnade @ 2025-12-23 21:34 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Russell King
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Andreas Kemnade

Now there is a driver and binding for the JD9930, so add the information
to the devicetree for revision b.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
 .../boot/dts/nxp/imx/imx6sll-kobo-clara2e-b.dts    | 61 +++++++++++++++++++++-
 1 file changed, 60 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-b.dts b/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-b.dts
index f81aeacf5142..f5e88764a08c 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-b.dts
+++ b/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-b.dts
@@ -16,8 +16,67 @@
 / {
 	model = "Kobo Clara 2E";
 	compatible = "kobo,clara2e-b", "kobo,clara2e", "fsl,imx6sll";
+
+	epd_pmic_supply: regulator-epd-pmic-in {
+		compatible = "regulator-fixed";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_epd_pmic_supply>;
+		regulator-name = "epd_pmic_supply";
+		gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		startup-delay-us = <20000>;
+	};
 };
 
 &i2c2 {
-	/* EPD PMIC JD9930 at 0x18 */
+	jd9930: pmic@18 {
+		compatible = "fitipower,jd9930", "fitipower,fp9931";
+		reg = <0x18>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_jd9930_gpio>;
+		vin-supply = <&epd_pmic_supply>;
+		pg-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
+		en-ts-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
+		enable-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
+		fitipower,tdly-ms = <2 2 2 2>;
+
+		regulators {
+			vcom_reg: vcom {
+				regulator-name = "vcom";
+				/*
+				 * For optimal performance these should be
+				 * tuned on a per batch basis e.g. using
+				 * overlays.
+				 */
+				regulator-min-microvolt = <2352840>;
+				regulator-max-microvolt = <2352840>;
+			};
+
+			vposneg_reg: vposneg {
+				regulator-name = "vposneg";
+				regulator-min-microvolt = <15060000>;
+				regulator-max-microvolt = <15060000>;
+			};
+
+			v3p3_reg: v3p3 {
+				regulator-name = "v3p3";
+			};
+		};
+	};
+};
+
+&iomuxc {
+	pinctrl_jd9930_gpio: jd9930-gpiogrp {
+		fsl,pins = <
+			MX6SLL_PAD_EPDC_PWR_CTRL0__GPIO2_IO07	0x17059 /* PG */
+			MX6SLL_PAD_EPDC_PWR_CTRL1__GPIO2_IO08	0x40010059 /* EN */
+			MX6SLL_PAD_EPDC_PWR_CTRL2__GPIO2_IO09	0x40010059 /* EN_TS */
+		>;
+	};
+
+	pinctrl_epd_pmic_supply: epd-pmic-supplygrp {
+		fsl,pins = <
+			MX6SLL_PAD_EPDC_PWR_WAKE__GPIO2_IO14	0x40010059
+		>;
+	};
 };

-- 
2.47.3



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

* [PATCH 2/2] ARM: imx_v6_v7_defconfig: enable EPD regulator needed for Kobo Clara 2e
  2025-12-23 21:34 [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator Andreas Kemnade
  2025-12-23 21:34 ` [PATCH 1/2] ARM: dts: imx: imx6sll-kobo-clara2e: add regulator for EPD Andreas Kemnade
@ 2025-12-23 21:34 ` Andreas Kemnade
  2025-12-30 14:02 ` [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Kemnade @ 2025-12-23 21:34 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Russell King
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Andreas Kemnade

Kobo Clara 2e revision b requires the JD9930/FP9931 regulator driver
for the EPD, so enable it.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 0d55056c6f82..94ef23b272fc 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -251,6 +251,7 @@ CONFIG_REGULATOR_DA9052=y
 CONFIG_REGULATOR_DA9062=y
 CONFIG_REGULATOR_DA9063=y
 CONFIG_REGULATOR_GPIO=y
+CONFIG_REGULATOR_FP9931=m
 CONFIG_REGULATOR_LTC3676=y
 CONFIG_REGULATOR_MC13783=y
 CONFIG_REGULATOR_MC13892=y

-- 
2.47.3



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

* Re: [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator
  2025-12-23 21:34 [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator Andreas Kemnade
  2025-12-23 21:34 ` [PATCH 1/2] ARM: dts: imx: imx6sll-kobo-clara2e: add regulator for EPD Andreas Kemnade
  2025-12-23 21:34 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: enable EPD regulator needed for Kobo Clara 2e Andreas Kemnade
@ 2025-12-30 14:02 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2025-12-30 14:02 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Russell King, devicetree,
	imx, linux-arm-kernel, linux-kernel

On Tue, Dec 23, 2025 at 10:34:01PM +0100, Andreas Kemnade wrote:
> Andreas Kemnade (2):
>       ARM: dts: imx: imx6sll-kobo-clara2e: add regulator for EPD.
>       ARM: imx_v6_v7_defconfig: enable EPD regulator needed for Kobo Clara 2e

Applied both, thanks!


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

end of thread, other threads:[~2025-12-30 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-23 21:34 [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator Andreas Kemnade
2025-12-23 21:34 ` [PATCH 1/2] ARM: dts: imx: imx6sll-kobo-clara2e: add regulator for EPD Andreas Kemnade
2025-12-23 21:34 ` [PATCH 2/2] ARM: imx_v6_v7_defconfig: enable EPD regulator needed for Kobo Clara 2e Andreas Kemnade
2025-12-30 14:02 ` [PATCH 0/2] ARM: dts: imx: imx6sll-kobo-clara2e add JD9930 regulator 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).