-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'extcon-next-for-6.7' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/chanwoo/extcon into char-misc-next Chanwoo writes: Update extcon next for v6.7 Detailed description for this pull request: - Add new Realtek DHC(Digital Home Hub) RTD SoC external connector driver : Detect USB Type C cable detection for USB and USB_HOST cable and support USB Type-C connector class. The extcon-rtk-type-c.c driver supports the following Realtek RTD SoC: - realtek,rtd1295-type-c - realtek,rtd1312c-type-c - realtek,rtd1315e-type-c - realtek,rtd1319-type-c - realtek,rtd1319d-type-c - realtek,rtd1395-type-c - realtek,rtd1619-type-c - realtek,rtd1619b-type-c - Add device-tree compatible string for extcon-max77693 and extcon-77843.c. * tag 'extcon-next-for-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon: extcon: realtek: add the error handler for nvmem_cell_read extcon: max77843: add device-tree compatible string extcon: max77693: add device-tree compatible string dt-bindings: usb: Add Realtek DHC RTD SoC Type-C extcon: add Realtek DHC RTD SoC Type-C driver
- Loading branch information
Showing
6 changed files
with
1,902 additions
and
0 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
Documentation/devicetree/bindings/usb/realtek,rtd-type-c.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
# Copyright 2023 Realtek Semiconductor Corporation | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/usb/realtek,rtd-type-c.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Realtek DHC RTD SoCs USB Type-C Connector detection | ||
|
||
maintainers: | ||
- Stanley Chang <stanley_chang@realtek.com> | ||
|
||
description: | ||
Realtek digital home center (DHC) RTD series SoCs include a type c module. | ||
This module is able to detect the state of type c connector. | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- realtek,rtd1295-type-c | ||
- realtek,rtd1312c-type-c | ||
- realtek,rtd1315e-type-c | ||
- realtek,rtd1319-type-c | ||
- realtek,rtd1319d-type-c | ||
- realtek,rtd1395-type-c | ||
- realtek,rtd1619-type-c | ||
- realtek,rtd1619b-type-c | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
nvmem-cell-names: | ||
items: | ||
- const: usb-cal | ||
|
||
nvmem-cells: | ||
maxItems: 1 | ||
description: | ||
The phandle to nvmem cell that contains the trimming data. | ||
The type c parameter trimming data specified via efuse. | ||
If unspecified, default value is used. | ||
|
||
realtek,rd-ctrl-gpios: | ||
description: The gpio node to control external Rd on board. | ||
maxItems: 1 | ||
|
||
connector: | ||
$ref: /schemas/connector/usb-connector.yaml# | ||
description: Properties for usb c connector. | ||
type: object | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
type-c@7220 { | ||
compatible = "realtek,rtd1619b-type-c"; | ||
reg = <0x7220 0x20>; | ||
interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&usb_cc1_pins>, <&usb_cc2_pins>; | ||
nvmem-cells = <&otp_usb_cal>; | ||
nvmem-cell-names = "usb-cal"; | ||
connector { | ||
compatible = "usb-c-connector"; | ||
label = "USB-C"; | ||
data-role = "dual"; | ||
power-role = "dual"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.