191f480d4SOndrej Jirman// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
291f480d4SOndrej Jirman// Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.xyz>
391f480d4SOndrej Jirman// Copyright (C) 2020 Martijn Braam <martijn@brixit.nl>
491f480d4SOndrej Jirman// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
591f480d4SOndrej Jirman
691f480d4SOndrej Jirman#include "sun50i-a64.dtsi"
791f480d4SOndrej Jirman#include "sun50i-a64-cpu-opp.dtsi"
891f480d4SOndrej Jirman
991f480d4SOndrej Jirman#include <dt-bindings/gpio/gpio.h>
1091f480d4SOndrej Jirman#include <dt-bindings/input/input.h>
1191f480d4SOndrej Jirman#include <dt-bindings/leds/common.h>
1291f480d4SOndrej Jirman#include <dt-bindings/pwm/pwm.h>
1391f480d4SOndrej Jirman
1491f480d4SOndrej Jirman/ {
1591f480d4SOndrej Jirman	aliases {
1691f480d4SOndrej Jirman		serial0 = &uart0;
1791f480d4SOndrej Jirman	};
1891f480d4SOndrej Jirman
19a6a22f82SIcenowy Zheng	backlight: backlight {
20a6a22f82SIcenowy Zheng		compatible = "pwm-backlight";
21a6a22f82SIcenowy Zheng		pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>;
22a6a22f82SIcenowy Zheng		enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
23a6a22f82SIcenowy Zheng		/* Backlight configuration differs per PinePhone revision. */
24a6a22f82SIcenowy Zheng	};
25a6a22f82SIcenowy Zheng
2691f480d4SOndrej Jirman	chosen {
2791f480d4SOndrej Jirman		stdout-path = "serial0:115200n8";
2891f480d4SOndrej Jirman	};
2991f480d4SOndrej Jirman
3091f480d4SOndrej Jirman	leds {
3191f480d4SOndrej Jirman		compatible = "gpio-leds";
3291f480d4SOndrej Jirman
3391f480d4SOndrej Jirman		blue {
3491f480d4SOndrej Jirman			function = LED_FUNCTION_INDICATOR;
3591f480d4SOndrej Jirman			color = <LED_COLOR_ID_BLUE>;
3691f480d4SOndrej Jirman			gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */
3791f480d4SOndrej Jirman		};
3891f480d4SOndrej Jirman
3991f480d4SOndrej Jirman		green {
4091f480d4SOndrej Jirman			function = LED_FUNCTION_INDICATOR;
4191f480d4SOndrej Jirman			color = <LED_COLOR_ID_GREEN>;
4291f480d4SOndrej Jirman			gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */
4391f480d4SOndrej Jirman		};
4491f480d4SOndrej Jirman
4591f480d4SOndrej Jirman		red {
4691f480d4SOndrej Jirman			function = LED_FUNCTION_INDICATOR;
4791f480d4SOndrej Jirman			color = <LED_COLOR_ID_RED>;
4891f480d4SOndrej Jirman			gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */
4991f480d4SOndrej Jirman		};
5091f480d4SOndrej Jirman	};
5191f480d4SOndrej Jirman
52*085d96b8SLuca Weiss	sgm3140: led-controller {
53*085d96b8SLuca Weiss		compatible = "sgmicro,sgm3140";
54*085d96b8SLuca Weiss		vin-supply = <&reg_dcdc1>;
55*085d96b8SLuca Weiss
56*085d96b8SLuca Weiss		sgm3140_flash: led {
57*085d96b8SLuca Weiss			function = LED_FUNCTION_FLASH;
58*085d96b8SLuca Weiss			color = <LED_COLOR_ID_WHITE>;
59*085d96b8SLuca Weiss			flash-max-timeout-us = <250000>;
60*085d96b8SLuca Weiss		};
61*085d96b8SLuca Weiss	};
62*085d96b8SLuca Weiss
6391f480d4SOndrej Jirman	speaker_amp: audio-amplifier {
6491f480d4SOndrej Jirman		compatible = "simple-audio-amplifier";
6591f480d4SOndrej Jirman		enable-gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
6691f480d4SOndrej Jirman		sound-name-prefix = "Speaker Amp";
6791f480d4SOndrej Jirman	};
6891f480d4SOndrej Jirman
6991f480d4SOndrej Jirman	vibrator {
7091f480d4SOndrej Jirman		compatible = "gpio-vibrator";
7191f480d4SOndrej Jirman		enable-gpios = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
7291f480d4SOndrej Jirman		vcc-supply = <&reg_dcdc1>;
7391f480d4SOndrej Jirman	};
7491f480d4SOndrej Jirman};
7591f480d4SOndrej Jirman
7691f480d4SOndrej Jirman&codec {
7791f480d4SOndrej Jirman	status = "okay";
7891f480d4SOndrej Jirman};
7991f480d4SOndrej Jirman
8091f480d4SOndrej Jirman&codec_analog {
8191f480d4SOndrej Jirman	cpvdd-supply = <&reg_eldo1>;
8291f480d4SOndrej Jirman	status = "okay";
8391f480d4SOndrej Jirman};
8491f480d4SOndrej Jirman
8591f480d4SOndrej Jirman&cpu0 {
8691f480d4SOndrej Jirman	cpu-supply = <&reg_dcdc2>;
8791f480d4SOndrej Jirman};
8891f480d4SOndrej Jirman
8991f480d4SOndrej Jirman&cpu1 {
9091f480d4SOndrej Jirman	cpu-supply = <&reg_dcdc2>;
9191f480d4SOndrej Jirman};
9291f480d4SOndrej Jirman
9391f480d4SOndrej Jirman&cpu2 {
9491f480d4SOndrej Jirman	cpu-supply = <&reg_dcdc2>;
9591f480d4SOndrej Jirman};
9691f480d4SOndrej Jirman
9791f480d4SOndrej Jirman&cpu3 {
9891f480d4SOndrej Jirman	cpu-supply = <&reg_dcdc2>;
9991f480d4SOndrej Jirman};
10091f480d4SOndrej Jirman
10191f480d4SOndrej Jirman&dai {
10291f480d4SOndrej Jirman	status = "okay";
10391f480d4SOndrej Jirman};
10491f480d4SOndrej Jirman
105a6a22f82SIcenowy Zheng&de {
106a6a22f82SIcenowy Zheng	status = "okay";
107a6a22f82SIcenowy Zheng};
108a6a22f82SIcenowy Zheng
109a6a22f82SIcenowy Zheng&dphy {
110a6a22f82SIcenowy Zheng	status = "okay";
111a6a22f82SIcenowy Zheng};
112a6a22f82SIcenowy Zheng
113a6a22f82SIcenowy Zheng&dsi {
114a6a22f82SIcenowy Zheng	vcc-dsi-supply = <&reg_dldo1>;
115a6a22f82SIcenowy Zheng	status = "okay";
116a6a22f82SIcenowy Zheng
117a6a22f82SIcenowy Zheng	panel@0 {
118a6a22f82SIcenowy Zheng		compatible = "xingbangda,xbd599";
119a6a22f82SIcenowy Zheng		reg = <0>;
120a6a22f82SIcenowy Zheng		reset-gpios = <&pio 3 23 GPIO_ACTIVE_LOW>; /* PD23 */
121a6a22f82SIcenowy Zheng		iovcc-supply = <&reg_dldo2>;
122a6a22f82SIcenowy Zheng		vcc-supply = <&reg_ldo_io0>;
123a6a22f82SIcenowy Zheng		backlight = <&backlight>;
124a6a22f82SIcenowy Zheng	};
125a6a22f82SIcenowy Zheng};
126a6a22f82SIcenowy Zheng
12791f480d4SOndrej Jirman&ehci0 {
12891f480d4SOndrej Jirman	status = "okay";
12991f480d4SOndrej Jirman};
13091f480d4SOndrej Jirman
13191f480d4SOndrej Jirman&ehci1 {
13291f480d4SOndrej Jirman	status = "okay";
13391f480d4SOndrej Jirman};
13491f480d4SOndrej Jirman
13560f2de5fSOndrej Jirman&i2c0 {
13660f2de5fSOndrej Jirman	status = "okay";
13760f2de5fSOndrej Jirman
13860f2de5fSOndrej Jirman	touchscreen@5d {
13960f2de5fSOndrej Jirman		compatible = "goodix,gt917s";
14060f2de5fSOndrej Jirman		reg = <0x5d>;
14160f2de5fSOndrej Jirman		interrupt-parent = <&pio>;
14260f2de5fSOndrej Jirman		interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */
14360f2de5fSOndrej Jirman		irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
14460f2de5fSOndrej Jirman		reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
14560f2de5fSOndrej Jirman		AVDD28-supply = <&reg_ldo_io0>;
14660f2de5fSOndrej Jirman		VDDIO-supply = <&reg_ldo_io0>;
14760f2de5fSOndrej Jirman		touchscreen-size-x = <720>;
14860f2de5fSOndrej Jirman		touchscreen-size-y = <1440>;
14960f2de5fSOndrej Jirman	};
15060f2de5fSOndrej Jirman};
15160f2de5fSOndrej Jirman
15291f480d4SOndrej Jirman&i2c1 {
15391f480d4SOndrej Jirman	status = "okay";
15491f480d4SOndrej Jirman
15591f480d4SOndrej Jirman	/* Magnetometer */
156e53568caSOndrej Jirman	lis3mdl: lis3mdl@1e {
15791f480d4SOndrej Jirman		compatible = "st,lis3mdl-magn";
15891f480d4SOndrej Jirman		reg = <0x1e>;
15991f480d4SOndrej Jirman		vdd-supply = <&reg_dldo1>;
16091f480d4SOndrej Jirman		vddio-supply = <&reg_dldo1>;
16191f480d4SOndrej Jirman	};
16291f480d4SOndrej Jirman
16391f480d4SOndrej Jirman	/* Accelerometer/gyroscope */
16491f480d4SOndrej Jirman	mpu6050@68 {
16591f480d4SOndrej Jirman		compatible = "invensense,mpu6050";
16691f480d4SOndrej Jirman		reg = <0x68>;
16791f480d4SOndrej Jirman		interrupt-parent = <&pio>;
16891f480d4SOndrej Jirman		interrupts = <7 5 IRQ_TYPE_EDGE_RISING>; /* PH5 */
16991f480d4SOndrej Jirman		vdd-supply = <&reg_dldo1>;
17091f480d4SOndrej Jirman		vddio-supply = <&reg_dldo1>;
17191f480d4SOndrej Jirman	};
17291f480d4SOndrej Jirman};
17391f480d4SOndrej Jirman
17491f480d4SOndrej Jirman/* Connected to pogo pins (external spring based pinheader for user addons) */
17591f480d4SOndrej Jirman&i2c2 {
17691f480d4SOndrej Jirman	status = "okay";
17791f480d4SOndrej Jirman};
17891f480d4SOndrej Jirman
17991f480d4SOndrej Jirman&lradc {
18091f480d4SOndrej Jirman	vref-supply = <&reg_aldo3>;
18191f480d4SOndrej Jirman	status = "okay";
18291f480d4SOndrej Jirman
18391f480d4SOndrej Jirman	button-200 {
18491f480d4SOndrej Jirman		label = "Volume Up";
18591f480d4SOndrej Jirman		linux,code = <KEY_VOLUMEUP>;
18691f480d4SOndrej Jirman		channel = <0>;
18791f480d4SOndrej Jirman		voltage = <200000>;
18891f480d4SOndrej Jirman	};
18991f480d4SOndrej Jirman
19091f480d4SOndrej Jirman	button-400 {
19191f480d4SOndrej Jirman		label = "Volume Down";
19291f480d4SOndrej Jirman		linux,code = <KEY_VOLUMEDOWN>;
19391f480d4SOndrej Jirman		channel = <0>;
19491f480d4SOndrej Jirman		voltage = <400000>;
19591f480d4SOndrej Jirman	};
19691f480d4SOndrej Jirman};
19791f480d4SOndrej Jirman
19891f480d4SOndrej Jirman&mmc0 {
19991f480d4SOndrej Jirman	pinctrl-names = "default";
20091f480d4SOndrej Jirman	pinctrl-0 = <&mmc0_pins>;
20191f480d4SOndrej Jirman	vmmc-supply = <&reg_dcdc1>;
20291f480d4SOndrej Jirman	vqmmc-supply = <&reg_dcdc1>;
20391f480d4SOndrej Jirman	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
20491f480d4SOndrej Jirman	disable-wp;
20591f480d4SOndrej Jirman	bus-width = <4>;
20691f480d4SOndrej Jirman	status = "okay";
20791f480d4SOndrej Jirman};
20891f480d4SOndrej Jirman
20991f480d4SOndrej Jirman&mmc2 {
21091f480d4SOndrej Jirman	pinctrl-names = "default";
21191f480d4SOndrej Jirman	pinctrl-0 = <&mmc2_pins>;
21291f480d4SOndrej Jirman	vmmc-supply = <&reg_dcdc1>;
21391f480d4SOndrej Jirman	vqmmc-supply = <&reg_dcdc1>;
21491f480d4SOndrej Jirman	bus-width = <8>;
21591f480d4SOndrej Jirman	non-removable;
21691f480d4SOndrej Jirman	cap-mmc-hw-reset;
21791f480d4SOndrej Jirman	status = "okay";
21891f480d4SOndrej Jirman};
21991f480d4SOndrej Jirman
22091f480d4SOndrej Jirman&ohci0 {
22191f480d4SOndrej Jirman	status = "okay";
22291f480d4SOndrej Jirman};
22391f480d4SOndrej Jirman
22491f480d4SOndrej Jirman&ohci1 {
22591f480d4SOndrej Jirman	status = "okay";
22691f480d4SOndrej Jirman};
22791f480d4SOndrej Jirman
22891f480d4SOndrej Jirman&pio {
22991f480d4SOndrej Jirman	vcc-pb-supply = <&reg_dcdc1>;
23091f480d4SOndrej Jirman	vcc-pc-supply = <&reg_dcdc1>;
23191f480d4SOndrej Jirman	vcc-pd-supply = <&reg_dcdc1>;
23291f480d4SOndrej Jirman	vcc-pe-supply = <&reg_aldo1>;
23391f480d4SOndrej Jirman	vcc-pf-supply = <&reg_dcdc1>;
23491f480d4SOndrej Jirman	vcc-pg-supply = <&reg_dldo4>;
23591f480d4SOndrej Jirman	vcc-ph-supply = <&reg_dcdc1>;
23691f480d4SOndrej Jirman};
23791f480d4SOndrej Jirman
23891f480d4SOndrej Jirman&r_pio {
23991f480d4SOndrej Jirman	/*
24091f480d4SOndrej Jirman	 * FIXME: We can't add that supply for now since it would
24191f480d4SOndrej Jirman	 * create a circular dependency between pinctrl, the regulator
24291f480d4SOndrej Jirman	 * and the RSB Bus.
24391f480d4SOndrej Jirman	 *
24491f480d4SOndrej Jirman	 * vcc-pl-supply = <&reg_aldo2>;
24591f480d4SOndrej Jirman	 */
24691f480d4SOndrej Jirman};
24791f480d4SOndrej Jirman
248a6a22f82SIcenowy Zheng&r_pwm {
249a6a22f82SIcenowy Zheng	status = "okay";
250a6a22f82SIcenowy Zheng};
251a6a22f82SIcenowy Zheng
25291f480d4SOndrej Jirman&r_rsb {
25391f480d4SOndrej Jirman	status = "okay";
25491f480d4SOndrej Jirman
25591f480d4SOndrej Jirman	axp803: pmic@3a3 {
25691f480d4SOndrej Jirman		compatible = "x-powers,axp803";
25791f480d4SOndrej Jirman		reg = <0x3a3>;
25891f480d4SOndrej Jirman		interrupt-parent = <&r_intc>;
25991f480d4SOndrej Jirman		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
26091f480d4SOndrej Jirman	};
26191f480d4SOndrej Jirman};
26291f480d4SOndrej Jirman
26391f480d4SOndrej Jirman#include "axp803.dtsi"
26491f480d4SOndrej Jirman
26591f480d4SOndrej Jirman&battery_power_supply {
26691f480d4SOndrej Jirman	status = "okay";
26791f480d4SOndrej Jirman};
26891f480d4SOndrej Jirman
26991f480d4SOndrej Jirman&reg_aldo1 {
27091f480d4SOndrej Jirman	regulator-min-microvolt = <1800000>;
27191f480d4SOndrej Jirman	regulator-max-microvolt = <1800000>;
27291f480d4SOndrej Jirman	regulator-name = "dovdd-csi";
27391f480d4SOndrej Jirman};
27491f480d4SOndrej Jirman
27591f480d4SOndrej Jirman&reg_aldo2 {
27691f480d4SOndrej Jirman	regulator-always-on;
27791f480d4SOndrej Jirman	regulator-min-microvolt = <1800000>;
27891f480d4SOndrej Jirman	regulator-max-microvolt = <1800000>;
27991f480d4SOndrej Jirman	regulator-name = "vcc-pl";
28091f480d4SOndrej Jirman};
28191f480d4SOndrej Jirman
28291f480d4SOndrej Jirman&reg_aldo3 {
28391f480d4SOndrej Jirman	regulator-always-on;
2843cf9bf3bSSamuel Holland	regulator-min-microvolt = <3000000>;
2853cf9bf3bSSamuel Holland	regulator-max-microvolt = <3000000>;
28691f480d4SOndrej Jirman	regulator-name = "vcc-pll-avcc";
28791f480d4SOndrej Jirman};
28891f480d4SOndrej Jirman
28991f480d4SOndrej Jirman&reg_dcdc1 {
29091f480d4SOndrej Jirman	regulator-always-on;
29191f480d4SOndrej Jirman	regulator-min-microvolt = <3300000>;
29291f480d4SOndrej Jirman	regulator-max-microvolt = <3300000>;
29391f480d4SOndrej Jirman	regulator-name = "vcc-3v3";
29491f480d4SOndrej Jirman};
29591f480d4SOndrej Jirman
29691f480d4SOndrej Jirman&reg_dcdc2 {
29791f480d4SOndrej Jirman	regulator-always-on;
29891f480d4SOndrej Jirman	regulator-min-microvolt = <1000000>;
29991f480d4SOndrej Jirman	regulator-max-microvolt = <1300000>;
30091f480d4SOndrej Jirman	regulator-name = "vdd-cpux";
30191f480d4SOndrej Jirman};
30291f480d4SOndrej Jirman
30391f480d4SOndrej Jirman/* DCDC3 is polyphased with DCDC2 */
30491f480d4SOndrej Jirman
30591f480d4SOndrej Jirman&reg_dcdc5 {
30691f480d4SOndrej Jirman	regulator-always-on;
30791f480d4SOndrej Jirman	regulator-min-microvolt = <1200000>;
30891f480d4SOndrej Jirman	regulator-max-microvolt = <1200000>;
30991f480d4SOndrej Jirman	regulator-name = "vcc-dram";
31091f480d4SOndrej Jirman};
31191f480d4SOndrej Jirman
31291f480d4SOndrej Jirman&reg_dcdc6 {
31391f480d4SOndrej Jirman	regulator-always-on;
31491f480d4SOndrej Jirman	regulator-min-microvolt = <1100000>;
31591f480d4SOndrej Jirman	regulator-max-microvolt = <1100000>;
31691f480d4SOndrej Jirman	regulator-name = "vdd-sys";
31791f480d4SOndrej Jirman};
31891f480d4SOndrej Jirman
31991f480d4SOndrej Jirman&reg_dldo1 {
32091f480d4SOndrej Jirman	regulator-min-microvolt = <3300000>;
32191f480d4SOndrej Jirman	regulator-max-microvolt = <3300000>;
32291f480d4SOndrej Jirman	regulator-name = "vcc-dsi-sensor";
32391f480d4SOndrej Jirman};
32491f480d4SOndrej Jirman
32591f480d4SOndrej Jirman&reg_dldo2 {
32691f480d4SOndrej Jirman	regulator-min-microvolt = <1800000>;
32791f480d4SOndrej Jirman	regulator-max-microvolt = <1800000>;
32891f480d4SOndrej Jirman	regulator-name = "vcc-mipi-io";
32991f480d4SOndrej Jirman};
33091f480d4SOndrej Jirman
33191f480d4SOndrej Jirman&reg_dldo3 {
33291f480d4SOndrej Jirman	regulator-min-microvolt = <2800000>;
33391f480d4SOndrej Jirman	regulator-max-microvolt = <2800000>;
33491f480d4SOndrej Jirman	regulator-name = "avdd-csi";
33591f480d4SOndrej Jirman};
33691f480d4SOndrej Jirman
33791f480d4SOndrej Jirman&reg_dldo4 {
33891f480d4SOndrej Jirman	regulator-min-microvolt = <1800000>;
33986be5c78SOndrej Jirman	regulator-max-microvolt = <1800000>;
34091f480d4SOndrej Jirman	regulator-name = "vcc-wifi-io";
34191f480d4SOndrej Jirman};
34291f480d4SOndrej Jirman
34391f480d4SOndrej Jirman&reg_eldo1 {
34491f480d4SOndrej Jirman	regulator-always-on;
34591f480d4SOndrej Jirman	regulator-min-microvolt = <1800000>;
34691f480d4SOndrej Jirman	regulator-max-microvolt = <1800000>;
34791f480d4SOndrej Jirman	regulator-name = "vcc-lpddr";
34891f480d4SOndrej Jirman};
34991f480d4SOndrej Jirman
35091f480d4SOndrej Jirman&reg_eldo3 {
35191f480d4SOndrej Jirman	regulator-min-microvolt = <1800000>;
35291f480d4SOndrej Jirman	regulator-max-microvolt = <1800000>;
35391f480d4SOndrej Jirman	regulator-name = "dvdd-1v8-csi";
35491f480d4SOndrej Jirman};
35591f480d4SOndrej Jirman
35691f480d4SOndrej Jirman&reg_fldo1 {
35791f480d4SOndrej Jirman	regulator-min-microvolt = <1200000>;
35891f480d4SOndrej Jirman	regulator-max-microvolt = <1200000>;
35991f480d4SOndrej Jirman	regulator-name = "vcc-1v2-hsic";
36091f480d4SOndrej Jirman};
36191f480d4SOndrej Jirman
36291f480d4SOndrej Jirman&reg_fldo2 {
36391f480d4SOndrej Jirman	regulator-always-on;
36491f480d4SOndrej Jirman	regulator-min-microvolt = <1100000>;
36591f480d4SOndrej Jirman	regulator-max-microvolt = <1100000>;
36691f480d4SOndrej Jirman	regulator-name = "vdd-cpus";
36791f480d4SOndrej Jirman};
36891f480d4SOndrej Jirman
36991f480d4SOndrej Jirman&reg_ldo_io0 {
37091f480d4SOndrej Jirman	regulator-min-microvolt = <3300000>;
37191f480d4SOndrej Jirman	regulator-max-microvolt = <3300000>;
37291f480d4SOndrej Jirman	regulator-name = "vcc-lcd-ctp-stk";
37391f480d4SOndrej Jirman	status = "okay";
37491f480d4SOndrej Jirman};
37591f480d4SOndrej Jirman
37691f480d4SOndrej Jirman&reg_ldo_io1 {
37791f480d4SOndrej Jirman	regulator-min-microvolt = <1800000>;
37891f480d4SOndrej Jirman	regulator-max-microvolt = <1800000>;
37991f480d4SOndrej Jirman	regulator-name = "vcc-1v8-typec";
38091f480d4SOndrej Jirman	status = "okay";
38191f480d4SOndrej Jirman};
38291f480d4SOndrej Jirman
38391f480d4SOndrej Jirman&reg_rtc_ldo {
38491f480d4SOndrej Jirman	regulator-name = "vcc-rtc";
38591f480d4SOndrej Jirman};
38691f480d4SOndrej Jirman
38791f480d4SOndrej Jirman&sound {
38891f480d4SOndrej Jirman	status = "okay";
38991f480d4SOndrej Jirman	simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
39091f480d4SOndrej Jirman	simple-audio-card,widgets = "Microphone", "Headset Microphone",
39191f480d4SOndrej Jirman				    "Microphone", "Internal Microphone",
39291f480d4SOndrej Jirman				    "Headphone", "Headphone Jack",
39391f480d4SOndrej Jirman				    "Speaker", "Internal Earpiece",
39491f480d4SOndrej Jirman				    "Speaker", "Internal Speaker";
39591f480d4SOndrej Jirman	simple-audio-card,routing =
39691f480d4SOndrej Jirman			"Headphone Jack", "HP",
39791f480d4SOndrej Jirman			"Internal Earpiece", "EARPIECE",
39891f480d4SOndrej Jirman			"Internal Speaker", "Speaker Amp OUTL",
39991f480d4SOndrej Jirman			"Internal Speaker", "Speaker Amp OUTR",
40091f480d4SOndrej Jirman			"Speaker Amp INL", "LINEOUT",
40191f480d4SOndrej Jirman			"Speaker Amp INR", "LINEOUT",
402631e6a35SSamuel Holland			"Left DAC", "DACL",
403631e6a35SSamuel Holland			"Right DAC", "DACR",
404631e6a35SSamuel Holland			"ADCL", "Left ADC",
405631e6a35SSamuel Holland			"ADCR", "Right ADC",
40691f480d4SOndrej Jirman			"Internal Microphone", "MBIAS",
40791f480d4SOndrej Jirman			"MIC1", "Internal Microphone",
40891f480d4SOndrej Jirman			"Headset Microphone", "HBIAS",
40991f480d4SOndrej Jirman			"MIC2", "Headset Microphone";
41091f480d4SOndrej Jirman};
41191f480d4SOndrej Jirman
41291f480d4SOndrej Jirman&uart0 {
41391f480d4SOndrej Jirman	pinctrl-names = "default";
41491f480d4SOndrej Jirman	pinctrl-0 = <&uart0_pb_pins>;
41591f480d4SOndrej Jirman	status = "okay";
41691f480d4SOndrej Jirman};
41791f480d4SOndrej Jirman
41891f480d4SOndrej Jirman/* Connected to the modem (hardware flow control can't be used) */
41991f480d4SOndrej Jirman&uart3 {
42091f480d4SOndrej Jirman	pinctrl-names = "default";
42191f480d4SOndrej Jirman	pinctrl-0 = <&uart3_pins>;
42291f480d4SOndrej Jirman	status = "okay";
42391f480d4SOndrej Jirman};
42491f480d4SOndrej Jirman
42591f480d4SOndrej Jirman&usb_otg {
42691f480d4SOndrej Jirman	dr_mode = "peripheral";
42791f480d4SOndrej Jirman	status = "okay";
42891f480d4SOndrej Jirman};
42991f480d4SOndrej Jirman
43091f480d4SOndrej Jirman&usb_power_supply {
43191f480d4SOndrej Jirman	status = "okay";
43291f480d4SOndrej Jirman};
43391f480d4SOndrej Jirman
43491f480d4SOndrej Jirman&usbphy {
43591f480d4SOndrej Jirman	status = "okay";
43691f480d4SOndrej Jirman};
437