71893eb
From 836821a0addbd8589e949801aaa7be244703c7f8 Mon Sep 17 00:00:00 2001
71893eb
From: Ondrej Jirman <megous@megous.com>
71893eb
Date: Thu, 27 Feb 2020 02:26:48 +0100
71893eb
Subject: [PATCH 1/3] arm64: dts: sun50i-a64: Add i2c2 pins
71893eb
71893eb
PinePhone needs I2C2 pins description. Add it, and make it default
71893eb
for i2c2, since it's the only possiblilty.
71893eb
71893eb
Signed-off-by: Ondrej Jirman <megous@megous.com>
71893eb
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
71893eb
---
71893eb
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 +++++++-
71893eb
 1 file changed, 7 insertions(+), 1 deletion(-)
71893eb
71893eb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
71893eb
index 862b47dc9dc9..107a48f9c5b3 100644
71893eb
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
71893eb
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
71893eb
@@ -671,6 +671,11 @@ i2c1_pins: i2c1-pins {
71893eb
 				function = "i2c1";
71893eb
 			};
71893eb
 
71893eb
+			i2c2_pins: i2c2-pins {
71893eb
+				pins = "PE14", "PE15";
71893eb
+				function = "i2c2";
71893eb
+			};
71893eb
+
71893eb
 			/omit-if-no-ref/
