xref: /freebsd-src/sys/contrib/device-tree/src/arm/st/ste-hrefprev60-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
6f126890aSEmmanuel Vadot/dts-v1/;
7f126890aSEmmanuel Vadot#include "ste-db8500.dtsi"
8*8d13bc63SEmmanuel Vadot#include "ste-href-ab8500.dtsi"
9f126890aSEmmanuel Vadot#include "ste-hrefprev60.dtsi"
10f126890aSEmmanuel Vadot#include "ste-href-stuib.dtsi"
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot/ {
13f126890aSEmmanuel Vadot	model = "ST-Ericsson HREF (pre-v60) and ST UIB";
14f126890aSEmmanuel Vadot	compatible = "st-ericsson,mop500", "st-ericsson,u8500";
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot	/* ST6G3244ME level translator for 1.8/2.9 V */
17f126890aSEmmanuel Vadot	vmmci: regulator-gpio {
18f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
21f126890aSEmmanuel Vadot		regulator-max-microvolt = <2900000>;
22f126890aSEmmanuel Vadot		regulator-name = "mmci-reg";
23f126890aSEmmanuel Vadot		regulator-type = "voltage";
24f126890aSEmmanuel Vadot
25f126890aSEmmanuel Vadot		startup-delay-us = <100>;
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot		states = <1800000 0x1
28f126890aSEmmanuel Vadot			  2900000 0x0>;
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot		gpios = <&tc3589x_gpio 18 GPIO_ACTIVE_HIGH>;
31aa1a8ff2SEmmanuel Vadot		enable-gpios = <&tc3589x_gpio 17 GPIO_ACTIVE_HIGH>;
32f126890aSEmmanuel Vadot		enable-active-high;
33f126890aSEmmanuel Vadot	};
34f126890aSEmmanuel Vadot
35f126890aSEmmanuel Vadot	soc {
36f126890aSEmmanuel Vadot		/* Reset line for the BU21013 touchscreen */
37f126890aSEmmanuel Vadot		i2c@80110000 {
38f126890aSEmmanuel Vadot			/* Only one of these will be used */
39f126890aSEmmanuel Vadot			bu21013_tp@5c {
40f126890aSEmmanuel Vadot				interrupt-parent = <&gpio2>;
41f126890aSEmmanuel Vadot				interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
42f126890aSEmmanuel Vadot				touch-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
43f126890aSEmmanuel Vadot				reset-gpios = <&tc3589x_gpio 13 GPIO_LINE_OPEN_DRAIN>;
44f126890aSEmmanuel Vadot			};
45f126890aSEmmanuel Vadot			bu21013_tp@5d {
46f126890aSEmmanuel Vadot				interrupt-parent = <&gpio2>;
47f126890aSEmmanuel Vadot				interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
48f126890aSEmmanuel Vadot				touch-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
49f126890aSEmmanuel Vadot				reset-gpios = <&tc3589x_gpio 13 GPIO_LINE_OPEN_DRAIN>;
50f126890aSEmmanuel Vadot			};
51f126890aSEmmanuel Vadot		};
52f126890aSEmmanuel Vadot	};
53f126890aSEmmanuel Vadot};
54