1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Device Tree for the HREF520 version with the TVK1281618 R3 UIB
4 */
5
6/dts-v1/;
7#include "ste-db8520.dtsi"
8#include "ste-hrefv60plus.dtsi"
9#include "ste-href-tvk1281618-r3.dtsi"
10
11/ {
12	model = "ST-Ericsson HREF520 and TVK1281618 R3 UIB";
13	compatible = "st-ericsson,href520", "st-ericsson,u8500";
14
15
16	/* ST6G3244ME level translator for 1.8/2.9 V */
17	vmmci: regulator-gpio {
18		compatible = "regulator-gpio";
19
20		regulator-min-microvolt = <1800000>;
21		regulator-max-microvolt = <2900000>;
22		regulator-name = "mmci-reg";
23		regulator-type = "voltage";
24
25		startup-delay-us = <100>;
26
27		states = <1800000 0x1
28			  2900000 0x0>;
29
30		gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
31		enable-gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;
32		enable-active-high;
33
34		pinctrl-names = "default";
35		pinctrl-0 = <&vmmci_default_mode>;
36	};
37};
38
39&pinctrl {
40	vmmci {
41		vmmci_default_mode: vmmc_default {
42			/* VMMCI level-shifter enable */
43			default_href520_cfg1 {
44				pins = "GPIO78_F4";
45				ste,config = <&gpio_out_hi>;
46			};
47			/* VMMCI level-shifter voltage select */
48			default_href520_cfg2 {
49				pins = "GPIO5_AG6";
50				ste,config = <&gpio_out_hi>;
51			};
52		};
53	};
54};
55