xref: /freebsd/sys/contrib/device-tree/src/arm/st/ste-hrefv60plus-tvk.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2012 ST-Ericsson AB
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Device Tree for the HREF version 60 or later with the TVK1281618 R2 UIB
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/dts-v1/;
9f126890aSEmmanuel Vadot#include "ste-db8500.dtsi"
10f126890aSEmmanuel Vadot#include "ste-hrefv60plus.dtsi"
11f126890aSEmmanuel Vadot#include "ste-href-tvk1281618-r2.dtsi"
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot/ {
14f126890aSEmmanuel Vadot	model = "ST-Ericsson HREF (v60+) and TVK1281618 R2 UIB";
15f126890aSEmmanuel Vadot	compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot	/* ST6G3244ME level translator for 1.8/2.9 V */
18f126890aSEmmanuel Vadot	vmmci: regulator-gpio {
19f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
22f126890aSEmmanuel Vadot		regulator-max-microvolt = <2900000>;
23f126890aSEmmanuel Vadot		regulator-name = "mmci-reg";
24f126890aSEmmanuel Vadot		regulator-type = "voltage";
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot		startup-delay-us = <100>;
27f126890aSEmmanuel Vadot
28f126890aSEmmanuel Vadot		states = <1800000 0x1
29f126890aSEmmanuel Vadot			  2900000 0x0>;
30f126890aSEmmanuel Vadot
31f126890aSEmmanuel Vadot		gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
32*aa1a8ff2SEmmanuel Vadot		enable-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
33f126890aSEmmanuel Vadot		enable-active-high;
34f126890aSEmmanuel Vadot
35f126890aSEmmanuel Vadot		pinctrl-names = "default";
36f126890aSEmmanuel Vadot		pinctrl-0 = <&vmmci_default_mode>;
37f126890aSEmmanuel Vadot	};
38f126890aSEmmanuel Vadot};
39f126890aSEmmanuel Vadot
40f126890aSEmmanuel Vadot&pinctrl {
41f126890aSEmmanuel Vadot	vmmci {
42f126890aSEmmanuel Vadot		vmmci_default_mode: vmmc_default {
43f126890aSEmmanuel Vadot			/* VMMCI level-shifter enable */
44f126890aSEmmanuel Vadot			default_hrefv60_cfg2 {
45f126890aSEmmanuel Vadot				pins = "GPIO169_D22";
46f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
47f126890aSEmmanuel Vadot			};
48f126890aSEmmanuel Vadot			/* VMMCI level-shifter voltage select */
49f126890aSEmmanuel Vadot			default_hrefv60_cfg3 {
50f126890aSEmmanuel Vadot				pins = "GPIO5_AG6";
51f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
52f126890aSEmmanuel Vadot			};
53f126890aSEmmanuel Vadot		};
54f126890aSEmmanuel Vadot	};
55f126890aSEmmanuel Vadot};
56