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=1794391267; b=qCKiB/RQrf9rTRsITtkGLuKxq4q5Yp0b4lS6KbR5+Qhfyw3VfANY6V5JIFuH+tOAUN8q ip6fhQuXodoc+bz2DzdodWsta2KURcKm88Ki1dPwTrrb1JNoO5DlbIuflWilhPeGz1N1j 0SEUsz2s6NXoHEJ16IKCPtj9m9Q5y2ZsHR7QK+pBS7+mDoocPxvDw/cnEBnWwRDzamQuq akVnOeURD029L2dWxHibKdwts4YUIKmfCLBGq+pCjFbdUUDyMQOeA8t808szGSQvZxkZU HB2jodKc20YHNqD+afN4RzTTDadMGfxHeEMIeUxhsUTiwgY8EBrnbmhcljGjKC2gU3w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794391267; 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-ORIG-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=Bxy4cfAf042PiXXoQRywKNCGpgVupBVLw8AvprKIGyo=; b=itDgLosHOpP8ThZOEvOIGqVgS9lqsuay36vlZWJASOs/se1ND14b42kK9u9EWiOnuw3f pVk7U+YtTsN44mGd7AEALS/SJCPEXFzs77B6dWUbHesYU7c4k7AE/wLBZqDBggPlOXxWb M0OV4nDuo81diPRqCwp/XhdxAAgT7PWImf0zsn42roDS6G32tShdzCuQK4I6Q1QTZJE1t 69O+p7J4gPQhsm/svYE5IGd+xMgRnV2cP8J1+DLzeQJRWzXtHYY1Yd6X7dmM2DviN7ABG 63Fn/amf1L6aWjA/uA6RUXPWdTZLODNACsK/eLDIzbVlaptwCYpI094RajRuyE3LzOw== 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=knAJcfdH; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=cMxsjZrc; 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 A9D34606A33F for ; Wed, 11 Nov 2026 10:01:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A9D34606A33F 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=knAJcfdH; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=cMxsjZrc 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 6AB5KJwf1386384 for ; Wed, 11 Nov 2026 10:01:00 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= Bxy4cfAf042PiXXoQRywKNCGpgVupBVLw8AvprKIGyo=; b=knAJcfdH12dl+DpV rQsIAzgLcpb6HZa/I9n5EhG2rVjiazUNeK6LzBKF9G4S1VzOjE59p0FcUjMiohL0 fWl6QoF9d00zZbXeVbBt/l/zjaKzHow1PBl0KfJ494zY05/YsY5PM97hkMQqCaB/ 83eS/TaAcGPyFXHD6q6QCdw4Uo7/b9H0qAOsGQJu6cGjtsg058eiKewrUpmoi0yu qXAkeKh+xttKStpyCbH49yMJJjZlRhb/18QH6Lh4wZk5+S9BwBwUTlinp5KY9iLN sDGmr6QGUFr5O5yxmfjpPtHX6VXkWDzY3Z2Xzwv6nZLNnIjdw++uqEjTda5R71iX OC5NLg== Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hvdnma0dy-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 11 Nov 2026 10:01:00 +0000 (GMT) Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-4eb0b989f0eso3891523b6e.0 for ; Wed, 11 Nov 2026 02:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1794391260; x=1794996060; 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=Bxy4cfAf042PiXXoQRywKNCGpgVupBVLw8AvprKIGyo=; b=cMxsjZrcXx9StQ6C6iBHxjT/1sOE3cleNZ9SvNiOVWI6GjtC2E1OFSLinbrRKshNiJ KNNtS48dLlRm9m+iaAOJ0rr2jWJeOal6uHvQKBKBRlpCmtEL4HPgbXINcxc7f4PW4FAw Vmf7cL98TZCZctKb1rljClzYyOR8ZKYhu7wEak9UxpydEw02RS13nO+wMmFU8fXLMOmP aa00ay+8gKTu7uoPWoxIas1XqkjZRUFTyNskJRSAPRTcZFbgkNgC4N5Bhwa59W+a6ZBc hri/nd4leFJc2ianTpIhrxxVHZBb84Q9Q2NKjCt9/RXHtJvsrTxAs0tYBck9GqXB9iRT dsug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794391260; x=1794996060; 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=Bxy4cfAf042PiXXoQRywKNCGpgVupBVLw8AvprKIGyo=; b=RDJikcDaaCBIdbBEulpGmyaUjQ4h3BaSJb5Ki+LqnfViPZ+VIBqa2CJWOvsKzw8iyV 7YM6bWmjmNg01rK6uuJdDBIwPdspuwEjmEADDGqmzFWX0vCDhzauGp5EInIDvmiiCInF 16mxahOT7SXiJKEDNulKirZQQzx/3t0nHyQcmnc7mzWEjET3byyA2v2NkveYfB2hzGGd kzM+xcIZrhuJku4BUVKpN6e3rrUHrX9sPBZx6VBxM5rxM6dC0rLf3jAPHL6oJSzw60G3 kO/LjO+R3r+XvwUXgIF+qji9wpaMwk4bkuj3OVWmGWiXw13gb3Cpwety46nQ3pO9uiZI jHbQ== X-Forwarded-Encrypted: i=1; AL+hErHXqajXNeX9v2SOeYvbKzNREBYABCgnFUFTeUVmO3ki4ogyTjReclDrzB4BqwrmIpTIDY3xb8EppACiaAM=@vger.kernel.org X-Gm-Message-State: APuU4Z/LXmhNT+6mVZYBDcCBd/zTx4yuneGxLi5wHWEId5dDqwhsVQKj f/l5Ad+/Q8cAf4LD7HKRmaDJCsBuZrXwOubioeVvzcXKKQMYcqDKFchds+kBzs8PGpUivRfSTE3 gTgfd2/q5M+1CIvrvxkk0alIQ31TQ825W9dEv37x/FaLeMfsvUaYCI2J8Bfugj+UOBE4= X-Gm-Gg: AYBFou2hrg0jaoPxras/RD54aDcuavBwNR4jVsX+uPagOz+pWGCFu/mGfUmGDm46nh1 xWW+1d21zdSMASK+7kx/CXYbsbRcR2RHg9xiHtDOLA0e4rNkewS/Fa+6/rUHg4ECsjv5Z4ZQ/m8 ROPl5KS6i6XSBUEmDabu7ObEd7k65l/uR6SFcppTy+QufrkVJqNK4+9XH0mi3jijSwdaoALeRRX Qk9rBjMLzRZ+x8WuW0BeHR9lA440/77siECaNlRVfO8L0zAdTLnuGyK0LP+9rHTl0aBdQsTQj1j HChEIN1lwaPIIa7lpe+HJ1yl88s4m5RcLWmaKC4mOoGYqY+UaAFJmyalQC2+8AmwOD+fqpQFXqK ESzC5P0EZ8lIzIXLJpu/nzdSg2byAoRFhlp8kXMI7xkeH2OnwI+vjam8RMqjyOBK6v84Y5NQkI/ AED24q6LR2ebNlkC1A X-Received: by 2002:a05:6808:1b08:b0:4fb:b543:dc3c with SMTP id 5614622812f47-56872851d5bmr3253690b6e.5.1794391259891; Wed, 11 Nov 2026 02:00:59 -0800 (PST) X-Received: by 2002:a05:6808:1b08:b0:4fb:b543:dc3c with SMTP id 5614622812f47-56872851d5bmr3253664b6e.5.1794391259413; Wed, 11 Nov 2026 02:00:59 -0800 (PST) Received: from hu-luoj-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5614622812f47-5690504c276sm4686111b6e.4.2026.11.11.02.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2026 02:00:59 -0800 (PST) From: Luo Jie Date: Wed, 11 Nov 2026 02:00:55 -0800 Subject: [PATCH v2 1/3] dt-bindings: clock: qcom: Add NSS clock controller for IPQ5210 SoC 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: <20261111-qcom_ipq5210_nsscc-v2-1-7e2c1dda3ed2@oss.qualcomm.com> References: <20261111-qcom_ipq5210_nsscc-v2-0-7e2c1dda3ed2@oss.qualcomm.com> In-Reply-To: <20261111-qcom_ipq5210_nsscc-v2-0-7e2c1dda3ed2@oss.qualcomm.com> To: Bjorn Andersson , Abel Vesa , Stephen Boyd , Brian Masney , Jerome Brunet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Georgi Djakov , Philipp Zabel , Luo Jie , Richard Cochran , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, netdev@vger.kernel.org, quic_kkumarcs@quicinc.com, quic_linchen@quicinc.com, quic_leiwei@quicinc.com X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1794391255; l=12138; i=jie.luo@oss.qualcomm.com; s=20251128; h=from:subject:message-id; bh=OHhmxjAaFrk/KrSfVg+GuvTHorpv3eRxfNre0pIomoQ=; b=XAGYZPYjot2gCAxSBvqEHJD9eviRUpTXUPw+1TIGHeXiWfilIACC5yFBFF0rOLzd4gJYwK0WW Am3yCen6HcICT5rTzkyk1nZba9b1G/odV1r/jB+RcBrlJyzOFfCaXl5 X-Developer-Key: i=jie.luo@oss.qualcomm.com; a=ed25519; pk=gSsYMDakxtd6UDFYDdA9y9yjIs5Etp5GK/3DoXWPyS0= X-Proofpoint-ORIG-GUID: RmePrwAtrHgArwvp0RGwNOv6sKTn0byy X-Proofpoint-Spam-Info: AW1haW4tMjYxMTExMDAzOSBTYWx0ZWRfX5DHS0BUMdU0R rw2hPScK7vf0HY9lype3On8YPfRm31MsrUeJmQSXbffAUvWTuIS8ICofqgji+J+5p64e3K/a9oo l5IfwUQu14xOAj9wB795hA2OIWyvls4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTExMDAzOSBTYWx0ZWRfX/cNJ+H+NHoaL mzlGgSEn1ua6SwaclBEv4bykeJsVoXOAtryWvGHGfkegPsuwuVTtsyX0LWE0l5L9Atc0RENYKBy 1o+8zhbAen5pXU4YE4pALMPADPwOgJc0U8Cp3FGiwt1qCjqSxbcZI2TOA7eDrn19StWnuH0rIMl otjAx3D2MFvo2faeuejV9tHeJaPQ+M6hkkewuV9dYGMhqDZw+H9jR2mp6mbo8Se/khDuho0jowJ OZCXYS9dftDekMuEKq+qN7lZLQZW31r96uNNZDnqA4qDON1KJT3rqh4g3c2+jZom2aTIL9D7W/Q TEEMkkl7z4DPmBcUwd0Z0d7uPr3Jr0VLMFOnJgvevFTY0YfHZ/U1M8H92HsTkaOh6oTdJm4/Abb 7wAtiHET1QsPQmZpxh6C1CsYkpJGLUKY0MtaiPMsG0pmYK9cOhOb9OR9kZ7Sck3hc0nBDR7fr1c 0EJJfry/jtLp31eyx0Q== X-Proofpoint-GUID: RmePrwAtrHgArwvp0RGwNOv6sKTn0byy X-Authority-Analysis: v=2.4 cv=MpzHeGae c=1 sm=1 tr=0 ts=6af43cdc cx=c_pps a=yymyAM/LQ7lj/HqAiIiKTw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=U5FYPQ0ST96qNyfkX9wA:9 a=QEXdDO2ut3YA:10 a=efpaJB4zofY2dbm2aIRb: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-11-11_02,2026-11-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611110039 NSS clock controller provides the clocks and resets to the networking blocks such as PPE (Packet Process Engine), UNIPHY (PCS) and EPHY on IPQ5210 devices. Add support for the compatible string "qcom,ipq5210-nsscc" based on the existing IPQ9574/IPQ5424 NSS clock controller Device Tree binding. IPQ5210 additionally exposes a pair of EPHY-RAW Rx/Tx clock sources used to derive the clocks for its integrated 2.5G Ethernet PHY, so extend the clocks and clock-names lists with "ephy_rx" and "ephy_tx". Also add master/slave ids for IPQ5210 networking interfaces, which are used by the nsscc-ipq5210 driver for providing interconnect services using the icc-clk framework. Signed-off-by: Luo Jie --- .../bindings/clock/qcom,ipq9574-nsscc.yaml | 47 ++++++++- include/dt-bindings/clock/qcom,ipq5210-nsscc.h | 106 +++++++++++++++++++++ include/dt-bindings/interconnect/qcom,ipq5210.h | 18 ++++ include/dt-bindings/reset/qcom,ipq5210-nsscc.h | 60 ++++++++++++ 4 files changed, 228 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml b/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml index a35bbc7b1924..dc7d90a99dc7 100644 --- a/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,ipq9574-nsscc.yaml @@ -4,24 +4,28 @@ $id: http://devicetree.org/schemas/clock/qcom,ipq9574-nsscc.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Qualcomm Networking Sub System Clock & Reset Controller on IPQ9574 and IPQ5424 +title: Qualcomm Networking Sub System Clock & Reset Controller on IPQ SoCs maintainers: - Bjorn Andersson + - Luo Jie description: | Qualcomm networking sub system clock control module provides the clocks, - resets on IPQ9574 and IPQ5424 + resets on IPQ9574, IPQ5424 and IPQ5210 See also: + include/dt-bindings/clock/qcom,ipq5210-nsscc.h include/dt-bindings/clock/qcom,ipq5424-nsscc.h include/dt-bindings/clock/qcom,ipq9574-nsscc.h + include/dt-bindings/reset/qcom,ipq5210-nsscc.h include/dt-bindings/reset/qcom,ipq5424-nsscc.h include/dt-bindings/reset/qcom,ipq9574-nsscc.h properties: compatible: enum: + - qcom,ipq5210-nsscc - qcom,ipq5424-nsscc - qcom,ipq9574-nsscc @@ -42,6 +46,9 @@ properties: - description: Uniphy2 NSS Rx clock source - description: Uniphy2 NSS Tx clock source - description: GCC NSSCC clock source + - description: CMN_PLL EPHY-RAW Rx clock source + - description: CMN_PLL EPHY-RAW Tx clock source + minItems: 11 '#interconnect-cells': const: 1 @@ -63,6 +70,9 @@ properties: - const: uniphy2_rx - const: uniphy2_tx - const: bus + - const: ephy_rx + - const: ephy_tx + minItems: 11 required: - compatible @@ -77,6 +87,8 @@ allOf: const: qcom,ipq9574-nsscc then: properties: + clocks: + maxItems: 11 clock-names: items: - const: xo @@ -90,8 +102,35 @@ allOf: - const: uniphy2_rx - const: uniphy2_tx - const: bus - else: + - if: + properties: + compatible: + const: qcom,ipq5424-nsscc + then: + properties: + clocks: + maxItems: 11 + clock-names: + items: + - const: xo + - const: nss + - const: ppe + - const: gpll0_out + - const: uniphy0_rx + - const: uniphy0_tx + - const: uniphy1_rx + - const: uniphy1_tx + - const: uniphy2_rx + - const: uniphy2_tx + - const: bus + - if: + properties: + compatible: + const: qcom,ipq5210-nsscc + then: properties: + clocks: + minItems: 13 clock-names: items: - const: xo @@ -105,6 +144,8 @@ allOf: - const: uniphy2_rx - const: uniphy2_tx - const: bus + - const: ephy_rx + - const: ephy_tx unevaluatedProperties: false diff --git a/include/dt-bindings/clock/qcom,ipq5210-nsscc.h b/include/dt-bindings/clock/qcom,ipq5210-nsscc.h new file mode 100644 index 000000000000..62ead8d9b076 --- /dev/null +++ b/include/dt-bindings/clock/qcom,ipq5210-nsscc.h @@ -0,0 +1,106 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +#ifndef _DT_BINDINGS_CLOCK_QCOM_IPQ5210_NSSCC_H +#define _DT_BINDINGS_CLOCK_QCOM_IPQ5210_NSSCC_H + +#define NSS_CC_PPE_CLK_SRC 0 +#define NSS_CC_PPE_SWITCH_IPE_CLK 1 +#define NSS_CC_PPE_SWITCH_BTQ_CLK 2 +#define NSS_CC_PPE_SWITCH_CLK 3 +#define NSS_CC_PPE_SWITCH_CFG_CLK 4 +#define NSS_CC_PPE_EDMA_CLK 5 +#define NSS_CC_PPE_EDMA_CFG_CLK 6 +#define NSS_CC_PORT1_MAC_CLK 7 +#define NSS_CC_PORT1_RX_CLK 8 +#define NSS_CC_PORT1_RX_CLK_SRC 9 +#define NSS_CC_PORT1_RX_DIV_CLK_SRC 10 +#define NSS_CC_PORT1_TX_CLK 11 +#define NSS_CC_PORT1_TX_CLK_SRC 12 +#define NSS_CC_PORT1_TX_DIV_CLK_SRC 13 +#define NSS_CC_PORT2_MAC_CLK 14 +#define NSS_CC_PORT2_RX_CLK 15 +#define NSS_CC_PORT2_RX_CLK_SRC 16 +#define NSS_CC_PORT2_RX_DIV_CLK_SRC 17 +#define NSS_CC_PORT2_TX_CLK 18 +#define NSS_CC_PORT2_TX_CLK_SRC 19 +#define NSS_CC_PORT2_TX_DIV_CLK_SRC 20 +#define NSS_CC_PORT3_MAC_CLK 21 +#define NSS_CC_PORT3_RX_CLK 22 +#define NSS_CC_PORT3_RX_CLK_SRC 23 +#define NSS_CC_PORT3_RX_DIV_CLK_SRC 24 +#define NSS_CC_PORT3_TX_CLK 25 +#define NSS_CC_PORT3_TX_CLK_SRC 26 +#define NSS_CC_PORT3_TX_DIV_CLK_SRC 27 +#define NSS_CC_PORT4_MAC_CLK 28 +#define NSS_CC_PORT4_RX_CLK 29 +#define NSS_CC_PORT4_RX_CLK_SRC 30 +#define NSS_CC_PORT4_RX_DIV_CLK_SRC 31 +#define NSS_CC_PORT4_TX_CLK 32 +#define NSS_CC_PORT4_TX_CLK_SRC 33 +#define NSS_CC_PORT4_TX_DIV_CLK_SRC 34 +#define NSS_CC_PORT5_MAC_CLK 35 +#define NSS_CC_PORT5_RX_CLK 36 +#define NSS_CC_PORT5_RX_CLK_SRC 37 +#define NSS_CC_PORT5_RX_DIV_CLK_SRC 38 +#define NSS_CC_PORT5_TX_CLK 39 +#define NSS_CC_PORT5_TX_CLK_SRC 40 +#define NSS_CC_PORT5_TX_DIV_CLK_SRC 41 +#define NSS_CC_PORT6_MAC_CLK 42 +#define NSS_CC_PORT6_RX_CLK 43 +#define NSS_CC_PORT6_RX_CLK_SRC 44 +#define NSS_CC_PORT6_RX_DIV_CLK_SRC 45 +#define NSS_CC_PORT6_TX_CLK 46 +#define NSS_CC_PORT6_TX_CLK_SRC 47 +#define NSS_CC_PORT6_TX_DIV_CLK_SRC 48 +#define NSS_CC_NSSNOC_PPE_CLK 49 +#define NSS_CC_NSSNOC_PPE_CFG_CLK 50 +#define NSS_CC_UNIPHY_PORT1_RX_CLK 51 +#define NSS_CC_UNIPHY_PORT1_TX_CLK 52 +#define NSS_CC_UNIPHY_PORT2_RX_CLK 53 +#define NSS_CC_UNIPHY_PORT2_TX_CLK 54 +#define NSS_CC_UNIPHY_PORT3_RX_CLK 55 +#define NSS_CC_UNIPHY_PORT3_TX_CLK 56 +#define NSS_CC_UNIPHY_PORT4_RX_CLK 57 +#define NSS_CC_UNIPHY_PORT4_TX_CLK 58 +#define NSS_CC_UNIPHY_PORT5_RX_CLK 59 +#define NSS_CC_UNIPHY_PORT5_TX_CLK 60 +#define NSS_CC_UNIPHY_PORT6_RX_CLK 61 +#define NSS_CC_UNIPHY_PORT6_TX_CLK 62 +#define NSS_CC_XGMAC0_PTP_REF_CLK 63 +#define NSS_CC_XGMAC0_PTP_REF_DIV_CLK_SRC 64 +#define NSS_CC_XGMAC1_PTP_REF_CLK 65 +#define NSS_CC_XGMAC1_PTP_REF_DIV_CLK_SRC 66 +#define NSS_CC_XGMAC2_PTP_REF_CLK 67 +#define NSS_CC_XGMAC2_PTP_REF_DIV_CLK_SRC 68 +#define NSS_CC_PON_CLK 69 +#define NSS_CC_EPHY_RX_CLK_SRC 70 +#define NSS_CC_EPHY_RX_CLK 71 +#define NSS_CC_EPHY_TX_CLK_SRC 72 +#define NSS_CC_EPHY_TX_CLK 73 +#define NSS_CC_UNIPHY_PORT1_RX_DIV4_CLK_SRC 74 +#define NSS_CC_UNIPHY_PORT1_TX_DIV4_CLK_SRC 75 +#define NSS_CC_UNIPHY_PORT2_RX_DIV4_CLK_SRC 76 +#define NSS_CC_UNIPHY_PORT2_TX_DIV4_CLK_SRC 77 +#define NSS_CC_UNIPHY_PORT3_RX_DIV4_CLK_SRC 78 +#define NSS_CC_UNIPHY_PORT3_TX_DIV4_CLK_SRC 79 +#define NSS_CC_UNIPHY_PORT4_RX_DIV4_CLK_SRC 80 +#define NSS_CC_UNIPHY_PORT4_TX_DIV4_CLK_SRC 81 +#define NSS_CC_UNIPHY_PORT1_RX_DIV4_CLK 82 +#define NSS_CC_UNIPHY_PORT1_TX_DIV4_CLK 83 +#define NSS_CC_UNIPHY_PORT2_RX_DIV4_CLK 84 +#define NSS_CC_UNIPHY_PORT2_TX_DIV4_CLK 85 +#define NSS_CC_UNIPHY_PORT3_RX_DIV4_CLK 86 +#define NSS_CC_UNIPHY_PORT3_TX_DIV4_CLK 87 +#define NSS_CC_UNIPHY_PORT4_RX_DIV4_CLK 88 +#define NSS_CC_UNIPHY_PORT4_TX_DIV4_CLK 89 +#define NSS_CC_EIP_BFDCD_CLK_SRC 90 +#define NSS_CC_EIP_CLK 91 +#define NSS_CC_NSSNOC_EIP_CLK 92 +#define NSS_CC_CFG_CLK_SRC 93 +#define NSS_CC_NSS_CSR_CLK 94 +#define NSS_CC_NSSNOC_NSS_CSR_CLK 95 + +#endif diff --git a/include/dt-bindings/interconnect/qcom,ipq5210.h b/include/dt-bindings/interconnect/qcom,ipq5210.h new file mode 100644 index 000000000000..44f8d35a372a --- /dev/null +++ b/include/dt-bindings/interconnect/qcom,ipq5210.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +#ifndef INTERCONNECT_QCOM_IPQ5210_H +#define INTERCONNECT_QCOM_IPQ5210_H + +#define MASTER_NSSNOC_PPE 0 +#define SLAVE_NSSNOC_PPE 1 +#define MASTER_NSSNOC_PPE_CFG 2 +#define SLAVE_NSSNOC_PPE_CFG 3 +#define MASTER_NSSNOC_NSS_CSR 4 +#define SLAVE_NSSNOC_NSS_CSR 5 +#define MASTER_NSSNOC_EIP 6 +#define SLAVE_NSSNOC_EIP 7 + +#endif /* INTERCONNECT_QCOM_IPQ5210_H */ diff --git a/include/dt-bindings/reset/qcom,ipq5210-nsscc.h b/include/dt-bindings/reset/qcom,ipq5210-nsscc.h new file mode 100644 index 000000000000..0616a3623897 --- /dev/null +++ b/include/dt-bindings/reset/qcom,ipq5210-nsscc.h @@ -0,0 +1,60 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +#ifndef _DT_BINDINGS_RESET_QCOM_IPQ5210_NSSCC_H +#define _DT_BINDINGS_RESET_QCOM_IPQ5210_NSSCC_H + +#define NSS_CC_PPE_BCR 0 +#define NSS_CC_PPE_SWITCH_IPE_CLK_ARES 1 +#define NSS_CC_PPE_SWITCH_BTQ_CLK_ARES 2 +#define NSS_CC_PPE_SWITCH_CLK_ARES 3 +#define NSS_CC_PPE_SWITCH_CFG_CLK_ARES 4 +#define NSS_CC_PPE_EDMA_CLK_ARES 5 +#define NSS_CC_PPE_EDMA_CFG_CLK_ARES 6 +#define NSS_CC_PORT1_MAC_CLK_ARES 7 +#define NSS_CC_PORT2_MAC_CLK_ARES 8 +#define NSS_CC_PORT3_MAC_CLK_ARES 9 +#define NSS_CC_PORT4_MAC_CLK_ARES 10 +#define NSS_CC_PORT5_MAC_CLK_ARES 11 +#define NSS_CC_PORT6_MAC_CLK_ARES 12 +#define NSS_CC_PON_CLK_ARES 13 +#define NSS_CC_XGMAC0_PTP_REF_CLK_ARES 14 +#define NSS_CC_XGMAC1_PTP_REF_CLK_ARES 15 +#define NSS_CC_XGMAC2_PTP_REF_CLK_ARES 16 +#define NSS_CC_NSSNOC_PPE_CLK_ARES 17 +#define NSS_CC_NSSNOC_PPE_CFG_CLK_ARES 18 +#define NSS_CC_PORT1_RX_CLK_ARES 19 +#define NSS_CC_PORT1_TX_CLK_ARES 20 +#define NSS_CC_PORT2_RX_CLK_ARES 21 +#define NSS_CC_PORT2_TX_CLK_ARES 22 +#define NSS_CC_PORT3_RX_CLK_ARES 23 +#define NSS_CC_PORT3_TX_CLK_ARES 24 +#define NSS_CC_PORT4_RX_CLK_ARES 25 +#define NSS_CC_PORT4_TX_CLK_ARES 26 +#define NSS_CC_PORT5_RX_CLK_ARES 27 +#define NSS_CC_PORT5_TX_CLK_ARES 28 +#define NSS_CC_PORT6_RX_CLK_ARES 29 +#define NSS_CC_PORT6_TX_CLK_ARES 30 +#define NSS_CC_EPHY_RX_CLK_ARES 31 +#define NSS_CC_EPHY_TX_CLK_ARES 32 +#define NSS_CC_UNIPHY_PORT1_RX_CLK_ARES 33 +#define NSS_CC_UNIPHY_PORT1_TX_CLK_ARES 34 +#define NSS_CC_UNIPHY_PORT2_RX_CLK_ARES 35 +#define NSS_CC_UNIPHY_PORT2_TX_CLK_ARES 36 +#define NSS_CC_UNIPHY_PORT3_RX_CLK_ARES 37 +#define NSS_CC_UNIPHY_PORT3_TX_CLK_ARES 38 +#define NSS_CC_UNIPHY_PORT4_RX_CLK_ARES 39 +#define NSS_CC_UNIPHY_PORT4_TX_CLK_ARES 40 +#define NSS_CC_UNIPHY_PORT5_RX_CLK_ARES 41 +#define NSS_CC_UNIPHY_PORT5_TX_CLK_ARES 42 +#define NSS_CC_UNIPHY_PORT6_RX_CLK_ARES 43 +#define NSS_CC_UNIPHY_PORT6_TX_CLK_ARES 44 +#define NSS_CC_EIP_CLK_ARES 45 +#define NSS_CC_NSSNOC_EIP_CLK_ARES 46 +#define NSS_CC_NSS_CSR_CLK_ARES 47 +#define NSS_CC_NSSNOC_NSS_CSR_CLK_ARES 48 +#define NSS_CC_DEBUG_CLK_ARES 49 + +#endif -- 2.43.0