Realtek DHC RTD SoCs USB Type-C Connector detection
Schema identifier ($id): "http://devicetree.org/schemas/usb/realtek,rtd-type-c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stanley Chang <stanley_chang@realtek.com>"
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 and child nodes (properties) #
compatible — required here #
Allowed values (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 — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"usb-cal"
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
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 — not listed as required here #
The gpio node to control external Rd on board.
Maximum number of items (maxItems): 1
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Properties for usb c connector.
Value type (type): "object"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (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";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2023 Realtek Semiconductor Corporation