1f126890aSEmmanuel Vadot/* 2f126890aSEmmanuel Vadot * Copyright (C) 2017 Touchless Biometric Systems AG 3f126890aSEmmanuel Vadot * Tomas Novotny <tomas@novotny.cz> 4f126890aSEmmanuel Vadot * 5f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 6f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 7f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 8f126890aSEmmanuel Vadot * whole. 9f126890aSEmmanuel Vadot * 10f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 11f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License as 12f126890aSEmmanuel Vadot * published by the Free Software Foundation; either version 2 of the 13f126890aSEmmanuel Vadot * License, or (at your option) any later version. 14f126890aSEmmanuel Vadot * 15f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 16f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 17f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18f126890aSEmmanuel Vadot * GNU General Public License for more details. 19f126890aSEmmanuel Vadot * 20f126890aSEmmanuel Vadot * Or, alternatively, 21f126890aSEmmanuel Vadot * 22f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 23f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 24f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 25f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 26f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 27f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 28f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 29f126890aSEmmanuel Vadot * conditions: 30f126890aSEmmanuel Vadot * 31f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 32f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 33f126890aSEmmanuel Vadot * 34f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 42f126890aSEmmanuel Vadot */ 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot/dts-v1/; 45f126890aSEmmanuel Vadot#include "sun8i-a83t.dtsi" 46f126890aSEmmanuel Vadot 47f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 48f126890aSEmmanuel Vadot#include <dt-bindings/pwm/pwm.h> 49f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 50f126890aSEmmanuel Vadot 51f126890aSEmmanuel Vadot/ { 52f126890aSEmmanuel Vadot model = "TBS A711 Tablet"; 53f126890aSEmmanuel Vadot compatible = "tbs-biometrics,a711", "allwinner,sun8i-a83t"; 54f126890aSEmmanuel Vadot 55f126890aSEmmanuel Vadot aliases { 56f126890aSEmmanuel Vadot serial0 = &uart0; 57f126890aSEmmanuel Vadot serial1 = &uart1; 58f126890aSEmmanuel Vadot }; 59f126890aSEmmanuel Vadot 60f126890aSEmmanuel Vadot chosen { 61f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 62f126890aSEmmanuel Vadot }; 63f126890aSEmmanuel Vadot 64f126890aSEmmanuel Vadot backlight: backlight { 65f126890aSEmmanuel Vadot compatible = "pwm-backlight"; 66f126890aSEmmanuel Vadot pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; 67f126890aSEmmanuel Vadot enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>; 68f126890aSEmmanuel Vadot power-supply = <®_sw>; 69f126890aSEmmanuel Vadot brightness-levels = <0 1 2 4 8 16 32 64 128 255>; 70f126890aSEmmanuel Vadot default-brightness-level = <9>; 71f126890aSEmmanuel Vadot }; 72f126890aSEmmanuel Vadot 73f126890aSEmmanuel Vadot panel { 74f126890aSEmmanuel Vadot compatible = "tbs,a711-panel", "panel-lvds"; 75f126890aSEmmanuel Vadot backlight = <&backlight>; 76f126890aSEmmanuel Vadot power-supply = <®_sw>; 77f126890aSEmmanuel Vadot 78f126890aSEmmanuel Vadot width-mm = <153>; 79f126890aSEmmanuel Vadot height-mm = <90>; 80f126890aSEmmanuel Vadot data-mapping = "vesa-24"; 81f126890aSEmmanuel Vadot 82f126890aSEmmanuel Vadot panel-timing { 83f126890aSEmmanuel Vadot /* 1024x600 @60Hz */ 84f126890aSEmmanuel Vadot clock-frequency = <52000000>; 85f126890aSEmmanuel Vadot hactive = <1024>; 86f126890aSEmmanuel Vadot vactive = <600>; 87f126890aSEmmanuel Vadot hsync-len = <20>; 88f126890aSEmmanuel Vadot hfront-porch = <180>; 89f126890aSEmmanuel Vadot hback-porch = <160>; 90f126890aSEmmanuel Vadot vfront-porch = <12>; 91f126890aSEmmanuel Vadot vback-porch = <23>; 92f126890aSEmmanuel Vadot vsync-len = <5>; 93f126890aSEmmanuel Vadot }; 94f126890aSEmmanuel Vadot 95f126890aSEmmanuel Vadot port { 96f126890aSEmmanuel Vadot panel_input: endpoint { 97f126890aSEmmanuel Vadot remote-endpoint = <&tcon0_out_lcd>; 98f126890aSEmmanuel Vadot }; 99f126890aSEmmanuel Vadot }; 100f126890aSEmmanuel Vadot }; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot reg_gps: reg-gps { 103f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 104f126890aSEmmanuel Vadot regulator-name = "gps"; 105f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 106f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 107f126890aSEmmanuel Vadot }; 108f126890aSEmmanuel Vadot 109f126890aSEmmanuel Vadot reg_vbat: reg-vbat { 110f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 111f126890aSEmmanuel Vadot regulator-name = "vbat"; 112f126890aSEmmanuel Vadot regulator-min-microvolt = <3700000>; 113f126890aSEmmanuel Vadot regulator-max-microvolt = <3700000>; 114f126890aSEmmanuel Vadot }; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot reg_vmain: reg-vmain { 117f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 118f126890aSEmmanuel Vadot regulator-name = "vmain"; 119f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 120f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 121f126890aSEmmanuel Vadot gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; 122f126890aSEmmanuel Vadot enable-active-high; 123f126890aSEmmanuel Vadot vin-supply = <®_vbat>; 124f126890aSEmmanuel Vadot }; 125f126890aSEmmanuel Vadot 126*7d0873ebSEmmanuel Vadot wifi_pwrseq: pwrseq { 127f126890aSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 128f126890aSEmmanuel Vadot reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */ 129f126890aSEmmanuel Vadot 130f126890aSEmmanuel Vadot /* 131f126890aSEmmanuel Vadot * This is actually Bluetooth's clock, but we have to 132f126890aSEmmanuel Vadot * hook it up somewheere 133f126890aSEmmanuel Vadot */ 134f126890aSEmmanuel Vadot clocks = <&ac100_rtc 1>; 135f126890aSEmmanuel Vadot clock-names = "ext_clock"; 136f126890aSEmmanuel Vadot }; 137f126890aSEmmanuel Vadot}; 138f126890aSEmmanuel Vadot 139f126890aSEmmanuel Vadot&cpu0 { 140f126890aSEmmanuel Vadot cpu-supply = <®_dcdc2>; 141f126890aSEmmanuel Vadot}; 142f126890aSEmmanuel Vadot 143f126890aSEmmanuel Vadot&cpu100 { 144f126890aSEmmanuel Vadot cpu-supply = <®_dcdc3>; 145f126890aSEmmanuel Vadot}; 146f126890aSEmmanuel Vadot 147f126890aSEmmanuel Vadot&de { 148f126890aSEmmanuel Vadot status = "okay"; 149f126890aSEmmanuel Vadot}; 150f126890aSEmmanuel Vadot 151f126890aSEmmanuel Vadot/* 152f126890aSEmmanuel Vadot * An USB-2 hub is connected here, which also means we don't need to 153f126890aSEmmanuel Vadot * enable the OHCI controller. 154f126890aSEmmanuel Vadot */ 155f126890aSEmmanuel Vadot&ehci0 { 156f126890aSEmmanuel Vadot status = "okay"; 157f126890aSEmmanuel Vadot}; 158f126890aSEmmanuel Vadot 159f126890aSEmmanuel Vadot/* 160f126890aSEmmanuel Vadot * There's a modem connected here that needs to be initialised before 161f126890aSEmmanuel Vadot * being able to be enumerated. 162f126890aSEmmanuel Vadot */ 163f126890aSEmmanuel Vadot&ehci1 { 164f126890aSEmmanuel Vadot status = "okay"; 165f126890aSEmmanuel Vadot}; 166f126890aSEmmanuel Vadot 167f126890aSEmmanuel Vadot&i2c0 { 168f126890aSEmmanuel Vadot clock-frequency = <400000>; 169f126890aSEmmanuel Vadot status = "okay"; 170f126890aSEmmanuel Vadot 171f126890aSEmmanuel Vadot touchscreen@38 { 172f126890aSEmmanuel Vadot compatible = "edt,edt-ft5206"; 173f126890aSEmmanuel Vadot reg = <0x38>; 174f126890aSEmmanuel Vadot interrupt-parent = <&r_pio>; 175f126890aSEmmanuel Vadot interrupts = <0 7 IRQ_TYPE_EDGE_FALLING>; /* PL7 */ 176f126890aSEmmanuel Vadot reset-gpios = <&pio 3 5 GPIO_ACTIVE_LOW>; /* PD5 */ 177f126890aSEmmanuel Vadot vcc-supply = <®_ldo_io0>; 178f126890aSEmmanuel Vadot touchscreen-size-x = <1024>; 179f126890aSEmmanuel Vadot touchscreen-size-y = <600>; 180f126890aSEmmanuel Vadot }; 181f126890aSEmmanuel Vadot}; 182f126890aSEmmanuel Vadot 183f126890aSEmmanuel Vadot&i2c1 { 184f126890aSEmmanuel Vadot clock-frequency = <400000>; 185f126890aSEmmanuel Vadot status = "okay"; 186f126890aSEmmanuel Vadot 187f126890aSEmmanuel Vadot accelerometer@18 { 188f126890aSEmmanuel Vadot compatible = "bosch,bma250"; 189f126890aSEmmanuel Vadot reg = <0x18>; 190f126890aSEmmanuel Vadot interrupt-parent = <&pio>; 191f126890aSEmmanuel Vadot interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */ 192f126890aSEmmanuel Vadot }; 193f126890aSEmmanuel Vadot}; 194f126890aSEmmanuel Vadot 195f126890aSEmmanuel Vadot&mmc0 { 196f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 197f126890aSEmmanuel Vadot pinctrl-names = "default"; 198f126890aSEmmanuel Vadot pinctrl-0 = <&mmc0_pins>; 199f126890aSEmmanuel Vadot bus-width = <4>; 200f126890aSEmmanuel Vadot cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 201f126890aSEmmanuel Vadot status = "okay"; 202f126890aSEmmanuel Vadot}; 203f126890aSEmmanuel Vadot 204f126890aSEmmanuel Vadot&mmc1 { 205f126890aSEmmanuel Vadot mmc-pwrseq = <&wifi_pwrseq>; 206f126890aSEmmanuel Vadot bus-width = <4>; 207f126890aSEmmanuel Vadot vmmc-supply = <®_dldo1>; 208f126890aSEmmanuel Vadot vqmmc-supply = <®_dldo1>; 209f126890aSEmmanuel Vadot non-removable; 210f126890aSEmmanuel Vadot wakeup-source; 211f126890aSEmmanuel Vadot keep-power-in-suspend; 212f126890aSEmmanuel Vadot status = "okay"; 213f126890aSEmmanuel Vadot 214f126890aSEmmanuel Vadot brcmf: wifi@1 { 215f126890aSEmmanuel Vadot reg = <1>; 216f126890aSEmmanuel Vadot compatible = "brcm,bcm4329-fmac"; 217f126890aSEmmanuel Vadot interrupt-parent = <&r_pio>; 218f126890aSEmmanuel Vadot interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 WL_WAKE_UP */ 219f126890aSEmmanuel Vadot interrupt-names = "host-wake"; 220f126890aSEmmanuel Vadot }; 221f126890aSEmmanuel Vadot}; 222f126890aSEmmanuel Vadot 223f126890aSEmmanuel Vadot&mmc2 { 224f126890aSEmmanuel Vadot pinctrl-0 = <&mmc2_8bit_emmc_pins>; 225f126890aSEmmanuel Vadot pinctrl-names = "default"; 226f126890aSEmmanuel Vadot vmmc-supply = <®_dcdc1>; 227f126890aSEmmanuel Vadot vqmmc-supply = <®_dcdc1>; 228f126890aSEmmanuel Vadot bus-width = <8>; 229f126890aSEmmanuel Vadot non-removable; 230f126890aSEmmanuel Vadot cap-mmc-hw-reset; 231f126890aSEmmanuel Vadot status = "okay"; 232f126890aSEmmanuel Vadot}; 233f126890aSEmmanuel Vadot 234f126890aSEmmanuel Vadot&pwm { 235f126890aSEmmanuel Vadot pinctrl-names = "default"; 236f126890aSEmmanuel Vadot pinctrl-0 = <&pwm_pin>; 237f126890aSEmmanuel Vadot status = "okay"; 238f126890aSEmmanuel Vadot}; 239f126890aSEmmanuel Vadot 240f126890aSEmmanuel Vadot&r_lradc { 241f126890aSEmmanuel Vadot vref-supply = <®_aldo2>; 242f126890aSEmmanuel Vadot status = "okay"; 243f126890aSEmmanuel Vadot 244f126890aSEmmanuel Vadot button-210 { 245f126890aSEmmanuel Vadot label = "Volume Up"; 246f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 247f126890aSEmmanuel Vadot channel = <0>; 248f126890aSEmmanuel Vadot voltage = <210000>; 249f126890aSEmmanuel Vadot }; 250f126890aSEmmanuel Vadot 251f126890aSEmmanuel Vadot button-410 { 252f126890aSEmmanuel Vadot label = "Volume Down"; 253f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 254f126890aSEmmanuel Vadot channel = <0>; 255f126890aSEmmanuel Vadot voltage = <410000>; 256f126890aSEmmanuel Vadot }; 257f126890aSEmmanuel Vadot}; 258f126890aSEmmanuel Vadot 259f126890aSEmmanuel Vadot&r_rsb { 260f126890aSEmmanuel Vadot status = "okay"; 261f126890aSEmmanuel Vadot 262f126890aSEmmanuel Vadot axp81x: pmic@3a3 { 263f126890aSEmmanuel Vadot compatible = "x-powers,axp813"; 264f126890aSEmmanuel Vadot reg = <0x3a3>; 265f126890aSEmmanuel Vadot interrupt-parent = <&r_intc>; 266f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 267f126890aSEmmanuel Vadot swin-supply = <®_dcdc1>; 268f126890aSEmmanuel Vadot x-powers,drive-vbus-en; 269f126890aSEmmanuel Vadot }; 270f126890aSEmmanuel Vadot 271f126890aSEmmanuel Vadot ac100: codec@e89 { 272f126890aSEmmanuel Vadot compatible = "x-powers,ac100"; 273f126890aSEmmanuel Vadot reg = <0xe89>; 274f126890aSEmmanuel Vadot 275f126890aSEmmanuel Vadot ac100_codec: codec { 276f126890aSEmmanuel Vadot compatible = "x-powers,ac100-codec"; 277f126890aSEmmanuel Vadot interrupt-parent = <&r_pio>; 278f126890aSEmmanuel Vadot interrupts = <0 12 IRQ_TYPE_LEVEL_LOW>; /* PL12 */ 279f126890aSEmmanuel Vadot #clock-cells = <0>; 280f126890aSEmmanuel Vadot clock-output-names = "4M_adda"; 281f126890aSEmmanuel Vadot }; 282f126890aSEmmanuel Vadot 283f126890aSEmmanuel Vadot ac100_rtc: rtc { 284f126890aSEmmanuel Vadot compatible = "x-powers,ac100-rtc"; 285f126890aSEmmanuel Vadot interrupt-parent = <&r_intc>; 286f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 287f126890aSEmmanuel Vadot clocks = <&ac100_codec>; 288f126890aSEmmanuel Vadot #clock-cells = <1>; 289f126890aSEmmanuel Vadot clock-output-names = "cko1_rtc", 290f126890aSEmmanuel Vadot "cko2_rtc", 291f126890aSEmmanuel Vadot "cko3_rtc"; 292f126890aSEmmanuel Vadot }; 293f126890aSEmmanuel Vadot }; 294f126890aSEmmanuel Vadot 295f126890aSEmmanuel Vadot}; 296f126890aSEmmanuel Vadot 297f126890aSEmmanuel Vadot#include "axp81x.dtsi" 298f126890aSEmmanuel Vadot 299f126890aSEmmanuel Vadot&battery_power_supply { 300f126890aSEmmanuel Vadot status = "okay"; 301f126890aSEmmanuel Vadot}; 302f126890aSEmmanuel Vadot 303f126890aSEmmanuel Vadot®_aldo1 { 304f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 305f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 306f126890aSEmmanuel Vadot regulator-name = "vcc-1.8"; 307f126890aSEmmanuel Vadot}; 308f126890aSEmmanuel Vadot 309f126890aSEmmanuel Vadot®_aldo2 { 310f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 311f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 312f126890aSEmmanuel Vadot regulator-always-on; 313f126890aSEmmanuel Vadot regulator-name = "vdd-drampll"; 314f126890aSEmmanuel Vadot}; 315f126890aSEmmanuel Vadot 316f126890aSEmmanuel Vadot®_aldo3 { 317f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 318f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 319f126890aSEmmanuel Vadot regulator-always-on; 320f126890aSEmmanuel Vadot regulator-name = "avcc"; 321f126890aSEmmanuel Vadot}; 322f126890aSEmmanuel Vadot 323f126890aSEmmanuel Vadot®_dcdc1 { 324f126890aSEmmanuel Vadot regulator-min-microvolt = <3100000>; 325f126890aSEmmanuel Vadot regulator-max-microvolt = <3100000>; 326f126890aSEmmanuel Vadot regulator-always-on; 327f126890aSEmmanuel Vadot regulator-name = "vcc-io"; 328f126890aSEmmanuel Vadot}; 329f126890aSEmmanuel Vadot 330f126890aSEmmanuel Vadot®_dcdc2 { 331f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 332f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 333f126890aSEmmanuel Vadot regulator-always-on; 334f126890aSEmmanuel Vadot regulator-name = "vdd-cpu-A"; 335f126890aSEmmanuel Vadot}; 336f126890aSEmmanuel Vadot 337f126890aSEmmanuel Vadot®_dcdc3 { 338f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 339f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 340f126890aSEmmanuel Vadot regulator-always-on; 341f126890aSEmmanuel Vadot regulator-name = "vdd-cpu-B"; 342f126890aSEmmanuel Vadot}; 343f126890aSEmmanuel Vadot 344f126890aSEmmanuel Vadot®_dcdc4 { 345f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 346f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 347f126890aSEmmanuel Vadot regulator-name = "vdd-gpu"; 348f126890aSEmmanuel Vadot}; 349f126890aSEmmanuel Vadot 350f126890aSEmmanuel Vadot®_dcdc5 { 351f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 352f126890aSEmmanuel Vadot regulator-max-microvolt = <1500000>; 353f126890aSEmmanuel Vadot regulator-always-on; 354f126890aSEmmanuel Vadot regulator-name = "vcc-dram"; 355f126890aSEmmanuel Vadot}; 356f126890aSEmmanuel Vadot 357f126890aSEmmanuel Vadot®_dcdc6 { 358f126890aSEmmanuel Vadot regulator-min-microvolt = <900000>; 359f126890aSEmmanuel Vadot regulator-max-microvolt = <900000>; 360f126890aSEmmanuel Vadot regulator-always-on; 361f126890aSEmmanuel Vadot regulator-name = "vdd-sys"; 362f126890aSEmmanuel Vadot}; 363f126890aSEmmanuel Vadot 364f126890aSEmmanuel Vadot®_dldo1 { 365f126890aSEmmanuel Vadot regulator-min-microvolt = <3100000>; 366f126890aSEmmanuel Vadot regulator-max-microvolt = <3100000>; 367f126890aSEmmanuel Vadot regulator-name = "vcc-wifi-io"; 368f126890aSEmmanuel Vadot}; 369f126890aSEmmanuel Vadot 370f126890aSEmmanuel Vadot®_dldo2 { 371f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 372f126890aSEmmanuel Vadot regulator-max-microvolt = <4200000>; 373f126890aSEmmanuel Vadot regulator-name = "vcc-mipi"; 374f126890aSEmmanuel Vadot}; 375f126890aSEmmanuel Vadot 376f126890aSEmmanuel Vadot®_dldo3 { 377f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 378f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 379f126890aSEmmanuel Vadot regulator-name = "vdd-csi"; 380f126890aSEmmanuel Vadot}; 381f126890aSEmmanuel Vadot 382f126890aSEmmanuel Vadot®_dldo4 { 383f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 384f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 385f126890aSEmmanuel Vadot regulator-name = "avdd-csi"; 386f126890aSEmmanuel Vadot}; 387f126890aSEmmanuel Vadot 388f126890aSEmmanuel Vadot®_drivevbus { 389f126890aSEmmanuel Vadot regulator-name = "usb0-vbus"; 390f126890aSEmmanuel Vadot status = "okay"; 391f126890aSEmmanuel Vadot}; 392f126890aSEmmanuel Vadot 393f126890aSEmmanuel Vadot®_eldo1 { 394f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 395f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 396f126890aSEmmanuel Vadot regulator-name = "dvdd-csi-r"; 397f126890aSEmmanuel Vadot}; 398f126890aSEmmanuel Vadot 399f126890aSEmmanuel Vadot®_eldo2 { 400f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 401f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 402f126890aSEmmanuel Vadot regulator-name = "vcc-dsi"; 403f126890aSEmmanuel Vadot}; 404f126890aSEmmanuel Vadot 405f126890aSEmmanuel Vadot®_eldo3 { 406f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 407f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 408f126890aSEmmanuel Vadot regulator-name = "dvdd-csi-f"; 409f126890aSEmmanuel Vadot}; 410f126890aSEmmanuel Vadot 411f126890aSEmmanuel Vadot®_fldo1 { 412f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 413f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 414f126890aSEmmanuel Vadot regulator-name = "vcc-hsic"; 415f126890aSEmmanuel Vadot}; 416f126890aSEmmanuel Vadot 417f126890aSEmmanuel Vadot®_fldo2 { 418f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 419f126890aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 420f126890aSEmmanuel Vadot regulator-always-on; 421f126890aSEmmanuel Vadot regulator-name = "vdd-cpus"; 422f126890aSEmmanuel Vadot}; 423f126890aSEmmanuel Vadot 424f126890aSEmmanuel Vadot®_ldo_io0 { 425f126890aSEmmanuel Vadot regulator-min-microvolt = <3100000>; 426f126890aSEmmanuel Vadot regulator-max-microvolt = <3100000>; 427f126890aSEmmanuel Vadot regulator-name = "vcc-ctp"; 428f126890aSEmmanuel Vadot status = "okay"; 429f126890aSEmmanuel Vadot}; 430f126890aSEmmanuel Vadot 431f126890aSEmmanuel Vadot®_ldo_io1 { 432f126890aSEmmanuel Vadot regulator-min-microvolt = <3100000>; 433f126890aSEmmanuel Vadot regulator-max-microvolt = <3100000>; 434f126890aSEmmanuel Vadot regulator-name = "vcc-vb"; 435f126890aSEmmanuel Vadot status = "okay"; 436f126890aSEmmanuel Vadot}; 437f126890aSEmmanuel Vadot 438f126890aSEmmanuel Vadot®_sw { 439f126890aSEmmanuel Vadot regulator-min-microvolt = <3100000>; 440f126890aSEmmanuel Vadot regulator-max-microvolt = <3100000>; 441f126890aSEmmanuel Vadot regulator-name = "vcc-lcd"; 442f126890aSEmmanuel Vadot}; 443f126890aSEmmanuel Vadot 444f126890aSEmmanuel Vadot&tcon0 { 445f126890aSEmmanuel Vadot pinctrl-names = "default"; 446f126890aSEmmanuel Vadot pinctrl-0 = <&lcd_lvds_pins>; 447f126890aSEmmanuel Vadot}; 448f126890aSEmmanuel Vadot 449f126890aSEmmanuel Vadot&tcon0_out { 450f126890aSEmmanuel Vadot tcon0_out_lcd: endpoint { 451f126890aSEmmanuel Vadot remote-endpoint = <&panel_input>; 452f126890aSEmmanuel Vadot }; 453f126890aSEmmanuel Vadot}; 454f126890aSEmmanuel Vadot 455f126890aSEmmanuel Vadot&uart0 { 456f126890aSEmmanuel Vadot pinctrl-names = "default"; 457f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_pb_pins>; 458f126890aSEmmanuel Vadot status = "okay"; 459f126890aSEmmanuel Vadot}; 460f126890aSEmmanuel Vadot 461f126890aSEmmanuel Vadot/* There's the BT part of the AP6210 connected to that UART */ 462f126890aSEmmanuel Vadot&uart1 { 463f126890aSEmmanuel Vadot pinctrl-names = "default"; 464f126890aSEmmanuel Vadot pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; 465f126890aSEmmanuel Vadot uart-has-rtscts; 466f126890aSEmmanuel Vadot status = "okay"; 467f126890aSEmmanuel Vadot 468f126890aSEmmanuel Vadot bluetooth { 469f126890aSEmmanuel Vadot compatible = "brcm,bcm20702a1"; 470f126890aSEmmanuel Vadot clocks = <&ac100_rtc 1>; 471f126890aSEmmanuel Vadot clock-names = "lpo"; 472f126890aSEmmanuel Vadot vbat-supply = <®_vbat>; 473f126890aSEmmanuel Vadot vddio-supply = <®_dldo1>; 474f126890aSEmmanuel Vadot device-wakeup-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ 475f126890aSEmmanuel Vadot host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ 476f126890aSEmmanuel Vadot shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ 477f126890aSEmmanuel Vadot max-speed = <1500000>; 478f126890aSEmmanuel Vadot }; 479f126890aSEmmanuel Vadot}; 480f126890aSEmmanuel Vadot 481f126890aSEmmanuel Vadot&uart2 { 482f126890aSEmmanuel Vadot pinctrl-names = "default"; 483f126890aSEmmanuel Vadot pinctrl-0 = <&uart2_pb_pins>; 484f126890aSEmmanuel Vadot status = "okay"; 485f126890aSEmmanuel Vadot 486f126890aSEmmanuel Vadot gnss { 487f126890aSEmmanuel Vadot compatible = "u-blox,neo-6m"; 488f126890aSEmmanuel Vadot 489f126890aSEmmanuel Vadot v-bckp-supply = <®_rtc_ldo>; 490f126890aSEmmanuel Vadot vcc-supply = <®_gps>; 491f126890aSEmmanuel Vadot current-speed = <9600>; 492f126890aSEmmanuel Vadot }; 493f126890aSEmmanuel Vadot}; 494f126890aSEmmanuel Vadot 495f126890aSEmmanuel Vadot&usb_otg { 496f126890aSEmmanuel Vadot status = "okay"; 497f126890aSEmmanuel Vadot}; 498f126890aSEmmanuel Vadot 499f126890aSEmmanuel Vadot&usbphy { 500f126890aSEmmanuel Vadot usb0_id_det-gpios = <&pio 7 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH11 */ 501f126890aSEmmanuel Vadot usb0_vbus_power-supply = <&usb_power_supply>; 502f126890aSEmmanuel Vadot usb0_vbus-supply = <®_drivevbus>; 503f126890aSEmmanuel Vadot usb1_vbus-supply = <®_vmain>; 504f126890aSEmmanuel Vadot usb2_vbus-supply = <®_vmain>; 505f126890aSEmmanuel Vadot status = "okay"; 506f126890aSEmmanuel Vadot}; 507