build/patch/kernel/archive/sunxi-5.10/megous/arm64-dts-sun50i-pinephone-Move-source-sink-caps-to-.patch

89 lines
3.4 KiB
Diff

From b565d71891d678f84c91fe4cec387b499c7c9d01 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Mon, 30 Nov 2020 01:53:38 +0100
Subject: [PATCH 118/351] arm64: dts: sun50i-pinephone: Move source/sink-caps
to DT
This is device specific information and doesn't belong to the driver.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
.../arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts | 8 ++++++++
.../arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts | 8 ++++++++
.../arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts | 8 ++++++++
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 1 +
4 files changed, 25 insertions(+)
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
index bbeb9a45411b..0f6faa44ce3e 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts
@@ -46,6 +46,14 @@ hdmi-bridge@28 {
vconn-supply = <&reg_vconn5v0>;
hdmi_vt-supply = <&reg_dldo1>;
+ source-caps = <
+ PDO_FIXED(5000, 500, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)
+ >;
+
+ sink-caps = <
+ PDO_FIXED(5000, 3000, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)
+ >;
+
/*
* ANX7688 can't enable/disable USB-5V <-> DCIN switch by
* itself, and PMIC's N_VBUSEN is not connected anywhere either,
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
index 2f993ffc6421..95a880fdc9ce 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts
@@ -69,6 +69,14 @@ hdmi-bridge@28 {
vconn-supply = <&reg_vconn5v0>;
hdmi_vt-supply = <&reg_dldo1>;
+ source-caps = <
+ PDO_FIXED(5000, 500, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)
+ >;
+
+ sink-caps = <
+ PDO_FIXED(5000, 3000, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)
+ >;
+
/*
* ANX7688 can't enable/disable USB-5V <-> DCIN switch by
* itself, and PMIC's N_VBUSEN is not connected anywhere either,
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts
index f91e4148d485..30f3d6c86050 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts
@@ -60,6 +60,14 @@ hdmi-bridge@28 {
vconn-supply = <&reg_vconn5v0>;
hdmi_vt-supply = <&reg_dldo1>;
+ source-caps = <
+ PDO_FIXED(5000, 500, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)
+ >;
+
+ sink-caps = <
+ PDO_FIXED(5000, 3000, PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)
+ >;
+
/*
* ANX7688 will enable/disable USB-5V <-> DCIN switch by itself
* via VBUS_CTRL pin. The driver just has to enable the USB-5V
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index de2803509d3a..3c7241e32e98 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -10,6 +10,7 @@
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/usb/pd.h>
/ {
aliases {
--
2.34.0