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=1796210894; b=xsM+7Br2xYnQY0tIro0YDoYrRWunnvlA0vCd/mK9yL9UFyQJ0O8+G0KDvd1YyyYDduDU d0nyooIpneZAoFBbs83xEtNzmr7gLgYCXtiOtC32pK0ysucFDo7VIAk2LM4a5GIIBx4PW 9V4IIpbCjnd87cXRC6rw1vL/0iFelMatzbqNjsJHtAcQw9gMNX0IIoL8ufwK0DTQu/CKS 0Obg/ucUsO6LaPak+vYHwzBuON/oxEw7Fq4EXncxkTrdg/fLsmzFJxBBcZWWL/LdYG1dj QTgz7vbjwYWbGQ5pcw0iLP2sdC9Wbm97WfmK2zFVNC7vuzKbQF62h2RTmkOL/uWG0Hg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796210894; 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-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Info: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=Pe8KTypZVwLMiyz2Q0UIaiFCzWyy9z4yVLw4e0cqeco=; b=xkwE7wNG9GYzwk560faVg2IzgQu5f4kzyS7kt/ZI3W4RunwpDo/eFJgraXaf3b3ln0qA oeEwQl4PUfvZGYoj01sGaYYag0hYqXbTuHDVejLcP6bAGHP+ZbjeJQsAP99tVepc4X6ne cVUgyZhmBjM324/3BS1gvOVbwGClu0QZplgeqEvXpgXtYqxiiUczY4jTYKlxGBcOdnUQx TKUsXlqg/q1fV0yvDIlUXZFf9HXT/ocZKg5DIzvx1Sy38z+0YhvjONr33ClMP9qwhr/mV bzBfYSVipwNkn830HhAd9gaXKVQ5e6dIsPaXkFRaWo3pSiaxHvVQ6DSkbzL2QWnYarg== 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=K1Lv301x; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=LOQajyS4; 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 29F18606A339 for ; Wed, 2 Dec 2026 11:28:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 29F18606A339 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=K1Lv301x; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=LOQajyS4 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26pJgf672432 for ; Wed, 2 Dec 2026 11:28:12 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= Pe8KTypZVwLMiyz2Q0UIaiFCzWyy9z4yVLw4e0cqeco=; b=K1Lv301xu1wJUaxh K7SBEnAenSl2Cv+K+0gNsBWMTin+d9WSRe6itw5+mdBXoNP3aNqJAkTnWoOZYti9 I/FEO9XapIa4+Oh1m3hZcKVugs1R6JbfAclXvDNe1TZelhq5ePfwR1M72B8eE9X1 wqmp+/2l889OBlSMv8YbGO7j5gzrpF5bZkfeGGMnIxWl8B6pqBO0h5kTwu17TrGa nsfHCvPycyADI+wDBaOMHUB+fEltDfKv66Q44tdnRWXem37wbPUrXfaTG1k0Cumb wXmcKFOzprLhARbknpjs0G3k45Ao3F7A0EE7Vot+miLhgqv+zwFQrps+eUuZ9cdK itqkvQ== Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja4jm3asp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 11:28:11 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f2373e9b4so1527654785a.1 for ; Wed, 02 Dec 2026 03:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796210891; x=1796815691; 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=Pe8KTypZVwLMiyz2Q0UIaiFCzWyy9z4yVLw4e0cqeco=; b=LOQajyS4B3FZNcbRyOoyoG6F3I3djeu1k8veHRMiBANVMA6vlUx/cR0bEwe717k/BJ HUevp+NTmhoYhBEUTjuyganu2q5IZOuwJk0AjV6sLT4SycvDa5tcwqjRPWpNrgYcfwFd jVgIKyOP9vP3VZcWFAlKzPTBjWvgJ0/LrjCwI0vwX6R0gl0Bfo+KhwFpbHP8MFVfuiOk HLN+3bcTNYmoNt7bdhjys1gJ43x25C9ssNRx1FV7N8oWPsi/4Uzm/h5Thy4TB7M7plI7 8QjT6xEMD+Vvb5j3algq0NMNWW7ltkjZQWTxKU1pg9rEsaF8cNljUaVRwATRUfo9o+m0 hhyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796210891; x=1796815691; 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=Pe8KTypZVwLMiyz2Q0UIaiFCzWyy9z4yVLw4e0cqeco=; b=f0pSrjPgdWrLMOimGzuYDzLtmJGm+hMDjVHljeOWiR72vPm6KpEZrM2NOXd9VAauvC XyA0AOQLLjdODPq/lqangpn7sw+/JWKJfiu0qNrotdF6G92OTPjVOQdXhgwuoOpRufYI RK6kbLHIxyw7lS0nOEjHD4rh1vFhaGCV07800zqb3AUwNlBC9al+PVLOA8bMwYZ9Mhat Y2Zd6Y4J6tx4u7gzMUciFnikqdhTkAUy2ECcYLfbekU5VmKKAivwQA16OQZ/AsgD4k2x cNp2r4r5QxKD3nrKDOxXAAByoDAC9aRJfslTiECKYxxDVIfAwEW2u1Lu0yitridL+l1V LSZQ== X-Forwarded-Encrypted: i=1; AL+hErHyVjlBpXBz7y2LS8HX+6DedN9DoMpUnHtR86/fH93K3qJeLcfuplNSyXARA4GTyAY5WBx6V+2QJao=@vger.kernel.org X-Gm-Message-State: APuU4Z9m4IIFS4AljRjkfbJfnBc/C6fwB+7Cu78bQt97sL1nwyTRMgIg q9dr7LvPNSlXAU/B+zoqVNFuIkCH2ybF2ZRCp8NjADI+QASBnjfBOBtlAguCzNZ0rr77Hfh8hYZ wOswA4AfvlvgCbqb8nUbj44jd8LSlyWhgNf8Y3lmPXPFsb5EovyWOuqGM7cgl5RM= X-Gm-Gg: AZFdTZfKSRBQXQ5Sc5p4F5dRJFUffrEWsGjzRyGtmrOIUIXV62+LhvjO3DpGIPwX/Sf qIGXCneJi4nd6VN+AKeB5jYj7IWPIjL5dOL1YLJkJ21saW35qUKzRmPAUawd19MLUfxOuuQstUP hP0nsRooxbQzKQMiejcViZCe/Y6iOYYJ2bUxslLzr03+fvf1JYBFsDr0Tns4jBu2gzJco/y4kCB 5kn14MUG820BWD/Fu4LfM2JcbhBeGlrBy3ETpXyWtJYlDE7zazo0GyAGJ1fVWvsFceDVzg0O6Zc ed+WQ5fRBKiBTEc9azTkFjBJSGnHzuYloNc5qEJI5jNYNG2Ude99IkxXgTPK6xmOIP8J+azYgdE mc/OfaP6DyHp1Z7CXOmVCaQ8MCilkwPwCoau4N1fEHOgwRz9cGNBHdehFr3qusVjb93V2zJlKF0 U92CRnbjVPJyFYQP0tzToTfYF1rBCjejHBf44U1UJ6lZEHbRXrJVnQRjhqYU/nrDM= X-Received: by 2002:a05:620a:6491:b0:93f:565f:e46 with SMTP id af79cd13be357-949bab32659mr6067644685a.52.1796210890933; Wed, 02 Dec 2026 03:28:10 -0800 (PST) X-Received: by 2002:a05:620a:6491:b0:93f:565f:e46 with SMTP id af79cd13be357-949bab32659mr6067639185a.52.1796210890326; Wed, 02 Dec 2026 03:28:10 -0800 (PST) Received: from brgl-qcom.local (2a01cb1d00dc7e0089167b9b97a26c96.ipv6.abo.wanadoo.fr. [2a01:cb1d:dc:7e00:8916:7b9b:97a2:6c96]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8849e598sm1110719355e9.8.2026.12.02.03.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 03:28:09 -0800 (PST) From: Bartosz Golaszewski Date: Wed, 02 Dec 2026 12:28:03 +0100 Subject: [PATCH v2 1/6] dt-bindings: clock: qcom: document the Seca Global Clock Controller X-Mailing-List: linux-clk@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: <20261202-seca-clocks-v2-1-31319fd8ccb7@oss.qualcomm.com> References: <20261202-seca-clocks-v2-0-31319fd8ccb7@oss.qualcomm.com> In-Reply-To: <20261202-seca-clocks-v2-0-31319fd8ccb7@oss.qualcomm.com> To: Bjorn Andersson , Abel Vesa , Stephen Boyd , Brian Masney , Jerome Brunet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Tyler Baker , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=15424; i=bartosz.golaszewski@oss.qualcomm.com; h=from:subject:message-id; bh=/hKrMW8aQlE1h3ky0uekDJwlhG9Uj5DmgcfgGi9JCE0=; b=owEBbQKS/ZANAwAKAQWdLsv/NoTDAcsmYgBrEADF2vLgRUnO50AIs2qp+kslnGWCft/8X4P1f 1pw4sSkcEWJAjMEAAEKAB0WIQSR5RMt5bVGHXuiZfwFnS7L/zaEwwUCaxAAxQAKCRAFnS7L/zaE w+jBD/4uxsxA+UObBDQFdFuYOVZj9jwddHrrmo1c+qDQxiOLLMf1nw0pA3sr7NrLc7E1ekxBjr/ wqrs09EI06oyeZ090/NyyClE1HSk8rFC8F/G1bBd7wvE3JWD4TgM3WKpZn6PomeutLrK1C4AN6R 9mjdXYqRpbBzNXPe8KPYmS9Tp7L0pHDxIMAWFWVkuIQ/CI4Fr41pyGlJgFrgSuDDIb0W66gxTBr UJrHq4sgm71jLmeubSTtWY1DdsX/brw2f4QozSCQyFx3Xa/omfi6VcaQCAwJ6h98gvJXZXdjgo/ cecudqjtIvpJ6JtNtmAkzhsmn854lSJXGeGjfdVDNt9FJQroC8rjBrp0wGsBZi4D1Dh/AlKj5WO 3dUAgEqAxoAZudH8axUwMKeqpS1TdmRA1rf+vFBJhjC3WHPTSPwjbf0QrP7M8HVQ0W2Cm52DmBr HXq1rc++ygP6xQthFnARG+vcmXtLj6Xn4otEC5Uvgpj3JuwgNOYDs0O1RyqRzQphHSv66/zzCqw Ab0t1EnhUqBDgLmONWrzBd1hqDpnpc5Q/txFDCuNF5m7KOR2EzKgMkNvqw41KfMyTkigHgRNpxb ZYmv5JEJA3rBJDB0enNCQSRhqobl3horfJwjJ/ToFseiAZb7GVvklnR54oZmWjYS6ckc1q38FJR a/G+Ue8aIHwsP/w== X-Developer-Key: i=bartosz.golaszewski@oss.qualcomm.com; a=openpgp; fpr=169DEB6C0BC3C46013D2C79F11A72EA01471D772 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA0NSBTYWx0ZWRfX/jfOWCSHW0ck BvN0Ksslx0TCKnIeb1vjlobrtLFJE4uG9pvTj/uki8TqAd15xxb3wAtXq5vgTHYwUUrwCowC5M8 i8VyUXvAjauwzgPfxIyCqoOmjzA9Ylk= X-Proofpoint-ORIG-GUID: XSBGMP7acVvCJVFEbcYIibSvdKmF_exc X-Proofpoint-GUID: XSBGMP7acVvCJVFEbcYIibSvdKmF_exc X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0NSBTYWx0ZWRfXw61JhEkSEz9c JLSV/VYXomOSn65RUndNRWxNaWrp7sHsfzcigrKvNKmqchrviW4LIRlNMXJ+/APa7DL/UYUKK78 22MMUm2JfICfKprz2X7MAvV3cGAfoouU9zzGMpZQnhKs9f/fiNd9B+bydUKNZ8aXEOpfIaXFHsa wWGPVhUnkxuwzRyOZroQmg/AuSts3dYiLItyEcaep0GaK8BaoFnD+zRX0rKjiTegHR+zflMK94J /NQDNf6+pQvRsF9jb2o74vg+Y8QjP5VjWuR8tV2b7bMQyOav3cV3sI6frZn/5SJitokXzyoEwQm L6vJN8hb/woe43tnhCBdMhOVWzB7vPZnmZmDQKOHYfzH9By6Gv8878kamZe66vkZrJLsNvA4s0C 6+akGdHLJJmZJuPP6XV5kzEcR3Py50PYkvCkVy8vEkKR6GcxPhDk/gIgjtX7KOM8o7ELflGsV3W 2WLNdWMh4CkBiGa2H8w== X-Authority-Analysis: v=2.4 cv=KYBHIgYD c=1 sm=1 tr=0 ts=6b1000cb cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=Vv4j7cIHjfdgc1RmT7QA:9 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=sptkURWiP4Gy88Gu7hUp:22 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-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 clxscore=1015 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020045 The Global Clock Controller (GCC) on Qualcomm Seca is split into the North-East and North-West modules. Add devicetree bindings describing the two. Co-developed-by: Tyler Baker Signed-off-by: Tyler Baker Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bartosz Golaszewski --- .../devicetree/bindings/clock/qcom,seca-negcc.yaml | 61 +++++++++ .../devicetree/bindings/clock/qcom,seca-nwgcc.yaml | 69 ++++++++++ include/dt-bindings/clock/qcom,seca-negcc.h | 98 ++++++++++++++ include/dt-bindings/clock/qcom,seca-nwgcc.h | 144 +++++++++++++++++++++ 4 files changed, 372 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,seca-negcc.yaml b/Documentation/devicetree/bindings/clock/qcom,seca-negcc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b1595d7dda2b3db59a7fdfc9f6b30d56655d8836 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,seca-negcc.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,seca-negcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: North East Global Clock & Reset Controller on Qualcomm Seca SoC + +maintainers: + - Bartosz Golaszewski + +description: | + Qualcomm North East Global Clock Control (NE) module provides the clocks, + resets and power domains on Seca SoC. + + See also: include/dt-bindings/clock/qcom,seca-negcc.h + +properties: + compatible: + const: qcom,seca-negcc + + clocks: + items: + - description: Board XO source + - description: Sleep clock source + - description: USB3 Phy sec wrapper pipe clock source + - description: USB3 Phy wrapper pipe clock source + + power-domains: + items: + - description: CX power domain + +required: + - compatible + - clocks + - power-domains + - '#power-domain-cells' + +allOf: + - $ref: qcom,gcc.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + clock-controller@8900000 { + compatible = "qcom,seca-negcc"; + reg = <0x08900000 0xf4200>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&sleep_clk>, + <&usb3_phy_sec_pipe_clk>, + <&usb3_phy_pipe_clk>; + power-domains = <&rpmhpd RPMHPD_CX>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + +... diff --git a/Documentation/devicetree/bindings/clock/qcom,seca-nwgcc.yaml b/Documentation/devicetree/bindings/clock/qcom,seca-nwgcc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d6f7096b9a4ac9071e65164daf3412b09dcf9f1a --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,seca-nwgcc.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,seca-nwgcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: North West Global Clock & Reset Controller on Qualcomm Seca SoC + +maintainers: + - Bartosz Golaszewski + +description: | + Qualcomm North West Global Clock Control (NW) module provides the clocks, + resets and power domains on Seca SoC. + + See also: include/dt-bindings/clock/qcom,seca-nwgcc.h + +properties: + compatible: + const: qcom,seca-nwgcc + + clocks: + items: + - description: Board XO source + - description: Sleep clock source + - description: UFS 0 Phy Rx symbol 0 clock source + - description: UFS 0 Phy Rx symbol 1 clock source + - description: UFS 0 Phy Tx symbol 0 clock source + - description: UFS 1 Phy Rx symbol 0 clock source + - description: UFS 1 Phy Rx symbol 1 clock source + - description: UFS 1 Phy Tx symbol 0 clock source + + power-domains: + items: + - description: CX power domain + +required: + - compatible + - clocks + - power-domains + - '#power-domain-cells' + +allOf: + - $ref: qcom,gcc.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + clock-controller@8b00000 { + compatible = "qcom,seca-nwgcc"; + reg = <0x08b00000 0xf4200>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&sleep_clk>, + <&ufs_0_phy 0>, + <&ufs_0_phy 1>, + <&ufs_0_phy 2>, + <&ufs_1_phy 0>, + <&ufs_1_phy 1>, + <&ufs_1_phy 2>; + power-domains = <&rpmhpd RPMHPD_CX>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + +... diff --git a/include/dt-bindings/clock/qcom,seca-negcc.h b/include/dt-bindings/clock/qcom,seca-negcc.h new file mode 100644 index 0000000000000000000000000000000000000000..33d942c073d693b86ea2ee79ecb206666ac93424 --- /dev/null +++ b/include/dt-bindings/clock/qcom,seca-negcc.h @@ -0,0 +1,98 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +#ifndef _DT_BINDINGS_CLK_QCOM_NE_GCC_SECA_H +#define _DT_BINDINGS_CLK_QCOM_NE_GCC_SECA_H + +/* NE_GCC clocks */ +#define NE_GCC_AGGRE_NOC_USB2_AXI_CLK 0 +#define NE_GCC_AGGRE_NOC_USB3_PRIM_AXI_CLK 1 +#define NE_GCC_AGGRE_NOC_USB3_SEC_AXI_CLK 2 +#define NE_GCC_AHB2PHY_CLK 3 +#define NE_GCC_CNOC_USB2_AXI_CLK 4 +#define NE_GCC_CNOC_USB3_PRIM_AXI_CLK 5 +#define NE_GCC_CNOC_USB3_SEC_AXI_CLK 6 +#define NE_GCC_FRQ_MEASURE_REF_CLK 7 +#define NE_GCC_GP1_CLK 8 +#define NE_GCC_GP1_CLK_SRC 9 +#define NE_GCC_GP2_CLK 10 +#define NE_GCC_GP2_CLK_SRC 11 +#define NE_GCC_GPLL0 12 +#define NE_GCC_GPLL0_OUT_EVEN 13 +#define NE_GCC_QUPV3_WRAP2_CORE_2X_CLK 14 +#define NE_GCC_QUPV3_WRAP2_CORE_CLK 15 +#define NE_GCC_QUPV3_WRAP2_M_AHB_CLK 16 +#define NE_GCC_QUPV3_WRAP2_S0_CLK 17 +#define NE_GCC_QUPV3_WRAP2_S0_CLK_SRC 18 +#define NE_GCC_QUPV3_WRAP2_S1_CLK 19 +#define NE_GCC_QUPV3_WRAP2_S1_CLK_SRC 20 +#define NE_GCC_QUPV3_WRAP2_S2_CLK 21 +#define NE_GCC_QUPV3_WRAP2_S2_CLK_SRC 22 +#define NE_GCC_QUPV3_WRAP2_S3_CLK 23 +#define NE_GCC_QUPV3_WRAP2_S3_CLK_SRC 24 +#define NE_GCC_QUPV3_WRAP2_S4_CLK 25 +#define NE_GCC_QUPV3_WRAP2_S4_CLK_SRC 26 +#define NE_GCC_QUPV3_WRAP2_S5_CLK 27 +#define NE_GCC_QUPV3_WRAP2_S5_CLK_SRC 28 +#define NE_GCC_QUPV3_WRAP2_S6_CLK 29 +#define NE_GCC_QUPV3_WRAP2_S6_CLK_SRC 30 +#define NE_GCC_QUPV3_WRAP2_S_AHB_CLK 31 +#define NE_GCC_SDCC4_APPS_CLK 32 +#define NE_GCC_SDCC4_APPS_CLK_SRC 33 +#define NE_GCC_SDCC4_AXI_CLK 34 +#define NE_GCC_USB20_MASTER_CLK 35 +#define NE_GCC_USB20_MASTER_CLK_SRC 36 +#define NE_GCC_USB20_MOCK_UTMI_CLK 37 +#define NE_GCC_USB20_MOCK_UTMI_CLK_SRC 38 +#define NE_GCC_USB20_MOCK_UTMI_POSTDIV_CLK_SRC 39 +#define NE_GCC_USB20_SLEEP_CLK 40 +#define NE_GCC_USB31_PRIM_EUD_AHB_CLK 41 +#define NE_GCC_USB31_PRIM_MASTER_CLK 42 +#define NE_GCC_USB31_PRIM_MASTER_CLK_SRC 43 +#define NE_GCC_USB31_PRIM_MOCK_UTMI_CLK 44 +#define NE_GCC_USB31_PRIM_MOCK_UTMI_CLK_SRC 45 +#define NE_GCC_USB31_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC 46 +#define NE_GCC_USB31_PRIM_SLEEP_CLK 47 +#define NE_GCC_USB31_SEC_EUD_AHB_CLK 48 +#define NE_GCC_USB31_SEC_MASTER_CLK 49 +#define NE_GCC_USB31_SEC_MASTER_CLK_SRC 50 +#define NE_GCC_USB31_SEC_MOCK_UTMI_CLK 51 +#define NE_GCC_USB31_SEC_MOCK_UTMI_CLK_SRC 52 +#define NE_GCC_USB31_SEC_MOCK_UTMI_POSTDIV_CLK_SRC 53 +#define NE_GCC_USB31_SEC_SLEEP_CLK 54 +#define NE_GCC_USB3_PRIM_PHY_AUX_CLK 55 +#define NE_GCC_USB3_PRIM_PHY_AUX_CLK_SRC 56 +#define NE_GCC_USB3_PRIM_PHY_COM_AUX_CLK 57 +#define NE_GCC_USB3_PRIM_PHY_PIPE_CLK 58 +#define NE_GCC_USB3_PRIM_PHY_PIPE_CLK_SRC 59 +#define NE_GCC_USB3_SEC_PHY_AUX_CLK 60 +#define NE_GCC_USB3_SEC_PHY_AUX_CLK_SRC 61 +#define NE_GCC_USB3_SEC_PHY_COM_AUX_CLK 62 +#define NE_GCC_USB3_SEC_PHY_PIPE_CLK 63 +#define NE_GCC_USB3_SEC_PHY_PIPE_CLK_SRC 64 + +/* NE_GCC power domains */ +#define NE_GCC_USB20_PRIM_GDSC 0 +#define NE_GCC_USB31_PRIM_GDSC 1 +#define NE_GCC_USB31_SEC_GDSC 2 +#define NE_GCC_USB3_PHY_GDSC 3 +#define NE_GCC_USB3_SEC_PHY_GDSC 4 + +/* NE_GCC resets */ +#define NE_GCC_QUPV3_WRAPPER_2_BCR 0 +#define NE_GCC_QUSB2PHY_PRIM_BCR 1 +#define NE_GCC_QUSB2PHY_SEC_BCR 2 +#define NE_GCC_SDCC4_BCR 3 +#define NE_GCC_USB20_PRIM_BCR 4 +#define NE_GCC_USB31_PRIM_BCR 5 +#define NE_GCC_USB31_SEC_BCR 6 +#define NE_GCC_USB3_DP_PHY_PRIM_BCR 7 +#define NE_GCC_USB3_DP_PHY_SEC_BCR 8 +#define NE_GCC_USB3_PHY_PRIM_BCR 9 +#define NE_GCC_USB3_PHY_SEC_BCR 10 +#define NE_GCC_USB3PHY_PHY_PRIM_BCR 11 +#define NE_GCC_USB3PHY_PHY_SEC_BCR 12 + +#endif diff --git a/include/dt-bindings/clock/qcom,seca-nwgcc.h b/include/dt-bindings/clock/qcom,seca-nwgcc.h new file mode 100644 index 0000000000000000000000000000000000000000..887d76dbc5093acc62e42bb0bda260a7bfa835da --- /dev/null +++ b/include/dt-bindings/clock/qcom,seca-nwgcc.h @@ -0,0 +1,144 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +#ifndef _DT_BINDINGS_CLK_QCOM_NW_GCC_SECA_H +#define _DT_BINDINGS_CLK_QCOM_NW_GCC_SECA_H + +/* NW_GCC clocks */ +#define NW_GCC_AGGRE_NOC_UFS_0_PHY_AXI_CLK 0 +#define NW_GCC_AGGRE_NOC_UFS_1_PHY_AXI_CLK 1 +#define NW_GCC_CAMERA_AHB_CLK 2 +#define NW_GCC_CAMERA_HF_AXI_CLK 3 +#define NW_GCC_CAMERA_SF_AXI_CLK 4 +#define NW_GCC_CAMERA_TRIG_CLK 5 +#define NW_GCC_CAMERA_XO_CLK 6 +#define NW_GCC_DISP_0_AHB_CLK 7 +#define NW_GCC_DISP_0_HF_AXI_CLK 8 +#define NW_GCC_DISP_0_TRIG_CLK 9 +#define NW_GCC_DISP_1_AHB_CLK 10 +#define NW_GCC_DISP_1_HF_AXI_CLK 11 +#define NW_GCC_DISP_1_TRIG_CLK 12 +#define NW_GCC_DPRX0_AXI_HF_CLK 13 +#define NW_GCC_DPRX0_CFG_AHB_CLK 14 +#define NW_GCC_EVA_AHB_CLK 15 +#define NW_GCC_EVA_AXI0_CLK 16 +#define NW_GCC_EVA_AXI0C_CLK 17 +#define NW_GCC_EVA_TRIG_CLK 18 +#define NW_GCC_EVA_XO_CLK 19 +#define NW_GCC_FRQ_MEASURE_REF_CLK 20 +#define NW_GCC_GP1_CLK 21 +#define NW_GCC_GP1_CLK_SRC 22 +#define NW_GCC_GP2_CLK 23 +#define NW_GCC_GP2_CLK_SRC 24 +#define NW_GCC_GPLL0 25 +#define NW_GCC_GPLL0_OUT_EVEN 26 +#define NW_GCC_GPLL3 27 +#define NW_GCC_GPU_CFG_AHB_CLK 28 +#define NW_GCC_GPU_GPLL0_CLK_SRC 29 +#define NW_GCC_GPU_GPLL0_DIV_CLK_SRC 30 +#define NW_GCC_GPU_SMMU_VOTE_CLK 31 +#define NW_GCC_MMU_1_TCU_VOTE_CLK 32 +#define NW_GCC_QUPV3_WRAP0_CORE_2X_CLK 33 +#define NW_GCC_QUPV3_WRAP0_CORE_CLK 34 +#define NW_GCC_QUPV3_WRAP0_M_AHB_CLK 35 +#define NW_GCC_QUPV3_WRAP0_S0_CLK 36 +#define NW_GCC_QUPV3_WRAP0_S0_CLK_SRC 37 +#define NW_GCC_QUPV3_WRAP0_S1_CLK 38 +#define NW_GCC_QUPV3_WRAP0_S1_CLK_SRC 39 +#define NW_GCC_QUPV3_WRAP0_S2_CLK 40 +#define NW_GCC_QUPV3_WRAP0_S2_CLK_SRC 41 +#define NW_GCC_QUPV3_WRAP0_S3_CLK 42 +#define NW_GCC_QUPV3_WRAP0_S3_CLK_SRC 43 +#define NW_GCC_QUPV3_WRAP0_S4_CLK 44 +#define NW_GCC_QUPV3_WRAP0_S4_CLK_SRC 45 +#define NW_GCC_QUPV3_WRAP0_S5_CLK 46 +#define NW_GCC_QUPV3_WRAP0_S5_CLK_SRC 47 +#define NW_GCC_QUPV3_WRAP0_S6_CLK 48 +#define NW_GCC_QUPV3_WRAP0_S6_CLK_SRC 49 +#define NW_GCC_QUPV3_WRAP0_S_AHB_CLK 50 +#define NW_GCC_QUPV3_WRAP1_CORE_2X_CLK 51 +#define NW_GCC_QUPV3_WRAP1_CORE_CLK 52 +#define NW_GCC_QUPV3_WRAP1_M_AHB_CLK 53 +#define NW_GCC_QUPV3_WRAP1_S0_CLK 54 +#define NW_GCC_QUPV3_WRAP1_S0_CLK_SRC 55 +#define NW_GCC_QUPV3_WRAP1_S1_CLK 56 +#define NW_GCC_QUPV3_WRAP1_S1_CLK_SRC 57 +#define NW_GCC_QUPV3_WRAP1_S2_CLK 58 +#define NW_GCC_QUPV3_WRAP1_S2_CLK_SRC 59 +#define NW_GCC_QUPV3_WRAP1_S3_CLK 60 +#define NW_GCC_QUPV3_WRAP1_S3_CLK_SRC 61 +#define NW_GCC_QUPV3_WRAP1_S4_CLK 62 +#define NW_GCC_QUPV3_WRAP1_S4_CLK_SRC 63 +#define NW_GCC_QUPV3_WRAP1_S5_CLK 64 +#define NW_GCC_QUPV3_WRAP1_S5_CLK_SRC 65 +#define NW_GCC_QUPV3_WRAP1_S6_CLK 66 +#define NW_GCC_QUPV3_WRAP1_S6_CLK_SRC 67 +#define NW_GCC_QUPV3_WRAP1_S_AHB_CLK 68 +#define NW_GCC_QUPV3_WRAP3_CORE_2X_CLK 69 +#define NW_GCC_QUPV3_WRAP3_CORE_CLK 70 +#define NW_GCC_QUPV3_WRAP3_M_CLK 71 +#define NW_GCC_QUPV3_WRAP3_QSPI_REF_CLK 72 +#define NW_GCC_QUPV3_WRAP3_QSPI_REF_CLK_SRC 73 +#define NW_GCC_QUPV3_WRAP3_S0_CLK 74 +#define NW_GCC_QUPV3_WRAP3_S0_CLK_SRC 75 +#define NW_GCC_QUPV3_WRAP3_S_AHB_CLK 76 +#define NW_GCC_UFS_0_PHY_AHB_CLK 77 +#define NW_GCC_UFS_0_PHY_AXI_CLK 78 +#define NW_GCC_UFS_0_PHY_AXI_CLK_SRC 79 +#define NW_GCC_UFS_0_PHY_ICE_CORE_CLK 80 +#define NW_GCC_UFS_0_PHY_ICE_CORE_CLK_SRC 81 +#define NW_GCC_UFS_0_PHY_PHY_AUX_CLK 82 +#define NW_GCC_UFS_0_PHY_PHY_AUX_CLK_SRC 83 +#define NW_GCC_UFS_0_PHY_RX_SYMBOL_0_CLK 84 +#define NW_GCC_UFS_0_PHY_RX_SYMBOL_0_CLK_SRC 85 +#define NW_GCC_UFS_0_PHY_RX_SYMBOL_1_CLK 86 +#define NW_GCC_UFS_0_PHY_RX_SYMBOL_1_CLK_SRC 87 +#define NW_GCC_UFS_0_PHY_TX_SYMBOL_0_CLK 88 +#define NW_GCC_UFS_0_PHY_TX_SYMBOL_0_CLK_SRC 89 +#define NW_GCC_UFS_0_PHY_UNIPRO_CORE_CLK 90 +#define NW_GCC_UFS_0_PHY_UNIPRO_CORE_CLK_SRC 91 +#define NW_GCC_UFS_1_PHY_AHB_CLK 92 +#define NW_GCC_UFS_1_PHY_AXI_CLK 93 +#define NW_GCC_UFS_1_PHY_AXI_CLK_SRC 94 +#define NW_GCC_UFS_1_PHY_ICE_CORE_CLK 95 +#define NW_GCC_UFS_1_PHY_ICE_CORE_CLK_SRC 96 +#define NW_GCC_UFS_1_PHY_PHY_AUX_CLK 97 +#define NW_GCC_UFS_1_PHY_PHY_AUX_CLK_SRC 98 +#define NW_GCC_UFS_1_PHY_RX_SYMBOL_0_CLK 99 +#define NW_GCC_UFS_1_PHY_RX_SYMBOL_0_CLK_SRC 100 +#define NW_GCC_UFS_1_PHY_RX_SYMBOL_1_CLK 101 +#define NW_GCC_UFS_1_PHY_RX_SYMBOL_1_CLK_SRC 102 +#define NW_GCC_UFS_1_PHY_TX_SYMBOL_0_CLK 103 +#define NW_GCC_UFS_1_PHY_TX_SYMBOL_0_CLK_SRC 104 +#define NW_GCC_UFS_1_PHY_UNIPRO_CORE_CLK 105 +#define NW_GCC_UFS_1_PHY_UNIPRO_CORE_CLK_SRC 106 +#define NW_GCC_VIDEO_AHB_CLK 107 +#define NW_GCC_VIDEO_AXI0_CLK 108 +#define NW_GCC_VIDEO_AXI0C_CLK 109 +#define NW_GCC_VIDEO_XO_CLK 110 + +/* NW_GCC power domains */ +#define NW_GCC_UFS_0_MEM_PHY_GDSC 0 +#define NW_GCC_UFS_0_PHY_GDSC 1 +#define NW_GCC_UFS_1_MEM_PHY_GDSC 2 +#define NW_GCC_UFS_1_PHY_GDSC 3 + +/* NW_GCC resets */ +#define NW_GCC_CAMERA_BCR 0 +#define NW_GCC_DISPLAY_0_BCR 1 +#define NW_GCC_DISPLAY_1_BCR 2 +#define NW_GCC_DPRX0_BCR 3 +#define NW_GCC_EVA_BCR 4 +#define NW_GCC_GPU_BCR 5 +#define NW_GCC_QUPV3_WRAPPER_0_BCR 6 +#define NW_GCC_QUPV3_WRAPPER_1_BCR 7 +#define NW_GCC_QUPV3_WRAPPER_3_BCR 8 +#define NW_GCC_UFS_0_PHY_BCR 9 +#define NW_GCC_UFS_1_PHY_BCR 10 +#define NW_GCC_VIDEO_BCR 11 +#define NW_GCC_VIDEO_AXI0_CLK_ARES 12 +#define NW_GCC_VIDEO_AXI0C_CLK_ARES 13 + +#endif -- 2.47.3