Skip to content

Commit

Permalink
general-add-miniDP-dt-doc(:1)
Browse files Browse the repository at this point in the history
Original-Subject: [ARCHEOLOGY] RK3399 Typec DP (#2676)
> X-Git-Archeology: > recovered message: > * RK3399 NanoPC-T4 Add Type-C alt mode DP
> X-Git-Archeology: > recovered message: > * rk3399 rockpi 4C add mini-DP (WIP)
> X-Git-Archeology: > recovered message: > * [ rockchip64 ] revert rockPi 4C DP patch
> X-Git-Archeology: > recovered message: > Add an extension to disable it, but leave for future work.
> X-Git-Archeology: - Revision 4971535c774a1f49a811baebc083ea028ced0300: armbian/build@4971535
> X-Git-Archeology:   Date: Wed, 03 Mar 2021 07:59:25 +0100
> X-Git-Archeology:   From: Tony <tonymckahan@gmail.com>
> X-Git-Archeology:   Subject: RK3399 Typec DP (#2676)
> X-Git-Archeology: 
> X-Git-Archeology: - Revision 0cdffb29b07305209efb12cf3b5ac6032d3a1153: armbian/build@0cdffb2
> X-Git-Archeology:   Date: Wed, 24 Mar 2021 19:01:53 +0100
> X-Git-Archeology:   From: Igor Pecovnik <igorpecovnik@users.noreply.github.com>
> X-Git-Archeology:   Subject: Renaming DEV branch to EDGE (#2704)
> X-Git-Archeology: 
> X-Git-Archeology: - Revision 92f1a22d76b987afa7ba555d5b509adc51d689e7: armbian/build@92f1a22
> X-Git-Archeology:   Date: Fri, 16 Dec 2022 13:38:13 +0100
> X-Git-Archeology:   From: Igor Pecovnik <igorpecovnik@users.noreply.github.com>
> X-Git-Archeology:   Subject: Re-add rockchip64 6.0 patches (#4575)
> X-Git-Archeology: 
X-Armbian: Patch-File: general-add-miniDP-dt-doc
X-Armbian: Patch-File-Counter: 1
X-Armbian: Patch-Rel-Directory: patch/kernel/archive/rockchip64-6.1
X-Armbian: Patch-Type: kernel
X-Armbian: Patch-Root-Type: core
X-Armbian: Patch-Sub-Type: common
X-Armbian: Original-Subject: [ARCHEOLOGY] RK3399 Typec DP (#2676)
  • Loading branch information
Tonymac32 authored and Armbian AutoPatcher committed Mar 3, 2021
1 parent a3cb6aa commit 4206f0b
Showing 1 changed file with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/extcon/extcon-usbc-virtual-pd.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Type-C Virtual PD extcon

maintainers:
- Jagan Teki <jagan@amarulasolutions.com>

description: |
USB Type-C protocol supports various modes of operations includes PD,
USB3, and Altmode. If the platform design supports a Type-C connector
then configuring these modes can be done via enumeration.
However, there are some platforms that design these modes as separate
protocol connectors like design Display Port from on-chip USB3 controller.
So we can access Type-C Altmode Display Port via onboard Display Port
connector instead of a Type-C connector. These kinds of platforms require
an explicit extcon driver in order to handle Power Delivery and
Port Detection.
properties:
compatible:
const: linux,extcon-usbc-virtual-pd

det-gpios:
description: Detect GPIO pin. Pin can be Display Port Detect or USB ID.
maxItems: 1

vpd-polarity:
description: USB Type-C Polarity. false for Normal and true for Flip.
type: boolean

vpd-super-speed:
description: USB Super Speed. false for USB2 and true for USB3.
type: boolean

vpd-data-role:
description: USB Data roles for Virtual Type-C.
$ref: /schemas/types.yaml#definitions/string

enum:
- host
- device
- display-port

required:
- compatible
- det-gpios
- vpd-data-role

additionalProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
virtual_pd: virtual-pd {
compatible = "linux,extcon-usbc-virtual-pd";
det-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>;
vpd-data-role = "display-port";
vpd-super-speed;
};

0 comments on commit 4206f0b

Please sign in to comment.