armbian_build/patch/kernel/archive/meson-6.9/0007-dt-bindings-phy-meson8b-usb2-Add-support-for-reading.patch
2024-06-06 13:32:13 +02:00

48 lines
1.6 KiB
Diff

From 85409ae3c08b4b1aedc80d35f0afd6832cfe5d1f Mon Sep 17 00:00:00 2001
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Date: Wed, 16 Jun 2021 20:34:01 +0200
Subject: [PATCH 07/96] dt-bindings: phy: meson8b-usb2: Add support for reading
the ID signal
The first USB PHY on Amlogic Meson8/8b/8m2/GXBB SoCs is OTG capable.
This means that the USB "ID" signal is routed to the PHY. Add support
for the gpio-controller and #gpio-cells properties so the value of
the "ID" signal can be read as a GPIO (from the PHY) for example by
an "gpio-usb-b-connector".
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
.../bindings/phy/amlogic,meson8b-usb2-phy.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml
index df68bfe5f..be722a235 100644
--- a/Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml
@@ -6,6 +6,10 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Amlogic Meson8, Meson8b, Meson8m2 and GXBB USB2 PHY
+description: |
+ OTG capable PHYs have the USB "ID" signal routed to them.
+ This can be read out via the PHY-provided GPIO controller.
+
maintainers:
- Martin Blumenstingl <martin.blumenstingl@googlemail.com>
@@ -31,6 +35,11 @@ properties:
- const: usb_general
- const: usb
+ '#gpio-cells':
+ const: 2
+
+ gpio-controller: true
+
resets:
minItems: 1
--
2.45.1