From patchwork Fri Jan 20 14:16:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46368 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp227326wrn; Fri, 20 Jan 2023 06:26:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXsGZq8aXrhqFBvY3qFngDP6Mpgagk5RJuDqgyn4grmYX1/DMVEINJ9ueqptpMZyv2EcbuHr X-Received: by 2002:a17:902:8486:b0:189:e3d0:2682 with SMTP id c6-20020a170902848600b00189e3d02682mr15001511plo.30.1674224767896; Fri, 20 Jan 2023 06:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674224767; cv=none; d=google.com; s=arc-20160816; b=Y3h8gqPSYAW3kXTJKPFUmvlNLTNX/p1uPNoHWTF5nK6ZHzD8obZfPTN7OYCfdxMTSW RkeiH//N2ps7UTYY9FE2tGSTVdhPGIMKyNBwT6RS20Kn/WKREcC8op2bLA+xYMNZyrEK MzOKXRTV6Klr3GIu+5/BcWGCQ6OXG2flqlawhBi8C0yKJ0wCsZN9lueI4THsB+D4ZCYi BF/QfM5eHoMFa+M5byc34Xb1+oJhF5zG9Kb37eLIhCb7HmJ04UFbeC8rat+burSD49wu 3FpG14GPHEBIJmVjEQYHYa2XaN8ZY2Q5jkJa6d0lKQh/our2XE4onAoqZUQq1mBcGEAc LLyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pigy6jeTtpYZvby5td3Q68connby5clrqLgTZq1E9mQ=; b=Sr+XvrSVPAXGosswwChGvLeKMASi3n+HK1xiVH7DfObP8N04TwrjWu3+nsSN8l0+o/ 8ULe0+Wt/lU7tpQP4ZU9IOgk5VVemdu+83j6HUL1qllzUX5d6G3Wec9EEslmSDR9Z82s vWv9QxdtXfsVbAFDnuI/wlyomUjoqKnjwZwZE00qHnKpmOcJWYYtmPaBR9QmszP9ZdRM AYG4JdBhiCz9Vp4xVVQ+06iw35hHzby4Ec0OjkB0UWVf+A2Xdx/SYvfgFZisDbjdjAAl Sxs1x1C+umApCH7r9koUWvU1uJ6cAAmbqjb5F8KDPQjcANDVmm6AlGpbDKgBmxqk1/sx cFuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bkmqGezy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9-20020a170902ea0900b00192f6c63f54si46128712plg.502.2023.01.20.06.25.49; Fri, 20 Jan 2023 06:26:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bkmqGezy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbjATOUa (ORCPT + 99 others); Fri, 20 Jan 2023 09:20:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbjATOTg (ORCPT ); Fri, 20 Jan 2023 09:19:36 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72D72CE236; Fri, 20 Jan 2023 06:19:06 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KDrwlJ027270; Fri, 20 Jan 2023 14:17:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=pigy6jeTtpYZvby5td3Q68connby5clrqLgTZq1E9mQ=; b=bkmqGezys0pFWEEgunkbyTpwmniokXnAyqdS7yc71ODKdhsC17RoakNEQDuIGO3H1UK1 Jx+z47ouPEavp+akavcmO29MRxmExjbHQAZjZx0FuHN4Zu4VtLzSV+SF3lnXmirr4+NW F/tpfndCVGP/6zXHQ6CTbVnocKRhlIerIeoGivD+rb8tnJdDsBY9k78geDeZILdlxNw5 hU7umwv9w2caoOgGk1Dgt0gFJHhKNd9CDQkewmHT4vmaRSjF4JUtsxlVDZEkYL1kDm4O qzgdaHnbzS/kBZDdLdXEibrcf0O4GlSijjnEWrYAuVetdw9mqu8O7xte0Tyv5kE8A7Ho TA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n7nuxrpew-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 14:17:43 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30KEHhBY030011 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 14:17:43 GMT Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Fri, 20 Jan 2023 06:17:36 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v4 7/7] dt-bindings: remoteproc: qcom: sc7280-adsp-pil: Add missing properties Date: Fri, 20 Jan 2023 19:46:41 +0530 Message-ID: <1674224201-28109-8-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674224201-28109-1-git-send-email-quic_srivasam@quicinc.com> References: <1674224201-28109-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ZKqylEGabMjBZDyEHuVKMY3HhoeA7HkC X-Proofpoint-ORIG-GUID: ZKqylEGabMjBZDyEHuVKMY3HhoeA7HkC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 phishscore=0 mlxscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200135 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755551909993770269?= X-GMAIL-MSGID: =?utf-8?q?1755551909993770269?= Add reg-names and power-domain-names for remoteproc ADSP pheripheral loader. Add firmware-name property to distinguish and load different firmware binaries of various vendors. Change qcom,halt-regs property phandle to tcsr_1 from tcsr_mutex. Also add required-opps property and change power domain from LCX to CX, which is actual PD to be controlled, for setting appropriate performance state. This is to make compatible with remoteproc ADSP PIL driver and latest device tree changes. Fixes: 8490a99586ab ("dt-bindings: remoteproc: qcom: Add SC7280 ADSP support") Signed-off-by: Srinivasa Rao Mandadapu Reviewed-by: Krzysztof Kozlowski --- .../bindings/remoteproc/qcom,sc7280-adsp-pil.yaml | 30 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-adsp-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-adsp-pil.yaml index 94ca7a0..7addc7d 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-adsp-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-adsp-pil.yaml @@ -23,6 +23,11 @@ properties: - description: qdsp6ss register - description: efuse q6ss register + reg-names: + items: + - const: qdsp6ss_base + - const: lpass_efuse + iommus: items: - description: Phandle to apps_smmu node with sid mask @@ -57,7 +62,11 @@ properties: power-domains: items: - - description: LCX power domain + - description: CX power domain + + power-domain-names: + items: + - const: cx resets: items: @@ -73,6 +82,12 @@ properties: maxItems: 1 description: Reference to the reserved-memory for the Hexagon core + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: + The name of the firmware which should be loaded for this remote + processor. + qcom,halt-regs: $ref: /schemas/types.yaml#/definitions/phandle-array description: @@ -80,7 +95,7 @@ properties: four offsets within syscon for q6, modem, nc and qv6 halt registers. items: - items: - - description: phandle to TCSR_MUTEX registers + - description: phandle to TCSR_1 registers - description: offset to the Q6 halt register - description: offset to the modem halt register - description: offset to the nc halt register @@ -100,6 +115,10 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle description: Reference to the AOSS side-channel message RAM. + required-opps: + description: + A phandle to an OPP node describing required MMCX performance point. + glink-edge: $ref: qcom,glink-edge.yaml# type: object @@ -167,13 +186,16 @@ examples: <&gcc GCC_CFG_NOC_LPASS_CLK>; clock-names = "xo", "gcc_cfg_noc_lpass"; - power-domains = <&rpmhpd SC7280_LCX>; + power-domains = <&rpmhpd SC7280_CX>; + power-domain-names = "cx"; + + required-opps = <&rpmhpd_opp_nom>; resets = <&pdc_reset PDC_AUDIO_SYNC_RESET>, <&aoss_reset AOSS_CC_LPASS_RESTART>; reset-names = "pdc_sync", "cc_lpass"; - qcom,halt-regs = <&tcsr_mutex 0x23000 0x25000 0x28000 0x33000>; + qcom,halt-regs = <&tcsr_1 0x23000 0x25000 0x28000 0x33000>; memory-region = <&adsp_mem>;