xref: /linux/arch/arm/boot/dts/st/ste-hrefv60plus-stuib.dts (revision 06d07429858317ded2db7986113a9e0129cd599b)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2012 ST-Ericsson AB
4 *
5 * Device Tree for the HREF version 60 or later with the ST UIB
6 */
7
8/dts-v1/;
9#include "ste-db8500.dtsi"
10#include "ste-href-ab8500.dtsi"
11#include "ste-hrefv60plus.dtsi"
12#include "ste-href-stuib.dtsi"
13
14/ {
15	model = "ST-Ericsson HREF (v60+) and ST UIB";
16	compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
17
18	/* ST6G3244ME level translator for 1.8/2.9 V */
19	vmmci: regulator-gpio {
20		compatible = "regulator-gpio";
21
22		regulator-min-microvolt = <1800000>;
23		regulator-max-microvolt = <2900000>;
24		regulator-name = "mmci-reg";
25		regulator-type = "voltage";
26
27		startup-delay-us = <100>;
28
29		states = <1800000 0x1
30			  2900000 0x0>;
31
32		gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
33		enable-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
34		enable-active-high;
35
36		pinctrl-names = "default";
37		pinctrl-0 = <&vmmci_default_mode>;
38	};
39
40	soc {
41		/* Reset line for the BU21013 touchscreen */
42		i2c@80110000 {
43			/* Only one of these will be used */
44			bu21013_tp@5c {
45				interrupt-parent = <&gpio2>;
46				interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
47				touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
48				reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
49			};
50			bu21013_tp@5d {
51				interrupt-parent = <&gpio2>;
52				interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
53				touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
54				reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
55			};
56		};
57	};
58};
59
60&pinctrl {
61	vmmci {
62		vmmci_default_mode: vmmc_default {
63			/* VMMCI level-shifter enable */
64			default_hrefv60_cfg2 {
65				pins = "GPIO169_D22";
66				ste,config = <&gpio_out_hi>;
67			};
68			/* VMMCI level-shifter voltage select */
69			default_hrefv60_cfg3 {
70				pins = "GPIO5_AG6";
71				ste,config = <&gpio_out_hi>;
72			};
73		};
74	};
75};
76