Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 93 additions & 7 deletions Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,25 @@
$id: http://devicetree.org/schemas/usb/cypress,cypd4226.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Cypress cypd4226 Type-C Controller
title: Cypress cypd4226/cypd6129/cypd6229 Type-C Controller

maintainers:
- Wayne Chang <waynec@nvidia.com>
- Akash Kumar <akash.kumar@oss.qualcomm.com>

description:
The Cypress cypd4226 is a dual Type-C controller that is controlled
via an I2C interface.
The Cypress cypd4226 is a dual Type-C controller, and the cypd6129 and
cypd6229 are dual Type-C PD controllers. All are controlled via an I2C
interface.

properties:
compatible:
const: cypress,cypd4226
oneOf:
- const: cypress,cypd4226
- const: cypress,cypd6129
- items:
- const: cypress,cypd6229
- const: cypress,cypd6129

'#address-cells':
const: 1
Expand All @@ -24,11 +31,10 @@ properties:
const: 0

reg:
const: 0x08
maxItems: 1

interrupts:
items:
- description: cypd4226 host interrupt
maxItems: 1

firmware-name:
enum:
Expand All @@ -40,6 +46,27 @@ properties:
- "nvidia,gpu" for the NVIDIA RTX product series
- "nvidia,jetson-agx-xavier" for the NVIDIA Jetson product series

pinctrl-0: true
pinctrl-1: true

pinctrl-names:
minItems: 1
items:
- const: default
- const: sleep

wakeup-source:
description: enable IRQ remote wakeup, see power/wakeup-source.txt
type: boolean

orientation-gpios:
description:
GPIOs used to sense the CC orientation of each Type-C connector.
Entries are ordered by connector number, i.e. the first entry
corresponds to connector@0 and the second to connector@1.
minItems: 1
maxItems: 2

patternProperties:
'^connector@[01]$':
$ref: /schemas/connector/usb-connector.yaml#
Expand All @@ -57,6 +84,24 @@ anyOf:
- required:
- connector@1

allOf:
- if:
properties:
compatible:
contains:
const: cypress,cypd4226
then:
properties:
reg:
const: 0x08
pinctrl-0: false
pinctrl-1: false
pinctrl-names: false
wakeup-source: false
else:
properties:
firmware-name: false

additionalProperties: false

examples:
Expand Down Expand Up @@ -91,3 +136,44 @@ examples:
};
};
};
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;

typec@40 {
compatible = "cypress,cypd6129";
reg = <0x40>;
interrupts-extended = <&tlmm 136 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&usb0_intr_state>;
pinctrl-names = "default";
wakeup-source;
orientation-gpios = <0>, <&tlmm 137 GPIO_ACTIVE_HIGH>;

#address-cells = <1>;
#size-cells = <0>;

connector@0 {
compatible = "usb-c-connector";
reg = <0>;
label = "USB-C";
data-role = "dual";
power-role = "dual";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;

endpoint {
remote-endpoint = <&usb_role_switch0>;
};
};
};
};
};
};
107 changes: 0 additions & 107 deletions Documentation/devicetree/bindings/usb/cypress,cypd6129.yaml

This file was deleted.

1 change: 1 addition & 0 deletions arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@
pinctrl-0 = <&usb0_intr_state>;
pinctrl-names = "default";
wakeup-source;
orientation-gpios = <0>, <&tlmm 90 GPIO_ACTIVE_HIGH>;

#address-cells = <1>;
#size-cells = <0>;
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@
interrupts-extended = <&tlmm 86 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&usb0_intr_state>;
pinctrl-names = "default";
orientation-gpios = <0>, <&tlmm 104 GPIO_ACTIVE_HIGH>;
wakeup-source;

#address-cells = <1>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/talos-lyra-evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
label = "DP0";
type = "full-size";

hpd-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>;
hpd-gpios = <&tlmm 80 GPIO_ACTIVE_HIGH>;

port {
dp0_connector_in: endpoint {
Expand Down
Loading
Loading