From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 899A9453A36 for ; Fri, 11 Sep 2026 07:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789112082; cv=none; b=nD723PInOadqqMU2+fLNNLUhykr8NZ+DIy3OGVnB8whp22xr3OzKQMX3omSYh9lIBOiwo2z4Jl6WFUk9oGDLNTOcGxDpLglzchdInpjdDgrKa5a70koHC7UkkpxmgVqOWMOsfalYi1I/TQUgJvvAyN0gDsb3kdgEJlZxwYU7KSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789112082; c=relaxed/simple; bh=dNlCiFXswF1Fr7PLA3aiv3UeITCFkH2J/BpCPdFze04=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=neTFdcq1ld0JoDcfAm52jrLqakCk3hA7n/6C9669rSW58BHpA2UD29mrDgbNuubJdre5SZKhr0plrbMKotQIktGD3+g3RxehnPodCLoiw1vuZ7RmNimBjVOtX7vNHKmN5J0bIIohtDAp8Jchmw0DHgcNGJhjQ1AzGsmPW2LuPT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=aPbK9oO1; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Sa8njN6n; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="aPbK9oO1"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Sa8njN6n" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68B6kLZH2879736 for ; Fri, 11 Sep 2026 07:34:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=vfNW1OxUfVz 0rEV2Xyz3S/A58KC8eNirMOoV11ylpYY=; b=aPbK9oO1d0Km4gxFf1hGuf0UYo0 0ct4QlfUk1t3Zk7zVYR67PehKlLuEWvoZwJYehxvtZygEuOd22Q8rgdrZ0Pvo82w aXgDywtCT2WLMUANu09ydHXYmyPVBJQHTi/++cHG2sbU1JwovrsKcJ6bl+Vv24gk k6w93oPMavVT7IZ1CS/u8QR+cE8bwdur94a4wxNeNWu0NV8ExV6V2zgMkfyqYOrO wORPmFbTWmno08UK4d+SqgVx5xR6732bbSACfJBpU6CC+WR0AAff+xR5/c0+sjdC 3J0Ai1VLEUSImvztkW/CkoAs157nEx+0OH5YqmWcLjY+P/ah4J7S9U6iVtg== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gkwvx41n6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 11 Sep 2026 07:34:31 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-39b90cc0d5cso883308a91.0 for ; Fri, 11 Sep 2026 00:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789112071; x=1789716871; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vfNW1OxUfVz0rEV2Xyz3S/A58KC8eNirMOoV11ylpYY=; b=Sa8njN6nA/UDi/lGSZ8likoPm8QF2FVdiSzF8M713w7NR6Z6vaIWYUq55nCpIgGiOk +beHy22NG9hWhTOPlTVdSxl9xt0hCQwMUqk84/hqyYnAAJgYqP6dMfs6i1RLDHuCJBp4 azOyAsYdBjIs23TeTw2yWgUU6ac4vgGcWDWb2UxeK1f0UpkfSDwVDMx94fUy9++MohXQ iVMc67J8SKmIzMZAL8vMY77KPAta/sp70lax8cjtdv+eehelQPB/sF80hlZpiegAWw4K ex0t7Z7LhjRthLRuX1LrOs1nQwY4w9FeHx037oDjQMwkHDPpB3qAAQMLxuiuwWj5aQGi 2b9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789112071; x=1789716871; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=vfNW1OxUfVz0rEV2Xyz3S/A58KC8eNirMOoV11ylpYY=; b=fOgZGpfoL1QK3d0jAdMoHPdrd04hdMUBQ7noCo0JYFOhwS0t0hDi6pGkxMZIBQwJxK woo68PK/g0QXqSa9CUiQXsimL+SesiwRwKSV8ocevDuZI68fSgXMIrzx/PQsvYm3r2Tv E78LjgoDVvGAUlfwTV7yGtWX79a72JBg/6QxTEtRyaNFcDk8rr8QAgbIr5h1/2tXEWO0 UQ04GpyiU+sx3G+VJacuGGbOlijL0+vyPilShPFoQX5z62ueaYdxxN4xXBhTtNNODZ5v OzUvXHecuqaTj/1XpJjIjEaxPWbIJMgT/TIjeXdd4ue5GyPuRMVnEpNCTDgWCE/HfIcQ crPA== X-Forwarded-Encrypted: i=1; AKwUvByHw4ZfcLXIKAwv3fVovucSygD8EWa5TJ0fsX8WpfDeqgiIbd33c/+arQI757d8M8rBFlMGdyci0x+9@vger.kernel.org X-Gm-Message-State: AFuF++lUHGhRo0Vic4Rj7HlsY50Jk9tJc0RHkBE68gwnKBzqN/PuWe6c aRul0kIzRT8+rEWH5xwLh1PgE8y1aAdYWjtW1ZalbLJsr3N0kT3qEaQcFOa67BkK94XClxCSi8X IOjobWnG5GIgUXgYxF2PMbYiWmiXh6wSeJbbtqqRnvyJxRllt2OmT7jl58lGnoTnPZHh6iR760p s= X-Gm-Gg: AYBFou2pUdMPbTJOg2ur9uIgNwfGtwcxT2WWkIU9Axm4qTvGoTZIGeTOy9N62cv1PGx iIYS+l9kuqGYiHrBnkJW43za9sYi21kCWJ1vCw6bLj4fDbWdjMxoTzHLcGMU4QTcKiJYnA1GfBJ Y4mBSZUVKhh8fewJT98znHeKu137qGTS4rAfJ6AaabMXP9snCaiP1OaK2WQDZYC3lh2kJ6MClwH X2zp5c76IWw5YT2MYyqzYQarD7vfYasN4POqMo3Sv+JcHVhjSLCEIWmOK01H/aFhlzhli99zFXE oEfCRk1Vr6nw3uw0i4rkKbquxPNjPapHhkW1Js/pqUL+ycfNQbwNmIbPr2nIv2xt+48k2kn3bpe Smnj23iD6upDAsgnWgm5qpsz73yvaxdKL6hjB2Wv6vCblMsppMBxh5Hsi1S6X X-Received: by 2002:a17:90b:5605:b0:398:b17b:3bd2 with SMTP id 98e67ed59e1d1-39d9bbc9177mr4679380a91.4.1789112070405; Fri, 11 Sep 2026 00:34:30 -0700 (PDT) X-Received: by 2002:a17:90b:5605:b0:398:b17b:3bd2 with SMTP id 98e67ed59e1d1-39d9bbc9177mr4679322a91.4.1789112069869; Fri, 11 Sep 2026 00:34:29 -0700 (PDT) Received: from QCOM-aGQu4IUr3Y.qualcomm.com (i-global052.qualcomm.com. [199.106.103.52]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14365ba729dsm6163058c88.14.2026.09.11.00.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 00:34:29 -0700 (PDT) From: Shawn Guo To: Greg Kroah-Hartman Cc: Heikki Krogerus , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Krishna Kurapati , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo , Krzysztof Kozlowski Subject: [PATCH v2 RESEND 1/2] dt-bindings: usb: Add onsemi FUSB15201 Type-C and PD controller Date: Fri, 11 Sep 2026 15:34:13 +0800 Message-ID: <20260911073414.16711-2-shengchao.guo@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260911073414.16711-1-shengchao.guo@oss.qualcomm.com> References: <20260911073414.16711-1-shengchao.guo@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTExMDEwNCBTYWx0ZWRfX20tloIgVz4gf pt+3sIcy2TgGyXgGpcNhtfE/A/BOG8LbVH7WX8kpPWuZWw+xAoFFL0dg8sRFrOnRPMM/6ywDJaP Ije+vtg9WKaStErLE7l0x4ii1NyZRoV+NBUcPrWPpDdNOD0ZXznvsa/DDQpaGVEpIwgL50LBrdu l98d3j0So8cB1jUyzFXVKU1uxs6QW0ntP4Rw9bjYPejB+NNC4PVh2XYJqOv9eudeg+wE9z128cl fLXFT/OG4mMD3hXqTTBeYsI+J5IS+uli7XzFZpJ5GCGOh1Ty5wuOKRpubVxFZeD7xK1gfBOAgpJ cfPXDu/PpjJI2nJH092mMwK8atjMQwI9sfvf22bVVj8L4AyGcXhXNxp5lrbumzyIpb96wthaV8A Z/JVEg4bUNbDMDfK1Jv290vAEryNlDkDOzO+ko+S0Yupoeslly+brTdv6jlOKkZWKoj3MECkKha XDdBvUopzFf2zXNmhlg== X-Proofpoint-ORIG-GUID: 4LRQ9wSM-KvpEqDAgjZvapnDRZ5Qdx23 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTExMDEwNCBTYWx0ZWRfX8gtalBgI5l1Z UZ99EIxP+X5itaUD5MlN2ZUlw6z3mOCzlA+9m2rLwMU3UHOLexdO9nC4Cp25vLuWdNXBBl1nMj2 s4yD4YTKYjZrcbmkoXlkpM3qIACb85k= X-Authority-Analysis: v=2.4 cv=AdkkjHXG c=1 sm=1 tr=0 ts=6aa3af07 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=b9+bayejhc3NMeqCNyeLQQ==:17 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=pw356RtDBc5WmomScbsA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-GUID: 4LRQ9wSM-KvpEqDAgjZvapnDRZ5Qdx23 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-11_02,2026-09-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 spamscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609110104 The FUSB15201 is an autonomous dual-port USB Type-C and Power Delivery controller. It runs the Type-C state machine and the Power Delivery policy engine on an integrated microcontroller, and exposes only a status and command interface over I2C, so it is not a TCPC. Describe the two ports as addressed connector child nodes, so that a board which wires up only one of them can describe just that one. Assisted-by: LLM Reviewed-by: Krzysztof Kozlowski Signed-off-by: Shawn Guo --- .../bindings/usb/onnn,fusb15201.yaml | 152 ++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/onnn,fusb15201.yaml diff --git a/Documentation/devicetree/bindings/usb/onnn,fusb15201.yaml b/Documentation/devicetree/bindings/usb/onnn,fusb15201.yaml new file mode 100644 index 000000000000..09f2e964d3ef --- /dev/null +++ b/Documentation/devicetree/bindings/usb/onnn,fusb15201.yaml @@ -0,0 +1,152 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/onnn,fusb15201.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: onsemi FUSB15201 dual-port Type-C and Power Delivery controller + +maintainers: + - Shawn Guo + +description: + The FUSB15201 is an autonomous dual-port USB Type-C and Power Delivery + controller. It runs the Type-C state machine and the Power Delivery policy + engine on an integrated microcontroller, so the host is not involved in + Power Delivery messaging. Over I2C it reports the attach state, CC + orientation, data and power roles, faults and the VBUS voltage of each of + its two ports, and accepts commands to initiate data and power role swaps. + + The two ports are described as connector child nodes, addressed 0 for port A + and 1 for port B. A board that wires up only one of the two ports describes + only the corresponding connector. + +properties: + compatible: + const: onnn,fusb15201 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: + Interrupt line shared by both ports, driven by the I2C_INT pin. The pin + is active low and stays asserted until every pending interrupt has been + cleared, so it has to be described as level triggered. + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + '^connector@[01]$': + type: object + $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false + + properties: + compatible: + const: usb-c-connector + + reg: + maximum: 1 + description: + 0 for port A, 1 for port B. + + required: + - reg + +required: + - compatible + - reg + - interrupts + - '#address-cells' + - '#size-cells' + +anyOf: + - required: [connector@0] + - required: [connector@1] + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec@50 { + compatible = "onnn,fusb15201"; + reg = <0x50>; + interrupts-extended = <&pmic_gpios 8 IRQ_TYPE_LEVEL_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C0"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&usb_0_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&usb_0_qmpphy_ss>; + }; + }; + }; + }; + + connector@1 { + compatible = "usb-c-connector"; + reg = <1>; + label = "USB-C1"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&usb_1_qmpphy_ss>; + }; + }; + }; + }; + }; + }; +... -- 2.43.0