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=1795542552; b=hTUEDahlc4scZkreCKxKKmi8DPplj10qgjVVnAI4yXIVPZ4Q5+MNyffq4SwDuOVlNZUN txh/ChollJM/P11x/ht+DeKeb3ucwU7dKIUuF9hRTypq0XpZQbo1r0GwITJ7NDmcnzUAt ysj6x/539YbohO7FXyTUsl//JoVAqMF5bTUDtgyqy+5tM6kCI6a7RSA6oqi3I2opIToGk SlI4f5M348mFjiVmOUW4OgDDc+Zec5+LAJTz5HUOh5XVRYYVm056OMIZ5wmnxjsgZeDPq iKNiM1ed7H+DNJKomkFuxBgEffAdIKkYRoFW6sto63KmvB0ZfY4o0mRD0kuHQ6omtdA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795542552; 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:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=avLPYoWnf737hynZgFHKxpC9sYMKxbQm/yIW/KqWgEg=; b=sWEaPFReBl/kJNLIfE8KnxtiWtvgNBogB8E14/yDdUuD1Bmj4KgknMXNbXJ1+nKOuCuf 0zZP/wjxzGIteU+wKvGIHGgqms3O38QSDPypWDEGRfGfEoNu75yzWjMMRvapfbwoL9zEj B1PAkfCp7pmHKiYvqrkueMvlYpASR0NjtlxUpbRQgArKfUXgO1/USJKCIzJoFIuwpGphQ NATGWg4xc4x8vfazyRrQsHZD1dtAvN8HU0tRU2XqCDDJI9fCmSaY8ix/UOLGWryd50+aW N2D4mib9v0gvxTlwUfAtgZlSwiZEcabbX+BDFTSZSk92YWPrwu3Uf9ESQBsKA0awwSg== 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=G89w7csz; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=amy00qfQ; 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 4F831606A336 for ; Tue, 24 Nov 2026 17:49:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4F831606A336 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=G89w7csz; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=amy00qfQ Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AOFL3nS1696899 for ; Tue, 24 Nov 2026 17:49:10 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= avLPYoWnf737hynZgFHKxpC9sYMKxbQm/yIW/KqWgEg=; b=G89w7cszOfdQieSQ c6M051S7fj9q6zLxa0kstE+DAAUIYpu8G1Aq2C15SqZ4lD0XzMvrC70xFbWinHAx wC8d6RsMFZGnQFXD/X64QrmlS359qvbkIYT8CdycTQfeDTshVywFJxMfzWFqZqXf x4KfzGVHNRKN2Aa1LSugn1bdSPUkPNvCCMv+fhstY0JHQimKF8kceXinrO/ppkrp 8iT3CM9ze/JFTeOw42wGAw2ilxNHxc7P++TI8iafZv1o8zUwYeMJopjDMGWmwSiC 5Kvs+PO7NYjXI7EHJNMBUcyvLqSkDzfWmcWABdA7fZ+3Tnw3qfQNvirpgF+6s+Hk iqc1SQ== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j5b801cuf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Nov 2026 17:49:10 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-9493e89d4f9so708193385a.2 for ; Tue, 24 Nov 2026 09:49:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795542550; x=1796147350; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=avLPYoWnf737hynZgFHKxpC9sYMKxbQm/yIW/KqWgEg=; b=amy00qfQwqcKxbTmB5SV5epPOCz2qb9lVgKU8OM6J6F1QUJkdLnTRJXXYHhQuClkpH Y9A1XQRjpFN8TRdZUJYKqOB8qsWCjA8BVcsunaD7N/1JUKcPtAlkBzlDR+CGa9VVDs1h piZmOdrm1Z1FhzuzdmpiXMhPY1Xq3VfqWHHffvnpRUX8tg/t4AyQRDaKtH7Qr/0jc/z1 yYYd+9JGfvEQ4ans9rUOofeNMrjN+6de6NmURY03oLMtPS7frnLDJl1e+mLPHQWAXU60 MbJ1pe8aDRxszyXlWJT+nkzDhEmlhGaPGQI31RILTeZU+4TxwJ1c1ETGzhlF8FJQuzRJ TKPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795542550; x=1796147350; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=avLPYoWnf737hynZgFHKxpC9sYMKxbQm/yIW/KqWgEg=; b=y8qGW/c815OUGhMMhx8soKRpRhceFLP8SjKz8LYMUq20SZamGd2TkP9IylnVvli3N5 pWqg/fyu9Z4ZVKUHTBBz8UeL6f+zsgQGLY2iudaHU4DFXSG841/oWxncRdxuuZVfUgWF jSFZy/6bQ8bUTBghySHR9m5ZUvwxMCLHdMLKiizMGMRfL1XfOCpg/bGhrgYezqmEHUMX wsgp7aQW4eti5SdZr9yJRbAZmlbVJ4ItXZJgQ3GeY439ZWU0RZyMTDsfsVyo9qDyxBjP DBsQreM34FDllWNTWYKR4cck/aZBKy/LN+PZNB/yBioSUhuI72jC86cgik02Xzd7m8UA SIlQ== X-Forwarded-Encrypted: i=1; AL+hErFP03Tc66eBofhxava/jRymiQvMY/aDfc/eg+7kdkY57yICOoh5XPKUwxHU08BGohq7LXZzAe2FVd4QUnI=@vger.kernel.org X-Gm-Message-State: APuU4Z/nsm8rf6yB99DilCUAcrWEdXUFmrqG7iK6HxYPDZb2DmsPat+/ Swkratts26zBEfvz/sdf/dZOkZO6Tbq7CcGEECkM8xrDNz3vVbBa1FRtZOW4srZmDsBEXEkkupW IzhFh02AiOV9iE+o31IqG5G2lR9PYskeJB5mxMFbFTiARGJuJJpkRgEYESh1SSpA+KaQ= X-Gm-Gg: AZFdTZc0VAxYuMEq8LecyMZhDVTWE/S/NpOt8rxsh+qanZ3wPpu90nhSxBzL3ITPwa8 KfKqxaTJENQDm7GlriFoD8lZBxtE3RAXJ7AX+8MtAWcJhe0AHSyqJPQ7w6Gz+8Fsb8v5VtSYTO+ 419EGzoPFvKJjFhqMug+5nzUe2VZ5xv9Sl4NjO9L+fVpJ5c58q2fYpdvE1FCwBaPly/p3vmxcTy Yo5lTrzNejuhqXa5vOTiK6SjT1jGbiG7pLD1stVSKGKFoCI3Q/uI9q6EoHe+wr37zWPDz5rfaVP gxn3y3qOjxBxeiuc+ImjjDbWWbyJ+7Q/PkDHhjovByGpkv66AmpF8qr5LZmi7msjPaKLDtKM8FP 0ezLZuc7Cz/8oJvSf2FYNLD7xdMqwaf1G3ELUcoaByzJaxIPVKASqvNvbHFuX2+QDv9zGSuQdp2 XSjtjCvHapBjz1 X-Received: by 2002:a05:620a:4688:b0:949:7c8c:54d1 with SMTP id af79cd13be357-949bab181d1mr2710243985a.52.1795542549637; Tue, 24 Nov 2026 09:49:09 -0800 (PST) X-Received: by 2002:a05:620a:4688:b0:949:7c8c:54d1 with SMTP id af79cd13be357-949bab181d1mr2710239185a.52.1795542549185; Tue, 24 Nov 2026 09:49:09 -0800 (PST) Received: from [127.0.1.1] (93-159-22-70.cgnat.inetia.pl. [93.159.22.70]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6ba370e77d8sm6899678a12.14.2026.11.24.09.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 09:49:08 -0800 (PST) From: Igor Opaniuk Date: Tue, 24 Nov 2026 18:48:51 +0100 Subject: [PATCH v3 1/3] dt-bindings: soc: qcom: eud: add the QCM2290 EUD 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261124-qcm2290-eud-dts-v3-1-b3e5af3701e7@oss.qualcomm.com> References: <20261124-qcm2290-eud-dts-v3-0-b3e5af3701e7@oss.qualcomm.com> In-Reply-To: <20261124-qcm2290-eud-dts-v3-0-b3e5af3701e7@oss.qualcomm.com> To: Souradeep Chowdhury , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Elson Serrao , Krzysztof Kozlowski , Igor Opaniuk X-Mailer: b4 0.14.3 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI0MDA2OSBTYWx0ZWRfX2ls6jXCht2Ff eEqYb+Mc2VKwHqHUR1fSxyyMuSdrOnptqYYfNTIxiyrh46JYFaBJlK9f712rcfXLLQ/Fo3rtmJE X+GMabenZIt5RR0t79JHnE7EspazCDwjTitCmXWQYN8G0de+6Sa+gBrL51ghushS15worFBesrs SUpp2EgNd/ObGQTUtSHTyborHeL6C+N/NLd6jeLyaqQlNI8ZbDXtl2hsDtQ8L39IJjyijy9xPpG fk12AvTGLeUVou1Ei+Ap9tRb2pQCBY/oNPNat2NPA/zJfiXoJtLWslwFgJhC/hGXPzGsaUQJRut alaltzqTn6d0sZ6ZDOyFxfkBI7xg65f0YHT7qUpEpTyX/36KSYwWgbb0AJMDC6uZI6mV21N/SYH rUFPkdBSYPJU2C3cej4hZ4vk0200NpHlRKUHFlPTelRlYY/2N9b9WzsNVGS378juv8wFA0nTHEp 6VKVpeb6g0jMiRQlkEA== X-Authority-Analysis: v=2.4 cv=K5W3jCWI c=1 sm=1 tr=0 ts=6b05ce16 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=ySe+0nHqNG5yihRO1pIWsw==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=GBRnKKbz5W7R9ATGUUsA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-ORIG-GUID: bgCDA6PiD2buXz_SpRpX7eU8OmMSK29I X-Proofpoint-GUID: bgCDA6PiD2buXz_SpRpX7eU8OmMSK29I X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI0MDA2OSBTYWx0ZWRfX0OwRVcvEmw4x GG8hhzOfMdoveX34BbpyiywAey1Yek7qCiEkJzOdn8UTvISnlpLnOsJdyxbAHgBIvQtDPToQ0aX G4kA+defJyMu9LDtKUa79A8crGcmVAw= 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-24_04,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 spamscore=0 suspectscore=0 phishscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611240069 The QCM2290 has the same Embedded USB Debugger as the SC7280: the EUD CSRs and the mode manager register that the secure world writes on behalf of the driver. On QCM2290 the mode manager additionally ignores the enable unless the TCSR register TCSR_APSS_SPARE_REG1 is set first. The boot firmware does the same before it enables the EUD, and the register is written through the same secure IO service. Add the compatible and a "qcom,tcsr-reg" property that points to that register in the TCSR syscon. It is required on QCM2290 and not allowed on the other EUDs. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Igor Opaniuk --- .../devicetree/bindings/soc/qcom/qcom,eud.yaml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml index 84218636c0d8..bea03468a499 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml @@ -17,6 +17,7 @@ properties: compatible: items: - enum: + - qcom,qcm2290-eud - qcom,sc7280-eud - const: qcom,eud @@ -29,6 +30,17 @@ properties: description: EUD interrupt maxItems: 1 + qcom,tcsr-reg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the TCSR syscon + - description: offset of the register that has to be set before + the mode manager accepts the enable + description: + TCSR register that gates the EUD enable. It is written through the + secure world, like the mode manager register. + ports: $ref: /schemas/graph.yaml#/properties/ports description: @@ -50,6 +62,19 @@ required: - reg - ports +allOf: + - if: + properties: + compatible: + contains: + const: qcom,qcm2290-eud + then: + required: + - qcom,tcsr-reg + else: + properties: + qcom,tcsr-reg: false + additionalProperties: false examples: -- 2.53.0