From nobody Mon Sep 28 13:18:55 2026 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 19FB247D470 for ; Fri, 21 Aug 2026 10:27:07 +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=1787308034; cv=none; b=N6py3izGhBZRT6Jc+kchDsNHVK6pw3rm50d5K/Mkivl7KxLO6qptfDw6ULQJU7oYE2e//zn1WkLTwvxJBLLO5FfMRMgGTkNW2jCY0eJRtU1sBe3St/KDInT+PZB+9w2JgLNIxEUKAR7/MDLGxbtdC6nrGMuz8F6dvGYM5mukbOM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787308034; c=relaxed/simple; bh=9sOfcg28QkOFOvCTYpXJ733Ga75K89IqVNNSN8MNEFk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NUOKc4dhP0YJLZakift5taCww3uWtU7LAXWlvW+vVkY6MkM/Z5HGMflcTstqSiClZUtphauAS4TqrENLUxug0CuoH27NgMaLe+gYUASLp4bhz5EhdR8wewmFjAc02QNiN8gJG6jWAUQw7dFjiXt5z/O39tIUIlfKuu4R/6+HxB0= 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=Ygpnmgn7; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=YtedzdYK; 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="Ygpnmgn7"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="YtedzdYK" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67L9LpWF3029483 for ; Fri, 21 Aug 2026 10:27:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uP4c33QNsfPEt0lMrWrRe3zqDPCg1mMScbrZjF/2NlA=; b=Ygpnmgn7jdVy7IDL 1vMHLQtZSeqHQgPmyV9qxKRHgI2Le0hMYowdfO2bnrf5Pyo+qGu7ZDXs/5ZDVEvN 1ERsSgUZCJR4BTBxcUg6jqg3blbhH4Ywnme4H4sB+pCHEpyrXtyIvUQsBBOBYcjn ZCuMLCRr7QI9LQkM6S/2pPefF5jqKlwAK0wzs0gYBcQq1V8qHBh4fnBEKA1/qVfR ptj80UL2DbHD8UBorEPSDcVRW3hYU1Jr/QIUKNfns2KP9MYGXcq0YOGGJWdPF7Jf 4Zre3ADBQDPz7w14YfaosimNgBrdY/03OQO82xps6oPtLDv821UHlrNBUZFg+6fc neW0vA== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4g6fg9s864-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 21 Aug 2026 10:27:04 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2cce14a21faso9876805ad.0 for ; Fri, 21 Aug 2026 03:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1787308024; x=1787912824; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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=uP4c33QNsfPEt0lMrWrRe3zqDPCg1mMScbrZjF/2NlA=; b=YtedzdYK2GjVi0DntG/uXgzWh+P5SzWp5zSZ/6Tx/CTP0zOvAnJL45Lur6WHXyoJvn wrEZTUfmrQhRRxpUbRF03HKBUQkwbZNDn604OyTRGeGF4k0TcQjG0nJBA3CvMagrHyBW Lw7itLibKO84cyOmRT1Uj0h9k+7DcypQ0m3JFRL8Yy2yRzf/o2lV9mwcRjEN5YB3bEV/ J7quc9O52Ha+hSNsBGwlPL2hoP6ZFw6qwg6j1wz59KtS6sQnlQ0289kPKXRyPA6KH+9s 9u+/Y39+/PszJ7vjexodMZBMeatlQ3xsGUqhJ7ZTH/YAAh/tynKvrG8ayOGuAQ1bpot+ tkuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787308024; x=1787912824; h=content-transfer-encoding:content-type: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=uP4c33QNsfPEt0lMrWrRe3zqDPCg1mMScbrZjF/2NlA=; b=YOYPO4NU3g0YBmFA4bl1UHDnhlaqGEirRV4aOZ9K8XIs8sWIX4WIskrrV6Wjkaalyl GOt7AStnTS09Gf7NtMff5IP0isa8CNxsBpEEPVpay/1n+dO3lHxyspvD/17UrKuBMlkk KHPyQr27NdM5j8afqi2QTqHio3qFqx7OIvTMGoEgkb6h7QnCSIWl5N05H3B4KqRgBBwy NhS0WAy1H7ZroUEpCGVntlUUuIZXTgd9GRBU0Og+a3rSH6sT9V5BuNlBJtPSz5lxaqRB rv/f4QKVykZxfEI24DDKIWPSarS1iti8qh2/8UrP7TfFIyF3gA4O3QdijhEzeTPUPxw4 1M2A== X-Forwarded-Encrypted: i=1; AHgh+Rpb41iLeC9Djb4DutVWcH7z+w1D0c/c7mh9xabVR1K4VNgM+8K49jNCVkTW0FxAoAsvPFxroSLaohSEVZ8=@vger.kernel.org X-Gm-Message-State: AFuF++kiJMRXbZFxtFSHw+cGFImDycBwaSoFW9EJDNLMLENrBrQCKluH HX+2bl9czW8OvIcCJxwvEa4GWn4LdtaJxSEG+Pf6TkX0HpnWhpGjllTGuaYNTJ+NBEI7DFWWpCk dzwW9wnxl4iz5MbeNz1kN5XrzoOyvQGF8nN9a+N3vKm3c+t9kMN5DRmb6YiByQBluWpE= X-Gm-Gg: AR+sD13oMGdjzT76mkA63KtOWk2Mq/N2n8Ab3CT9WyjXW/XU+sJRfassvOtlXpaudob rSkR1gtf3arwK9MtYYEmiUfbHzYmyXOUSzkoOdYvj5aQ8wElxPlghMW8+S1QYFkXgs5Bgt6RVrC DBH8MX/984rQ6pMqtEM//FjCHMPA7dqILr1HGX2uS4U2ZQAb68OEB2E+KQKQltOhkTh9QG5jDoX bnBUIvLxVx8zVEi3nEm53P9QC5mw2ybgHLQDXkVWvlYL7zgBGRvgi7MznHYhomL5qiEHXYlECJT FEZORmOsYoOYiyhsa7e8rQR1C3qefHj5MXLiTt8ZcCKqKf6GygHFXQsynOixJMX/I8hIBAjBQIn dWarPJToM8OyiC8mleRJSFoi1InHa X-Received: by 2002:a17:903:1aac:b0:2cf:af20:4254 with SMTP id d9443c01a7336-2d61a15e594mr172265075ad.10.1787308023876; Fri, 21 Aug 2026 03:27:03 -0700 (PDT) X-Received: by 2002:a17:903:1aac:b0:2cf:af20:4254 with SMTP id d9443c01a7336-2d61a15e594mr172264415ad.10.1787308023447; Fri, 21 Aug 2026 03:27:03 -0700 (PDT) Received: from hu-akakum-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-327bf15ff5dsm25859682eec.25.2026.08.21.03.26.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2026 03:27:02 -0700 (PDT) From: Akash Kumar To: Greg Kroah-Hartman , Bjorn Andersson , Konrad Dybcio , Rob Herring , Dmitry Baryshkov , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: usb: Add Cypress cypd6129/cypd6229 Type-C controller Date: Fri, 21 Aug 2026 15:56:50 +0530 Message-ID: <20260821-shikra-usb-dt-v7-apply-v2-1-030647f06285@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260821-shikra-usb-dt-v7-apply-v2-0-030647f06285@oss.qualcomm.com> References: <20260820145036.2035641-1-akash.kumar@oss.qualcomm.com> <20260821-shikra-usb-dt-v7-apply-v2-0-030647f06285@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODIxMDA3OCBTYWx0ZWRfX/OoGjPyOvBfs jI4Ydv73cGZpbHgTAMASGSib38JpH/qlBNeEhLhJLhOHfgMeXlmEePB09jBjHKTI+zZ5KxCWx3Y 305bybGLc3Y+D7A3PSPCUg21tJwIxGazlQ/TXaefLMzs2+xkyZxbpFc5GRCC/tjiMac5Fo9AmtQ qAxojGaX9CduyMEZoIXLCwcZCyF1BgHCAJE1ktpT8MkdEuPOJdwG01pDm+cZEtBhAKCMdFnspbK 9mg15S9wjlPgLs44oPjTg3cWE5R/eU37aH0qJnJ2ts0VEqeNqYTjhqvMlQYulFHnZMxAhbZEWg4 GwwaHswAQrEhAtt5oZo7oGzX2Fm2KDSaKGxXf2x6lnbVoU0ePpDM7/KKf/khiHaAeo+uwSsB8i/ A242lZeeRT/GOdwriEPvTKp+ITe7pEPBEHgXnPok8AYnLKjJXIT/NQkJbpkKSGkoF5F0QjqL70s zQzMBG2zQY+w1KBjxFg== X-Proofpoint-ORIG-GUID: n2x67ShRJorsOdYuwXncW22zGKekY0iC X-Proofpoint-Spam-Info: AW1haW4tMjYwODIxMDA3OCBTYWx0ZWRfX1FdWfe7CLhKy vgDRuFX9XgNS8EdhqnrsIHbyl2N7ga35xGTum4H4q6Qn+oMroFVW15PBxyudE1fSYuUXK5Cw8si yKOfqlHSFxO2Eu5NCFoOV8dD5eBQTK0= X-Authority-Analysis: v=2.4 cv=Av/eGu9P c=1 sm=1 tr=0 ts=6a8827f8 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=PyXS-OjWu00qIW_W-2gA:9 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-GUID: n2x67ShRJorsOdYuwXncW22zGKekY0iC 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-08-21_03,2026-08-21_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608210078 Add the device-tree binding documentation for the Cypress cypd6129 and cypd6229 dual Type-C PD controllers. These are used on Shikra CQM/CQS/IQS platforms to handle usb-role-switch for the USB Type-C ports over an I2C interface, similarly to the existing cypd4226 binding. cypd6229 is a variant of cypd6129 and is described with a "cypress,cypd6129" fallback compatible string. Signed-off-by: Akash Kumar --- .../devicetree/bindings/usb/cypress,cypd6129.yaml | 107 +++++++++++++++++= ++++ 1 file changed, 107 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/cypress,cypd6129.yaml b/= Documentation/devicetree/bindings/usb/cypress,cypd6129.yaml new file mode 100644 index 000000000000..43e2c1902fd1 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cypress,cypd6129.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/cypress,cypd6129.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress cypd6129/cypd6229 Type-C Controller + +maintainers: + - Akash Kumar + +description: + The Cypress cypd6129 and cypd6229 are dual Type-C PD controllers that are + controlled via an I2C interface. + +properties: + compatible: + oneOf: + - const: cypress,cypd6129 + - items: + - const: cypress,cypd6229 + - const: cypress,cypd6129 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + pinctrl-0: true + pinctrl-1: true + + pinctrl-names: + minItems: 1 + items: + - const: default + - const: sleep + + wakeup-source: + description: enable IRQ remote wakeup, see power/wakeup-source.txt + type: boolean + +patternProperties: + '^connector@[01]$': + $ref: /schemas/connector/usb-connector.yaml# + required: + - reg + +required: + - compatible + - reg + - interrupts + +anyOf: + - required: + - connector@0 + - required: + - connector@1 + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + typec@40 { + compatible =3D "cypress,cypd6129"; + reg =3D <0x40>; + interrupts-extended =3D <&tlmm 136 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 =3D <&usb0_intr_state>; + pinctrl-names =3D "default"; + wakeup-source; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + label =3D "USB-C"; + data-role =3D "dual"; + power-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + endpoint { + remote-endpoint =3D <&usb_role_switch0>; + }; + }; + }; + }; + }; + }; --=20 2.43.0 From nobody Mon Sep 28 13:18:55 2026 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 68B2547141D for ; Fri, 21 Aug 2026 10:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787308039; cv=none; b=rOLpHQRP0ZJ3TAhE49wqA3UjqNL0/qdoNbUW3w64EMUnCX1WZQAspi6ZyRHF4fPu6lPfcW1O8jdb7lGpBo9TzvQ2j6HurC97GxoAcj5t1AgIB856SnPhKhrkQ9netg9+/ZWbyIVb7qCouC5QI9jINLOB/9PFnL6W0KZNJhOWuc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787308039; c=relaxed/simple; bh=c/DbwxB00h4bCHsVWfXDLZ7vX3Lz9v0Rhy2xTpHLGyk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ak1GdYxPQ9kO1YqMQMzvdS0lRJAHekgKab0yzt0x1H/0AnD6fN3N7bRRuduWJnt03Ngllb9s5mbDdy/c1Y+i8Ju9sQw33SdQg8uTl8Ko2Tgdr+wfxEkdYG8NMt0ZL2GDWSGa19xEUtWErLS7Ol79+/tlQA/NP1ET/j/VooV63p4= 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=KdZa/j+V; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=DEl7ckNe; arc=none smtp.client-ip=205.220.180.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="KdZa/j+V"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="DEl7ckNe" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67L9M1Av1799189 for ; Fri, 21 Aug 2026 10:27:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= HrdxRoYGRQbjflFJ3A7J0xX/OJgxy1T8MiL9djGGAXo=; b=KdZa/j+VUlduQbgU Zz3x6FaKzMaOOdoIkdDtjiXS/fGhlNBVOh5KBSuvbImhBxZnMvnuf8tG17XD6mnV NLKfzkCC93MYoWo4Z4KBuxpLwN0U//7E67qExENxBm54HxUrBT0MtzUa245fxZtL 6zvmxRIE9Fvnkdt1M748tLbGZvIOxDZb5eOKsmR7pLh4syHopCwI2d7kTFG4qKZ/ iUXWE4VF+88YHidXtfvBt7rp3p/sJmCcE6WbvDNzQjLhwBo5V7VE1HPWOAZ2vz1l U/XqR2jbg0JcTEytowGLDFFGZB8EnC0zCbxMQop3fDRfep9EihIp48wks0T4D1wr wau7uQ== 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 4g6ecb9g7t-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 21 Aug 2026 10:27:09 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-38f283baf1fso1180155a91.3 for ; Fri, 21 Aug 2026 03:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1787308028; x=1787912828; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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=HrdxRoYGRQbjflFJ3A7J0xX/OJgxy1T8MiL9djGGAXo=; b=DEl7ckNe1GeyEcYCDpSf6ozJrIw2B7gAiLjMC2R2x2rRYazdXTVIM7cJr6ZXH42QZi zRQ/iOuI6GaSuG2ceZ4BHEYJAeecQqJVV1k06EWlGAwFUdh8gJZ/7LBeaPgFF4+A8x8r viuKIugHKTPMigFvVM9HsFxSVhZiQ4cThOkZcPoOfTF58PcPt51XbqfiZTKDsl0JKnIH wDfyruhggPqZw4OqDhDQQHxlZBJbo6e0t/N+qDa+5X7C70Ol9whxZPYGxeKZq8ibPy6i UBfN+308jwGnL5NUdYSGL08+Bv2pDw2lTqkpz9Zg7SJn23OnHbJRlvjKvpGgCzek2ez1 uy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787308028; x=1787912828; h=content-transfer-encoding:content-type: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=HrdxRoYGRQbjflFJ3A7J0xX/OJgxy1T8MiL9djGGAXo=; b=LgtA8kEVbg4Gf9SJdb2fQaEGL7h7xOtPjDKX9Uk/F8+dz71amMXIP6FQbipP2BlXqV TpO6y/ho8kJivjU24TNDjbgPtj4xHBbXdphN7AIBTlS0P4u1noWK6zSi8Zhxsv31ZG53 X1b/nS+s3UpNB4vXz3VAlVLkL/mpi3bXMOdlMtQxSOVLPZsO6dux4/JQ9hv7rZR60rEP 2D+B/ZNXyie+cNJlzcVJrNUNyrMlrvEMsfM2CgNn9cPLRqwSXMs2Tnwg5mi3vHPxaOIA JHDYeRMpxMmreo+2cxXT3tP6OIJ+MyhdmNTFawuWem0lcX7eQL7c4T40u1Yc9Uz1sCly 3YSg== X-Forwarded-Encrypted: i=1; AHgh+Rrj6U1bUKY0wFV7S2ULq11FmScOVuf4grHrxwlUteFrBDdtKGIfAFqdlQfcWmqbwriM9zLoQvTvYUKA5Q4=@vger.kernel.org X-Gm-Message-State: AFuF++kcYXMXhTPH2Dwe+C5cNUumdVsfhlHED9zJamomJss7vAOuzX1H I3qggQpSG221cRmn2rt0WlWspeOKw3MbtvBFXlcNV7LW018ibM7Z1EkjqSLWUS9fH2A1sJP1u6X KCoordd8lbE4YyWnJmCpMOjv6aspj2VVzQu3u9Cs3HqnaydSpc+D8DZ7O/SBwHPpLs8s= X-Gm-Gg: AR+sD11fqnyhk+nmHattvFbOSyZu2Q+bZEGaA0ddFq5lsKCgmr3aHUuTx8qpQ0b1O6e x1SNzaQ1eyY6GQZWjmPCoc2+En1XV00rhfc2VmD9I30sxM8zpgj9m7iH28o8PtPuYJ2l0Bp48Rk MCBRkLVX1uZu0GFQohCmCWDSTnOxDjZ2s53iBY1ZzY9aYbgVDg4zQkOPEgXrwFHbqZlsQZByEZY jnQKM3HwwPLPneAB7qrU8HfhIfmxJNrzm0RBW5YApATcUvVfPl7U06p6m7rF1SjQwFvl7Gv3nwc BHegFOFyHGdrnNY/QGe25rLT1DijrGP++7cKOFuysb1RccqIeuuocjtBA1usxCtQ6wyucJAOySK /VojQTiMyTOF/AZ0MrwD1XqeR03Yx X-Received: by 2002:a17:90b:2d91:b0:38e:2e86:ed02 with SMTP id 98e67ed59e1d1-395c39cd288mr10171065a91.14.1787308028071; Fri, 21 Aug 2026 03:27:08 -0700 (PDT) X-Received: by 2002:a17:90b:2d91:b0:38e:2e86:ed02 with SMTP id 98e67ed59e1d1-395c39cd288mr10170929a91.14.1787308027474; Fri, 21 Aug 2026 03:27:07 -0700 (PDT) Received: from hu-akakum-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-327bf15ff5dsm25859682eec.25.2026.08.21.03.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2026 03:27:07 -0700 (PDT) From: Akash Kumar To: Greg Kroah-Hartman , Bjorn Andersson , Konrad Dybcio , Rob Herring , Dmitry Baryshkov , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/3] usb: typec: ucsi: ccg: Add support for cypd6129/cypd6229 Date: Fri, 21 Aug 2026 15:56:51 +0530 Message-ID: <20260821-shikra-usb-dt-v7-apply-v2-2-030647f06285@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260821-shikra-usb-dt-v7-apply-v2-0-030647f06285@oss.qualcomm.com> References: <20260820145036.2035641-1-akash.kumar@oss.qualcomm.com> <20260821-shikra-usb-dt-v7-apply-v2-0-030647f06285@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODIxMDA3OCBTYWx0ZWRfX/PzDBrL1qKPs HmlKpRqILlDMJJfkn/ga6SVjuKo90fK9NozJA8alz98RFXIEp0vK21RMihq6nEsTklVezz9kGd+ Ywn23h+9A7n9fKsVKtTWwEA2owrkl2oDyILjcCU1wS0Qo3jN5aaxgB3RO6wWmzpU7XwpVu1P2rI skWwK/+YAjaVKukpOjXqabEmtgf4zMTtkZS15CBSDVvDUvhR4QQwJDhr4Um/yj0EHJexo32Wa/n zD7DdV1bDKMEnlmaC/oJaFwhumnPzmJjaZsWGkUOdb2SLcNFxw7ca0miKoRgTxlaToRF8BpH3Lo aWeYU5eL7N8RMqmtFci6AThmvhYJ9Rac88L8DzMnDEtTBfyYh6EnLGm8IwSXnlKQT4sX0NzcMiP wc5nFpnZhDu6ZeuYAQlxyA6BI18tly7GV1uPJOqhkNfTY5U9CTzSHEz29wlpv425SAyDeDiHgpm 51Zk9Yi3VnMbUJGdFxw== X-Authority-Analysis: v=2.4 cv=e/s2j6p/ c=1 sm=1 tr=0 ts=6a8827fd cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=5ttfkXOUkHmYICtgt44A:9 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-GUID: 9e8nsXu7yOm8C9cEANIKyfqTZ1fpa8T4 X-Proofpoint-Spam-Info: AW1haW4tMjYwODIxMDA3OCBTYWx0ZWRfX+tQEQZHFTLEQ yOo+KK9m7DrzhMLZudYTQbVDB9tQy76FY9/JZ5eQwDNFaLflHRMd6R2s+HUI4pG3LoTiKM+61T4 nZw0fPgGfWJVsXc7kKeF04f4E63gfa0= X-Proofpoint-ORIG-GUID: 9e8nsXu7yOm8C9cEANIKyfqTZ1fpa8T4 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-08-21_03,2026-08-21_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 suspectscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608210078 Add cypd6129 and cypd6229 compatible strings to the of_device_id match table so the driver binds to boards describing these Cypress PD controllers in their device tree. No other driver changes are needed since the chip is accessed through the same generic UCSI/HPI I2C register protocol as the existing cypd4226 support. Signed-off-by: Akash Kumar --- drivers/usb/typec/ucsi/ucsi_ccg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucs= i_ccg.c index d46ca942026e..37b96d662e59 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -1527,6 +1527,8 @@ static void ucsi_ccg_remove(struct i2c_client *client) =20 static const struct of_device_id ucsi_ccg_of_match_table[] =3D { { .compatible =3D "cypress,cypd4226", }, + { .compatible =3D "cypress,cypd6129", }, + { .compatible =3D "cypress,cypd6229", }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, ucsi_ccg_of_match_table); --=20 2.43.0 From nobody Mon Sep 28 13:18:55 2026 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 9C9B0476688 for ; Fri, 21 Aug 2026 10:27:17 +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=1787308044; cv=none; b=hQB7/yC4FTyVB8hqwquwYseDxl18BIm+e3oS+hEyM5BCqCpwJ9UDO7cZwn+6r5ew3L1ra2wIErNUGsEp2/+Kt7Ne5mewwba0rhf8zBw0PfV2z82B1hFi041ojMmIHPe8RsTBbF+zgkmXE/mCA/DM/HVx9ioSCxNb1Sl08fDOys0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787308044; c=relaxed/simple; bh=p5ms3ettnsZUkMaMVpgaQ1dF7NvICnT7m59e4toR5Yg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=P1D21FbecRlN9Wp4rg8b1hYBl6QklB2gLMoiwZkHkDBo1nAFHX5bE3OxxmHGUtosYzeBbi7SWxYhd2Yjilfz6tGKgXTZNkWmdJ4SU729U0DzqPpIlXEdM+f62Q20JadCZJRgPpppir5USB9KmlgmjeQfPDcHFoXp4aP4nMaphpk= 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=pwkdOgaJ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=cFqvR1cy; 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="pwkdOgaJ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="cFqvR1cy" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67L9LhKg1983002 for ; Fri, 21 Aug 2026 10:27:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= UHxd2nhjsoPjXsrENyRfnR3wWpIKcv2XiaMwrKt9YmA=; b=pwkdOgaJmZq3OfU6 /Y5ih8Q9yCvhIBnGm0Jr1Rf9Qd4gEaCeery+gdoan/a06coDqxmNItufhxLBt3C/ h4r9P/YkL3M77XA5kF+9hxD6kFHMoNmRmxmiKnMIFfxZO/fZJYHHT+z1zZO7FF7J Up2cS2pL7Ujdas73tNvdOsyDjsD/wrdrjzwZ/oxzFlzi+M1MCGi1c2eN74AUHShE nC4ZV4wDeUUGGiaqF83Y7GZ9LYskkOYtEX9fy6akBYevEgJMErvv/qGR6cXhUneG 5pjPWqBNcwJHrWiKbukp/v8ye3zy+N7CwekuphvC71Yel5kFDJQB8HPoP8BgxT+5 QxxvBw== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4g6cdshuuu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 21 Aug 2026 10:27:12 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cbb20f82a0eso674494a12.0 for ; Fri, 21 Aug 2026 03:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1787308032; x=1787912832; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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=UHxd2nhjsoPjXsrENyRfnR3wWpIKcv2XiaMwrKt9YmA=; b=cFqvR1cydNxIVWjQu267/wr6fG3pONtKtJ/vz8FRodaL8UAi4lR4911j6dKDEmQAz8 4dGcxYEpap5q0DXZkfgGw1meLZMqyCVsPsQDW/8vclbJ2DNUnopYrtoP0M9Wc2eK+A/a 7SgENC2CY+9feDUdYpkFCsRV0b54ak5iS/nDgqqXsbtbkJ2OaPIuX4R3KQrz76jcKG9K kuLuAOKg3pL+WoRN73o9dFjw+d0Bdief8nf5/84o9U/AIK1iiWeyjaiqTXm0NWiAtHNt cuRFtmn2vQi73qxlN7CFuA9QyQpMrgV2EsTgzwkV10RjfyJzZjORXWBWRvwve6aZbwxz rURw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787308032; x=1787912832; h=content-transfer-encoding:content-type: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=UHxd2nhjsoPjXsrENyRfnR3wWpIKcv2XiaMwrKt9YmA=; b=ML6coVwaI6KTI3rKKtZ07dNYs7mpQbv4sts4W4GlQ9t/wxR2VCS0tpw9FBTgkpoZz6 HZmMc4RZlq1cymxPJ+ix6dGaA5LcgpvSqteMOD8qTAO95s2+UQztudCNx1bjFyvIwmZ8 qucB9OP1VgBH/jrtIh9WNaswVZ2A/s3ibWW991pKciqT2pd71DvrVb/f/ib6zL+x2LUc cFEhGXqO1nU4krd/nTmJ/iuoi3ZyZ/cJf7x+u8ABhvSh+MmH3TQm3dzq2BEkqBL9fWc5 mEKh31/BY1hyIEpUTxA7t3efi2GDhIDDi0nQ48Pto14GzP2UVkQINDSFtRq5cBJAZJLm 9YgA== X-Forwarded-Encrypted: i=1; AHgh+Rq3ohJwETdbDGbPKbTYefqk4BMpXlar3O4P1BH4dXCB1qe9bTowQ0aIUx+XfhZqhYSrcIvU6sd+XQFmJxE=@vger.kernel.org X-Gm-Message-State: AOJu0YwLHCdcIug5wvsmzPsOh32DTMAdYLogs2KYeLDkOaRsTskCOQS+ 6Igwh5tfSaAnGztx2h/tF9nLNop2Cei8Mv15b+WvDSoRdpCuUyjXBSzmJswVQr6LSiiek4lJ4Sp xZpcJgHfEjYT4gI+sLyk6cDLO0Pa9zxRjuzTRLLIaKP4nkEHq6NM6I0Lo0BYVy20o9jc= X-Gm-Gg: AR+sD13r1ExFsH4wIADoLkDCrGHlen6GurBs3wHcoW1N+4KQQOqdligFMzyWy1W5UsM EKofr6B0aYCujybe/UXQr5gUbAylC0qDMjr9TfbewxJN84ehF/bNBgbxnCI8OFSlNqK/hl0ozkf UXQ+WThf5I4m+GuXpC5jvGo9IB22NYOToODbXlBx+Yi5lwu3j/+xKIb21OJi4InVq9Mri5o87ur GVJ9worppwAZFC9kdq5XRsE75BSKKnC9eowjJyqzwvJh1SW7Dak89vJ3zzOexNppBHIIga7XM5R CKYehBNXbQzCUIGVgeaaZNfLBG5V9fEW3VDksPArbFBY+JEBadv5hRBo6w0TdHBr5YwynrI8KpM DtJQeBLEypBWcdJokwpzGwTcKwdBs X-Received: by 2002:a05:6a20:12d3:b0:3c0:b943:f984 with SMTP id adf61e73a8af0-3cd2fdd1cd6mr8378463637.3.1787308032008; Fri, 21 Aug 2026 03:27:12 -0700 (PDT) X-Received: by 2002:a05:6a20:12d3:b0:3c0:b943:f984 with SMTP id adf61e73a8af0-3cd2fdd1cd6mr8378385637.3.1787308031544; Fri, 21 Aug 2026 03:27:11 -0700 (PDT) Received: from hu-akakum-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-327bf15ff5dsm25859682eec.25.2026.08.21.03.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2026 03:27:11 -0700 (PDT) From: Akash Kumar To: Greg Kroah-Hartman , Bjorn Andersson , Konrad Dybcio , Rob Herring , Dmitry Baryshkov , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 3/3] arm64: dts: qcom: shikra: Wire up usb-role-switch for USB Type-C ports Date: Fri, 21 Aug 2026 15:56:52 +0530 Message-ID: <20260821-shikra-usb-dt-v7-apply-v2-3-030647f06285@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260821-shikra-usb-dt-v7-apply-v2-0-030647f06285@oss.qualcomm.com> References: <20260820145036.2035641-1-akash.kumar@oss.qualcomm.com> <20260821-shikra-usb-dt-v7-apply-v2-0-030647f06285@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: OQyCWzvUqhhoMO9BiBQ4oJRu-GowgfRk X-Proofpoint-GUID: OQyCWzvUqhhoMO9BiBQ4oJRu-GowgfRk X-Proofpoint-Spam-Info: AW1haW4tMjYwODIxMDA3OCBTYWx0ZWRfXy52S7FuGqwbC SQQAC6lBiYmsTccP2fgDNIJL5p3k6wfO0qgpVmWNWv1gGtAGdRmkhW5LcGHvDyIWMCBlmeOb+2h a4YY57rzC2OVqxSPGCCAX8L3zFN+y+s= X-Authority-Analysis: v=2.4 cv=RN2D2Yi+ c=1 sm=1 tr=0 ts=6a882800 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=OKfUiDEiIDe3Zo9lHMoA:9 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODIxMDA3OCBTYWx0ZWRfXxZLbuvIz2qwm SHMQDEpsZRHlybkaFnwJaJK+G+mY0qfPFFjfVkm6w9WOHVMBqZdT3iqei3PJx1X1WlH45F05wjy vlv74M1BkNE5xbLv+KpX/5hymye+E62pnQFPSLg+bMGkEO9WTRfNu3vAEXYu0vtV3rxuU291Rbe TQQCzZQ3L04+6f50nJWs3rsd4wuVNREVCGMR4N2OSzGQNTNbz1OTHDB716PXYYaM/99IL5j77ol hX80I8XmN1GTw9uw/lHpmyESXC96lnAC/5hlXrC+mPHr9iy573LwIUtH13nLJXGLR6iE33f9QUS c0yQkvLZs9xv8s7kbOBElGyvZgE8V0eq6Vh32EHYMDCCK/oEC17oZSoMrZiMI9OMc1JoOiG8oBC mOZn4XVROU7EAXcEnbdL549zjCYsVzz2jKVoAvFqviDj3XrWxN+qT1TFEE3ZpRbD1jj7rv/hSsz Rup/STdn6WP9rEJUVkA== 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-08-21_03,2026-08-21_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 adultscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608210078 On Shikra CQS/CQM platforms, usb-role-switch is handled by PM4125 on the primary Type-C port and Cypress PD controller CYPD6129 on the second Type-C port. On Shikra IQS platform, usb-role-switch is handled by Cypress PD controller CYPD6129 on both Type-C ports. Add the CYPD6129 typec node under i2c3, wire its connector endpoints to the corresponding DWC3 controller ports via remote-endpoint phandles, and switch the associated USB controllers to OTG mode so role switching can take effect. Signed-off-by: Akash Kumar --- arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 84 ++++++++++++++++++++- arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi | 45 +++++++++++ arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 84 ++++++++++++++++++++- arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 107 +++++++++++++++++++++++= +++- 4 files changed, 309 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/= dts/qcom/shikra-cqm-evk.dts index 3866ab8b0faa..41290b562fa3 100644 --- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts @@ -42,6 +42,51 @@ &remoteproc_mpss { status =3D "okay"; }; =20 +&i2c3 { + status =3D "okay"; + + typec@40 { + compatible =3D "cypress,cypd6129"; + reg =3D <0x40>; + interrupts-extended =3D <&tlmm 136 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 =3D <&usb0_intr_state>; + pinctrl-names =3D "default"; + wakeup-source; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + ccg_typec_con0: connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + label =3D "USB-C"; + data-role =3D "dual"; + power-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + ucsi_ccg_port: endpoint { + remote-endpoint =3D <&usb_2_dwc3_hs>; + }; + }; + }; + }; + }; +}; + +&pm4125_hs_in { + remote-endpoint =3D <&usb_1_dwc3_hs>; +}; + +&pm4125_ss_in { + remote-endpoint =3D <&usb_qmpphy_out>; +}; + &sdhc_1 { vmmc-supply =3D <&pm4125_l20>; vqmmc-supply =3D <&pm4125_l14>; @@ -58,6 +103,23 @@ &sdhc_1 { status =3D "okay"; }; =20 +&tlmm { + usb0_intr_state: usb0-intr-state { + pins =3D "gpio136"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; +}; + +&usb_1 { + /delete-property/ dr_mode; +}; + +&usb_1_dwc3_hs { + remote-endpoint =3D <&pm4125_hs_in>; +}; + &usb_1_hsphy { vdd-supply =3D <&pm4125_l12>; vdda-pll-supply =3D <&pm4125_l13>; @@ -66,11 +128,14 @@ &usb_1_hsphy { status =3D "okay"; }; =20 -&usb_qmpphy { - vdda-phy-supply =3D <&pm4125_l8>; - vdda-pll-supply =3D <&pm4125_l13>; +&usb_2 { + /delete-property/ dr_mode; =20 - status =3D "okay"; + port { + usb_2_dwc3_hs: endpoint { + remote-endpoint =3D <&ucsi_ccg_port>; + }; + }; }; =20 &usb_2_hsphy { @@ -80,3 +145,14 @@ &usb_2_hsphy { =20 status =3D "okay"; }; + +&usb_qmpphy_out { + remote-endpoint =3D <&pm4125_ss_in>; +}; + +&usb_qmpphy { + vdda-phy-supply =3D <&pm4125_l8>; + vdda-pll-supply =3D <&pm4125_l13>; + + status =3D "okay"; +}; diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi b/arch/arm64/boot= /dts/qcom/shikra-cqm-som.dtsi index 8ac42ff625a0..e4dd793c882b 100644 --- a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi @@ -85,6 +85,51 @@ &pm4125_resin { status =3D "okay"; }; =20 +&pm4125_typec { + status =3D "okay"; + + connector { + compatible =3D "usb-c-connector"; + + power-role =3D "dual"; + data-role =3D "dual"; + self-powered; + + typec-power-opmode =3D "default"; + pd-disable; + + vbus-supply =3D <&pm4125_vbus>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + pm4125_hs_in: endpoint { + }; + }; + + port@1 { + reg =3D <1>; + + pm4125_ss_in: endpoint { + }; + }; + }; + }; +}; + +&pm4125_vbus { + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-min-microamp =3D <500000>; + regulator-max-microamp =3D <500000>; + + status =3D "okay"; +}; + &pm8005_regulators { status =3D "disabled"; }; diff --git a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts b/arch/arm64/boot/= dts/qcom/shikra-cqs-evk.dts index 34568f1c7b63..36514a31d66e 100644 --- a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts +++ b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts @@ -42,6 +42,51 @@ &remoteproc_mpss { status =3D "okay"; }; =20 +&i2c3 { + status =3D "okay"; + + typec@40 { + compatible =3D "cypress,cypd6129"; + reg =3D <0x40>; + interrupts-extended =3D <&tlmm 136 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 =3D <&usb0_intr_state>; + pinctrl-names =3D "default"; + wakeup-source; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + ccg_typec_con0: connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + label =3D "USB-C"; + data-role =3D "dual"; + power-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + ucsi_ccg_port: endpoint { + remote-endpoint =3D <&usb_2_dwc3_hs>; + }; + }; + }; + }; + }; +}; + +&pm4125_hs_in { + remote-endpoint =3D <&usb_1_dwc3_hs>; +}; + +&pm4125_ss_in { + remote-endpoint =3D <&usb_qmpphy_out>; +}; + &sdhc_1 { vmmc-supply =3D <&pm4125_l20>; vqmmc-supply =3D <&pm4125_l14>; @@ -58,6 +103,23 @@ &sdhc_1 { status =3D "okay"; }; =20 +&tlmm { + usb0_intr_state: usb0-intr-state { + pins =3D "gpio136"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; +}; + +&usb_1 { + /delete-property/ dr_mode; +}; + +&usb_1_dwc3_hs { + remote-endpoint =3D <&pm4125_hs_in>; +}; + &usb_1_hsphy { vdd-supply =3D <&pm4125_l12>; vdda-pll-supply =3D <&pm4125_l13>; @@ -66,11 +128,14 @@ &usb_1_hsphy { status =3D "okay"; }; =20 -&usb_qmpphy { - vdda-phy-supply =3D <&pm4125_l8>; - vdda-pll-supply =3D <&pm4125_l13>; +&usb_2 { + /delete-property/ dr_mode; =20 - status =3D "okay"; + port { + usb_2_dwc3_hs: endpoint { + remote-endpoint =3D <&ucsi_ccg_port>; + }; + }; }; =20 &usb_2_hsphy { @@ -80,3 +145,14 @@ &usb_2_hsphy { =20 status =3D "okay"; }; + +&usb_qmpphy_out { + remote-endpoint =3D <&pm4125_ss_in>; +}; + +&usb_qmpphy { + vdda-phy-supply =3D <&pm4125_l8>; + vdda-pll-supply =3D <&pm4125_l13>; + + status =3D "okay"; +}; diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts b/arch/arm64/boot/= dts/qcom/shikra-iqs-evk.dts index 543d769125ef..ee0b55b2c462 100644 --- a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts +++ b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts @@ -42,6 +42,72 @@ &remoteproc_mpss { status =3D "okay"; }; =20 +&i2c3 { + status =3D "okay"; + + typec@40 { + compatible =3D "cypress,cypd6229", "cypress,cypd6129"; + reg =3D <0x40>; + interrupts-extended =3D <&tlmm 50 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 =3D <&usb0_intr_state>; + pinctrl-names =3D "default"; + wakeup-source; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + ccg_typec_con0: connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + label =3D "USB2-Type-C"; + data-role =3D "dual"; + power-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + ucsi_ccg_port0_hs: endpoint { + remote-endpoint =3D <&usb_2_dwc3_hs>; + }; + }; + }; + }; + + ccg_typec_con1: connector@1 { + compatible =3D "usb-c-connector"; + reg =3D <1>; + label =3D "USB3-Type-C"; + data-role =3D "dual"; + power-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + ucsi_ccg_port_1_hs: endpoint { + remote-endpoint =3D <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg =3D <1>; + + ucsi_ccg_port_1_ss: endpoint { + remote-endpoint =3D <&usb_qmpphy_out>; + }; + }; + }; + }; + }; +}; + &sdhc_1 { vmmc-supply =3D <&pm8150_l17>; vqmmc-supply =3D <&pm8150_s4>; @@ -58,6 +124,25 @@ &sdhc_1 { status =3D "okay"; }; =20 +&tlmm { + usb0_intr_state: usb0-intr-state { + pins =3D "gpio50"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; +}; + +&usb_1 { + /delete-property/ dr_mode; + + status =3D "okay"; +}; + +&usb_1_dwc3_hs { + remote-endpoint =3D <&ucsi_ccg_port_1_hs>; +}; + &usb_1_hsphy { vdd-supply =3D <&pm8150_l4>; vdda-pll-supply =3D <&pm8150_l12>; @@ -66,11 +151,16 @@ &usb_1_hsphy { status =3D "okay"; }; =20 -&usb_qmpphy { - vdda-phy-supply =3D <&pm8150_l6>; - vdda-pll-supply =3D <&pm8150_l12>; +&usb_2 { + /delete-property/ dr_mode; =20 status =3D "okay"; + + port { + usb_2_dwc3_hs: endpoint { + remote-endpoint =3D <&ucsi_ccg_port0_hs>; + }; + }; }; =20 &usb_2_hsphy { @@ -80,3 +170,14 @@ &usb_2_hsphy { =20 status =3D "okay"; }; + +&usb_qmpphy { + vdda-phy-supply =3D <&pm8150_l6>; + vdda-pll-supply =3D <&pm8150_l12>; + + status =3D "okay"; +}; + +&usb_qmpphy_out { + remote-endpoint =3D <&ucsi_ccg_port_1_ss>; +}; --=20 2.43.0