xref: /linux/arch/arm/boot/dts/st/ste-hrefv60plus-tvk.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 TVK1281618 R2 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-tvk1281618-r2.dtsi"
13
14/ {
15	model = "ST-Ericsson HREF (v60+) and TVK1281618 R2 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
41&pinctrl {
42	vmmci {
43		vmmci_default_mode: vmmc_default {
44			/* VMMCI level-shifter enable */
45			default_hrefv60_cfg2 {
46				pins = "GPIO169_D22";
47				ste,config = <&gpio_out_hi>;
48			};
49			/* VMMCI level-shifter voltage select */
50			default_hrefv60_cfg3 {
51				pins = "GPIO5_AG6";
52				ste,config = <&gpio_out_hi>;
53			};
54		};
55	};
56};
57