Skip to content

Commit e9c48e5

Browse files
akemnadeShawn Guo
authored andcommitted
ARM: dts: imx: tolino-shine2: add tps65185
Wire up the TPS65185 regulator needed for the display. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 8124b4a commit e9c48e5

1 file changed

Lines changed: 54 additions & 1 deletion

File tree

arch/arm/boot/dts/nxp/imx/imx6sl-tolino-shine2hd.dts

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@
3737
stdout-path = &uart1;
3838
};
3939

40+
epd_pmic_supply: regulator-epd-pmic-in {
41+
compatible = "regulator-fixed";
42+
pinctrl-names = "default";
43+
pinctrl-0 = <&pinctrl_epd_pmic_supply>;
44+
regulator-name = "epd_pmic_supply";
45+
gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;
46+
enable-active-high;
47+
startup-delay-us = <20000>;
48+
};
49+
4050
gpio_keys: gpio-keys {
4151
compatible = "gpio-keys";
4252
pinctrl-names = "default";
@@ -147,8 +157,35 @@
147157
touchscreen-inverted-x;
148158
};
149159

150-
/* TODO: TPS65185 PMIC for E Ink at 0x68 */
160+
tps65185: pmic@68 {
161+
compatible = "ti,tps65185";
162+
pinctrl-names = "default";
163+
pinctrl-0 = <&pinctrl_tps65185_gpio>;
164+
reg = <0x68>;
165+
interrupt-parent = <&gpio2>;
166+
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
167+
vin-supply = <&epd_pmic_supply>;
168+
pwr-good-gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
169+
vcom-ctrl-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
170+
wakeup-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
171+
enable-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
172+
173+
regulators {
174+
vcom_reg: vcom {
175+
regulator-name = "vcom";
176+
};
177+
178+
vposneg_reg: vposneg {
179+
regulator-name = "vposneg";
180+
regulator-min-microvolt = <15000000>;
181+
regulator-max-microvolt = <15000000>;
182+
};
151183

184+
v3p3_reg: v3p3 {
185+
regulator-name = "v3p3";
186+
};
187+
};
188+
};
152189
};
153190

154191
&i2c3 {
@@ -328,6 +365,12 @@
328365
>;
329366
};
330367

368+
pinctrl_epd_pmic_supply: epdc-pmic-supplygrp {
369+
fsl,pins = <
370+
MX6SL_PAD_EPDC_PWRWAKEUP__GPIO2_IO14 0x40010059 /* pwrall */
371+
>;
372+
};
373+
331374
pinctrl_gpio_keys: gpio-keysgrp {
332375
fsl,pins = <
333376
MX6SL_PAD_SD1_DAT1__GPIO5_IO08 0x17059
@@ -425,6 +468,16 @@
425468
>;
426469
};
427470

471+
pinctrl_tps65185_gpio: tps65185-gpio-grp {
472+
fsl,pins = <
473+
MX6SL_PAD_EPDC_VCOM0__GPIO2_IO03 0x40010059 /* vcom_ctrl */
474+
MX6SL_PAD_EPDC_PWRCTRL0__GPIO2_IO07 0x40010059 /* wakeup */
475+
MX6SL_PAD_EPDC_PWRCTRL1__GPIO2_IO08 0x40010059 /* enable */
476+
MX6SL_PAD_EPDC_PWRCTRL2__GPIO2_IO09 0x17059 /* nINT */
477+
MX6SL_PAD_EPDC_PWRSTAT__GPIO2_IO13 0x17059 /* pwr-good */
478+
>;
479+
};
480+
428481
pinctrl_uart1: uart1grp {
429482
fsl,pins = <
430483
MX6SL_PAD_UART1_TXD__UART1_TX_DATA 0x1b0b1

0 commit comments

Comments
 (0)