71893eb
 			lcd_rgb666_pins: lcd-rgb666-pins {
71893eb
 				pins = "PD0", "PD1", "PD2", "PD3", "PD4",
71893eb
@@ -958,12 +963,13 @@ i2c2: i2c@1c2b400 {
71893eb
 			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
71893eb
 			clocks = <&ccu CLK_BUS_I2C2>;
71893eb
 			resets = <&ccu RST_BUS_I2C2>;
71893eb
+			pinctrl-names = "default";
71893eb
+			pinctrl-0 = <&i2c2_pins>;
71893eb
 			status = "disabled";
71893eb
 			#address-cells = <1>;
71893eb
 			#size-cells = <0>;
71893eb
 		};
71893eb
 
71893eb
-
71893eb
 		spi0: spi@1c68000 {
71893eb
 			compatible = "allwinner,sun8i-h3-spi";
71893eb
 			reg = <0x01c68000 0x1000>;
71893eb
-- 
71893eb
2.24.1
71893eb
71893eb
From 5c4e2cd9e8b600cc622c10543f69fcd897557eee Mon Sep 17 00:00:00 2001
71893eb
From: Ondrej Jirman <megous@megous.com>
71893eb
Date: Thu, 27 Feb 2020 02:26:49 +0100
71893eb
Subject: [PATCH 2/3] dt-bindings: arm: sunxi: Add PinePhone 1.0 and 1.1
71893eb
 bindings
71893eb
71893eb
Document board compatible names for Pine64 PinePhone:
71893eb
71893eb
- 1.0 - Developer variant
71893eb
- 1.1 - Braveheart variant
71893eb
71893eb
Signed-off-by: Ondrej Jirman <megous@megous.com>
71893eb
Reviewed-by: Rob Herring <robh@kernel.org>
71893eb
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
71893eb
---
71893eb
 Documentation/devicetree/bindings/arm/sunxi.yaml | 10 ++++++++++
71893eb
 1 file changed, 10 insertions(+)
71893eb
71893eb
diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
71893eb
index 159060b65c5d..c632252be48b 100644
71893eb
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
71893eb
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
71893eb
@@ -636,6 +636,16 @@ properties:
71893eb
           - const: pine64,pinebook
71893eb
           - const: allwinner,sun50i-a64
71893eb
 
71893eb
+      - description: Pine64 PinePhone Developer Batch (1.0)
71893eb
+        items:
71893eb
+          - const: pine64,pinephone-1.0
71893eb
+          - const: allwinner,sun50i-a64
71893eb
+
71893eb
+      - description: Pine64 PinePhone Braveheart (1.1)
71893eb
+        items:
71893eb
+          - const: pine64,pinephone-1.1
71893eb
+          - const: allwinner,sun50i-a64
71893eb
+
71893eb
       - description: Pine64 PineTab
71893eb
         items:
71893eb
           - const: pine64,pinetab
71893eb
-- 
71893eb
2.24.1
71893eb
71893eb
From 697f60799172569e8d502a44ad98994f2c48778c Mon Sep 17 00:00:00 2001
71893eb
From: Ondrej Jirman <megous@megous.com>
71893eb
Date: Thu, 27 Feb 2020 02:26:50 +0100
71893eb
Subject: [PATCH 3/3] arm64: dts: allwinner: Add initial support for Pine64
71893eb
 PinePhone
71893eb
71893eb
At the moment PinePhone comes in two slightly incompatible variants:
71893eb
71893eb
- 1.0: Early Developer Batch
71893eb
- 1.1: Braveheart Batch
71893eb
71893eb
There will be at least one more incompatible variant in the very near
71893eb
future, so let's start by sharing the dtsi among multiple variants,
71893eb
right away, even though the HW description doesn't yet include the
71893eb
different bits.
71893eb
71893eb
The differences between 1.0 and 1.1 are: change in pins that control
71893eb
the flash LED, differences in modem power status signal routing, and
71893eb
maybe some other subtler things, that have not been determined yet.
71893eb
71893eb
This is a basic DT that includes only features that are already
71893eb
supported by mainline drivers.
71893eb
71893eb
Co-developed-by: Samuel Holland <samuel@sholland.org>
71893eb
Signed-off-by: Samuel Holland <samuel@sholland.org>
71893eb
Co-developed-by: Martijn Braam <martijn@brixit.nl>
71893eb
Signed-off-by: Martijn Braam <martijn@brixit.nl>
71893eb
Co-developed-by: Luca Weiss <luca@z3ntu.xyz>
71893eb
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
71893eb
Signed-off-by: Bhushan Shah <bshah@kde.org>
71893eb
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
71893eb
Signed-off-by: Ondrej Jirman <megous@megous.com>
71893eb
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
71893eb
---
71893eb
 arch/arm64/boot/dts/allwinner/Makefile        |   2 +
71893eb
 .../allwinner/sun50i-a64-pinephone-1.0.dts    |  11 +
71893eb
 .../allwinner/sun50i-a64-pinephone-1.1.dts    |  11 +
71893eb
 .../dts/allwinner/sun50i-a64-pinephone.dtsi   | 379 ++++++++++++++++++
71893eb
 4 files changed, 403 insertions(+)
71893eb
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
71893eb
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts
71893eb
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
71893eb
71893eb
diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
71893eb
index 6dad63881cd3..e4d3cd0ac5bb 100644
71893eb
--- a/arch/arm64/boot/dts/allwinner/Makefile
71893eb
+++ b/arch/arm64/boot/dts/allwinner/Makefile
71893eb
@@ -9,6 +9,8 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb
71893eb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb
71893eb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb
71893eb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb
71893eb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.0.dtb
71893eb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.1.dtb
71893eb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb
71893eb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
71893eb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
71893eb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
71893eb
new file mode 100644
71893eb
index 000000000000..0c42272106af
71893eb
--- /dev/null
71893eb
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
71893eb
@@ -0,0 +1,11 @@
71893eb
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
71893eb
+// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
71893eb
+
71893eb
+/dts-v1/;
71893eb
+
71893eb
+#include "sun50i-a64-pinephone.dtsi"
71893eb
+
71893eb
+/ {
71893eb
+	model = "Pine64 PinePhone Developer Batch (1.0)";
71893eb
+	compatible = "pine64,pinephone-1.0", "allwinner,sun50i-a64";
71893eb
+};
71893eb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts
71893eb
new file mode 100644
71893eb
index 000000000000..06a775c41664
71893eb
--- /dev/null
71893eb
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts
71893eb
@@ -0,0 +1,11 @@
71893eb
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
71893eb
+// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
71893eb
+
71893eb
+/dts-v1/;
71893eb
+
71893eb
+#include "sun50i-a64-pinephone.dtsi"
71893eb
+
71893eb
+/ {
71893eb
+	model = "Pine64 PinePhone Braveheart (1.1)";
71893eb
+	compatible = "pine64,pinephone-1.1", "allwinner,sun50i-a64";
71893eb
+};
71893eb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
71893eb
new file mode 100644
71893eb
index 000000000000..cefda145c3c9
71893eb
--- /dev/null
71893eb
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
71893eb
@@ -0,0 +1,379 @@
71893eb
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
71893eb
+// Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.xyz>
71893eb
+// Copyright (C) 2020 Martijn Braam <martijn@brixit.nl>
71893eb
+// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
71893eb
+
71893eb
+#include "sun50i-a64.dtsi"
71893eb
+#include "sun50i-a64-cpu-opp.dtsi"
71893eb
+
71893eb
+#include <dt-bindings/gpio/gpio.h>
71893eb
+#include <dt-bindings/input/input.h>
71893eb
+#include <dt-bindings/leds/common.h>
71893eb
+#include <dt-bindings/pwm/pwm.h>
71893eb
+
71893eb
+/ {
71893eb
+	aliases {
71893eb
+		serial0 = &uart;;
71893eb
+	};
71893eb
+
71893eb
+	chosen {
71893eb
+		stdout-path = "serial0:115200n8";
71893eb
+	};
71893eb
+
71893eb
+	leds {
71893eb
+		compatible = "gpio-leds";
71893eb
+
71893eb
+		blue {
71893eb
+			function = LED_FUNCTION_INDICATOR;
71893eb
+			color = <LED_COLOR_ID_BLUE>;
71893eb
+			gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */
71893eb
+		};
71893eb
+
71893eb
+		green {
71893eb
+			function = LED_FUNCTION_INDICATOR;
71893eb
+			color = <LED_COLOR_ID_GREEN>;
71893eb
+			gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */
71893eb
+		};
71893eb
+
71893eb
+		red {
71893eb
+			function = LED_FUNCTION_INDICATOR;
71893eb
+			color = <LED_COLOR_ID_RED>;
71893eb
+			gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */
71893eb
+		};
71893eb
+	};
71893eb
+
71893eb
+	speaker_amp: audio-amplifier {
71893eb
+		compatible = "simple-audio-amplifier";
71893eb
+		enable-gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
71893eb
+		sound-name-prefix = "Speaker Amp";
71893eb
+	};
71893eb
+
71893eb
+	vibrator {
71893eb
+		compatible = "gpio-vibrator";
71893eb
+		enable-gpios = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
71893eb
+		vcc-supply = <&reg_dcdc1>;
71893eb
+	};
71893eb
+};
71893eb
+
71893eb
+&codec {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&codec_analog {
71893eb
+	cpvdd-supply = <&reg_eldo1>;
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&cpu0 {
71893eb
+	cpu-supply = <&reg_dcdc2>;
71893eb
+};
71893eb
+
71893eb
+&cpu1 {
71893eb
+	cpu-supply = <&reg_dcdc2>;
71893eb
+};
71893eb
+
71893eb
+&cpu2 {
71893eb
+	cpu-supply = <&reg_dcdc2>;
71893eb
+};
71893eb
+
71893eb
+&cpu3 {
71893eb
+	cpu-supply = <&reg_dcdc2>;
71893eb
+};
71893eb
+
71893eb
+&dai {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&ehci0 {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&ehci1 {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&i2c1 {
71893eb
+	status = "okay";
71893eb
+
71893eb
+	/* Magnetometer */
71893eb
+	lis3mdl@1e {
71893eb
+		compatible = "st,lis3mdl-magn";
71893eb
+		reg = <0x1e>;
71893eb
+		vdd-supply = <&reg_dldo1>;
71893eb
+		vddio-supply = <&reg_dldo1>;
71893eb
+	};
71893eb
+
71893eb
+	/* Accelerometer/gyroscope */
71893eb
+	mpu6050@68 {
71893eb
+		compatible = "invensense,mpu6050";
71893eb
+		reg = <0x68>;
71893eb
+		interrupt-parent = <&pio;;
71893eb
+		interrupts = <7 5 IRQ_TYPE_EDGE_RISING>; /* PH5 */
71893eb
+		vdd-supply = <&reg_dldo1>;
71893eb
+		vddio-supply = <&reg_dldo1>;
71893eb
+	};
71893eb
+};
71893eb
+
71893eb
+/* Connected to pogo pins (external spring based pinheader for user addons) */
71893eb
+&i2c2 {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&lradc {
71893eb
+	vref-supply = <&reg_aldo3>;
71893eb
+	status = "okay";
71893eb
+
71893eb
+	button-200 {
71893eb
+		label = "Volume Up";
71893eb
+		linux,code = <KEY_VOLUMEUP>;
71893eb
+		channel = <0>;
71893eb
+		voltage = <200000>;
71893eb
+	};
71893eb
+
71893eb
+	button-400 {
71893eb
+		label = "Volume Down";
71893eb
+		linux,code = <KEY_VOLUMEDOWN>;
71893eb
+		channel = <0>;
71893eb
+		voltage = <400000>;
71893eb
+	};
71893eb
+};
71893eb
+
71893eb
+&mmc0 {
71893eb
+	pinctrl-names = "default";
71893eb
+	pinctrl-0 = <&mmc0_pins>;
71893eb
+	vmmc-supply = <&reg_dcdc1>;
71893eb
+	vqmmc-supply = <&reg_dcdc1>;
71893eb
+	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
71893eb
+	disable-wp;
71893eb
+	bus-width = <4>;
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&mmc2 {
71893eb
+	pinctrl-names = "default";
71893eb
+	pinctrl-0 = <&mmc2_pins>;
71893eb
+	vmmc-supply = <&reg_dcdc1>;
71893eb
+	vqmmc-supply = <&reg_dcdc1>;
71893eb
+	bus-width = <8>;
71893eb
+	non-removable;
71893eb
+	cap-mmc-hw-reset;
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&ohci0 {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&ohci1 {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&pio {
71893eb
+	vcc-pb-supply = <&reg_dcdc1>;
71893eb
+	vcc-pc-supply = <&reg_dcdc1>;
71893eb
+	vcc-pd-supply = <&reg_dcdc1>;
71893eb
+	vcc-pe-supply = <&reg_aldo1>;
71893eb
+	vcc-pf-supply = <&reg_dcdc1>;
71893eb
+	vcc-pg-supply = <&reg_dldo4>;
71893eb
+	vcc-ph-supply = <&reg_dcdc1>;
71893eb
+};
71893eb
+
71893eb
+&r_pio {
71893eb
+	/*
71893eb
+	 * FIXME: We can't add that supply for now since it would
71893eb
+	 * create a circular dependency between pinctrl, the regulator
71893eb
+	 * and the RSB Bus.
71893eb
+	 *
71893eb
+	 * vcc-pl-supply = <&reg_aldo2>;
71893eb
+	 */
71893eb
+};
71893eb
+
71893eb
+&r_rsb {
71893eb
+	status = "okay";
71893eb
+
71893eb
+	axp803: pmic@3a3 {
71893eb
+		compatible = "x-powers,axp803";
71893eb
+		reg = <0x3a3>;
71893eb
+		interrupt-parent = <&r_intc>;
71893eb
+		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
71893eb
+	};
71893eb
+};
71893eb
+
71893eb
+#include "axp803.dtsi"
71893eb
+
71893eb
+&ac_power_supply {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&battery_power_supply {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&reg_aldo1 {
71893eb
+	regulator-min-microvolt = <1800000>;
71893eb
+	regulator-max-microvolt = <1800000>;
71893eb
+	regulator-name = "dovdd-csi";
71893eb
+};
71893eb
+
71893eb
+&reg_aldo2 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <1800000>;
71893eb
+	regulator-max-microvolt = <1800000>;
71893eb
+	regulator-name = "vcc-pl";
71893eb
+};
71893eb
+
71893eb
+&reg_aldo3 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <2700000>;
71893eb
+	regulator-max-microvolt = <3300000>;
71893eb
+	regulator-name = "vcc-pll-avcc";
71893eb
+};
71893eb
+
71893eb
+&reg_dcdc1 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <3300000>;
71893eb
+	regulator-max-microvolt = <3300000>;
71893eb
+	regulator-name = "vcc-3v3";
71893eb
+};
71893eb
+
71893eb
+&reg_dcdc2 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <1000000>;
71893eb
+	regulator-max-microvolt = <1300000>;
71893eb
+	regulator-name = "vdd-cpux";
71893eb
+};
71893eb
+
71893eb
+/* DCDC3 is polyphased with DCDC2 */
71893eb
+
71893eb
+&reg_dcdc5 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <1200000>;
71893eb
+	regulator-max-microvolt = <1200000>;
71893eb
+	regulator-name = "vcc-dram";
71893eb
+};
71893eb
+
71893eb
+&reg_dcdc6 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <1100000>;
71893eb
+	regulator-max-microvolt = <1100000>;
71893eb
+	regulator-name = "vdd-sys";
71893eb
+};
71893eb
+
71893eb
+&reg_dldo1 {
71893eb
+	regulator-min-microvolt = <3300000>;
71893eb
+	regulator-max-microvolt = <3300000>;
71893eb
+	regulator-name = "vcc-dsi-sensor";
71893eb
+};
71893eb
+
71893eb
+&reg_dldo2 {
71893eb
+	regulator-min-microvolt = <1800000>;
71893eb
+	regulator-max-microvolt = <1800000>;
71893eb
+	regulator-name = "vcc-mipi-io";
71893eb
+};
71893eb
+
71893eb
+&reg_dldo3 {
71893eb
+	regulator-min-microvolt = <2800000>;
71893eb
+	regulator-max-microvolt = <2800000>;
71893eb
+	regulator-name = "avdd-csi";
71893eb
+};
71893eb
+
71893eb
+&reg_dldo4 {
71893eb
+	regulator-min-microvolt = <1800000>;
71893eb
+	regulator-max-microvolt = <3300000>;
71893eb
+	regulator-name = "vcc-wifi-io";
71893eb
+};
71893eb
+
71893eb
+&reg_eldo1 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <1800000>;
71893eb
+	regulator-max-microvolt = <1800000>;
71893eb
+	regulator-name = "vcc-lpddr";
71893eb
+};
71893eb
+
71893eb
+&reg_eldo3 {
71893eb
+	regulator-min-microvolt = <1800000>;
71893eb
+	regulator-max-microvolt = <1800000>;
71893eb
+	regulator-name = "dvdd-1v8-csi";
71893eb
+};
71893eb
+
71893eb
+&reg_fldo1 {
71893eb
+	regulator-min-microvolt = <1200000>;
71893eb
+	regulator-max-microvolt = <1200000>;
71893eb
+	regulator-name = "vcc-1v2-hsic";
71893eb
+};
71893eb
+
71893eb
+&reg_fldo2 {
71893eb
+	regulator-always-on;
71893eb
+	regulator-min-microvolt = <1100000>;
71893eb
+	regulator-max-microvolt = <1100000>;
71893eb
+	regulator-name = "vdd-cpus";
71893eb
+};
71893eb
+
71893eb
+&reg_ldo_io0 {
71893eb
+	regulator-min-microvolt = <3300000>;
71893eb
+	regulator-max-microvolt = <3300000>;
71893eb
+	regulator-name = "vcc-lcd-ctp-stk";
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&reg_ldo_io1 {
71893eb
+	regulator-min-microvolt = <1800000>;
71893eb
+	regulator-max-microvolt = <1800000>;
71893eb
+	regulator-name = "vcc-1v8-typec";
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&reg_rtc_ldo {
71893eb
+	regulator-name = "vcc-rtc";
71893eb
+};
71893eb
+
71893eb
+&sound {
71893eb
+	status = "okay";
71893eb
+	simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
71893eb
+	simple-audio-card,widgets = "Microphone", "Headset Microphone",
71893eb
+				    "Microphone", "Internal Microphone",
71893eb
+				    "Headphone", "Headphone Jack",
71893eb
+				    "Speaker", "Internal Earpiece",
71893eb
+				    "Speaker", "Internal Speaker";
71893eb
+	simple-audio-card,routing =
71893eb
+			"Headphone Jack", "HP",
71893eb
+			"Internal Earpiece", "EARPIECE",
71893eb
+			"Internal Speaker", "Speaker Amp OUTL",
71893eb
+			"Internal Speaker", "Speaker Amp OUTR",
71893eb
+			"Speaker Amp INL", "LINEOUT",
71893eb
+			"Speaker Amp INR", "LINEOUT",
71893eb
+			"Left DAC", "AIF1 Slot 0 Left",
71893eb
+			"Right DAC", "AIF1 Slot 0 Right",
71893eb
+			"AIF1 Slot 0 Left ADC", "Left ADC",
71893eb
+			"AIF1 Slot 0 Right ADC", "Right ADC",
71893eb
+			"Internal Microphone", "MBIAS",
71893eb
+			"MIC1", "Internal Microphone",
71893eb
+			"Headset Microphone", "HBIAS",
71893eb
+			"MIC2", "Headset Microphone";
71893eb
+};
71893eb
+
71893eb
+&uart0 {
71893eb
+	pinctrl-names = "default";
71893eb
+	pinctrl-0 = <&uart0_pb_pins>;
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+/* Connected to the modem (hardware flow control can't be used) */
71893eb
+&uart3 {
71893eb
+	pinctrl-names = "default";
71893eb
+	pinctrl-0 = <&uart3_pins>;
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&usb_otg {
71893eb
+	dr_mode = "peripheral";
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&usb_power_supply {
71893eb
+	status = "okay";
71893eb
+};
71893eb
+
71893eb
+&usbphy {
71893eb
+	status = "okay";
71893eb
+};
71893eb
-- 
71893eb
2.24.1
71893eb