Skip to content

Commit 9fcca3e

Browse files
ArtoxShawn Guo
authored andcommitted
ARM: dts: imx50-kobo-aura: add epd pmic description
Kobo Aura (N514) includes a TPS65185 PMIC for the epaper display. Add description for this pmic and its vin power-supply. Signed-off-by: Josua Mayer <josua.mayer@jm0.eu> Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent e9c48e5 commit 9fcca3e

1 file changed

Lines changed: 59 additions & 1 deletion

File tree

arch/arm/boot/dts/nxp/imx/imx50-kobo-aura.dts

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@
5858
};
5959
};
6060

61+
epd_pmic_supply: regulator-epd-pmic-in {
62+
compatible = "regulator-fixed";
63+
regulator-name = "epd_pmic_supply";
64+
gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
65+
enable-active-high;
66+
startup-delay-us = <20000>;
67+
pinctrl-names = "default";
68+
pinctrl-0 = <&pinctrl_epd_pmic_supply>;
69+
};
70+
6171
sd2_pwrseq: pwrseq {
6272
compatible = "mmc-pwrseq-simple";
6373
pinctrl-names = "default";
@@ -135,7 +145,34 @@
135145
pinctrl-0 = <&pinctrl_i2c2>;
136146
status = "okay";
137147

138-
/* TODO: TPS65185 PMIC for E Ink at 0x68 */
148+
pmic@68 {
149+
compatible = "ti,tps65185";
150+
reg = <0x68>;
151+
pinctrl-names = "default";
152+
pinctrl-0 = <&pinctrl_epd_pmic>;
153+
pwr-good-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
154+
vcom-ctrl-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>;
155+
enable-gpios = <&gpio3 30 GPIO_ACTIVE_HIGH>;
156+
wakeup-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
157+
vin-supply = <&epd_pmic_supply>;
158+
interrupts-extended = <&gpio4 15 IRQ_TYPE_LEVEL_LOW>;
159+
160+
regulators {
161+
vcom {
162+
regulator-name = "vcom";
163+
};
164+
165+
vposneg {
166+
regulator-name = "vposneg";
167+
regulator-min-microvolt = <15000000>;
168+
regulator-max-microvolt = <15000000>;
169+
};
170+
171+
v3p3 {
172+
regulator-name = "v3p3";
173+
};
174+
};
175+
};
139176
};
140177

141178
&i2c3 {
@@ -161,6 +198,27 @@
161198
>;
162199
};
163200

201+
pinctrl_epd_pmic: epd-pmic-grp {
202+
fsl,pins = <
203+
/* PWRUP */
204+
MX50_PAD_EPDC_PWRCTRL1__GPIO3_30 0x0
205+
/* WAKEUP */
206+
MX50_PAD_EPDC_PWRCTRL0__GPIO3_29 0x0
207+
/* VCOMCTRL */
208+
MX50_PAD_EPDC_VCOM0__GPIO4_21 0x0
209+
/* PWRGOOD: enable internal 100k pull-up */
210+
MX50_PAD_EPDC_PWRSTAT__GPIO3_28 0xe0
211+
/* INT: enable internal 100k pull-up */
212+
MX50_PAD_ECSPI1_SS0__GPIO4_15 0xe0
213+
>;
214+
};
215+
216+
pinctrl_epd_pmic_supply: epd-pmic-supply-grp {
217+
fsl,pins = <
218+
MX50_PAD_EIM_CRE__GPIO1_27 0x0
219+
>;
220+
};
221+
164222
pinctrl_gpiokeys: gpiokeysgrp {
165223
fsl,pins = <
166224
MX50_PAD_CSPI_MISO__GPIO4_10 0x0

0 commit comments

Comments
 (0)