blob: 5677df43c3acb1bf019ad828fe0d754655d7ced3 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// 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"
Tom Rini93743d22024-04-01 09:08:13 -04008#include "ste-href-ab8505.dtsi"
Tom Rini53633a82024-02-29 12:33:36 -05009#include "ste-hrefv60plus.dtsi"
10#include "ste-href-tvk1281618-r3.dtsi"
11
12/ {
13 model = "ST-Ericsson HREF520 and TVK1281618 R3 UIB";
14 compatible = "st-ericsson,href520", "st-ericsson,u8500";
15
16
17 /* ST6G3244ME level translator for 1.8/2.9 V */
18 vmmci: regulator-gpio {
19 compatible = "regulator-gpio";
20
21 regulator-min-microvolt = <1800000>;
22 regulator-max-microvolt = <2900000>;
23 regulator-name = "mmci-reg";
24 regulator-type = "voltage";
25
26 startup-delay-us = <100>;
27
28 states = <1800000 0x1
29 2900000 0x0>;
30
31 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
32 enable-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
33 enable-active-high;
34
35 pinctrl-names = "default";
36 pinctrl-0 = <&vmmci_default_mode>;
37 };
38};
39
40&pinctrl {
41 vmmci {
42 vmmci_default_mode: vmmc_default {
43 /* VMMCI level-shifter enable */
44 default_href520_cfg1 {
45 pins = "GPIO78_F4";
46 ste,config = <&gpio_out_hi>;
47 };
48 /* VMMCI level-shifter voltage select */
49 default_href520_cfg2 {
50 pins = "GPIO5_AG6";
51 ste,config = <&gpio_out_hi>;
52 };
53 };
54 };
55};