xref: /freebsd/sys/contrib/device-tree/src/arm/st/ste-hrefv60plus-stuib.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
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 ST UIB
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/dts-v1/;
9f126890aSEmmanuel Vadot#include "ste-db8500.dtsi"
10*8d13bc63SEmmanuel Vadot#include "ste-href-ab8500.dtsi"
11f126890aSEmmanuel Vadot#include "ste-hrefv60plus.dtsi"
12f126890aSEmmanuel Vadot#include "ste-href-stuib.dtsi"
13f126890aSEmmanuel Vadot
14f126890aSEmmanuel Vadot/ {
15f126890aSEmmanuel Vadot	model = "ST-Ericsson HREF (v60+) and ST UIB";
16f126890aSEmmanuel Vadot	compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
17f126890aSEmmanuel Vadot
18f126890aSEmmanuel Vadot	/* ST6G3244ME level translator for 1.8/2.9 V */
19f126890aSEmmanuel Vadot	vmmci: regulator-gpio {
20f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
23f126890aSEmmanuel Vadot		regulator-max-microvolt = <2900000>;
24f126890aSEmmanuel Vadot		regulator-name = "mmci-reg";
25f126890aSEmmanuel Vadot		regulator-type = "voltage";
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot		startup-delay-us = <100>;
28f126890aSEmmanuel Vadot
29f126890aSEmmanuel Vadot		states = <1800000 0x1
30f126890aSEmmanuel Vadot			  2900000 0x0>;
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot		gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
33aa1a8ff2SEmmanuel Vadot		enable-gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
34f126890aSEmmanuel Vadot		enable-active-high;
35f126890aSEmmanuel Vadot
36f126890aSEmmanuel Vadot		pinctrl-names = "default";
37f126890aSEmmanuel Vadot		pinctrl-0 = <&vmmci_default_mode>;
38f126890aSEmmanuel Vadot	};
39f126890aSEmmanuel Vadot
40f126890aSEmmanuel Vadot	soc {
41f126890aSEmmanuel Vadot		/* Reset line for the BU21013 touchscreen */
42f126890aSEmmanuel Vadot		i2c@80110000 {
43f126890aSEmmanuel Vadot			/* Only one of these will be used */
44f126890aSEmmanuel Vadot			bu21013_tp@5c {
45f126890aSEmmanuel Vadot				interrupt-parent = <&gpio2>;
46f126890aSEmmanuel Vadot				interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
47f126890aSEmmanuel Vadot				touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
48f126890aSEmmanuel Vadot				reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
49f126890aSEmmanuel Vadot			};
50f126890aSEmmanuel Vadot			bu21013_tp@5d {
51f126890aSEmmanuel Vadot				interrupt-parent = <&gpio2>;
52f126890aSEmmanuel Vadot				interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
53f126890aSEmmanuel Vadot				touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
54f126890aSEmmanuel Vadot				reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
55f126890aSEmmanuel Vadot			};
56f126890aSEmmanuel Vadot		};
57f126890aSEmmanuel Vadot	};
58f126890aSEmmanuel Vadot};
59f126890aSEmmanuel Vadot
60f126890aSEmmanuel Vadot&pinctrl {
61f126890aSEmmanuel Vadot	vmmci {
62f126890aSEmmanuel Vadot		vmmci_default_mode: vmmc_default {
63f126890aSEmmanuel Vadot			/* VMMCI level-shifter enable */
64f126890aSEmmanuel Vadot			default_hrefv60_cfg2 {
65f126890aSEmmanuel Vadot				pins = "GPIO169_D22";
66f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
67f126890aSEmmanuel Vadot			};
68f126890aSEmmanuel Vadot			/* VMMCI level-shifter voltage select */
69f126890aSEmmanuel Vadot			default_hrefv60_cfg3 {
70f126890aSEmmanuel Vadot				pins = "GPIO5_AG6";
71f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
72f126890aSEmmanuel Vadot			};
73f126890aSEmmanuel Vadot		};
74f126890aSEmmanuel Vadot	};
75f126890aSEmmanuel Vadot};
76