From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from chaosmail.tech (chaosmail.tech [77.81.229.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A9BA3B6366; Thu, 10 Sep 2026 16:49:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.81.229.115 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789058946; cv=none; b=FUwflGxowg/B5j+rlP3rgpPJ4uBSjAFb9aK/4z1D2LRnw8gHelSKPaxiGS1jldKHipdtc+Jynwueve65ZNWWWIY1sxpdQi3oKMnfOxP0fO0r1UeJuZdb3YsO4fO0qjEs3JhjC3PCxYq1Qh7A9XOOqk/qCkCcTFaR1+sQBs2xVTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789058946; c=relaxed/simple; bh=w9LBqioDmp+G9HlPJT66mkom2V/FZX8U8ZVlmvhpPbw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KHXNaqRluJarOlp1fbt4QT8iA6MXD44jUTKXzuP/vHUznlGUGa+n8yIthQWidCJeFJE8P6np+2alHbTMOflUDS0ITtScai/Fe7V0jgRYW5cFEi2LGosT5CIzyg70KJgzdhdl+eMUT6B4e+d6wvcRQyciIrkUFibfVDkysEAAh7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=chaosmail.tech; spf=pass smtp.mailfrom=chaosmail.tech; dkim=pass (1024-bit key) header.d=chaosmail.tech header.i=@chaosmail.tech header.b=EZ2PZmDZ; arc=none smtp.client-ip=77.81.229.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=chaosmail.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chaosmail.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chaosmail.tech header.i=@chaosmail.tech header.b="EZ2PZmDZ" Received: by chaosmail.tech (Postfix) id AE5ED1C9370; Thu, 10 Sep 2026 16:42:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chaosmail.tech; s=mail; t=1789058534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1ROExpepAazfF+td89KM++edqjHj0/0Kl9QhUCXxhGo=; b=EZ2PZmDZBlfjwm2JvEhIjLlrzXmUMNhGJZR15WzjC9fZbYBYN2J12OGgIDVNX9fEgYQppl GlQ0cDvAf7dyyuXutEcYURjY1XMBS7JV0Q2eozS5zAlK3gvnUvS8Lw3BBXC/rwfcJjOKBm TK/a+ocYpHltknbuzs/Wfk4aQ5rqgv8= From: Sasha Finkelstein Date: Thu, 10 Sep 2026 18:42:07 +0200 Subject: [PATCH v7 1/3] dt-bindings: usb: tps6598x: Add sn201202x/ACE3 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260910-tipd-ace3-v7-1-6c6ebe2193f2@chaosmail.tech> References: <20260910-tipd-ace3-v7-0-6c6ebe2193f2@chaosmail.tech> In-Reply-To: <20260910-tipd-ace3-v7-0-6c6ebe2193f2@chaosmail.tech> To: Sven Peter , Janne Grunau , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sasha Finkelstein X-Developer-Signature: v=1; a=ed25519-sha256; t=1789058532; l=3481; i=k@chaosmail.tech; s=20241124; h=from:subject:message-id; bh=w9LBqioDmp+G9HlPJT66mkom2V/FZX8U8ZVlmvhpPbw=; b=YimaAd3weM4uBDY5l6n1z5vD7kCr/VoXtHDVCEI53I2tue3goSFxEp+W7Bf8kC0N1bMEY3lN8 l9FUoI/ocnRBYrsqXq1Jx0suvP5RYvKxuQTzwZNs6DoTrCnExvjYy1v X-Developer-Key: i=k@chaosmail.tech; a=ed25519; pk=aSkp1PdZ+eF4jpMO6oLvz/YfT5XkBUneWwyhQrOgmsU= A variant of tps6598x that is attached to a SPMI bus and is found on Apple devices starting from the M3 series Reviewed-by: Rob Herring (Arm) Signed-off-by: Sasha Finkelstein --- Documentation/devicetree/bindings/usb/apple,sn201202x.yaml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 79 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/apple,sn201202x.yaml b/Documentation/devicetree/bindings/usb/apple,sn201202x.yaml new file mode 100644 index 000000000000..133a71bbedb7 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/apple,sn201202x.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/apple,sn201202x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments sn201202x Type-C Power Delivery controller + +maintainers: + - Sasha Finkelstein + +description: | + Texas Instruments sn201202x Type-C Power Delivery controller + + A variant of tps6598x controller also known as Apple ACE3 + present on hardware with Apple SoCs starting from the M3. + +properties: + compatible: + enum: + - apple,sn201202x + + reg: + maxItems: 1 + + interrupts: + items: + - description: Primary irq used for tps6598x events + - description: Logical register selection completed + - description: Standby command completed + - description: Wakeup command completed + + interrupt-names: + items: + - const: irq + - const: select + - const: sleep + - const: wake + + connector: + $ref: /schemas/connector/usb-connector.yaml# + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #include + #include + spmi { + #address-cells = <2>; + #size-cells = <0>; + usb-pd@c { + compatible = "apple,sn201202x"; + reg = <0xc SPMI_USID>; + interrupts = <11 IRQ_TYPE_EDGE_RISING>, + <13 IRQ_TYPE_EDGE_RISING>, + <17 IRQ_TYPE_EDGE_RISING>, + <19 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "irq", "select", "sleep", "wake"; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + + port { + typec_ep: endpoint { + remote-endpoint = <&otg_ep>; + }; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 6215fcb07770..ba4274ed9c79 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2659,6 +2659,7 @@ F: Documentation/devicetree/bindings/soc/apple/apple,t6000-pmgr-misc.yaml F: Documentation/devicetree/bindings/spi/apple,spi.yaml F: Documentation/devicetree/bindings/spmi/apple,spmi.yaml F: Documentation/devicetree/bindings/usb/apple,dwc3.yaml +F: Documentation/devicetree/bindings/usb/apple,sn201202x.yaml F: Documentation/devicetree/bindings/watchdog/apple,wdt.yaml F: Documentation/hwmon/macsmc-hwmon.rst F: arch/arm64/boot/dts/apple/ -- 2.55.0