0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * Copyright 2012 ST-Ericsson AB
0004 *
0005 * Device Tree for the HREF version 60 or later with the ST UIB
0006 */
0007
0008 /dts-v1/;
0009 #include "ste-db8500.dtsi"
0010 #include "ste-hrefv60plus.dtsi"
0011 #include "ste-href-stuib.dtsi"
0012
0013 / {
0014 model = "ST-Ericsson HREF (v60+) and ST UIB";
0015 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
0016
0017 /* ST6G3244ME level translator for 1.8/2.9 V */
0018 vmmci: regulator-gpio {
0019 compatible = "regulator-gpio";
0020
0021 regulator-min-microvolt = <1800000>;
0022 regulator-max-microvolt = <2900000>;
0023 regulator-name = "mmci-reg";
0024 regulator-type = "voltage";
0025
0026 startup-delay-us = <100>;
0027
0028 states = <1800000 0x1
0029 2900000 0x0>;
0030
0031 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
0032 enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
0033 enable-active-high;
0034
0035 pinctrl-names = "default";
0036 pinctrl-0 = <&vmmci_default_mode>;
0037 };
0038
0039 soc {
0040 /* Reset line for the BU21013 touchscreen */
0041 i2c@80110000 {
0042 /* Only one of these will be used */
0043 bu21013_tp@5c {
0044 interrupt-parent = <&gpio2>;
0045 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
0046 touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
0047 reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
0048 };
0049 bu21013_tp@5d {
0050 interrupt-parent = <&gpio2>;
0051 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
0052 touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
0053 reset-gpios = <&gpio4 17 GPIO_LINE_OPEN_DRAIN>;
0054 };
0055 };
0056 };
0057 };
0058
0059 &pinctrl {
0060 vmmci {
0061 vmmci_default_mode: vmmc_default {
0062 /* VMMCI level-shifter enable */
0063 default_hrefv60_cfg2 {
0064 pins = "GPIO169_D22";
0065 ste,config = <&gpio_out_hi>;
0066 };
0067 /* VMMCI level-shifter voltage select */
0068 default_hrefv60_cfg3 {
0069 pins = "GPIO5_AG6";
0070 ste,config = <&gpio_out_hi>;
0071 };
0072 };
0073 };
0074 };