Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,tps6598x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bryan O'Donoghue <bryan.odonoghue@linaro.org>"
Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
A variant of this controller known as Apple CD321x or Apple ACE is also present on hardware with Apple SoCs such as the M1.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tps6598x", "apple,cd321x", "ti,tps25750"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
main PD controller address
Item 2
I2C slave address field in PBMs input data which is used as the device address when writing the patch for TPS25750. The patch address can be any value except 0x00, 0x20, 0x21, 0x22, and 0x23
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"main"
Item 2
Exact value (
const):"patch-address"
reset-gpios — not listed as required here #
GPIO used for the HRESET pin.
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"irq"
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
firmware-name — not listed as required here #
Should contain the name of the default patch binary file located on the firmware search path which is used to switch the controller into APP mode. This is used when tps25750 doesn't have an EEPROM connected to it.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,tps25750"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):2
connector— required hereRequired in this object (
required):"data-role"Required in this object (
required):"connector","reg-names"When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tps6598x: tps6598x@38 {
compatible = "ti,tps6598x";
reg = <0x38>;
wakeup-source;
interrupt-parent = <&msmgpio>;
interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "irq";
pinctrl-names = "default";
pinctrl-0 = <&typec_pins>;
reset-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
typec_con: connector {
compatible = "usb-c-connector";
label = "USB-C";
port {
typec_ep: endpoint {
remote-endpoint = <&otg_ep>;
};
};
};
};
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
typec@21 {
compatible = "ti,tps25750";
reg = <0x21>, <0x0f>;
reg-names = "main", "patch-address";
interrupt-parent = <&msmgpio>;
interrupts = <100 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "irq";
firmware-name = "tps25750.bin";
pinctrl-names = "default";
pinctrl-0 = <&typec_pins>;
typec_con0: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
port {
typec_ep0: endpoint {
remote-endpoint = <&otg_ep>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)