xref: /freebsd/sys/contrib/device-tree/src/arm/st/ste-href520-tvk.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Device Tree for the HREF520 version with the TVK1281618 R3 UIB
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot/dts-v1/;
7f126890aSEmmanuel Vadot#include "ste-db8520.dtsi"
8*8d13bc63SEmmanuel Vadot#include "ste-href-ab8505.dtsi"
9f126890aSEmmanuel Vadot#include "ste-hrefv60plus.dtsi"
10f126890aSEmmanuel Vadot#include "ste-href-tvk1281618-r3.dtsi"
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot/ {
13f126890aSEmmanuel Vadot	model = "ST-Ericsson HREF520 and TVK1281618 R3 UIB";
14f126890aSEmmanuel Vadot	compatible = "st-ericsson,href520", "st-ericsson,u8500";
15f126890aSEmmanuel Vadot
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>;
32aa1a8ff2SEmmanuel Vadot		enable-gpios = <&gpio2 14 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_href520_cfg1 {
45f126890aSEmmanuel Vadot				pins = "GPIO78_F4";
46f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
47f126890aSEmmanuel Vadot			};
48f126890aSEmmanuel Vadot			/* VMMCI level-shifter voltage select */
49f126890aSEmmanuel Vadot			default_href520_cfg2 {
50f126890aSEmmanuel Vadot				pins = "GPIO5_AG6";
51f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
52f126890aSEmmanuel Vadot			};
53f126890aSEmmanuel Vadot		};
54f126890aSEmmanuel Vadot	};
55f126890aSEmmanuel Vadot};
56