From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795430885; b=S+mP3+JQb7RURORq2lRVrWqUJ3Ox6+Hy4cDjuboeLRHLdgytZtX455B4XSiojTwCKN5e fbiRprzXNjR3QvVN/t5LtrNph1gl83lpv2wbdkooWKgjUSRhznwxvytRoEieLM9w13ESL K9xt0govW6hopYHrS4Le+Tj8mls/LTSefOzpBOZCwd399Wottsu92wJCRj2K/RDYqDi8G 8+bUpAx6775fDtM3uABJF0J/YffE5mkwT5WOLjrfwuTakQ0HusHUtp6jqp7xpdWI4Pvet aF2hTuBBZKkHQINfyz9AISt+zCyAiuKtz+ILgIu2F4FnGaqJmgAen0qJcjsQuS339JA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795430885; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:To:Cc: Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=1hiszdcfzdCGUJyecppq+zRwkuNF1B1hD+vsd51JBCU=; b=0IhgRvj3YLLCi4Pvfio+jykssR4lWnOsc4kgnkWmBfDKGFfQR/1KwjxzcIES3eTkSvq/ eao3Kb1VHLAydPZvmmABNQP+Ryn26g7uQpogMkGrArJPcRM4n29PBFzPhqUwy8+RaZyyc rabyQx+DpMWVDO/WI0mrQ7LWhXfbFIDZ6S8dQddTRVeD1faEwVs0NJ/8SXHqaJSFNgwLW qGx5XGcHlFTTxrpgqN2BZyjNuVYjTaQEzZY4j5tno9q33TsnsaBhebO8tZ8GT/yD+FcAS f3MF11zwfjp6pg7xOp21HVmkAoU3UB42H0p1H8Icb9XKOQIknrX9UIxUKdlwr/bKJkg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=KT7cLukP; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="FiF/qUYe"; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3F44606A337 for ; Mon, 23 Nov 2026 10:48:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3F44606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=KT7cLukP; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=FiF/qUYe Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AN9FuZu1427511 for ; Mon, 23 Nov 2026 10:48:03 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=1hiszdcfzdC GUJyecppq+zRwkuNF1B1hD+vsd51JBCU=; b=KT7cLukPHNq3j+JRfLnm2/5LBKU Twe3coafXUjeVvnOpn5z3Wevt93cTaTFAWtqddIt0Ojx8ph6H4yD49dMwBvWFlkN UrwoUpyXO/4TzPSyCAo8Q1cVyI/lhPglEYTtkiVyx5j23cz+0PDz9Ovvfv1ws6dV OO0XoZ4dnaWwvehJOCHQBcE3r5p97nR28cDOIWi5oneNVZIA3EiKEu4+Gj+feEtN qVngorI2UY9Rk2JU45/K96r9rei87U8/mld1b/+8I1MbWhVoJ+WC4ZYRljiKfQEO ahlw+1HtpRP01j5nc3IAd83szfWs8piFogvJ0IOUfZGsxTxl96i+pER+g9Q== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j4fyh10qq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 23 Nov 2026 10:48:02 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-8b8cef34b43so3519222b3a.2 for ; Mon, 23 Nov 2026 02:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795430882; x=1796035682; 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=1hiszdcfzdCGUJyecppq+zRwkuNF1B1hD+vsd51JBCU=; b=FiF/qUYel/l57c2fwjXx9y0+GDO3L0nG9e5tNDAV37PK1OO1LsFtmOBGtNdRr9feik RoiaXPyvW8ymePGabd8WdQMimBlssZS8eSjBG57a8GEpd61Rke4UNFmsNp/08loE9yKw pMBEy8fCJNTeAQ32TEX0roYRqPBPn18+14wZkYhR7fqs8e/6HbOM/LTOWvDFB4I4ZORh RSJvEfN1Pr8V3y68B3mK4uNehwKCvPs20D5nNdeyOOTwdkdPR/r3bB+X9pAVN3B+4/AL ZUH0/z/31lPvnpekk/7vmBu7oJQm1RHl6lzbi+DH8iZLPkWL4YX4pl1MyLi3qhpFJJOM 1R9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795430882; x=1796035682; 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=1hiszdcfzdCGUJyecppq+zRwkuNF1B1hD+vsd51JBCU=; b=K9iX/4OK+ODI/vz+ocE9bJoFfVOsTFXAXGKDtO6PS1ml6FmsCPDONQSU8uaChxkFZm qU5E3ved7KCmGomhklmAacmDtKld8SYTwyB3Hp6hTpZKBSzMgIC+8UFnLEPVNUuWai1l ah608FRsdyQGCqfOsGCigGbBG6kYguPwmHCeXqSg9lC4oMOgubRIk/AhG+6teynqKpEN AXRa/8wxwnS5h+4BsUECg3//nKKf+u+1UqNoLI0nx9m6kWBtQnF/pooJw29FHkn7ietf euaxAji0sXP+rRgGtOdcCc0/YAWfcapglcHEWmSN3hhMqqhkDwCL9WJiyOZBJOYK39z5 FmTQ== X-Forwarded-Encrypted: i=1; AL+hErFsAR8SZnFTH52oY9BWcztZP2Yc7ABQc3H+pMyBoOvaDcFwxfJbWEC0ErZWanYqSp/cdppecMoWMRMSZoc=@vger.kernel.org X-Gm-Message-State: APuU4Z+JS+xhp/r5+82MEpXcoNDgCpD2tzvmTeA+o9qIfElAEhI3rZOs Up55t7KlnamyWngISs2pYtu9XYNFFiVFRXxyf5BJolGLG4XNMr7a2zy+D2wqD+xhzSfZfQeE4uW tvayokzRTwtOieVTjasK957nq0GseQ4Ws7BwEePYpfUL8p8/0YZvApUr7IHLbZYIvDNA= X-Gm-Gg: AZFdTZcWCcJW2hMu/kiLysVYNpc0KKLUPdgFKx0FmAES/FnguAkG6DMVNXVXQRahD7t gsTe83y6S1SfpehikxZDRoeDH1XSUICWuQPfHE4avbxEnYIw0QYgRNrmRH8+ZaBK20S1IIKHq10 EYUY6NDWC874F0oG7EfbiPdZ7dvQLZJVfYllTjnEoExFROjxYnm6H6APJAAjpMbUB/D6io1EZO4 B0m4optnW21k1jSZ/DiM+dI9fI5UzgpuaEd7zvVx1IgcobkJvUChTMvCVfI5HvA+AdgUYTpWiK3 7H7Hm+M2OOi4iauBLJVx+QtlrJXd48uo2eFsF4DNfh9csKqAe24d6hgVkkJb9Idd/z3c7l5DWwW DqbikxckrlGAg3XdJ6f8+DJ/cUXfuohiPNauN/tUjijtnOhaYKRDm/YEPV7VuJyWeKAPxFEi5Bi KpjR44EQ== X-Received: by 2002:a05:6a00:4c15:b0:880:b709:cefb with SMTP id d2e1a72fcca58-8c87ca508damr9415777b3a.45.1795430881986; Mon, 23 Nov 2026 02:48:01 -0800 (PST) X-Received: by 2002:a05:6a00:4c15:b0:880:b709:cefb with SMTP id d2e1a72fcca58-8c87ca508damr9415757b3a.45.1795430881475; Mon, 23 Nov 2026 02:48:01 -0800 (PST) Received: from hu-faisalh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c873442863sm5413467b3a.43.2026.11.23.02.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 02:48:01 -0800 (PST) From: Faisal Hassan To: Thinh.Nguyen@synopsys.com, gregkh@linuxfoundation.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Faisal Hassan Cc: linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, krishna.kurapati@oss.qualcomm.com, peter.chen@oss.qualcomm.com, krzysztof.kozlowski@oss.qualcomm.com, Sriram Dash Subject: [PATCH v5 04/11] dt-bindings: usb: Add qcom,sa8255p-dwc3 for firmware-managed resources Date: Mon, 23 Nov 2026 16:17:19 +0530 Message-Id: <20261123104727.1539149-5-faisal.hassan@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261123104727.1539149-1-faisal.hassan@oss.qualcomm.com> References: <20261123104727.1539149-1-faisal.hassan@oss.qualcomm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=NM1AaE6g c=1 sm=1 tr=0 ts=6b0419e3 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=HmkRj0nT5UQon3SBszkA:9 a=2VI0MkxyNR6bbpdq8BZq:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIzMDA0MiBTYWx0ZWRfXzKx412MNGcBq dVh5NfeE07tKzCw3sJgV5GQ83Lc+mq8Uptsmtqzhrtveyw9Ju0v34ekKdnWs7WWx3Ckalud9LOC 8yXdmx3rQI8cAeya2tiGVvjjmOS2S3A= X-Proofpoint-ORIG-GUID: SGe5_3N6Bq9hpIxptPX0CrVr6t6yCsGs X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIzMDA0MiBTYWx0ZWRfXxlJoT9TRW/zG EUefhzc4co3ShYOlq5fbfU4unTY6bLkSRsqlkYBqU5NlPqknc1xOpgUyUSMMij+maihmF0c0Wwa yLV5NmT8UsvfNGLH4AIgX56VvNqAp+T1DTHaW4qwXAN9lQXFz6mpnZxpnkhA5JJic/r10RDLw+I gZqd0qjVRjZ5tIZ4cmCEn1pUChVU4MEMw0ixlwWxewBp7xwg51OhnjpMdHosSDXMOshLQpZNqAx ARv3EDDNGeyI1YSfgyiPSW8gUwmJqvAm7JOhTBPMYw/noE6NPE1umpiAdGnBJDJ/KZPglTbcU1T EKnpeatpKucYFKUG3WLBkIT3qF9AoSza+Zc6n8vekdERG0ZRhntkd0IhWgYa3kckJ0FUF4Yo+5/ cT9DdELlVsKp1HTiiGgVNbvo3tTGF8aJBOiMMIoU+/BXFu/eZEMAZH7+cvXhBiMR5JBJffAQcQy a1/4KistAA6ejYELzSw== X-Proofpoint-GUID: SGe5_3N6Bq9hpIxptPX0CrVr6t6yCsGs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-23_02,2026-11-22_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 impostorscore=0 phishscore=0 malwarescore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611230042 On Qualcomm automotive SoC sa8255p, platform resources like clocks, interconnects, resets, regulators and GDSC are abstracted and managed collectively by firmware. Add a new binding file for firmware-managed USB controllers where access to these resources is exposed as two power domains: - Power domain: Controls power supply (GDSC) to the USB controller - Bus domain: Controls clocks and interconnects for data transfer The binding makes power-domains and power-domain-names properties mandatory for firmware-managed platforms. Clocks and interconnects are managed by firmware through these power domains and are therefore not described. Co-developed-by: Sriram Dash Signed-off-by: Sriram Dash Signed-off-by: Faisal Hassan Reviewed-by: Krzysztof Kozlowski --- .../bindings/usb/qcom,sa8255p-dwc3.yaml | 114 ++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml diff --git a/Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml new file mode 100644 index 000000000000..50361fe97c7a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/qcom,sa8255p-dwc3.yaml @@ -0,0 +1,114 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/qcom,sa8255p-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SA8255P USB3 Controller with Firmware-Managed Resources + +maintainers: + - Wesley Cheng + - Faisal Hassan + +description: + USB controller on Qualcomm SA8255P automotive SoC where platform resources + such as clocks, interconnects, resets, regulators and the GDSC are + abstracted and managed collectively by firmware through SCMI (System + Control and Management Interface). + + Access to these firmware-managed resources is exposed as two power + domains, one gating the power supply (GDSC) to the controller, and one + gating the clocks and interconnects used for data transfer. + Both are SCMI power domains that are only switched on and off, and + neither carries performance levels. + +properties: + compatible: + const: qcom,sa8255p-dwc3 + + reg: + maxItems: 1 + + interrupts: + maxItems: 6 + + interrupt-names: + items: + - const: dwc_usb3 + - const: pwr_event + - const: hs_phy_irq + - const: dp_hs_phy_irq + - const: dm_hs_phy_irq + - const: ss_phy_irq + + power-domains: + maxItems: 2 + + power-domain-names: + items: + - const: power + - const: bus + + resets: + maxItems: 1 + + iommus: + maxItems: 1 + + phys: + maxItems: 2 + + phy-names: + items: + - const: usb2-phy + - const: usb3-phy + + dma-coherent: true + +required: + - compatible + - reg + - interrupts + - interrupt-names + - power-domains + - power-domain-names + - resets + - phys + - phy-names + +allOf: + - $ref: snps,dwc3-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + usb@a800000 { + compatible = "qcom,sa8255p-dwc3"; + reg = <0x0a800000 0x10000>; + + interrupts-extended = <&intc GIC_SPI 349 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 352 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 351 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 8 IRQ_TYPE_EDGE_BOTH>, + <&pdc 7 IRQ_TYPE_EDGE_BOTH>, + <&pdc 13 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "dwc_usb3", + "pwr_event", + "hs_phy_irq", + "dp_hs_phy_irq", + "dm_hs_phy_irq", + "ss_phy_irq"; + + power-domains = <&scmi_pd 1>, <&scmi_pd 2>; + power-domain-names = "power", "bus"; + resets = <&scmi_rst 0>; + + iommus = <&apps_smmu 0x0a0 0x0>; + phys = <&usb_1_hsphy>, <&usb_1_qmpphy>; + phy-names = "usb2-phy", "usb3-phy"; + }; +... -- 2.34.1