From patchwork Wed Dec 6 14:35:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 174603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4146655vqy; Wed, 6 Dec 2023 06:36:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEegHYh48Gb4Ny+WQ1JMn2ZsXE1IXSD0wE26WP6noW9bv9JESD37zYAq9VNt0QP3J6iaHGz X-Received: by 2002:a05:6a21:6d83:b0:18b:fde7:71ac with SMTP id wl3-20020a056a216d8300b0018bfde771acmr836349pzb.60.1701873371404; Wed, 06 Dec 2023 06:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701873371; cv=none; d=google.com; s=arc-20160816; b=cFtOW5V0JVnpl/epuXw5AzpHpymDjNj1IdVjcCMigAkCFRTsj5lB6lfiWhe7eTOU0y Hj1FkWlxw1KpPC3X1m7Ds/GqgSUbJaRCY+nxMOrYITYn+92bPLo/V9q104iuRCUWg+hY 0dvXtkj3r4ZAC5e/TIS0nLQ7DvV1Qry8QlhCzn5Llos3NEAjnnYcImNyy4iD2n6maSDt D2V+ohvXB99NSphTXt3SYDaFHS8JpClMqmwNOb/lBoAj4G/Y5dmqe2HTH5PBn1cIS+XP AXV6NVrk2iC/aLjI5DThH2Xyi2dzIourfL3sMi2Qx8ExXy6od0LXtHscAZC4mdohdt75 Sfrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=zSAHOiDjyRqwPc9zqqOqQG05HXYA3HkbrsvV9T3NPok=; fh=XVwrmuid5EABPdgW6iX/SJIxmLhk+cynUENcWzZbMCQ=; b=VEEPnLjgIW3Lym4k6cxB4cvJnGFBYPRMlXxDeJiUOMIXdyUW8rF14AIVGRZH+dD8KJ UeqjXXb6aXpzL0NA7z8tupHZ0lKbXpfbIi5GdAots9fqT1Vo/MvceylcP0ylOXYLWkt9 VEAwEP16JL3zULulReTOgDek8B6WQpNZiXDqsPmzXvDk5rdKHu74MCJGj+eczhQn5cj+ S4lmko7gEi3FQD/4nMaEGu8EKiHySuA0ppJtqsN1rf9ZjsdLZc+dt6edCoa1vChPyS4d InciePSM7osJHfkzQtSP5fKk9UhEHD/moV/gSzS7vB436ZdRno2domaMB+HnHRwpzALQ 5uAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=lrHWrDAL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x31-20020a63171f000000b005c666162406si7220281pgl.565.2023.12.06.06.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:36:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=lrHWrDAL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CEDED8069F32; Wed, 6 Dec 2023 06:35:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378942AbjLFOfq (ORCPT + 99 others); Wed, 6 Dec 2023 09:35:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378925AbjLFOfj (ORCPT ); Wed, 6 Dec 2023 09:35:39 -0500 Received: from mx.kernkonzept.com (serv1.kernkonzept.com [IPv6:2a01:4f8:1c1c:b490::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79875D40; Wed, 6 Dec 2023 06:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernkonzept.com; s=mx1; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description; bh=zSAHOiDjyRqwPc9zqqOqQG05HXYA3HkbrsvV9T3NPok=; b=lrHWrDALDYQv8PqlWjl6yBc6PI DpibrXcRpoKkGEf8z93PRpQS5tHZTQfc+pMZ6vVp3x6XNA5v0TF+0/E2jGATADQlnel1MfMP5mpcR zQzRhHHwq88RyEiaAGuwmZ+XmZzR0VMQVTwv2sDe0BW/xV0P4SS40c3sIKyMKTv7+bVj5b3rRI7YH qmCBFsouvF/cK6xCPM490KpR7vJnKpv5tQSZj9tNYkOvk3GlstkF0ZyJYD8D02yBho/rFKfsPsWiL iQdBnQfR1RjtMPqvygWeb2ObNVyuEwwBeXbH0eP/X6WjBiCchvKwJK27Qlq2OTJT+XSn8FAxPj6EU wd64QgdA==; Received: from [10.22.3.24] (helo=serv1.dd1.int.kernkonzept.com) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) id 1rAt01-00AX1t-0T; Wed, 06 Dec 2023 15:35:41 +0100 From: Stephan Gerhold Date: Wed, 06 Dec 2023 15:35:29 +0100 Subject: [PATCH 1/2] dt-bindings: interconnect: Add Qualcomm MSM8909 DT bindings MIME-Version: 1.0 Message-Id: <20231206-icc-msm8909-v1-1-fe0dd632beff@kernkonzept.com> References: <20231206-icc-msm8909-v1-0-fe0dd632beff@kernkonzept.com> In-Reply-To: <20231206-icc-msm8909-v1-0-fe0dd632beff@kernkonzept.com> To: Georgi Djakov Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Skladowski , Stephan Gerhold X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 06:35:59 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784543572282679179 X-GMAIL-MSGID: 1784543572282679179 From: Adam Skladowski Add bindings for Qualcomm MSM8909 Network-On-Chip interconnect devices. Signed-off-by: Adam Skladowski [Stephan: Drop separate mm-snoc that exists downstream since it's actually the same NoC as SNoC in hardware] Signed-off-by: Stephan Gerhold Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/interconnect/qcom,rpm.yaml | 3 + include/dt-bindings/interconnect/qcom,msm8909.h | 93 ++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml index 08c1c6b9d7cf..5aaa92a7cef7 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml @@ -23,6 +23,9 @@ properties: compatible: enum: + - qcom,msm8909-bimc + - qcom,msm8909-pcnoc + - qcom,msm8909-snoc - qcom,msm8916-bimc - qcom,msm8916-pcnoc - qcom,msm8916-snoc diff --git a/include/dt-bindings/interconnect/qcom,msm8909.h b/include/dt-bindings/interconnect/qcom,msm8909.h new file mode 100644 index 000000000000..76365d8aec21 --- /dev/null +++ b/include/dt-bindings/interconnect/qcom,msm8909.h @@ -0,0 +1,93 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Qualcomm MSM8909 interconnect IDs + */ + +#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_MSM8909_H +#define __DT_BINDINGS_INTERCONNECT_QCOM_MSM8909_H + +/* BIMC fabric */ +#define MAS_APPS_PROC 0 +#define MAS_OXILI 1 +#define MAS_SNOC_BIMC_0 2 +#define MAS_SNOC_BIMC_1 3 +#define MAS_TCU_0 4 +#define MAS_TCU_1 5 +#define SLV_EBI 6 +#define SLV_BIMC_SNOC 7 + +/* PCNOC fabric */ +#define MAS_AUDIO 0 +#define MAS_SPDM 1 +#define MAS_DEHR 2 +#define MAS_QPIC 3 +#define MAS_BLSP_1 4 +#define MAS_USB_HS 5 +#define MAS_CRYPTO 6 +#define MAS_SDCC_1 7 +#define MAS_SDCC_2 8 +#define MAS_SNOC_PCNOC 9 +#define PCNOC_M_0 10 +#define PCNOC_M_1 11 +#define PCNOC_INT_0 12 +#define PCNOC_INT_1 13 +#define PCNOC_S_0 14 +#define PCNOC_S_1 15 +#define PCNOC_S_2 16 +#define PCNOC_S_3 17 +#define PCNOC_S_4 18 +#define PCNOC_S_5 19 +#define PCNOC_S_7 20 +#define SLV_TCSR 21 +#define SLV_SDCC_1 22 +#define SLV_BLSP_1 23 +#define SLV_CRYPTO_0_CFG 24 +#define SLV_MESSAGE_RAM 25 +#define SLV_PDM 26 +#define SLV_PRNG 27 +#define SLV_USB_HS 28 +#define SLV_QPIC 29 +#define SLV_SPDM 30 +#define SLV_SDCC_2 31 +#define SLV_AUDIO 32 +#define SLV_DEHR_CFG 33 +#define SLV_SNOC_CFG 34 +#define SLV_QDSS_CFG 35 +#define SLV_USB_PHY 36 +#define SLV_CAMERA_SS_CFG 37 +#define SLV_DISP_SS_CFG 38 +#define SLV_VENUS_CFG 39 +#define SLV_TLMM 40 +#define SLV_GPU_CFG 41 +#define SLV_IMEM_CFG 42 +#define SLV_BIMC_CFG 43 +#define SLV_PMIC_ARB 44 +#define SLV_TCU 45 +#define SLV_PCNOC_SNOC 46 + +/* SNOC fabric */ +#define MAS_QDSS_BAM 0 +#define MAS_BIMC_SNOC 1 +#define MAS_MDP 2 +#define MAS_PCNOC_SNOC 3 +#define MAS_VENUS 4 +#define MAS_VFE 5 +#define MAS_QDSS_ETR 6 +#define MM_INT_0 7 +#define MM_INT_1 8 +#define MM_INT_2 9 +#define MM_INT_BIMC 10 +#define QDSS_INT 11 +#define SNOC_INT_0 12 +#define SNOC_INT_1 13 +#define SNOC_INT_BIMC 14 +#define SLV_KPSS_AHB 15 +#define SLV_SNOC_BIMC_0 16 +#define SLV_SNOC_BIMC_1 17 +#define SLV_IMEM 18 +#define SLV_SNOC_PCNOC 19 +#define SLV_QDSS_STM 20 +#define SLV_CATS_0 21 +#define SLV_CATS_1 22 + +#endif /* __DT_BINDINGS_INTERCONNECT_QCOM_MSM8909_H */