Debian Codegraph @

arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-b.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0)
2 /*
3 * Device tree for the Kobo Clara 2E rev B ebook reader
4 *
5 * Name on mainboard is: 37NB-E60K2M+4B0
6 * Serials start with: E60K2M (a number also seen in
7 * vendor kernel sources)
8 *
9 * Copyright 2024 Andreas Kemnade
10 */
11
12 /dts-v1/;
13
14 #include "imx6sll-kobo-clara2e-common.dtsi"
15
16 / {
17 model = "Kobo Clara 2E";
18 compatible = "kobo,clara2e-b", "kobo,clara2e", "fsl,imx6sll";
19
20 epd_pmic_supply: regulator-epd-pmic-in {
21 compatible = "regulator-fixed";
22 pinctrl-names = "default";
23 pinctrl-0 = <&pinctrl_epd_pmic_supply>;
24 regulator-name = "epd_pmic_supply";
25 gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;
26 enable-active-high;
27 startup-delay-us = <20000>;
28 };
29 };
30
31 &i2c2 {
32 jd9930: pmic@18 {
33 compatible = "fitipower,jd9930", "fitipower,fp9931";
34 reg = <0x18>;
35 pinctrl-names = "default";
36 pinctrl-0 = <&pinctrl_jd9930_gpio>;
37 vin-supply = <&epd_pmic_supply>;
38 pg-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
39 en-ts-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
40 enable-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
41 fitipower,tdly-ms = <2 2 2 2>;
42
43 regulators {
44 vcom_reg: vcom {
45 regulator-name = "vcom";
46 /*
47 * For optimal performance these should be
48 * tuned on a per batch basis e.g. using
49 * overlays.
50 */
51 regulator-min-microvolt = <2352840>;
52 regulator-max-microvolt = <2352840>;
53 };
54
55 vposneg_reg: vposneg {
56 regulator-name = "vposneg";
57 regulator-min-microvolt = <15060000>;
58 regulator-max-microvolt = <15060000>;
59 };
60
61 v3p3_reg: v3p3 {
62 regulator-name = "v3p3";
63 };
64 };
65 };
66 };
67
68 &iomuxc {
69 pinctrl_jd9930_gpio: jd9930-gpiogrp {
70 fsl,pins = <
71 MX6SLL_PAD_EPDC_PWR_CTRL0__GPIO2_IO07 0x17059 /* PG */
72 MX6SLL_PAD_EPDC_PWR_CTRL1__GPIO2_IO08 0x40010059 /* EN */
73 MX6SLL_PAD_EPDC_PWR_CTRL2__GPIO2_IO09 0x40010059 /* EN_TS */
74 >;
75 };
76
77 pinctrl_epd_pmic_supply: epd-pmic-supplygrp {
78 fsl,pins = <
79 MX6SLL_PAD_EPDC_PWR_WAKE__GPIO2_IO14 0x40010059
80 >;
81 };
82 };