From patchwork Thu Nov 24 18:43:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557010wrr; Thu, 24 Nov 2022 10:44:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oscqY/ayHGAvfW4FvspIxaIKeJ63R/nweXL+rK/dwjPSUlAVxzRExi8sRDFb3crKqEIZ3 X-Received: by 2002:a63:451a:0:b0:476:ea7d:294e with SMTP id s26-20020a63451a000000b00476ea7d294emr12315289pga.335.1669315468071; Thu, 24 Nov 2022 10:44:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315468; cv=none; d=google.com; s=arc-20160816; b=FYI47RZm8JusbBLXmOx8vv0/PxUDlNlRqAJaigMtNuRVyJCmcPGUe+gyWh+bXyH8SH dUrDDyotR1f3D4WWa/lcIzumg9COS0DqA1GXT3/h65anwmImwFNyiXaDGwiH2vrC+zKE kqSZldsX6iIe9g+AkVBV2QPIcmObIu+3c11BxbgUdhX4YZn232k2nTQos+gPUp2VMs1Y BdbB9yrt+TfetITVvD7et/GctIqp9SuKgt3c5kkS1s8/BbmJm/0CCroqiTHRztr+5kH5 hc4vhwRmbm4FB4N6TiSBOQaaTZHqO3IjF9eSkJfIEVWCLs4KJ54td5jLwdWkRwTlppx/ +g9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2nRilXNMejATHqCRSqUdhVZuc5XWTnwhyCKI7xkZLMk=; b=pFUSdcP7i/G078FVkmwu/bfuXzzMhJfRk9OLDj9YxH4R800jOenEoYn/z7kpSb9xEb ry13AigqEQndevYiJ/POs0xMSJ4Jc0mH1xVaYpXPpCEVpNpgjWVZVSJSY6B5k8NszP24 eGF4cKfB15BNT2NbKCMVrFulqeq0qjYi2FQ4YSuMfcq+wtHHdhDTaDBRmRl+exdJcY1V 0rC7cae5RgrV567NEYkAUsW+H9+7HiNIcokhlXoY7vpaeeTYotR8vKiS+T948KPZkx64 0Embzr4TTOfdjbiXxEYg/ASJopjuz+oQhdOiKfChB96IDsl2+S4ptxBO9RN8iiXu516W +wHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="U+Q/ZGQR"; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7-20020a630c47000000b0047757a4c275si1807246pgm.808.2022.11.24.10.44.14; Thu, 24 Nov 2022 10:44:28 -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=@linaro.org header.s=google header.b="U+Q/ZGQR"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbiKXSnu (ORCPT + 99 others); Thu, 24 Nov 2022 13:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbiKXSnr (ORCPT ); Thu, 24 Nov 2022 13:43:47 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ADB5FA71C for ; Thu, 24 Nov 2022 10:43:46 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id q7so2830330ljp.9 for ; Thu, 24 Nov 2022 10:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2nRilXNMejATHqCRSqUdhVZuc5XWTnwhyCKI7xkZLMk=; b=U+Q/ZGQRh+ciARUPs8rBICHV5ApE1U7SEvrBSdJ5qjUPyWHlGhFBnvKX5TmLQmc0Y8 YbmHuFewD5VFAnPFA4LcvDanVlN9rArajfpN+SlVHKiVmL4I9cE2FhapmeV/+9vHHreS JeRiDsXfG+/EZOluHIsbKXGsZ7XdiBltUZLlc20aY02lp7I4n9+Vo/dOiKobzHd34uKy GirAXRa7vnrBNr4tmpY3mQTi4MhSOFl9nJKfEflTgJ3zu5MYx/lbo2/uT6aP7ywWjPw1 yqZR460mxQYiYzlKfdfg1DzmA7K1mSZ3pLZH24CtTe+iug5L7glEkMsUdVlcwy4eWof2 l5yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2nRilXNMejATHqCRSqUdhVZuc5XWTnwhyCKI7xkZLMk=; b=PviCpd1+alVqvVOs96FAuY4u/l6NYrS8dOn1JXeb/P0mbW0ONqPPRHeKKnG/dtfuJn RDEWM96lcUpyaEqirqMJEhZFdkGoadwlGMvNkFZDBwHFZOX5mOZWRkDpYsziN60jW4Vz RtZaGGYshsSOuuxoV7gEQ1P3+kVoi+CV2ggMbQJqJHbbXC6J39qalQNYvlbQ+0kghOUx ViyTo7bALC0wniddn+b8C4rGEFRSmsglCBUEloq3IfLvVzzb/oRKyPnmHUKZbETF3f2e BpT0KU7Vmbx6R7tEncERcgW+UegYd9Ym3SwziBfKMBed1j7EkkrzvgJZYqusL61pGd/3 GIDg== X-Gm-Message-State: ANoB5plOMrxzWF1mQ09ocFIaLBi1NWAFkvZzvZFhhrZ1yMupgCo4x9vr rK0TW0CqjOl2d2f4xDTN3g67tg== X-Received: by 2002:a05:651c:213:b0:277:e01:610e with SMTP id y19-20020a05651c021300b002770e01610emr10427702ljn.181.1669315424541; Thu, 24 Nov 2022 10:43:44 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:44 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 01/15] arm64: dts: qcom: msm8996: drop address/size cells from smd-edge Date: Thu, 24 Nov 2022 19:43:19 +0100 Message-Id: <20221124184333.133911-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404136372451205?= X-GMAIL-MSGID: =?utf-8?q?1750404136372451205?= The smd-edge node does not have children with unit addresses: qcom/msm8996-oneplus3.dtb: remoteproc@9300000: smd-edge: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes since v2: 1. New patch. --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index d31464204f69..cc65f52bb80f 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -3426,8 +3426,7 @@ smd-edge { mboxes = <&apcs_glb 8>; qcom,smd-edge = <1>; qcom,remote-pid = <2>; - #address-cells = <1>; - #size-cells = <0>; + apr { power-domains = <&gcc HLOS1_VOTE_LPASS_ADSP_GDSC>; compatible = "qcom,apr-v2"; From patchwork Thu Nov 24 18:43:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3556986wrr; Thu, 24 Nov 2022 10:44:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf5sPyr8RNqfJsX8mjgBf4Jp+t46flge7RcSLr/JKfdmZBdBxKB9imgrVltdxDYUe35h5Eds X-Received: by 2002:a17:903:22c4:b0:17d:703b:d62b with SMTP id y4-20020a17090322c400b0017d703bd62bmr27345721plg.85.1669315462137; Thu, 24 Nov 2022 10:44:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315462; cv=none; d=google.com; s=arc-20160816; b=XBB9D7NDMeMe2pTmOul6uy08RH12//Z13iGtFZ94q3J3YWbXDAO26G087wfKXwVi11 QeTIyqnaHRmJmcVo3T4VtjucEIwktl69KqyYFxz0i0NCc1MBW/DlXrblcZwN0231q0qD fB5ls9FEvnb1ZFgX22Nrgheq4PPtQCpZa8UTv1VcZYu38a9Xh/Ce/BDflx+iGhiyeaQ6 hGjeOgZI1oGNZiO+H+AYjn6GpggJNe8oK/6MhraO42DBFZPiadMcpRnlMcA1Uwr5uWZk m4RfMwjRHeKGFbs9eAkue7m6wC9MGvhs2wtg+9p0F5Ki1xAAk6QHhuXcw77HGuMKiY3J dHvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w7fAfdGZJ4QQ0eAIGZU6uPWE4+p29HD6e1RtlTmr/Hk=; b=Az4SfoJXwtTdMj4PDJ8fUvi53jnQFvi3NZpQfiz+B7jujfZ5auI8iECoVrdBSc5yxO NauUzIuvObqSAsW/DDdXzC1vt9KaiHI3uRWYazhYKR8xXxWqbktup0nQWkgA4cSi6Rpn hqYAJ07JjAvsyGxNYl3xo32ljGttVSBSvR4aahceKAveLFeF7zvOWIw64x7Qg/hchjlo iyxUCwK2KwB/OqdRUdCs6C5qZbYzwNZqania68MbJtQCux31O7IK8DimIcgY59kIZBVg 8ylac6vRLcWicWKQ1lnoAq7ojNk3B8FUkD8z8ORSQ/1DFVL9EVS9ffNvZQ7yqNaQhNF+ S06Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KwaG+BwT; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a62cd09000000b00546ce9189b1si1662038pfg.65.2022.11.24.10.44.09; Thu, 24 Nov 2022 10:44:22 -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=@linaro.org header.s=google header.b=KwaG+BwT; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbiKXSn4 (ORCPT + 99 others); Thu, 24 Nov 2022 13:43:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiKXSns (ORCPT ); Thu, 24 Nov 2022 13:43:48 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309BC10CEBD for ; Thu, 24 Nov 2022 10:43:47 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id c1so3682748lfi.7 for ; Thu, 24 Nov 2022 10:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w7fAfdGZJ4QQ0eAIGZU6uPWE4+p29HD6e1RtlTmr/Hk=; b=KwaG+BwTeIrxnQVvMPAylzBNcKGaHh2obrbXAQfyROv8ySuEeR1leKfufof4yzbKBZ cv6P8aIYOdD+I8uZiKyVEZXMaE2rvMgeNLuR/nQNRAa4ledJ2JWYdiBaZThgmS1u7nQb mZ6Wbz7mNt+TtQ58tpGQZeuY0tzmQncevopsdcTKVk6yRX2IBiE/yPk/ZCu6vHGF9P0Z o1Wq/haHociLwqBMtth8Q8WyLI3wA/lI32yJHdIsJsAqLM7T2CUoIQlMpRBJ7TPnF1SF nBbgdFQMZQQ2S59ex5qe9yjMbqmzhzBTKF+FDdqsOqw9ox9e41XRCqhuOUzFFdn6NRN5 yHdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w7fAfdGZJ4QQ0eAIGZU6uPWE4+p29HD6e1RtlTmr/Hk=; b=C1SNBV3r+iLrhq6o2Ov8rvOfgwkihPOZ9GuUhTnbLWWknKsEOvYlbf0Zuz8jpnkgaz g9pjthQkIlP0GojM5QtW0H1q/pQibGm8CxZqke226vj+tXnLsBjuIU1mGE0JlN+uIdow DLxUukl2yNQ4YndNXJXyAlh/fgs5mZ70tNh2DB/Kt5LjzoLAg5vaNd9mxLE5B89uvtEZ ynm+d5ntzOX7a5NJ1/XXl3sRBI67M0OFsJ6Eki79Txz4LqX2yCG3P6yIcqiSuHjep6cF QtVi8tbFitXRYJGgSx84in02vYa88rm1FwspBxuG3Jun1CCirFLtcg9vYEmXnWN1z2eX VX/g== X-Gm-Message-State: ANoB5pkP9GuNUk+GL1VQtfgY2VuROmo6Bg8AlZqfEbRBUho53XAUSdH4 xjHCXiueYe+jXY+h1jCTb9bdNg== X-Received: by 2002:ac2:47ec:0:b0:4a7:8b6b:2320 with SMTP id b12-20020ac247ec000000b004a78b6b2320mr4818704lfp.267.1669315425554; Thu, 24 Nov 2022 10:43:45 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:45 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 02/15] arm64: dts: qcom: qcs404: align CDSP PAS node with bindings Date: Thu, 24 Nov 2022 19:43:20 +0100 Message-Id: <20221124184333.133911-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404129558763109?= X-GMAIL-MSGID: =?utf-8?q?1750404129558763109?= The QCS404 CDSP remote processor can be brought to life using two different bindings: 1. qcom,qcs404-cdsp-pas - currently used in DTSI. 2. qcom,qcs404-cdsp-pil. Comment out the properties related to qcom,qcs404-cdsp-pil (qcom,halt-regs, resets and additional clocks), to silence DT schema warnings. Signed-off-by: Krzysztof Kozlowski --- Changes since v2: 1. New patch. --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 46 +++++++++++++++------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index a5324eecb50a..78a8ab29a0a9 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -485,27 +485,31 @@ remoteproc_cdsp: remoteproc@b00000 { interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; - clocks = <&xo_board>, - <&gcc GCC_CDSP_CFG_AHB_CLK>, - <&gcc GCC_CDSP_TBU_CLK>, - <&gcc GCC_BIMC_CDSP_CLK>, - <&turingcc TURING_WRAPPER_AON_CLK>, - <&turingcc TURING_Q6SS_AHBS_AON_CLK>, - <&turingcc TURING_Q6SS_AHBM_AON_CLK>, - <&turingcc TURING_Q6SS_Q6_AXIM_CLK>; - clock-names = "xo", - "sway", - "tbu", - "bimc", - "ahb_aon", - "q6ss_slave", - "q6ss_master", - "q6_axim"; - - resets = <&gcc GCC_CDSP_RESTART>; - reset-names = "restart"; - - qcom,halt-regs = <&tcsr 0x19004>; + clocks = <&xo_board>; + clock-names = "xo"; + + /* + * If the node was using the PIL binding, then include properties: + * clocks = <&xo_board>, + * <&gcc GCC_CDSP_CFG_AHB_CLK>, + * <&gcc GCC_CDSP_TBU_CLK>, + * <&gcc GCC_BIMC_CDSP_CLK>, + * <&turingcc TURING_WRAPPER_AON_CLK>, + * <&turingcc TURING_Q6SS_AHBS_AON_CLK>, + * <&turingcc TURING_Q6SS_AHBM_AON_CLK>, + * <&turingcc TURING_Q6SS_Q6_AXIM_CLK>; + * clock-names = "xo", + * "sway", + * "tbu", + * "bimc", + * "ahb_aon", + * "q6ss_slave", + * "q6ss_master", + * "q6_axim"; + * resets = <&gcc GCC_CDSP_RESTART>; + * reset-names = "restart"; + * qcom,halt-regs = <&tcsr 0x19004>; + */ memory-region = <&cdsp_fw_mem>; From patchwork Thu Nov 24 18:43:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25680 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557114wrr; Thu, 24 Nov 2022 10:44:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7eOH1smM4kOkEa/VNjvNWGiZHA6XsuTXDbc5epp7qqadfWh0rLvEppyhU6MJH33uoeY26X X-Received: by 2002:a17:90a:5d08:b0:218:770c:9a40 with SMTP id s8-20020a17090a5d0800b00218770c9a40mr19660088pji.158.1669315481353; Thu, 24 Nov 2022 10:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315481; cv=none; d=google.com; s=arc-20160816; b=0XrlZmrcl8y1p2+XeZkX6f064UgKubs0+mRxoOHZynr/VeXxHzUkz0Sa7xsb8eHGUf 38tMORXnwsHz2QWYvK09dW/cTwrJ46osaWHLrlcBFJXec0yVx/BcaSVEcOREiBV3+Leq bLETmiLuQodv2jEVdFXQ0+TW3tt9UtoHhqIG+QIQk/3zpdvTTqb/HrRG8xMkMQgUfe/k RjdaGjwmnZK+JzAFmUYeULWGdN4xAKYaBgR3tsOfrdWE4p4j+DS05ZiFd/f+Ino2f7qT /HDlTtTGXdlrKYZHefd86nWd/cRdGkFBB/4P6fVMmqc6L5lw/SP7EZ/Ddh6WQFp69axr oLug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6k+aoS4UuwYo0m81AUVMx1TIZkrsLmdIxsoe7vzM7Yo=; b=gjax4tXFjm9ycWUq9/p79xSf9+ZgChd2WUzwSKapabHIgi/gNt5NrDRh7SJbaeIDgD Rr4aZv449Nx/CsVEOVdXwwKJsf0S5zc8IbgFi1ZJtgHNydCeptdiHvPxzU/O0yEOsH3d fQs15BiFX1jLAB/DZnRzfjEMan/NZgkdlyNBFlKSUS5+GIN2ToC9/24IHcNTHdfhywsv kRLVzdGmZUDqNTzNUFhcb++f2eG1KzZ7RsZ9C04MLdmW8QpZG/5kyUNWOpXBVyff+Uhq 3/AVVr5InpW9a99S31KpiBGTEQZOG4jaBWxWosYzF05IaeDS/kUkxzdknFwsF/O6jftk 5qtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eTyYHGjU; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a63ef46000000b0047771668718si1910587pgk.479.2022.11.24.10.44.28; Thu, 24 Nov 2022 10:44:41 -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=@linaro.org header.s=google header.b=eTyYHGjU; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbiKXSoA (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiKXSnt (ORCPT ); Thu, 24 Nov 2022 13:43:49 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88FA7F8840 for ; Thu, 24 Nov 2022 10:43:48 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id a7so2819763ljq.12 for ; Thu, 24 Nov 2022 10:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6k+aoS4UuwYo0m81AUVMx1TIZkrsLmdIxsoe7vzM7Yo=; b=eTyYHGjUKEGVLe34c/jiZvrXxKM1NYrswOoO/rT1OMKfFp6wKIKzXYMNRLpVoP22qk Fu2xHI/pGVV9xXceXOFlN6dJyQpwvLoyKdF0jHG7spYk7h22bYpmbl82SZi3+vQSDvdP S8dv1OI8LfS57bmC0uT8Gd3lB4BcyHeXZbX3Xptt21qAV74/rmfrjcWYjv0dMtpfkD7c 6nQxL7NmROhMb8cHemJbgmJdTO4KcikOeHaU3IQDvvgWu7e0fAXoL/izKce2lV0Yw8Gj 7cqoKCiHBgFMoNj5JVJtQXucR7lDFLQCuPRX5kdwFKbUhHpwC0T1vTGFIqHdWPEHkgdu RLIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6k+aoS4UuwYo0m81AUVMx1TIZkrsLmdIxsoe7vzM7Yo=; b=dLgb0YZ8A4Wm3u3Q2BDeR1+pSc+d8pxXSBzCnh5dYxjCe5Ej6AhcadDgy20Of8bEWM fWTT5Fig3i/KbKq/Z0e6B0VVrQJoxAtm0ej9UU7sNtTPQQ43+9ZPYPjy5AVifmuOL1CX jSXln8vWQbBkY2qvxG2tnVbnjkW871A+hRdRceNsVqUheA8uTMI37yr3P6bKhaLzrrrW EkUkfLUH2534OIVoDI7jk+PeVlbEpIJi3OwSlU+f+nXq2mo4QJVDk/ZCpmcxALGthqw0 zXiBLjA4E/2GoTR/KrK7VnNQqsAYJVXtbR2/kA2sEitRzf95/1ZJ+4b8S80+hStNK06k 35pA== X-Gm-Message-State: ANoB5pkxcOBq+gHrjGs7E9RQeqbgxff0QyFpeo6J62TfRoPRyvjdKxlj UYtPqR+BP1BFUyC2ndOM+cj4NA== X-Received: by 2002:a2e:350d:0:b0:277:10b2:47e5 with SMTP id z13-20020a2e350d000000b0027710b247e5mr10583674ljz.502.1669315426794; Thu, 24 Nov 2022 10:43:46 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:46 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 03/15] arm64: dts: qcom: sc7180: align MPSS PAS node with bindings Date: Thu, 24 Nov 2022 19:43:21 +0100 Message-Id: <20221124184333.133911-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404150014545450?= X-GMAIL-MSGID: =?utf-8?q?1750404150014545450?= The SC7180 MPSS/MSS remote processor can be brought to life using two different bindings: 1. qcom,sc7180-mpss-pas - currently used in DTSI 2. qcom,sc7180-mss-pil Move the properties related to qcom,sc7180-mss-pil (qcom,halt-regs, qcom,spare-regs, resets, additional clocks and regs) to specific boards using the PIL, to silence DT schema warnings. Signed-off-by: Krzysztof Kozlowski --- Changes since v2: 1. New patch. --- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 18 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 18 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 20 +++----------------- 3 files changed, 39 insertions(+), 17 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b/arch/arm64/boot/dts/qcom/sc7180-idp.dts index 70fd9ff8dfa2..b27b5f0e2b6b 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts @@ -370,8 +370,26 @@ &qupv3_id_1 { &remoteproc_mpss { status = "okay"; compatible = "qcom,sc7180-mss-pil"; + reg = <0 0x04080000 0 0x4040>, <0 0x04180000 0 0x48>; + reg-names = "qdsp6", "rmb"; + + clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>, + <&gcc GCC_MSS_NAV_AXI_CLK>, + <&gcc GCC_MSS_SNOC_AXI_CLK>, + <&gcc GCC_MSS_MFAB_AXIS_CLK>, + <&rpmhcc RPMH_CXO_CLK>; + clock-names = "iface", "bus", "nav", "snoc_axi", "mnoc_axi", "xo"; + iommus = <&apps_smmu 0x461 0x0>, <&apps_smmu 0x444 0x3>; memory-region = <&mba_mem &mpss_mem>; + + resets = <&aoss_reset AOSS_CC_MSS_RESTART>, + <&pdc_reset PDC_MODEM_SYNC_RESET>; + reset-names = "mss_restart", "pdc_reset"; + + qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>; + qcom,spare-regs = <&tcsr_regs_2 0xb3e4>; }; &sdhc_1 { diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index 65601bea0797..d968fbce4b89 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -851,12 +851,30 @@ &qupv3_id_1 { &remoteproc_mpss { status = "okay"; compatible = "qcom,sc7180-mss-pil"; + reg = <0 0x04080000 0 0x4040>, <0 0x04180000 0 0x48>; + reg-names = "qdsp6", "rmb"; + + clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>, + <&gcc GCC_MSS_NAV_AXI_CLK>, + <&gcc GCC_MSS_SNOC_AXI_CLK>, + <&gcc GCC_MSS_MFAB_AXIS_CLK>, + <&rpmhcc RPMH_CXO_CLK>; + clock-names = "iface", "bus", "nav", "snoc_axi", "mnoc_axi", "xo"; + iommus = <&apps_smmu 0x461 0x0>, <&apps_smmu 0x444 0x3>; memory-region = <&mba_mem &mpss_mem>; /* This gets overridden for SKUs with LTE support. */ firmware-name = "qcom/sc7180-trogdor/modem-nolte/mba.mbn", "qcom/sc7180-trogdor/modem-nolte/qdsp6sw.mbn"; + + resets = <&aoss_reset AOSS_CC_MSS_RESTART>, + <&pdc_reset PDC_MODEM_SYNC_RESET>; + reset-names = "mss_restart", "pdc_reset"; + + qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>; + qcom,spare-regs = <&tcsr_regs_2 0xb3e4>; }; &sdhc_1 { diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index ea886cf08b4d..5be978c44c0d 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -1929,8 +1929,7 @@ pri_mi2s_mclk_active: pri-mi2s-mclk-active-state { remoteproc_mpss: remoteproc@4080000 { compatible = "qcom,sc7180-mpss-pas"; - reg = <0 0x04080000 0 0x4040>, <0 0x04180000 0 0x48>; - reg-names = "qdsp6", "rmb"; + reg = <0 0x04080000 0 0x4040>; interrupts-extended = <&intc GIC_SPI 266 IRQ_TYPE_EDGE_RISING>, <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, @@ -1941,14 +1940,8 @@ remoteproc_mpss: remoteproc@4080000 { interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack", "shutdown-ack"; - clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, - <&gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>, - <&gcc GCC_MSS_NAV_AXI_CLK>, - <&gcc GCC_MSS_SNOC_AXI_CLK>, - <&gcc GCC_MSS_MFAB_AXIS_CLK>, - <&rpmhcc RPMH_CXO_CLK>; - clock-names = "iface", "bus", "nav", "snoc_axi", - "mnoc_axi", "xo"; + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; power-domains = <&rpmhpd SC7180_CX>, <&rpmhpd SC7180_MX>, @@ -1962,13 +1955,6 @@ remoteproc_mpss: remoteproc@4080000 { qcom,smem-states = <&modem_smp2p_out 0>; qcom,smem-state-names = "stop"; - resets = <&aoss_reset AOSS_CC_MSS_RESTART>, - <&pdc_reset PDC_MODEM_SYNC_RESET>; - reset-names = "mss_restart", "pdc_reset"; - - qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>; - qcom,spare-regs = <&tcsr_regs_2 0xb3e4>; - status = "disabled"; glink-edge { From patchwork Thu Nov 24 18:43:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557050wrr; Thu, 24 Nov 2022 10:44:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ArnNlLjYemFhbnRQG+ovQDZJbv9VcjVm5Fr9t3k37zWapLYPIhNFQKCWEISaRgq7pyR2d X-Received: by 2002:a65:4d43:0:b0:470:8e8a:e7fe with SMTP id j3-20020a654d43000000b004708e8ae7femr17106008pgt.215.1669315473763; Thu, 24 Nov 2022 10:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315473; cv=none; d=google.com; s=arc-20160816; b=hW0yx0r14mQ6Um8kSpCEwKqFWFQBlAzff4u2uy9w1ZlvPJgz5ahRcWJ1xAMu/IDeHU ItRnRjHlhv7X6Hee0GxbOK0eCTzh7WGBxkdxbUjNAzG8DnXB0CqJ+r372N+tJNRvL+vp HN7djdPVygCaVLijDa6Zs1zg2CfNu9psyi2UJwlK0QStx7e0SC/Jbk1vXD2BBcqt9Ww1 ubEZ+9HsRVf0LQK+B6rA87Wc0WuvfgFAaen8hun+mi/uEJDLZIyudQaLduM3HBp5dKaE 7dgH/Pno7LEurIQghMxWGXVqTCd5oWws4/PYH91zMuFBmoU328TjKdfLkQws9+xTE+NZ ZhyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4/vhQQuptZXZHh0zdNwc0t76Wroztku6hKJUXWw2b90=; b=YjlIGret2JhL3X0AZ63EoEyTsINWQM3UCFArmLZl/JwFV4uumA+I/QnNolp0kSkOqP akkG0BwDHs3cz37gddca2wpUFY3EmhiCa7DWypEVG18WPO/cicAxTlh1LaGYYylNbeL+ mli/iv8SZb0C4SB4icrCbS0QefGWbDiQ28rinR2lYNEUmon8LHaY50sSSvRqjaAmTybi cdXHAx1lZYhMDMi1XkbfB03PUSN4vv0atQ4vUDGb2MYRdckR4UsPOkLpZ/dVDpwepl3m LzcfRkTeC5dG+dvSaTTTEFleWYn0M44+2ShMFf2UpdZuhLzfO/6Z/CbMtMyBS00blCEY yGUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F0ehGTny; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a056a00182600b00571855d566asi653482pfa.10.2022.11.24.10.44.20; Thu, 24 Nov 2022 10:44:33 -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=@linaro.org header.s=google header.b=F0ehGTny; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbiKXSoC (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbiKXSnu (ORCPT ); Thu, 24 Nov 2022 13:43:50 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D70B11E72F for ; Thu, 24 Nov 2022 10:43:49 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id j16so3651499lfe.12 for ; Thu, 24 Nov 2022 10:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4/vhQQuptZXZHh0zdNwc0t76Wroztku6hKJUXWw2b90=; b=F0ehGTnybTIURATNH1Et69zsXPiT7yvKob/MSkGUieowc+fK9mDM1kmqWE/f+jzlxY cKROonksYgRIxIyZnbChORTTYfoIpGXib4+9tB3xwit6tRuKYw+Jxl83TrRckG/Mlomm M5XgDuR+hdZc1x3j9V3xFR2PBk2FxUuMZEass9rYIFeHSaqjHs1/stQpj1jCS0QhFbPy ZR+cAc+4u0khnc163GvP8IPjvUxaFzTHuLvVPCjqWPMDlEy0yAVWQhPrgH9W8KX7+zdM EtYCaan/HtwHkUhLkJr2ic4dtYZ3O86drsIqKfBbio4S++u8ySKMh9T1gjTig9osa8AF MFdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4/vhQQuptZXZHh0zdNwc0t76Wroztku6hKJUXWw2b90=; b=WBs/n4+KLsjoH+JTWxEis3cHQfwAWye5alnSSud+YRhkKo2copJAUyFEnHPCDbRXG6 TokNkQ6PT0f+aIZ4H1D+m43t2NatJ8rGrJSXI8WI3C4amgPfYPSOQRnuIyjuI1cTH3FB m5QElQN1tmCa3OjQ7qSr7ERo8U8k3lW7WTOsXiOB2zb/ZV+jnl0c8eYl120lyxxYq6q1 /axGW45d62U8J5OxhI68aOPznnbqeyWjaf0HiYmZ1t4HXvEWzLbuQY78kRPNSSPEuAAU ZIOTR5CvYw5toNdCWGLpcivvpBX0ubygrX0SLoHejyAku3Z5wScIrI1yyC3joip45N7u dJgg== X-Gm-Message-State: ANoB5pnnW93LBHRjCcEt1tPXEPzeGbx2CS55TWfyR3BMwijoB6cYD/4B 0TTz+fdEbWzVG1JghZZU8TYLHw== X-Received: by 2002:a19:5e01:0:b0:4a2:2b5d:b95d with SMTP id s1-20020a195e01000000b004a22b5db95dmr11129078lfb.589.1669315427894; Thu, 24 Nov 2022 10:43:47 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:47 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 04/15] arm64: dts: qcom: sc7280: align MPSS PAS node with bindings Date: Thu, 24 Nov 2022 19:43:22 +0100 Message-Id: <20221124184333.133911-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404141875236173?= X-GMAIL-MSGID: =?utf-8?q?1750404141875236173?= The SC7180 MPSS/MSS remote processor can be brought to life using two different bindings: 1. qcom,sc7280-mpss-pas - currently used in DTSI 2. qcom,sc7280-mss-pil Move the properties related to qcom,sc7180-mss-pil (qcom,halt-regs, qcom,ext-regs, qcom,qaccept-regs, resets and additional clocks) to specific board using the PIL, to silence DT schema warnings. Signed-off-by: Krzysztof Kozlowski --- Changes since v2: 1. New patch. --- .../boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi | 17 +++++++++++++++++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 16 ++-------------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi index ad66e5e9db4e..bf522a64b172 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi @@ -22,11 +22,28 @@ mba_mem: memory@9c700000 { &remoteproc_mpss { compatible = "qcom,sc7280-mss-pil"; + + clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_MSS_OFFLINE_AXI_CLK>, + <&gcc GCC_MSS_SNOC_AXI_CLK>, + <&rpmhcc RPMH_PKA_CLK>, + <&rpmhcc RPMH_CXO_CLK>; + clock-names = "iface", "offline", "snoc_axi", "pka", "xo"; + iommus = <&apps_smmu 0x124 0x0>, <&apps_smmu 0x488 0x7>; interconnects = <&mc_virt MASTER_LLCC 0 &mc_virt SLAVE_EBI1 0>; memory-region = <&mba_mem>, <&mpss_mem>; firmware-name = "qcom/sc7280-herobrine/modem/mba.mbn", "qcom/sc7280-herobrine/modem/qdsp6sw.mbn"; + + resets = <&aoss_reset AOSS_CC_MSS_RESTART>, + <&pdc_reset PDC_MODEM_SYNC_RESET>; + reset-names = "mss_restart", "pdc_reset"; + + qcom,halt-regs = <&tcsr_1 0x3000 0x5000 0x8000 0x13000>; + qcom,ext-regs = <&tcsr_2 0x10000 0x10004 &tcsr_1 0x6004 0x6008>; + qcom,qaccept-regs = <&tcsr_1 0x3030 0x3040 0x3020>; + status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 448879d3d5cd..da3775677640 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2751,12 +2751,8 @@ remoteproc_mpss: remoteproc@4080000 { interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack", "shutdown-ack"; - clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, - <&gcc GCC_MSS_OFFLINE_AXI_CLK>, - <&gcc GCC_MSS_SNOC_AXI_CLK>, - <&rpmhcc RPMH_PKA_CLK>, - <&rpmhcc RPMH_CXO_CLK>; - clock-names = "iface", "offline", "snoc_axi", "pka", "xo"; + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; power-domains = <&rpmhpd SC7280_CX>, <&rpmhpd SC7280_MSS>; @@ -2769,14 +2765,6 @@ remoteproc_mpss: remoteproc@4080000 { qcom,smem-states = <&modem_smp2p_out 0>; qcom,smem-state-names = "stop"; - resets = <&aoss_reset AOSS_CC_MSS_RESTART>, - <&pdc_reset PDC_MODEM_SYNC_RESET>; - reset-names = "mss_restart", "pdc_reset"; - - qcom,halt-regs = <&tcsr_1 0x3000 0x5000 0x8000 0x13000>; - qcom,ext-regs = <&tcsr_2 0x10000 0x10004 &tcsr_1 0x6004 0x6008>; - qcom,qaccept-regs = <&tcsr_1 0x3030 0x3040 0x3020>; - status = "disabled"; glink-edge { From patchwork Thu Nov 24 18:43:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25679 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557073wrr; Thu, 24 Nov 2022 10:44:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TY+aAWze9fyrsi53plxIK2IatIt8lA83QCDn42f+zCtrh2lPn9V5w/Ia9Dyf8iwWDDtu1 X-Received: by 2002:a05:6a00:18a9:b0:572:6da6:218e with SMTP id x41-20020a056a0018a900b005726da6218emr15357464pfh.1.1669315476596; Thu, 24 Nov 2022 10:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315476; cv=none; d=google.com; s=arc-20160816; b=TUzfyFYRNsyqiQTJavvO+mg4blaFry9IrxJB7vCwCwhQeAR/4b81QrkeHVKZXJatFw v0rLJrmGr4gX8wfnzRZPBaNU6I0F73mYeiRDQoGxWwOBhHQAN1xc4naRE90Cq61scBtw LAfY+uDFIcmeAFqQZMeEJO0ESK34edEw0C61BWUx7kKOKTmsa7BBDnOM7+WX0QYSMXkw PA4fnk5hWqZapxKzyC8SWyBgDvZgmHaTOfeAn2FPNLgrlpYvYuAo4pqfwrWIJDZ0xC/w tO4jxvLTsr4MCcPPsXMGfz/kN751tKURvsl2XbzvkAx1/z3hwNZNZv/1bw57R7U0oJjM YvsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lEQC5O/KyRkWXHWn2kAQcPwkvnFfret4cFEbPNTIXf8=; b=TkuFVfgn25h71J89fTSOxzpjEh9laKiXeItr/mR79dWWFl0asCMSkn3su7Vte1B0ic e4APl93qkhvvX38V80sWCx9amU2GZZq6zXMZNloUFWIN+Tn4In6IR4AqSAb0FipIcYc6 77+/7NIOnJsuAVIio4RIlSCv8sfjHwAr2x3l12RQaf03ZaAKWtiGwSpkjyj60XnRtX7n otFwEQ5GnGV0ktHwdgz8iHrF5s8q0anpbhOWRHIKhZV42QAnFfSaJv+1g3X2jvTriab6 jGel7q+5U4JjhV8t0hLgp79/GLINudBMZOqTQEtIyqogModnRomZVM7bo6Yx6NQ2zMDW fYBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xaPVbvte; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 190-20020a6206c7000000b0052dd9f10a47si1467560pfg.363.2022.11.24.10.44.22; Thu, 24 Nov 2022 10:44:36 -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=@linaro.org header.s=google header.b=xaPVbvte; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229903AbiKXSoF (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbiKXSnv (ORCPT ); Thu, 24 Nov 2022 13:43:51 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE63129C06 for ; Thu, 24 Nov 2022 10:43:50 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id j4so3737816lfk.0 for ; Thu, 24 Nov 2022 10:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lEQC5O/KyRkWXHWn2kAQcPwkvnFfret4cFEbPNTIXf8=; b=xaPVbvted/OoZuAvvNKLO4MsbnShtocpbMHJLqCnCWyaTlmwwSM69jG2A1tGfqSxbO LdXHOs9MwV++ii6HW4bYfnMdPBuiB3HTMRynYkptxgegrVdh7rvzXmlKLNS20LrCIbha RQdN6FyIIsnzB1e3t1/7gJ6XzAD4R1hu8RNGqmz9vZl64DvecGSkixYP2Ax2aaXmkUeu RhDtkXan5ogKW5ESz1hgT4OjJ96x5a1Wgl2XBugtBRXOWOo3xddhNfFf2MoqZnxs3Lx9 X9EYqzvkkp1lb04qZ//KIVyauM5ahOiawMAzCYfUgOM0mkWnL1cdj9mnO8S7wkoR9rmd vgJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lEQC5O/KyRkWXHWn2kAQcPwkvnFfret4cFEbPNTIXf8=; b=No6wdXRepcZZlvUBSz49r7r7ocnjRONt2JUQ/xu1gTcIqlCWoUDSTCbUFlDeeaQUV2 2la/B9JkNMtNk39jJUCIpFfwTTT9jhuKEAeQIOPxSRp6J1wtOBevkKJFBcLHsRVZQiNQ 69Yt+h10XLHsBqsYa8RUq3+hi5+6SI7HAoR0M1WqHTk8QSfjFIe/XBXLDmG0xcKyUcpn ytyClScyP/4UnAO2tTWtieZTktqreu3bveQtEWSrl88RBLyH38T9tSJngkvZR7QT+z58 dVCoPwMEhDL2rA+QHz1uRGERzsxL6Bf+wWHW/JlVJ0H7wtFbYbdUZfbOqoAS5kIET1Ja PfZQ== X-Gm-Message-State: ANoB5pn5HJ1EnWVKaKYflf0REfP8+TYrx/mgVWHZHNFLxeUR50ecI9EL MswZymV2A72Vdo0oGoIYWqb5Uw== X-Received: by 2002:a19:4943:0:b0:4b4:ec76:17d with SMTP id l3-20020a194943000000b004b4ec76017dmr2630115lfj.63.1669315428919; Thu, 24 Nov 2022 10:43:48 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:48 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 05/15] dt-bindings: remoteproc: qcom,adsp: drop resets and qcom,halt-regs Date: Thu, 24 Nov 2022 19:43:23 +0100 Message-Id: <20221124184333.133911-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404145542237619?= X-GMAIL-MSGID: =?utf-8?q?1750404145542237619?= Some remote processors (e.g. QCS404 CDSP, SC7180 MPSS/MSS) can be brought to life using two different bindings: 1. PIL (Peripheral Image Loader) 2. PAS (Peripheral Authentication Service) They still describe the same hardware - firmware load for remote processor - but use different methods to communicate with that processor. For these SoCs, the qcom,adsp.yaml bindings were describing the PAS method, however for easier customization of board DTS, the bindings combined additional properties from PIL: reset lines, qcom,halt-regs and additional clocks. The devices and Linux kernel drivers, when instantiated as PAS, do not use these properties, so drop them from the bindings. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. New patch --- .../bindings/remoteproc/qcom,adsp.yaml | 113 +----------------- 1 file changed, 4 insertions(+), 109 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index db9e0f0c2bea..e3e617315aef 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -61,11 +61,11 @@ properties: clocks: minItems: 1 - maxItems: 8 + maxItems: 2 clock-names: minItems: 1 - maxItems: 8 + maxItems: 2 interconnects: maxItems: 1 @@ -90,14 +90,6 @@ properties: - const: stop-ack - const: shutdown-ack - resets: - minItems: 1 - maxItems: 3 - - reset-names: - minItems: 1 - maxItems: 3 - cx-supply: description: Phandle to the CX regulator @@ -135,18 +127,6 @@ properties: items: - const: stop - qcom,halt-regs: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: Phandle reference to a syscon representing TCSR - - description: offsets within syscon for q6 halt registers - - description: offsets within syscon for modem halt registers - - description: offsets within syscon for nc halt registers - description: - Phandle reference to a syscon representing TCSR followed by the - three offsets within syscon for q6, modem and nc halt registers. - smd-edge: $ref: /schemas/remoteproc/qcom,smd-edge.yaml# description: @@ -184,7 +164,9 @@ allOf: - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - qcom,qcs404-adsp-pas + - qcom,qcs404-cdsp-pas - qcom,qcs404-wcss-pas + - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas - qcom,sc8180x-adsp-pas - qcom,sc8180x-cdsp-pas @@ -238,60 +220,6 @@ allOf: - const: xo - const: aggre2 - - if: - properties: - compatible: - contains: - enum: - - qcom,qcs404-cdsp-pas - then: - properties: - clocks: - items: - - description: XO clock - - description: SWAY clock - - description: TBU clock - - description: BIMC clock - - description: AHB AON clock - - description: Q6SS SLAVE clock - - description: Q6SS MASTER clock - - description: Q6 AXIM clock - clock-names: - items: - - const: xo - - const: sway - - const: tbu - - const: bimc - - const: ahb_aon - - const: q6ss_slave - - const: q6ss_master - - const: q6_axim - - - if: - properties: - compatible: - contains: - enum: - - qcom,sc7180-mpss-pas - then: - properties: - clocks: - items: - - description: XO clock - - description: IFACE clock - - description: BUS clock - - description: NAC clock - - description: SNOC AXI clock - - description: MNOC AXI clock - clock-names: - items: - - const: xo - - const: iface - - const: bus - - const: nav - - const: snoc_axi - - const: mnoc_axi - - if: properties: compatible: @@ -520,39 +448,6 @@ allOf: items: - const: nsp - - if: - properties: - compatible: - contains: - enum: - - qcom,qcs404-cdsp-pas - then: - properties: - resets: - items: - - description: CDSP restart - reset-names: - items: - - const: restart - - - if: - properties: - compatible: - contains: - enum: - - qcom,sc7180-mpss-pas - - qcom,sc7280-mpss-pas - then: - properties: - resets: - items: - - description: MSS restart - - description: PDC reset - reset-names: - items: - - const: mss_restart - - const: pdc_reset - - if: properties: compatible: From patchwork Thu Nov 24 18:43:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557304wrr; Thu, 24 Nov 2022 10:45:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4fisOijCYdUzgrqGTEp+KDheAGfxAEtzVWV06u3tqS2eRhLbI1FhNU9NjOB98lNspXVUKg X-Received: by 2002:a17:902:f68a:b0:17f:7ed0:2367 with SMTP id l10-20020a170902f68a00b0017f7ed02367mr17571048plg.31.1669315507990; Thu, 24 Nov 2022 10:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315507; cv=none; d=google.com; s=arc-20160816; b=qLo/urZR+hUtwaLHsN3dCzMbQSCMzql0Egq7p7jFpgs+RZdhe/nnbvYhdgpT4E+n7z O2BTJiBDxHrtZM1dznz8SzhM5gurY/jls70kYG82kBwvZ/wbBl+s6VoKfrdopza2uUQ3 4/2OgoOPDRqiQ3dWIHvpwnKDGI6FNdf9LE8WFq7DBIcbsr6I3HbCj9EPOy0sh8zjQKsO hkDmsJBexTdO6pdW1HStVO6ydpdGGp6tmtJgfmQ8Uy+CrLSwgZSDdKsia73JVrTD0B3b LJ5Rm+JQC3mG8mivRuK++b6/Jbxsp2zNxkK7LFjw9gyLfpcaEv48QqjU4x3b/Iaj50EQ v/xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1wulctTHUCxRqRkL1rWXHEt6+euBiukO8eehnFPmEuM=; b=qE77t6nu8nXY72fTwe9oVP5G6qmylkFfJXTILZacTYPt3E83nOXuC6NrPXXkz/MNHX tRMv0dy2Y4dlpGW7/fwm6T8Y+1O4cZDQGCVJjmi3zffYNjgGmMXL9PfonBcTfA3vHJNw 8sFuIUvz7Oplto90fmqaYyJVp3Gz07A+xx3d2chXsiMajvmmJ71Aw3jOUiwpUnvVVI6+ Jklab0n/ixbQIyM5blyvkVDNZz4RFdwbFTFfGHCHmtObbsyZzk3ntDcRxC3HLlJiM5lo hVun+4kK+S+M0xtzkof7G0mS8ilioyAPtlUBk26SdLQyqVtr9dFtccY0uIH9A5n6YldL ZcOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ym5GQn1C; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a635142000000b0047798cae7easi1928412pgl.594.2022.11.24.10.44.55; Thu, 24 Nov 2022 10:45: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=@linaro.org header.s=google header.b=Ym5GQn1C; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229526AbiKXSoV (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbiKXSn4 (ORCPT ); Thu, 24 Nov 2022 13:43:56 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F07D6112C44 for ; Thu, 24 Nov 2022 10:43:51 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id a29so3680029lfj.9 for ; Thu, 24 Nov 2022 10:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1wulctTHUCxRqRkL1rWXHEt6+euBiukO8eehnFPmEuM=; b=Ym5GQn1CxCoHDqglOJInnff9oXZKE1/E4vJ9ckFNX9uvwvepm7jOxti0Gn6TBhyoBJ tHv4eGlK2PrYSOdx3mcykIdFjFCfh9MWk2ZvW6SrnVAPoNH9U4w0JDTYn4HrGxYKCxfA CP0eRSxrLz2fBWjzFiO9Pj3JNVe23j2qR9XTGRPwuryM109hYRb9xMfrz3FrAipUqLla d+CgpPf0T65y7bg31zWKfrPdebPt4ejlx4/7IpAbVrhbNBRWcY4gl8xFB8nCxI7TDGcO ZfamC7UYMpLlD2K7VmMwbNDBU1VBpNGTM0L61buge+/5MzTj/tXV60tQkJncgrhAw6mC SnDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1wulctTHUCxRqRkL1rWXHEt6+euBiukO8eehnFPmEuM=; b=PuB8EbHuN/4ViY5wvb0GHqqrObv9DZTVMuwP6YfeRbF+wcek2QCr1TdWDsAGOVKm1H M0urxQqURHl/rvgwXVHAL8StqH1VSKV/r3kdgd4vFxlAdhQuz+osLeBjq94bpFHQiuc9 MzwlPOwyq8YZbUfJ3n81ZZnUqXly+pynaMYWpwB+jpq6H6hbtdL3LupfZf8ENnOl2rid lqxw4sxydvYt1MKsnb7JEwTqOuSR1sHYZVxNezpUivgVn6W4mMa6HeL0BQ/HzgrKPOLq FRtams7CrBhDSUNIGw0SK7qSuUzRmmfBh912DUkln0zc20MOmQZ/g6trH7AWvHSjiHsB 49tg== X-Gm-Message-State: ANoB5pmAiUVqqDV6FYtttB414nrsqBWZ5xv60/4IX/p+tMAULdvarRp8 wlS4OVCWamhovDorrvj5kQoP+Q== X-Received: by 2002:ac2:5289:0:b0:4b4:faae:2c7c with SMTP id q9-20020ac25289000000b004b4faae2c7cmr410171lfm.382.1669315430095; Thu, 24 Nov 2022 10:43:50 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:49 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 06/15] dt-bindings: remoteproc: qcom,adsp: split common part Date: Thu, 24 Nov 2022 19:43:24 +0100 Message-Id: <20221124184333.133911-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404178331571840?= X-GMAIL-MSGID: =?utf-8?q?1750404178331571840?= Split common part of Qualcomm SoC Peripheral Authentication Service bindings into a re-usable schema file. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. Allow only one or two clocks, after dropping clocks related to PIL binding. Changes since v1: 1. Keep resets, reset-names, qcom,qmp and qcom,halt-regs in qcom,adsp, because they are not shared with most of PAS bindings. --- .../bindings/remoteproc/qcom,adsp.yaml | 81 +--------------- .../bindings/remoteproc/qcom,pas-common.yaml | 97 +++++++++++++++++++ 2 files changed, 99 insertions(+), 79 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index e3e617315aef..596149f71485 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -59,100 +59,23 @@ properties: reg: maxItems: 1 - clocks: - minItems: 1 - maxItems: 2 - - clock-names: - minItems: 1 - maxItems: 2 - - interconnects: - maxItems: 1 - - interrupts: - minItems: 5 - items: - - description: Watchdog interrupt - - description: Fatal interrupt - - description: Ready interrupt - - description: Handover interrupt - - description: Stop acknowledge interrupt - - description: Shutdown acknowledge interrupt - - interrupt-names: - minItems: 5 - items: - - const: wdog - - const: fatal - - const: ready - - const: handover - - const: stop-ack - - const: shutdown-ack - cx-supply: description: Phandle to the CX regulator px-supply: description: Phandle to the PX regulator - power-domains: - minItems: 1 - maxItems: 3 - - power-domain-names: - minItems: 1 - maxItems: 3 - - firmware-name: - $ref: /schemas/types.yaml#/definitions/string - description: Firmware name for the Hexagon core - - memory-region: - maxItems: 1 - description: Reference to the reserved-memory for the Hexagon core - qcom,qmp: $ref: /schemas/types.yaml#/definitions/phandle description: Reference to the AOSS side-channel message RAM. - qcom,smem-states: - $ref: /schemas/types.yaml#/definitions/phandle-array - description: States used by the AP to signal the Hexagon core - items: - - description: Stop the modem - - qcom,smem-state-names: - description: The names of the state bits used for SMP2P output - items: - - const: stop - - smd-edge: - $ref: /schemas/remoteproc/qcom,smd-edge.yaml# - description: - Qualcomm Shared Memory subnode which represents communication edge, - channels and devices related to the ADSP. - unevaluatedProperties: false - - glink-edge: - $ref: /schemas/remoteproc/qcom,glink-edge.yaml# - description: - Qualcomm G-Link subnode which represents communication edge, channels - and devices related to the ADSP. - required: - compatible - - clocks - - clock-names - - interrupts - - interrupt-names - - memory-region - - qcom,smem-states - - qcom,smem-state-names -additionalProperties: false +unevaluatedProperties: false allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml new file mode 100644 index 000000000000..1d5e01c8d8bc --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,pas-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Peripheral Authentication Service Common Properties + +maintainers: + - Manivannan Sadhasivam + +description: + Common properties of Qualcomm SoCs Peripheral Authentication Service. + +properties: + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + + interconnects: + maxItems: 1 + + interrupts: + minItems: 5 + items: + - description: Watchdog interrupt + - description: Fatal interrupt + - description: Ready interrupt + - description: Handover interrupt + - description: Stop acknowledge interrupt + - description: Shutdown acknowledge interrupt + + interrupt-names: + minItems: 5 + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + - const: shutdown-ack + + power-domains: + minItems: 1 + maxItems: 3 + + power-domain-names: + minItems: 1 + maxItems: 3 + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Firmware name for the Hexagon core + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: States used by the AP to signal the Hexagon core + items: + - description: Stop the modem + + qcom,smem-state-names: + description: The names of the state bits used for SMP2P output + items: + - const: stop + + smd-edge: + $ref: /schemas/remoteproc/qcom,smd-edge.yaml# + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP. + unevaluatedProperties: false + + glink-edge: + $ref: /schemas/remoteproc/qcom,glink-edge.yaml# + description: + Qualcomm G-Link subnode which represents communication edge, channels + and devices related to the ADSP. + unevaluatedProperties: false + +required: + - clocks + - clock-names + - interrupts + - interrupt-names + - memory-region + - qcom,smem-states + - qcom,smem-state-names + +additionalProperties: true From patchwork Thu Nov 24 18:43:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557126wrr; Thu, 24 Nov 2022 10:44:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7JOtoaXPu+YdcYgNjH7ckbSjLtOyb4bTaRRL7Qd92uvfkh0ott9cOhrOvBC7pxVovhYdOE X-Received: by 2002:a17:902:e48a:b0:189:63f2:d58f with SMTP id i10-20020a170902e48a00b0018963f2d58fmr700968ple.161.1669315483758; Thu, 24 Nov 2022 10:44:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315483; cv=none; d=google.com; s=arc-20160816; b=Q9uQkgeAmENy/ZnE1XkgRZVERPcOy4DcRsr7AGsq/Coy69pxsVW26DZRbAGfo+r957 3Khv7gqBq6rh5/ts35QKfd5CPwQZ95IqTRu+zoutbrFCnjrs91eK16M8c9Ej794nh+bd xJGtWkd4LQLeNoGkUdEfyUlxdHVuIm1hOKALkeHfwmniUAMFrw+XCx8bI4lH4RpZR338 18vhr4kUlesJxftxrQeiBgfOgITRIShQY1wK5/4Y+hu6bTd00TaiQz5oiUmkbbV1F9xm WKCytMX0CRUSlKBud5T7mu0z/0hcTOXATJHrBBa+4MVuCXAKrLH2wNEcd+/3gyU/JbW+ Wa1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hFQ5Tybue2hPXwLWua5e6rjcLimDchEklSap0fSlOTE=; b=WsMGHY73+TOsFY8A7bOp6xindqGLgX/hOuALlRfI/iNSJGIJ6ffVaDqxOi7QZDjGKb EgK4XWyEqOKd8sg26hUSd61Eb1nze75DWdWikeJZ4bKwQKDHjLeZ6ThmfgAHL1Lyc1h+ ISEXt/3O0El7kZXlYOJ9HPwmROkQvhIpGiTx8Xicx6coph/MLY8a4TDhOGWFZW0mj5+l xKnPrFk0p52/1Bvn76+/LrWcVhXUhBzu9jCyu7F71TCEBXjVIF3hrhFfrPaet3XaX8c7 Mdw42XbDgkEaCcmI8mAn63KlwNk3CB/56mTavtGFkKj3mk+T56DWfLtOR+GFt4hK86Mm /3Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FsQtwPe3; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h70-20020a636c49000000b0047009247403si1887051pgc.409.2022.11.24.10.44.30; Thu, 24 Nov 2022 10:44:43 -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=@linaro.org header.s=google header.b=FsQtwPe3; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbiKXSoQ (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbiKXSn4 (ORCPT ); Thu, 24 Nov 2022 13:43:56 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C3D129C11 for ; Thu, 24 Nov 2022 10:43:51 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id j2so330684ljg.10 for ; Thu, 24 Nov 2022 10:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hFQ5Tybue2hPXwLWua5e6rjcLimDchEklSap0fSlOTE=; b=FsQtwPe3KpwFXZMf0pqPMC1w0azWK/O7k3FwF75UfhISBJuQHDJN6HJ7NC0SmHMjA2 cFDg4uhxk59Qqsv7uVnhOPPa53sNEZ8Q5Q4QtmOmE9hupTOLEuKf89sTnHp+qCLFCs8Y drdjpsFTPzhcuk61KIMQNDZlqiUd6EGbro7M9kau8aNYiebjJaSKu73Vc1F7Tyj0EmxD YydIzd0ffwoQFuJXiZtCNBNMfVqtx8v5h1VIA7i6gaLsXsPmfndVOBIrH4hYMToLKzcP YmYb+unw0l1cRAjmpAqxyPAUdSyrjTyVxv2HUm3M/7DFG4Nl1wBJ0f4YcV5Saadesj6d tF5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hFQ5Tybue2hPXwLWua5e6rjcLimDchEklSap0fSlOTE=; b=Tudhxv3nfQnWiI6mwp9ym83Zth2mjtzmkVSF15quyWCJjU/SiLN2XCp1Nc2Yl42rNQ mYNaN1tGMQ96Ia5hqcN5bj66gRX0Uwr8l9cim7PDbwGRRi+EV2ghw0JA6GwowTl9eRh1 s4SroUozbHKlWTGAjfrieGMKwvb8iYnXcWOTkxqgym81MndED222VBG8NFN5swL7l/QX RsebCLX3QbeMjaqoBrZsP2OQVnynIoApFHm8iisGaAssXhtSSVOSPtkymOYgurGGEE+m x2KyskfSE8B4IPpn9vVnj6koFC54RMmgPe6NH1FMI2nD6Ncx0j7Il1anlfV9ymvoGOvS Y/WA== X-Gm-Message-State: ANoB5pkGolyVpW5Ju2MVF0nq+eGiWYnGUjvSX8jwCCLkBmsXE5lcWXf1 zt9S+gSu43MF5NSQFkKQItvrmw== X-Received: by 2002:a2e:3806:0:b0:277:b84:81b6 with SMTP id f6-20020a2e3806000000b002770b8481b6mr10402345lja.425.1669315431407; Thu, 24 Nov 2022 10:43:51 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:50 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 07/15] dt-bindings: remoteproc: qcom,sm8350-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:25 +0100 Message-Id: <20221124184333.133911-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404152708738295?= X-GMAIL-MSGID: =?utf-8?q?1750404152708738295?= Split SM8350 and SM8450 remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. Drop if:then: for the clock and put it directly under properties. 2. Merge two if:then: clauses for setting interrupts. Changes since v1: 1. Add qcom,qmp (not part of qcom,pas-common.yaml# anymore). 2. Add firmware-name to example. --- .../bindings/remoteproc/qcom,adsp.yaml | 48 ----- .../bindings/remoteproc/qcom,sm8350-pas.yaml | 174 ++++++++++++++++++ 2 files changed, 174 insertions(+), 48 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sm8350-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 596149f71485..67941e79a4a0 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -47,14 +47,6 @@ properties: - qcom,sm8250-adsp-pas - qcom,sm8250-cdsp-pas - qcom,sm8250-slpi-pas - - qcom,sm8350-adsp-pas - - qcom,sm8350-cdsp-pas - - qcom,sm8350-slpi-pas - - qcom,sm8350-mpss-pas - - qcom,sm8450-adsp-pas - - qcom,sm8450-cdsp-pas - - qcom,sm8450-mpss-pas - - qcom,sm8450-slpi-pas reg: maxItems: 1 @@ -109,14 +101,6 @@ allOf: - qcom,sm8250-adsp-pas - qcom,sm8250-cdsp-pas - qcom,sm8250-slpi-pas - - qcom,sm8350-adsp-pas - - qcom,sm8350-cdsp-pas - - qcom,sm8350-slpi-pas - - qcom,sm8350-mpss-pas - - qcom,sm8450-adsp-pas - - qcom,sm8450-cdsp-pas - - qcom,sm8450-slpi-pas - - qcom,sm8450-mpss-pas then: properties: clocks: @@ -172,12 +156,6 @@ allOf: - qcom,sm8250-adsp-pas - qcom,sm8250-cdsp-pas - qcom,sm8250-slpi-pas - - qcom,sm8350-adsp-pas - - qcom,sm8350-cdsp-pas - - qcom,sm8350-slpi-pas - - qcom,sm8450-adsp-pas - - qcom,sm8450-cdsp-pas - - qcom,sm8450-slpi-pas then: properties: interrupts: @@ -196,8 +174,6 @@ allOf: - qcom,sdx55-mpss-pas - qcom,sm6350-mpss-pas - qcom,sm8150-mpss-pas - - qcom,sm8350-mpss-pas - - qcom,sm8450-mpss-pas then: properties: interrupts: @@ -297,8 +273,6 @@ allOf: - qcom,sdx55-mpss-pas - qcom,sm6350-mpss-pas - qcom,sm8150-mpss-pas - - qcom,sm8350-mpss-pas - - qcom,sm8450-mpss-pas then: properties: power-domains: @@ -322,10 +296,6 @@ allOf: - qcom,sm8150-slpi-pas - qcom,sm8250-adsp-pas - qcom,sm8250-slpi-pas - - qcom,sm8350-adsp-pas - - qcom,sm8350-slpi-pas - - qcom,sm8450-adsp-pas - - qcom,sm8450-slpi-pas then: properties: power-domains: @@ -337,24 +307,6 @@ allOf: - const: lcx - const: lmx - - if: - properties: - compatible: - contains: - enum: - - qcom,sm8350-cdsp-pas - - qcom,sm8450-cdsp-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MXC power domain - power-domain-names: - items: - - const: cx - - const: mxc - - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8350-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8350-pas.yaml new file mode 100644 index 000000000000..853f97d6879f --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8350-pas.yaml @@ -0,0 +1,174 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm8350-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8350/SM8450 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SM8350/SM8450 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm8350-adsp-pas + - qcom,sm8350-cdsp-pas + - qcom,sm8350-slpi-pas + - qcom,sm8350-mpss-pas + - qcom,sm8450-adsp-pas + - qcom,sm8450-cdsp-pas + - qcom,sm8450-mpss-pas + - qcom,sm8450-slpi-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm8350-adsp-pas + - qcom,sm8350-cdsp-pas + - qcom,sm8350-slpi-pas + - qcom,sm8450-adsp-pas + - qcom,sm8450-cdsp-pas + - qcom,sm8450-slpi-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sm8350-mpss-pas + - qcom,sm8450-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + + - if: + properties: + compatible: + enum: + - qcom,sm8350-adsp-pas + - qcom,sm8350-slpi-pas + - qcom,sm8450-adsp-pas + - qcom,sm8450-slpi-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + + - if: + properties: + compatible: + enum: + - qcom,sm8350-cdsp-pas + - qcom,sm8450-cdsp-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MXC power domain + power-domain-names: + items: + - const: cx + - const: mxc + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@30000000 { + compatible = "qcom,sm8450-adsp-pas"; + reg = <0x030000000 0x100>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + firmware-name = "qcom/sm8450/adsp.mbn"; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + memory-region = <&adsp_mem>; + + power-domains = <&rpmhpd SM8450_LCX>, + <&rpmhpd SM8450_LMX>; + power-domain-names = "lcx", "lmx"; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + /* ... */ + }; + }; From patchwork Thu Nov 24 18:43:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25682 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557219wrr; Thu, 24 Nov 2022 10:44:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RU7bKrsM7ogJdorXluEyY26r09pbZy7eoEXo5gzm6lok/YrSTmyzKglwPZJyNMLE3SHxD X-Received: by 2002:aa7:9ec2:0:b0:574:8995:eb7f with SMTP id r2-20020aa79ec2000000b005748995eb7fmr4201027pfq.85.1669315496649; Thu, 24 Nov 2022 10:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315496; cv=none; d=google.com; s=arc-20160816; b=nxtSFJ59us5pKTjdDILmqoCYizTnqyomCBz08gf3qk16cyn1s3clZcASnwu1O/CuaD /eTPCusP8a7c9IqMpsr4aMo8m2wtAQTa/Jyzyl2sZz0GJukaERllef9QFprQkpdJ/HAT bfVKDfUqYbeHZFcksaDgx21j4CfgGH69MqE7Vv8yNmoX4CREvmNU01tsQlIVGxmlP1nt CoGixf6aI9Zki0v+WEsT5L/f7Tke3Ys5swPpOMh7aIFOorHvdb/m+wI99EaBeRh0xp2y 0UiZTxS93Yp2BuBBlv8mkN7OUbPdbVG1Y5W8Mnau9wgrHPqu5aGXEsE9TytBkjBHGVBK SOww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4cmieysHy6QLmIblSNrv79qb6XCiqgVZ6yuCtnljXuU=; b=iamZRYKEs1nLRxJocLATpLklDPiVmOsonwvQPyPqUxEvCzdFJHGKLJ02wgCKKCEsyU v/ccvbBvMJjIUY7SlFlWx0bc+AV/l89wFE0VmIQ1DfbMfZGX2tCjnQVQ0JVg+bcJTNcT 2xbWZQ4lewlDXpCr5sKLQG/VY5MIkJdY51gSfrIlGxqAbx2L/YtqIKVtTk5Ku2nsTPeT FWlcwXjO/LWlGPiG/xXs8KjoXyPOjjR/Vz5Fcay0fJ0y4mOGrUFA5wPtmhsmDgLDixQS vltfvcGvaeiGxLnVSsm8Y913lfN/ZQOkUtBa1P39Lg3XvnSmvCi+L66/7BnEiSHnngOq 0GzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CH0CgZN8; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a17090ae51400b0020af2b9dd80si1798513pjy.69.2022.11.24.10.44.43; Thu, 24 Nov 2022 10:44:56 -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=@linaro.org header.s=google header.b=CH0CgZN8; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiKXSoY (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbiKXSoA (ORCPT ); Thu, 24 Nov 2022 13:44:00 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83C2012E206 for ; Thu, 24 Nov 2022 10:43:54 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id g7so3694030lfv.5 for ; Thu, 24 Nov 2022 10:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4cmieysHy6QLmIblSNrv79qb6XCiqgVZ6yuCtnljXuU=; b=CH0CgZN84vQe+wZ607rsJQJabpSeD5zZJyYHdvMutzY3oPK3hjwygf3UfPKvqZJCq7 cIltAccMxB4y0+QqgGB9JGf0FTU4APirVK7UDAHy57nJpe72+5ZW4fo7g23vWKGLOtqD QV8sNBBfv3RDbgm7Qg73lxIMkuc4FeCjIcVgF9+qf4YMslZhxyIpYsePuDKHBwVAp338 lcDCMItgyOcYzW1A9kbag51LXHR3itf0mWO2GC1BiDgcUHF0k1Gthc7wV7KKrKLrK3t0 7iP2hO+MonEPpsVvOnpOpCflRGee99Q5DekZhyzaAqUidQjJdLIq72+7wgJXHnI4W3YJ xS5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4cmieysHy6QLmIblSNrv79qb6XCiqgVZ6yuCtnljXuU=; b=mG3l05ZBMIKtdOEmSs4+kiVnjsIG4t4x17tnICd4GPH9F+MV9V+eVVeHZReRplOv4X 9iKBC5VpgF4b9oXYoWHLhudMpzHleRArXrJ7y74YXq0cxCDmKXuyXkXBJ4SMDMUfOCnj RejC4/7pTXdikl3QsdGUyccML+U5sViZp0Ri+qVd+wBMOwIM2Mc23z+EawPNlC3+hib8 jl2tgXJnDN8F0T3IPI97W9Y4NviW/+gm2K4R5V3XZWm6DT4ejfXTZBxhmUavUcRW8EER wVKLY4LVHlHmuV7iXxjILOnnavyqJoJyTIPDNUr3UFP96eBbW1ehe5VSa0pDfT3MnsyY Rcog== X-Gm-Message-State: ANoB5pltiEHOC+jzTM8JO7BfBr8m7fQ3I+u64yULLT+oP9hVFSm6J23z kTuu1XaGr74jYl8buvwVsviuczx1EwnOlyyO X-Received: by 2002:a05:6512:2523:b0:4a6:fac4:596c with SMTP id be35-20020a056512252300b004a6fac4596cmr5464474lfb.220.1669315432876; Thu, 24 Nov 2022 10:43:52 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:52 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 08/15] dt-bindings: remoteproc: qcom,sm8150-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:26 +0100 Message-Id: <20221124184333.133911-9-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404166086785863?= X-GMAIL-MSGID: =?utf-8?q?1750404166086785863?= Split SM8150 and SM8250 remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring Acked-by: Rob Herring --- Changes since v2: 1. Drop if:then: for the clock and put it directly under properties. 2. Merge two if:then: clauses for setting interrupts. Changes since v1: 1. Add qcom,qmp (not part of qcom,pas-common.yaml# anymore). 2. Add firmware-name to example. --- .../bindings/remoteproc/qcom,adsp.yaml | 27 --- .../bindings/remoteproc/qcom,sm8150-pas.yaml | 166 ++++++++++++++++++ 2 files changed, 166 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 67941e79a4a0..e8d66eefd522 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -40,13 +40,6 @@ properties: - qcom,sm6350-adsp-pas - qcom,sm6350-cdsp-pas - qcom,sm6350-mpss-pas - - qcom,sm8150-adsp-pas - - qcom,sm8150-cdsp-pas - - qcom,sm8150-mpss-pas - - qcom,sm8150-slpi-pas - - qcom,sm8250-adsp-pas - - qcom,sm8250-cdsp-pas - - qcom,sm8250-slpi-pas reg: maxItems: 1 @@ -94,13 +87,6 @@ allOf: - qcom,sm6350-adsp-pas - qcom,sm6350-cdsp-pas - qcom,sm6350-mpss-pas - - qcom,sm8150-adsp-pas - - qcom,sm8150-cdsp-pas - - qcom,sm8150-mpss-pas - - qcom,sm8150-slpi-pas - - qcom,sm8250-adsp-pas - - qcom,sm8250-cdsp-pas - - qcom,sm8250-slpi-pas then: properties: clocks: @@ -150,12 +136,6 @@ allOf: - qcom,sdm845-cdsp-pas - qcom,sm6350-adsp-pas - qcom,sm6350-cdsp-pas - - qcom,sm8150-adsp-pas - - qcom,sm8150-cdsp-pas - - qcom,sm8150-slpi-pas - - qcom,sm8250-adsp-pas - - qcom,sm8250-cdsp-pas - - qcom,sm8250-slpi-pas then: properties: interrupts: @@ -173,7 +153,6 @@ allOf: - qcom,sc8180x-mpss-pas - qcom,sdx55-mpss-pas - qcom,sm6350-mpss-pas - - qcom,sm8150-mpss-pas then: properties: interrupts: @@ -199,8 +178,6 @@ allOf: - qcom,msm8226-adsp-pil - qcom,msm8996-adsp-pil - qcom,msm8998-adsp-pas - - qcom,sm8150-adsp-pas - - qcom,sm8150-cdsp-pas then: properties: power-domains: @@ -272,7 +249,6 @@ allOf: - qcom,sc7280-mpss-pas - qcom,sdx55-mpss-pas - qcom,sm6350-mpss-pas - - qcom,sm8150-mpss-pas then: properties: power-domains: @@ -293,9 +269,6 @@ allOf: - qcom,sc8180x-cdsp-pas - qcom,sc8280xp-adsp-pas - qcom,sm6350-adsp-pas - - qcom,sm8150-slpi-pas - - qcom,sm8250-adsp-pas - - qcom,sm8250-slpi-pas then: properties: power-domains: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml new file mode 100644 index 000000000000..b934252cf02b --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml @@ -0,0 +1,166 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm8150-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8150/SM8250 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SM8150/SM8250 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm8150-adsp-pas + - qcom,sm8150-cdsp-pas + - qcom,sm8150-mpss-pas + - qcom,sm8150-slpi-pas + - qcom,sm8250-adsp-pas + - qcom,sm8250-cdsp-pas + - qcom,sm8250-slpi-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm8150-adsp-pas + - qcom,sm8150-cdsp-pas + - qcom,sm8150-slpi-pas + - qcom,sm8250-adsp-pas + - qcom,sm8250-cdsp-pas + - qcom,sm8250-slpi-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sm8150-adsp-pas + - qcom,sm8150-cdsp-pas + - qcom,sm8250-cdsp-pas + then: + properties: + power-domains: + items: + - description: CX power domain + power-domain-names: + items: + - const: cx + + - if: + properties: + compatible: + enum: + - qcom,sm8150-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + + - if: + properties: + compatible: + enum: + - qcom,sm8150-slpi-pas + - qcom,sm8250-adsp-pas + - qcom,sm8250-slpi-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@17300000 { + compatible = "qcom,sm8150-adsp-pas"; + reg = <0x17300000 0x4040>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + firmware-name = "qcom/sm8150/adsp.mbn"; + + interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + memory-region = <&adsp_mem>; + + power-domains = <&rpmhpd SM8150_CX>; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apss_shared 8>; + + /* ... */ + + }; + }; From patchwork Thu Nov 24 18:43:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557241wrr; Thu, 24 Nov 2022 10:44:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf624QVBLyksyMB3LdHkSRvQL0SbsBGEwu55QV8VZv7ywb6ze+N+60CxZ+Lm3uWcMfQ0JhKG X-Received: by 2002:a63:5544:0:b0:477:6fe2:c1d1 with SMTP id f4-20020a635544000000b004776fe2c1d1mr13134536pgm.444.1669315499626; Thu, 24 Nov 2022 10:44:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315499; cv=none; d=google.com; s=arc-20160816; b=I3nERT0oTR2DKDrLrUj6lTK3fbgJphRg02k4ZZHeisb6JvpiJQOyXbsqGy6c3Qwms2 O2smrYBoWC4rHHEQPTRnnNlup53MDBnLJt8V7LWrlPwTIiWtWa+Nj41wkCqGWnvicvR9 VtvwaB8aSuz3M/MA5l45OSzZMLG9JSk7UoAoy2CEk56tN103HArtyOG2mR2sgxu01E7S CZKaXn5M4eWVNjTHE8/01wSUeuymVIJuesaebjYbxjKu96pMMmWV6tVlr50iViW9BuPU teo3GIcpXHVOP41nXsPW7UByrEQRTtuCepzpYR/Fnqy510J+bCmI760g8lCWwXAy2Rt/ OHCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hNv81I24c4nW4TnQKbq5VcxO89XGCSPoda7sXO5iVm0=; b=fuVd+fdBbYMXzr5I9BRTfv5CCYWJSgQuc1pOdljfcLzt4MJHsb4dj7xNgRdn55bMtJ twx3+BgOSNOLs4xNqPHyKSgAS7cSBT9KuDSBusinvBOC6AaW7l0ErdvHG+8EOZoi5ttU l0rU/YwD4LbcwsFpCc09IsB5jYkhOHyxJlXbUtqix4wvtwtnxn8BqzBWSHu1kCsVuxSE 00IQgIlyTIY7Goh7JwH3O0rcsjqHEsFSxB5JobGhLLaWdVj/+rGxK3/JAkDWWfp6uFWD rZkm8IRE6Crq1OEBOVyoN1Q5OBVOc9gNd6f4EIca+BiMWelvzAxKyDWG71eDH+txd4JW 2DIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=km8Ppuyc; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j23-20020a17090a589700b001fd7d02c976si4661986pji.87.2022.11.24.10.44.46; Thu, 24 Nov 2022 10:44:59 -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=@linaro.org header.s=google header.b=km8Ppuyc; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbiKXSo2 (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbiKXSoL (ORCPT ); Thu, 24 Nov 2022 13:44:11 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD5EE12E20C for ; Thu, 24 Nov 2022 10:43:54 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id d6so3671966lfs.10 for ; Thu, 24 Nov 2022 10:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hNv81I24c4nW4TnQKbq5VcxO89XGCSPoda7sXO5iVm0=; b=km8PpuycPK4oCL6FGMX69h4Q/f6PmRUrDk9iERcDyA+c1acXCMrWvs3Agt//LF50Db ENjoBkJPkWkF5GHSBFuYnLGFiBJh4XIa4tcSBjyBjesLv5ALRaTeoCqlm7H6/GFa0iaU 2cccJOiQ5l9NU93rFuwSEe+qrpyI/Gt+LWQrUjHfKdAUtfve0vt7ZQSbImz6ACoxeAXh kHS6rs4Mc78zDoK8XHyIC2oazMiCTps8Ek0W9f7E33RcE3J63zgb6E8PvYnElk2ywkNR SUiRsfIVmhCDiXGYkygDmV5KWhHztX831OTTgKykwQL1/PI+dSYHlKyo3G68KZDW5muW oJug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hNv81I24c4nW4TnQKbq5VcxO89XGCSPoda7sXO5iVm0=; b=YnKECG/O8Bxx6gjL8t+EJB25YcA2PDjGtsOM4Ii29+Kqz57dFMNW5CV+9pOre7rszr rv9TPROuLX1aAX24aQXhnKlLiPb3i5f26xOTbQe9BON88e5EKQkPiZNfKieUsRoAh7HE OGqF14dD0ElCofzNS744+5Nl6ppH5bj+cIq4ExayQnpq09Q97bCyfqwYZcRagGIqdEeg kn+rZuPtKgb3D1guM2f8mp5bJQYXBRb9PAaatnTKPB8UVouBgv41D6ceNbGPMhurArzT hAOn3lDAYvjVU21pHqzLRFcpgl/2rTO+hzT8ijZ03ZYxM/5G9jHCIU21zYsegNU1Hs5B u/RQ== X-Gm-Message-State: ANoB5pm9dzfyzeJDZwpyPx94mmZ0kLZvMlqco7lPLgaYwrgPyBz+tVTa OGWKoPoB1a+s2coPIHYJSeT3iw== X-Received: by 2002:a19:f716:0:b0:4b4:b5da:ea56 with SMTP id z22-20020a19f716000000b004b4b5daea56mr11264075lfe.547.1669315434096; Thu, 24 Nov 2022 10:43:54 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:53 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 09/15] dt-bindings: remoteproc: qcom,sm6350-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:27 +0100 Message-Id: <20221124184333.133911-10-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, 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?1750404169246414399?= X-GMAIL-MSGID: =?utf-8?q?1750404169246414399?= Split SM6350 remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. Drop if:then: for the clock and put it directly under properties. 2. Merge two if:then: clauses for setting interrupts. Changes since v1: 1. Add qcom,qmp (not part of qcom,pas-common.yaml# anymore). --- .../bindings/remoteproc/qcom,adsp.yaml | 28 --- .../bindings/remoteproc/qcom,sm6350-pas.yaml | 159 ++++++++++++++++++ 2 files changed, 159 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index e8d66eefd522..b14a83da37c2 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -37,9 +37,6 @@ properties: - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas - qcom,sdx55-mpss-pas - - qcom,sm6350-adsp-pas - - qcom,sm6350-cdsp-pas - - qcom,sm6350-mpss-pas reg: maxItems: 1 @@ -84,9 +81,6 @@ allOf: - qcom,sc8280xp-nsp1-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas - - qcom,sm6350-adsp-pas - - qcom,sm6350-cdsp-pas - - qcom,sm6350-mpss-pas then: properties: clocks: @@ -134,8 +128,6 @@ allOf: - qcom,sc8280xp-nsp1-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas - - qcom,sm6350-adsp-pas - - qcom,sm6350-cdsp-pas then: properties: interrupts: @@ -152,7 +144,6 @@ allOf: - qcom,sc7280-mpss-pas - qcom,sc8180x-mpss-pas - qcom,sdx55-mpss-pas - - qcom,sm6350-mpss-pas then: properties: interrupts: @@ -224,23 +215,6 @@ allOf: - const: mx - const: mss - - if: - properties: - compatible: - contains: - enum: - - qcom,sm6350-cdsp-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MX power domain - power-domain-names: - items: - - const: cx - - const: mx - - if: properties: compatible: @@ -248,7 +222,6 @@ allOf: enum: - qcom,sc7280-mpss-pas - qcom,sdx55-mpss-pas - - qcom,sm6350-mpss-pas then: properties: power-domains: @@ -268,7 +241,6 @@ allOf: - qcom,sc8180x-adsp-pas - qcom,sc8180x-cdsp-pas - qcom,sc8280xp-adsp-pas - - qcom,sm6350-adsp-pas then: properties: power-domains: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml new file mode 100644 index 000000000000..911529400142 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm6350-pas.yaml @@ -0,0 +1,159 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm6350-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6350 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SM6350 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm6350-adsp-pas + - qcom,sm6350-cdsp-pas + - qcom,sm6350-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm6350-adsp-pas + - qcom,sm6350-cdsp-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sm6350-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + + - if: + properties: + compatible: + enum: + - qcom,sm6350-cdsp-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MX power domain + power-domain-names: + items: + - const: cx + - const: mx + + - if: + properties: + compatible: + enum: + - qcom,sm6350-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@3000000 { + compatible = "qcom,sm6350-adsp-pas"; + reg = <0x03000000 0x100>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + memory-region = <&pil_adsp_mem>; + + power-domains = <&rpmhpd SM6350_LCX>, + <&rpmhpd SM6350_LMX>; + power-domain-names = "lcx", "lmx"; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + /* ... */ + }; + }; From patchwork Thu Nov 24 18:43:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25688 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557655wrr; Thu, 24 Nov 2022 10:45:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wC+yl78UUQTfn8630trCQW8bxi61DyomPX78i0M6mIsKiHCvs/WdYb2WxnDfnr5XllJRv X-Received: by 2002:a17:906:4c98:b0:7ad:b9f3:a66a with SMTP id q24-20020a1709064c9800b007adb9f3a66amr13150894eju.282.1669315557965; Thu, 24 Nov 2022 10:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315557; cv=none; d=google.com; s=arc-20160816; b=IeScakRgupel1UcWlwj98DetRSATCvm0w4KgrUK+qgYH4XM9jhAWbL+G5QStEelnSX EAE44n/8wxrjFfzL2mXOW+b9N3sV00HtS1/eGT7lTtHC4VLK4kGeqo2OmbVLnDNId0X3 04BZaGzwdsNTT6kSAVHgYYJLeOgnC+7HBb1U6DiJgrpTkWTvBJt/XIMaHLSGVrUXt3aF SHaTlGSf1v8UVMP11uVRlx4KfHZ9S8WE7g2CxoGw4G5j5e5xOdmwKu9+N634kDy4gQWR zW89iuQV4c8FVRu4Fnt+Yhh3ZvHWqkEPg/Q0ydgzMaSmNiwCNwGtCb1a9UtsPeneADrK IWXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rCbDdhCU6C696Dgr+KcJeNudOEXfabgqqfUOikaclDw=; b=im+OYVamw25SX5m+HKooMJfVT+zqYP+rYw6bo1t06oqj6hPTtDTY0KuBePQ0FePjHP P3qFlzMrl5+4G9KKCNgsrUpGM5Qw/Q9Hh5fufXhjdy9E79qT5FNqtrgUEEp4jvmsvIgT J4NhQti9jHujgV0B9GzIGKja1PQnB2W/c/iV4oKb52t+xzaRQG39IyPK/92jLWceX/Gi MAnM+0oThuYKm+mPm8iZVVg8UsE8VQjhTMB95AiEA5+gSlL0uJ10j8mbwkqPct2GXdxH trG+D0Veu5nldaqoGQ/2gvXpaXeVJG3JC4JxcykSl7adaTV7QizwOMMqeNj4sMtWr1o3 yaGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ticfd9zX; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a056402044600b0046197a8b7a1si1494405edw.485.2022.11.24.10.45.33; Thu, 24 Nov 2022 10:45:57 -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=@linaro.org header.s=google header.b=ticfd9zX; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbiKXSoe (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbiKXSoP (ORCPT ); Thu, 24 Nov 2022 13:44:15 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0C2312F408 for ; Thu, 24 Nov 2022 10:43:55 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id d3so2871766ljl.1 for ; Thu, 24 Nov 2022 10:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rCbDdhCU6C696Dgr+KcJeNudOEXfabgqqfUOikaclDw=; b=ticfd9zXk1SZb3vS/CpEeZdloSzMmHFPTjOp+yblbvqqJM2+BAWsxWZ3iVkKUzQXyO aUF1amlU4+ivjNDzIeyxEcdqcDreqnuZioyWzqdKtYSMhDsmfZPya3B1DrYH4GokyewD 6m3H/MDLof2hHuzmCbkXfALmTwIYbLdZeNwZRUpUYspNXBVJ1m5fYXTWagEGCxtj0OWU QEqMAqKc9RClFieP6JY3TPIdf6Dl+bwzhFbQ8sfDCIdEJ06J50ZM4cHXs5leNARYPQqm PTD2e9EtYtGFE3W01uQc2W/6nkvEUZzSJTYcqCtOppjZx0jen/mm5OYr7LZVpJkFvCvG rOig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rCbDdhCU6C696Dgr+KcJeNudOEXfabgqqfUOikaclDw=; b=NNep9lLq2/8EQAnb1Fv8lalCS1xRhpYAg1W3ol1lpvTOT7PxYOgpJDLH5o7suK3fuv 9V4MqFOdX5OU4eFt6rwD9845Ivw3wUp0IQZ4WsleIXAowPLKlE1iQKUYejfDUD9KGlJK sB2kDqJNxu/0m0vjZVjazYeLEWMOnYqVZ8MLc/ZlkczIzQhN+qufBpi2nhWMISSACCXA Gm4c49hWZtafjEBaumolS5cpk76eJRJj+SuRz+Ew17Scas/R5oRspdjHUQRwtg2mKzps 93+XC28pA1Qb7vq7z8HVEO4byTcQnkRbKeYEDI5FIJf0YstYuWTp9ZA2k4kdm45dBYG4 RkcQ== X-Gm-Message-State: ANoB5pl1Tx5vV0iGMWNW11IntCScnLNKPdUf1Tble/UAEnkwx1FsvjYk t41Pdq448YDp0J3tWFAglcSxyw== X-Received: by 2002:a2e:6a17:0:b0:277:fae:902e with SMTP id f23-20020a2e6a17000000b002770fae902emr7126150ljc.267.1669315435420; Thu, 24 Nov 2022 10:43:55 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:54 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 10/15] dt-bindings: remoteproc: qcom,sc8280xp-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:28 +0100 Message-Id: <20221124184333.133911-11-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404230847509883?= X-GMAIL-MSGID: =?utf-8?q?1750404230847509883?= Split SC8280XP remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. While moving correctly constrain the number of interrupts per specific device. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. Drop if:then: for the clock and put it directly under properties. 2. Merge two if:then: clauses for setting interrupts. Changes since v1: 1. Add qcom,qmp (not part of qcom,pas-common.yaml# anymore). 2. Add firmware-name to example. 3. Correct maxItems: 5 for interrupts. --- .../bindings/remoteproc/qcom,adsp.yaml | 26 ---- .../remoteproc/qcom,sc8280xp-pas.yaml | 139 ++++++++++++++++++ 2 files changed, 139 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index b14a83da37c2..67a68a8edc44 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -30,9 +30,6 @@ properties: - qcom,sc8180x-adsp-pas - qcom,sc8180x-cdsp-pas - qcom,sc8180x-mpss-pas - - qcom,sc8280xp-adsp-pas - - qcom,sc8280xp-nsp0-pas - - qcom,sc8280xp-nsp1-pas - qcom,sdm660-adsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas @@ -76,9 +73,6 @@ allOf: - qcom,sc8180x-adsp-pas - qcom,sc8180x-cdsp-pas - qcom,sc8180x-mpss-pas - - qcom,sc8280xp-adsp-pas - - qcom,sc8280xp-nsp0-pas - - qcom,sc8280xp-nsp1-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas then: @@ -123,9 +117,6 @@ allOf: - qcom,qcs404-wcss-pas - qcom,sc8180x-adsp-pas - qcom,sc8180x-cdsp-pas - - qcom,sc8280xp-adsp-pas - - qcom,sc8280xp-nsp0-pas - - qcom,sc8280xp-nsp1-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas then: @@ -240,7 +231,6 @@ allOf: enum: - qcom,sc8180x-adsp-pas - qcom,sc8180x-cdsp-pas - - qcom,sc8280xp-adsp-pas then: properties: power-domains: @@ -252,22 +242,6 @@ allOf: - const: lcx - const: lmx - - if: - properties: - compatible: - contains: - enum: - - qcom,sc8280xp-nsp0-pas - - qcom,sc8280xp-nsp1-pas - then: - properties: - power-domains: - items: - - description: NSP power domain - power-domain-names: - items: - - const: nsp - - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml new file mode 100644 index 000000000000..c08274aaa6f8 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sc8280xp-pas.yaml @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sc8280xp-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SC8280XP Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SC8280XP SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sc8280xp-adsp-pas + - qcom,sc8280xp-nsp0-pas + - qcom,sc8280xp-nsp1-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sc8280xp-nsp0-pas + - qcom,sc8280xp-nsp1-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sc8280xp-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + else: + properties: + power-domains: + items: + - description: NSP power domain + power-domain-names: + items: + - const: nsp + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + remoteproc@3000000 { + compatible = "qcom,sc8280xp-adsp-pas"; + reg = <0x03000000 0x100>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + firmware-name = "qcom/sc8280xp/qcadsp8280.mbn"; + + interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack", "shutdown-ack"; + + memory-region = <&pil_adsp_mem>; + + power-domains = <&rpmhpd SC8280XP_LCX>, + <&rpmhpd SC8280XP_LMX>; + power-domain-names = "lcx", "lmx"; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + /* ... */ + }; + }; From patchwork Thu Nov 24 18:43:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25685 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557359wrr; Thu, 24 Nov 2022 10:45:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf5kyr/zmNVG+yi5bRsQonRjSU5Br8vjv+7KYYHD66Y/eI4p+q+Y6MuiNH9zt5AV9fPxkRcm X-Received: by 2002:a17:903:d5:b0:189:11c6:dca2 with SMTP id x21-20020a17090300d500b0018911c6dca2mr17600499plc.114.1669315513987; Thu, 24 Nov 2022 10:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315513; cv=none; d=google.com; s=arc-20160816; b=enAyNkFiYVf8ZwdLQz3+Jl8tg1SZQIZdfA/Sa+1rl1PgSFfjuUO3HKOAXPgqDuESwV vUBCkOyx01BUN/pgf6aA1BUqDL2QBnUv6ZSdAHLPhbc3s22IoDdkB7SLVrn8n6hsywbG 41h72zV2LapNuqflC1o15UhGz4Xo6fgnPwr4hf9Y+ya32bXXQ57zIHrcjBT2cMwknIKE +j+OC8C9sof1rE/nsMK+VSZFH5Tg3HPipuyxTbrj4sQKwJNkdV/BJDVuzPALs9B64CZ5 3ewRTxmK2OXCHJ/ySD44GfhRjwyqhiWDrS2qWBsL1ICv2vOkMJBV1zB7Swuu0v6QLf57 aHKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h7Ovu2dQSWjj+PMtEiS086lrhl+cBObJWo88HoZZPz0=; b=uPIWwnR/n5cQO4pNMO2oz8OHTuENFzXt0oGLs4yuiN6pnE7HLUJrIUBJPpB6Lxdj55 Vht56fYMrvCepTnNk1z2HQUG1ScfvdLiMiqu51JWfzYhxa6JUeBPoMFNNY8DV5WFQ3rw vfgOGR5BD83NyYTchNg2fGVfcszlxWV9ffTrqCtxL5NPL69ocWBsCCnL0WigZTIc1Po1 MgAWnc5s0TnWVmk9RYiV+Sbb83pOT2JCfOAdY3j4PxvXQjRjAebQ1Noh63VXmI42QV0s BEXSFVBcbZu8RC7FG1/JYa2eDmqKSG4Y4mEY0a7iEVSfNmNKAHGQaQBSMi1vSCH8IrJt QzEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NlQa0yim; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a639e02000000b0046ef67cb979si1891099pgd.82.2022.11.24.10.45.00; Thu, 24 Nov 2022 10:45:13 -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=@linaro.org header.s=google header.b=NlQa0yim; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbiKXSon (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbiKXSoQ (ORCPT ); Thu, 24 Nov 2022 13:44:16 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E4B12F429 for ; Thu, 24 Nov 2022 10:43:57 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id q7so2830820ljp.9 for ; Thu, 24 Nov 2022 10:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h7Ovu2dQSWjj+PMtEiS086lrhl+cBObJWo88HoZZPz0=; b=NlQa0yimv+aayQe08WqHkEOJ5WuOAqW50BgQfAn/IWceRrK31Ek80SUc6zYVOq27UW mzjIjVTsgnX8Xrk7zqGwpm6kMLiU/476IcR1tttSYd/F+qXY7ZHDFPI9VKJ67ArtOQrR ZLSgN1hTScHMbOHLfKndv/2xzx3aD6T8prtC9PJbyEDRv/FtetWXnx9RW4nAQ4Irl/oO CSlVsnUaH2DUkcLt3ciumCG4PBhEYdqnEXY0J8RFTdoRjOHBvHVUgc+YS1oRXtU38idc aj6CrV4mj0avlajifEDaNnGd2qOtJHnJx8JSTV/nqqI3oXrelb/UY5gsUdPLnymb3UpB bJwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h7Ovu2dQSWjj+PMtEiS086lrhl+cBObJWo88HoZZPz0=; b=0vA9kNygkckD8HfJkcAFIkh8F2/TUC5Yp6dzMYhoOSwvsMvCWm+iKAHMb73eaqxNnJ mKevR65514wGFt6owh8/KMPcqUlv+8EZmPQDjcSgnn4ijNkbo0Z12Sj/505STuCVP+jn jhM1vJK18UI3KmC+dovfcWdNSCUrC9QW/UIfhAzFY60aYFb5RsRfYpozTbb1jF2BnONA Pg7TF1paK5T/vXWXwRbJvCQ0vRd/fpG+/muac/Jp50FLVDk6Ae5hzF0V5lHsqPwIOhKi 3DDfpDao0ZWnJFWVZTrZ003AP5N7++MHfjeWyhxSwAm4hrtiy9Klv1bjU+samWUn9Rge sDUw== X-Gm-Message-State: ANoB5plQwXkPK8nGfMLdRBiK8h78tgewoPQvYR8rGAgfT23R8BMLEP94 ArnVw8y3QdBGZoZjobg6hBHUng== X-Received: by 2002:a2e:be8b:0:b0:278:ea67:a38c with SMTP id a11-20020a2ebe8b000000b00278ea67a38cmr5015842ljr.63.1669315436597; Thu, 24 Nov 2022 10:43:56 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:56 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 11/15] dt-bindings: remoteproc: qcom,sc8180x-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:29 +0100 Message-Id: <20221124184333.133911-12-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404184526442106?= X-GMAIL-MSGID: =?utf-8?q?1750404184526442106?= Split SC8180x remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. The binding is incomplete due to lack of upstreamed DTS - no example and not all power domains defined. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. Drop if:then: for the clock and put it directly under properties. 2. Merge two if:then: clauses for setting interrupts. Changes since v1: 1. New patch. --- .../bindings/remoteproc/qcom,adsp.yaml | 27 ------ .../bindings/remoteproc/qcom,sc8180x-pas.yaml | 87 +++++++++++++++++++ 2 files changed, 87 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sc8180x-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 67a68a8edc44..7b93064fa0ae 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -27,9 +27,6 @@ properties: - qcom,qcs404-wcss-pas - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas - - qcom,sc8180x-adsp-pas - - qcom,sc8180x-cdsp-pas - - qcom,sc8180x-mpss-pas - qcom,sdm660-adsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas @@ -70,9 +67,6 @@ allOf: - qcom,qcs404-wcss-pas - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas - - qcom,sc8180x-adsp-pas - - qcom,sc8180x-cdsp-pas - - qcom,sc8180x-mpss-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas then: @@ -115,8 +109,6 @@ allOf: - qcom,qcs404-adsp-pas - qcom,qcs404-cdsp-pas - qcom,qcs404-wcss-pas - - qcom,sc8180x-adsp-pas - - qcom,sc8180x-cdsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas then: @@ -133,7 +125,6 @@ allOf: enum: - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas - - qcom,sc8180x-mpss-pas - qcom,sdx55-mpss-pas then: properties: @@ -224,24 +215,6 @@ allOf: - const: cx - const: mss - - if: - properties: - compatible: - contains: - enum: - - qcom,sc8180x-adsp-pas - - qcom,sc8180x-cdsp-pas - then: - properties: - power-domains: - items: - - description: LCX power domain - - description: LMX power domain - power-domain-names: - items: - - const: lcx - - const: lmx - - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sc8180x-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sc8180x-pas.yaml new file mode 100644 index 000000000000..3026cfde5582 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sc8180x-pas.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sc8180x-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SC8180X Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SC8180X SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sc8180x-adsp-pas + - qcom,sc8180x-cdsp-pas + - qcom,sc8180x-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sc8180x-adsp-pas + - qcom,sc8180x-cdsp-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sc8180x-adsp-pas + - qcom,sc8180x-cdsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + else: + properties: + # TODO: incomplete + power-domains: false + power-domain-names: false + +unevaluatedProperties: false From patchwork Thu Nov 24 18:43:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557490wrr; Thu, 24 Nov 2022 10:45:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+n4hChHLqtduvVVneiEB52Q8JYIIl0iJp8VBCYonBHlbZEKPSquBOfjtREeR9lau3Wsoi X-Received: by 2002:a05:6402:530b:b0:461:f919:caa4 with SMTP id eo11-20020a056402530b00b00461f919caa4mr31572912edb.255.1669315535429; Thu, 24 Nov 2022 10:45:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315535; cv=none; d=google.com; s=arc-20160816; b=lFzCoFaqRQtTz7tlCmdxgMo0A47hnrUcyGVLXSzSvpKpAcC/Hu0iR3z3XIHwGlKfMC ZqM4HLxL9L/qnNKF6YbzagFVFRcs0+EnEg173bYtIo60fC3ynCAP4IoOhfi5ro01fOar OG3d4dlGgx4tagGtNrGrWtQgN1SPvDv1kgOr+WwvpXgoAE9xUJEaP1WqVfoLh4mLkqzP +tyUcZGveEf5GIH/N2TxiIdIcn28IZdT1F9FFdqkLlSFQ0+E3Xj8zUzCyM3XnJkEuPZH lV/z9VkLp1SNtpNXxkkUDRmeNrCgynitohSJYRqP9qlXoCpsPt7UW3w6i3ceWyGulb5F UO9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KMI82BhiRMmxUe8PJNsOEzjk6w68RCfM4srJwtzf3Io=; b=FU7r8ZUMly8+X5rc3JIW4BOpMGenbPuYdh+9LVGi6XdJsHZL2egmZNQ21AE9fz05+d 1uzcfE81wObcKAHFVK06vwX0PYEEFsV6rBUxXU7Dr1YiGTo+Fc4JXT3OTpWc0XeQ/Jb5 s2H4lmmetBCi/8Tg4HlfJrQM5p9OeiSfTSIOC7VOJUyq6DpjDycKwGgIVIzGpLDFNHGl aHN8cMDPeD38vkMQuEB39Aw1+CVXP/6sUGSVWFBEibIQawIXBXt8zxT2UtAbI4P4Adrr KzfSkQBCN2QCiREM5Hn+6jOO5uvW5Wt6/Hk32Iw/AdVx17qPX+tN2n9BIbr+roj6rday JDTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="A/pJjqaX"; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn15-20020a1709070d0f00b007b911ee70cbsi1052702ejc.796.2022.11.24.10.45.10; Thu, 24 Nov 2022 10:45:35 -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=@linaro.org header.s=google header.b="A/pJjqaX"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbiKXSox (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbiKXSoS (ORCPT ); Thu, 24 Nov 2022 13:44:18 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A1B313395F for ; Thu, 24 Nov 2022 10:43:59 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id bp15so3647605lfb.13 for ; Thu, 24 Nov 2022 10:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KMI82BhiRMmxUe8PJNsOEzjk6w68RCfM4srJwtzf3Io=; b=A/pJjqaXriyV3t+NRhNnf1QWTWMBl9IobPVwNj6Z5c3QojKt1pT8J5GpLkosAPYg9E Tz7PEAFOrHUO4XXuyYqEC1PRkNkHQPjrOiuMXur6E2g6TZQMNPYpQLPJxWrBtPbhUWb2 JzEN1R61V9PtoIUXzDwQ/0twEmgBPDK4jKgjltnwxY2n2U099pkAujXBtcdCWChRNd3k Vw0NC3MCCMmRPz6oXEBkbyVJ+udcWMssm15fpu+fCqcYg1dRpO4U3hR5rOzEP1WvWN2Y LA3WygIYyeJ0+OsKgGbKNuJJn0oMJZSETNsmSGG3bxrKhQaSPfj0wNLWXaRWZ9ci/GKY 4Ocg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KMI82BhiRMmxUe8PJNsOEzjk6w68RCfM4srJwtzf3Io=; b=cZkONWyznvzaaSQkaj8rIZDwXxZ0jBXxYr86BxFltnDBTotmC3YPAkFL7e8fuEg/Rm 6NbOzS8eEv7PMFXF+PxbMGrWRZGzmdUXY+c9QQF16OeaHDjuaPlZvTlIWRm4kPvnrhov gV20oIXd+bf+VnaTOU+BsSa0lFeaqAAx+jkfHmxJilMU4+GnhUuCnk3A75lyxzG/Zb3A MEacMRyjZjQ+ZuHEfwJs8s8/SGZHlONHHc5g0b7aIDtBqs/cRruYxghVF2k16/W1bna2 BVaKgk8lKtmQisqV/m/brbsOaYv0brSCIpWWO731OfdL6Skqaa6O23guBARC5WxjE/Hn FnGQ== X-Gm-Message-State: ANoB5pkuBZkJb2yp+4acDzTRJ6fknEwKyNyelipemzCCSpQSYgiFgdFr 2VDIPcdT4kDmjTKT8yzSwQbauQ== X-Received: by 2002:a05:6512:3d87:b0:4ad:5fbb:a5b0 with SMTP id k7-20020a0565123d8700b004ad5fbba5b0mr5374054lfv.466.1669315437716; Thu, 24 Nov 2022 10:43:57 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:57 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 12/15] dt-bindings: remoteproc: qcom,sdx55-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:30 +0100 Message-Id: <20221124184333.133911-13-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404206897337260?= X-GMAIL-MSGID: =?utf-8?q?1750404206897337260?= Split SDX55 remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v1: 1. New patch. --- .../bindings/remoteproc/qcom,adsp.yaml | 4 - .../bindings/remoteproc/qcom,sdx55-pas.yaml | 101 ++++++++++++++++++ 2 files changed, 101 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sdx55-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 7b93064fa0ae..10c96445da11 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -30,7 +30,6 @@ properties: - qcom,sdm660-adsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas - - qcom,sdx55-mpss-pas reg: maxItems: 1 @@ -125,7 +124,6 @@ allOf: enum: - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas - - qcom,sdx55-mpss-pas then: properties: interrupts: @@ -203,7 +201,6 @@ allOf: contains: enum: - qcom,sc7280-mpss-pas - - qcom,sdx55-mpss-pas then: properties: power-domains: @@ -230,7 +227,6 @@ allOf: - qcom,qcs404-cdsp-pas - qcom,qcs404-wcss-pas - qcom,sdm660-adsp-pas - - qcom,sdx55-mpss-pas then: properties: qcom,qmp: false diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sdx55-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sdx55-pas.yaml new file mode 100644 index 000000000000..cbeaa00ca4d4 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sdx55-pas.yaml @@ -0,0 +1,101 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sdx55-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SDX55 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SDX55 SoC Peripheral Authentication Service loads and boots firmware + on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sdx55-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + interrupts: + minItems: 6 + + interrupt-names: + minItems: 6 + + power-domains: + items: + - description: CX power domain + - description: MSS power domain + + power-domain-names: + items: + - const: cx + - const: mss + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + remoteproc@4080000 { + compatible = "qcom,sdx55-mpss-pas"; + reg = <0x04080000 0x4040>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interrupts-extended = <&intc GIC_SPI 250 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", + "stop-ack", "shutdown-ack"; + + memory-region = <&mpss_adsp_mem>; + + power-domains = <&rpmhpd SDX55_CX>, <&rpmhpd SDX55_MSS>; + power-domain-names = "cx", "mss"; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + label = "mpss"; + mboxes = <&apcs 15>; + qcom,remote-pid = <1>; + + /* ... */ + }; + }; From patchwork Thu Nov 24 18:43:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557992wrr; Thu, 24 Nov 2022 10:46:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xbWOs/RdrxI5ZUc8DgqLIRQxQx7sH+pv/N708DOZ7N88FMjg9pi6UzmKxiluuZRrcxJON X-Received: by 2002:a17:906:328c:b0:78d:cc87:b1d7 with SMTP id 12-20020a170906328c00b0078dcc87b1d7mr29318960ejw.543.1669315602580; Thu, 24 Nov 2022 10:46:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315602; cv=none; d=google.com; s=arc-20160816; b=bCf+oOMOrBC7oKxoQlKdQ5ZKOY0ZXI8nJglTPoKHEQcIcbI6Z4Ha1ba3+FfE+e6q2l uYJ/zt9TVRRizIIQX6/9vykgmyr6Evm9mZWfUCZFSJ0mVQ94/Fi3ShK4ttPms6LThYxo gJ4MsVNVg0KJx+JzgWAvtLcXgCYKvBxyg/y+Nc94hupR/2IlK0K1NZVeCgO347vW5A4u 8zJ9mzBZwM68Bw9BtFeN87BGo83gpMdEaffISqJmynZngwEUVb6LMfGeQNGv6vXDuKbM 2zdATbEtzUkyl18sEXknqY6Zh1cGMSW3u3StxjIbwnZEnyB9vyMklGPZFa0UIpa69bFe yqpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/yDE3gRUNG67QM74MH23NrqOxB5UmpZn9c+KMHml1Tg=; b=GOmEW9/9KGbxJdKtvVUqtRWZgeY+jZIBT+9dDM9c9OBc7DfYWnty8uTwa+/yCsHZqO wuFq8Zjb8pWR/SRtPZvI2H0j7/GHQ7JWUeun4QIlx81MyZQJBIabk0Ug7I3c+rfVPVTK Fqe+fgT4CzrClu9bF3p9/v2XisJrcz0MKOVppYTvnxu3JJMlyKDicTm0azXjfiwDEJTi 4EQpDLFeFUCiLP2975qgafv/3BYs1X0FoNtzaGbdjMN7PUZCNXnkAr4SV/T5VcAEsyI6 pAtmRPnzEnDX5ZFHL/Br4wCkw4sX06lrABDuhnqWv623AJlyxoWC2jFs3qE6iqY5aL4Y ofBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=flDS2b0G; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15-20020aa7d5cf000000b00461b84a010fsi1537353eds.295.2022.11.24.10.46.16; Thu, 24 Nov 2022 10:46:42 -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=@linaro.org header.s=google header.b=flDS2b0G; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbiKXSpB (ORCPT + 99 others); Thu, 24 Nov 2022 13:45:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229985AbiKXSoY (ORCPT ); Thu, 24 Nov 2022 13:44:24 -0500 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD655133970 for ; Thu, 24 Nov 2022 10:44:00 -0800 (PST) Received: by mail-lj1-x236.google.com with SMTP id a15so2848654ljb.7 for ; Thu, 24 Nov 2022 10:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/yDE3gRUNG67QM74MH23NrqOxB5UmpZn9c+KMHml1Tg=; b=flDS2b0G431Ael55u4XvBgIdPcY0/tcfoay6S8aRcUCQQYnAeOGkAHzYtKgbzHDQZj Appvy3+589mSyojvsHBWQnIAftbxKUMLqknmn7ygiTbolRDE6iW9VYpc2jgEz29xbdiS 6pPTrm5cl6+ZidZNKzWR0G653TMIQKQG+wMfVX8qBAay2AJm7VgXI/1S5s7xJ4+Qox8C 5QT7rlR3OyjH3mx7s2fY3TKUcCOqjnUAQP2rBERFdPCn8VbgKs3IvX4GQfEL/8JdBXKz oKhArWVjy5+4awHVxZGmziaTBoH1gDijgEzrwxanSEuDwIB/cFH90WuhuvPFY0fR7KCY Zh+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/yDE3gRUNG67QM74MH23NrqOxB5UmpZn9c+KMHml1Tg=; b=MjivS7BlCKDiXWtbplHMPOjWpSfNvPN0ZHGEB4TI2nqT/keClcQ7OIVvzKRxZCTFB/ zxyjyoIUL2tUL4OYxi+Po4KSrnBpzJClL+h/EzAU+Vj+4zRyCF4D24Kw2jAune4qE6To 0YJbbUjZR8wuopgonR15dybkF/D85KNciCOD0xe2FLAw8fYq+Z/oh5dEXHfM9AfXsooD I5HWueWhrBbBPLB/hEwoGkpi+sW67oxu+NdRb2zSWeSzpAeoNNxOqVfHspVaGUK9ds+r 5+LyNSBWipqvC/BJHHY5jtPWoK2Ini9bN7yOFCbtR3cbJPtOw+mUnnxpfeAZbjTARNky 8E9w== X-Gm-Message-State: ANoB5pmRuBqiksO6ax0HCJqrYL40k5P58ChRoXtfNsCbiPLY5uAu1FJE oJWiZaeo7cTthY17Ej2W0G08ow== X-Received: by 2002:a05:651c:906:b0:279:1349:b2e2 with SMTP id e6-20020a05651c090600b002791349b2e2mr10464425ljq.382.1669315438899; Thu, 24 Nov 2022 10:43:58 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:58 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 13/15] dt-bindings: remoteproc: qcom,qcs404-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:31 +0100 Message-Id: <20221124184333.133911-14-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404277381809878?= X-GMAIL-MSGID: =?utf-8?q?1750404277381809878?= Split QCS404 remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. New patch. --- .../bindings/remoteproc/qcom,adsp.yaml | 12 --- .../bindings/remoteproc/qcom,qcs404-pas.yaml | 86 +++++++++++++++++++ 2 files changed, 86 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,qcs404-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 10c96445da11..9fdfa9476ca9 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -22,9 +22,6 @@ properties: - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - qcom,msm8998-slpi-pas - - qcom,qcs404-adsp-pas - - qcom,qcs404-cdsp-pas - - qcom,qcs404-wcss-pas - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas - qcom,sdm660-adsp-pas @@ -61,9 +58,6 @@ allOf: - qcom,msm8996-adsp-pil - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - - qcom,qcs404-adsp-pas - - qcom,qcs404-cdsp-pas - - qcom,qcs404-wcss-pas - qcom,sc7180-mpss-pas - qcom,sc7280-mpss-pas - qcom,sdm845-adsp-pas @@ -105,9 +99,6 @@ allOf: - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - qcom,msm8998-slpi-pas - - qcom,qcs404-adsp-pas - - qcom,qcs404-cdsp-pas - - qcom,qcs404-wcss-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas then: @@ -223,9 +214,6 @@ allOf: - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - qcom,msm8998-slpi-pas - - qcom,qcs404-adsp-pas - - qcom,qcs404-cdsp-pas - - qcom,qcs404-wcss-pas - qcom,sdm660-adsp-pas then: properties: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,qcs404-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,qcs404-pas.yaml new file mode 100644 index 000000000000..007349ef51ed --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,qcs404-pas.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,qcs404-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QCS404 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm QCS404 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,qcs404-adsp-pas + - qcom,qcs404-cdsp-pas + - qcom,qcs404-wcss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + interrupts: + maxItems: 5 + + interrupt-names: + maxItems: 5 + + power-domains: false + power-domain-names: false + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + remoteproc@c700000 { + compatible = "qcom,qcs404-adsp-pas"; + reg = <0x0c700000 0x4040>; + + clocks = <&xo_board>; + clock-names = "xo"; + + interrupts-extended = <&intc GIC_SPI 293 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + memory-region = <&adsp_fw_mem>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + + qcom,remote-pid = <2>; + mboxes = <&apcs_glb 8>; + + label = "adsp"; + }; + }; From patchwork Thu Nov 24 18:43:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3557620wrr; Thu, 24 Nov 2022 10:45:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6CB0cSPyCJ1LOANAKIZgAZk3f7aHRb6Ia0v6LkKMwhyHPM1uaxnpKNjmldIX+fonYyZ3R9 X-Received: by 2002:a17:907:11c5:b0:7b1:316c:38f7 with SMTP id va5-20020a17090711c500b007b1316c38f7mr29654151ejb.387.1669315553177; Thu, 24 Nov 2022 10:45:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315553; cv=none; d=google.com; s=arc-20160816; b=rPXOBrHYBX1FDyC+OYGsa5PT69z2Hn1sonlyb5NO329w+WnwF3yMmwhjWbwe/b8MpP dzUmonz7ftx4dGrdMiwTf8wcFLX/8sLavSemyPtejFLr2w8JHtZUV6RdY1jgDP5c5TPh YKV4SVQhNKNIriGlWdPJt1Xwxrg1CxjKfxk4HyNQPN0a0GFNbd0VkFm5a1CnMYuMyhN+ f/gGDhni9OJR001h6L8kBKbGmgXvsKOLx9vDapKUhj+Z/P+etItcJvAhYW3SxcLh7kpF Yo7xCpTixi+ERml5Y0EN/sHX66mgPEo8wSajurI+61l+JAlharQntxdoJeVfemAH+RCj ZJjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=58JRv9nwfZ1dka7LFvcfd23UiYZAX7REr403+LL6/r0=; b=oyhEADAZ6VAvcc8k8xJIbCXxfbMao8ekw+wmsz8pkGDFerJbczDgaeChnCPJlIST9Q +4cPbxE/c1YJ/XLPV5aVmsYRVStL/FenTan10eXedsh111kc1y+IQqbx6XdcwbA5dZJl roVBlvOUgbnHRX8SLjkhm2rLaUvIW4CA5ig+vsJBVqUSIsUhzyKjbZkAOhyb3r0TFnZL UeJIXLXIJypDJdfqivEvFvorb2sMlvCpVdEVq/A2ce5h8tVkQEGIIF0scP+Ozsr5Gbn0 QB1h4eZWsoiZRAQg38bFfxKVeQWkxgK/UUVDzRzK5s9RIh1GSCBXZ0+7iGYKvdafUeMg MKRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qGfoN3eR; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg4-20020a1709072cc400b007aeec2bf18esi756009ejc.529.2022.11.24.10.45.28; Thu, 24 Nov 2022 10:45:53 -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=@linaro.org header.s=google header.b=qGfoN3eR; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbiKXSo6 (ORCPT + 99 others); Thu, 24 Nov 2022 13:44:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiKXSoY (ORCPT ); Thu, 24 Nov 2022 13:44:24 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B85013182A for ; Thu, 24 Nov 2022 10:44:00 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id l8so2818102ljh.13 for ; Thu, 24 Nov 2022 10:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=58JRv9nwfZ1dka7LFvcfd23UiYZAX7REr403+LL6/r0=; b=qGfoN3eR1ixTOAq2JSlcvGCar3wwmIbRHxxDp1ouaBo1p/7zB3iTS7rutp/j2yLr8P 6fn3ZEJPswKD0xxG7DUVd2xLiiEN83dRBfwQ0in5u1FJcYLAEiR2mQLVqyjZi2ugvRJg wVoKcZ+RhqkkJ5Ib5ycq/ub+1N7LnAHhDaJFrpwZnGYrUFw62MYOEERcI5vGpSQeH+JV s7XhubgFYJ70ygSkNZnmDuNUQL85NMVV3kXvEgoeJ/L0NP3AxDmJR3cA70/ftvIkxDWL X/dswNIxHw19hLhxGRPVCu4xraqtLDV6ckjZjWg7r5NRyjjk0tMBjnz1ahUS1Opv0dzw BD2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=58JRv9nwfZ1dka7LFvcfd23UiYZAX7REr403+LL6/r0=; b=Qzi4czA6F4dcdcAn8b7CXnaV0LcdDaHJEW0KGVhfflPzwEAZkN9tu/LXA1BOAHajoY Voqgrcc37GsUarRP36vPvOT2QNY7nMvZJwj+/GwxgZ0G073SBZ1ScNhcJEVOEzmJoDlj HGJ4L6hU8JPpL+Jm+4Rl8D1NYtUsLQIpMXXAownMSqbfJRmuJO3l+54BxsbEb3fwDnu1 F1AfEP4Ie32Qf1m7Rh6c4tEhzKWyRibGnoz5oR9XX75B17pkY9mX1PIHVOh4cWV6oUOc qtos1X1MSg7g1WE5MM/jalnn00eI/eqrzC/mMJlSwfP2U6VtCF/b0Y30gY0iO7aeOUEI e8JA== X-Gm-Message-State: ANoB5pmd7e/Q5ifM4jhmQzjiunWyy7gReZj+PJGkkMTRfFoTJ8KzTq4g omLg/rGEBtterNrnzgetdVAqlw== X-Received: by 2002:a05:651c:198d:b0:278:eef5:8d16 with SMTP id bx13-20020a05651c198d00b00278eef58d16mr6819436ljb.220.1669315440098; Thu, 24 Nov 2022 10:44:00 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:43:59 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 14/15] dt-bindings: remoteproc: qcom,sc7180-pas: split into separate file Date: Thu, 24 Nov 2022 19:43:32 +0100 Message-Id: <20221124184333.133911-15-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, 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?1750404225326233359?= X-GMAIL-MSGID: =?utf-8?q?1750404225326233359?= Split SC7180 and SC7280remote processor Peripheral Authentication Service bindings into their own file to reduce complexity and make maintenance easier. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. New patch. --- .../bindings/remoteproc/qcom,adsp.yaml | 54 -------- .../bindings/remoteproc/qcom,sc7180-pas.yaml | 125 ++++++++++++++++++ 2 files changed, 125 insertions(+), 54 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 9fdfa9476ca9..7848d1d658f4 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -22,8 +22,6 @@ properties: - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - qcom,msm8998-slpi-pas - - qcom,sc7180-mpss-pas - - qcom,sc7280-mpss-pas - qcom,sdm660-adsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas @@ -58,8 +56,6 @@ allOf: - qcom,msm8996-adsp-pil - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - - qcom,sc7180-mpss-pas - - qcom,sc7280-mpss-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas then: @@ -108,20 +104,6 @@ allOf: interrupt-names: maxItems: 5 - - if: - properties: - compatible: - contains: - enum: - - qcom,sc7180-mpss-pas - - qcom,sc7280-mpss-pas - then: - properties: - interrupts: - minItems: 6 - interrupt-names: - minItems: 6 - - if: properties: compatible: @@ -167,42 +149,6 @@ allOf: required: - px-supply - - if: - properties: - compatible: - contains: - enum: - - qcom,sc7180-mpss-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MX power domain - - description: MSS power domain - power-domain-names: - items: - - const: cx - - const: mx - - const: mss - - - if: - properties: - compatible: - contains: - enum: - - qcom,sc7280-mpss-pas - then: - properties: - power-domains: - items: - - description: CX power domain - - description: MSS power domain - power-domain-names: - items: - - const: cx - - const: mss - - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml new file mode 100644 index 000000000000..6fd768609a66 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml @@ -0,0 +1,125 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sc7180-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SC7180/SC7280 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SC7180/SC7280 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sc7180-mpss-pas + - qcom,sc7280-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + interrupts: + minItems: 6 + + interrupt-names: + minItems: 6 + + power-domains: + minItems: 2 + items: + - description: CX power domain + - description: MX power domain + - description: MSS power domain + + power-domain-names: + minItems: 2 + items: + - const: cx + - const: mx + - const: mss + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sc7180-mpss-pas + then: + properties: + power-domains: + minItems: 3 + power-domain-names: + minItems: 3 + else: + properties: + power-domains: + maxItems: 2 + power-domain-names: + maxItems: 2 + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@4080000 { + compatible = "qcom,sc7180-mpss-pas"; + reg = <0x04080000 0x4040>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interrupts-extended = <&intc GIC_SPI 266 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", + "stop-ack", "shutdown-ack"; + + memory-region = <&mpss_mem>; + + power-domains = <&rpmhpd SC7180_CX>, + <&rpmhpd SC7180_MX>, + <&rpmhpd SC7180_MSS>; + power-domain-names = "cx", "mx", "mss"; + + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + label = "modem"; + qcom,remote-pid = <1>; + mboxes = <&apss_shared 12>; + }; + }; From patchwork Thu Nov 24 18:43:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 25690 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3558177wrr; Thu, 24 Nov 2022 10:47:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4h00kmKq9swpDXimlgqDJkxJrVeKjcu4bvdN21OGwf4FM1qZKORUjf58D5/9CuoR4u69Jl X-Received: by 2002:a17:906:60c4:b0:7a2:36c7:31ea with SMTP id f4-20020a17090660c400b007a236c731eamr14236094ejk.210.1669315628260; Thu, 24 Nov 2022 10:47:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669315628; cv=none; d=google.com; s=arc-20160816; b=ZDk9Y7sT2N2CrjvZlEHqdLIZXkOVWxS2Q5H5rJD/vmaeoHMyy+L1O96YKiUTWuJTFS YFApyzmi5roTuNt4GP+CDiA9Bz2gA0VTvwueQhuZtCcLYSPrTXpt71B3iClB1V1ElGuD J2MEDGUSpRvxwaNA3i44NIYexJ55WI5iwk8SuO5RpAg+UmK0orGAF/3Va5ivZs9u3Vi8 XNxQZ0BOqduOsDDACo/jt9qnfN6WkQ5Yoija5BmoMuiijJrxabP7JyxxoWNT6Yq/S9iI LJHE+ddX5MmYSZWRKV8PWqdWr3oYkLCnwnkV4W7hzk2Sqr2aFvM9/pfiBz7sK9QbAdTL bY9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qVrcHr8M8g+X+IjIamBy7xJQroBzKdxIzP2voTF9VV0=; b=H+Tm5mZofe2c+dhlY2NaDphszHHL+hssZYUofxT1IBXok2gobK4CqcMFtJOejYYKbr YuJn6boUlD8jypOSApuT86HHR4ptjf1EsxxJIhpSb1lnZJ595UBjACkEsb5mgXEnf71C aq/AaQTqlM+2ikPBHaumBuLkpWS9n3kO9V95Q1xzvrBdzVKMcfpbe3u0ytsHCOh4jGyC ObBJ73uRwSjHWz4WltO6Ze5bDlHbY6xnYF0UJFzQHZnGPN6ZEpMENUxvCdOxFiSnqM3Y 7iC/ailxux9Te+eKFzFhHb3dKn/QGHjjp2vb3GOjr97oztMVUOGeg/XFodNByH5YmlcQ 1X/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hDXo6BZh; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a056402090900b004619acbc70fsi1066575edz.505.2022.11.24.10.46.42; Thu, 24 Nov 2022 10:47:08 -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=@linaro.org header.s=google header.b=hDXo6BZh; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbiKXSpK (ORCPT + 99 others); Thu, 24 Nov 2022 13:45:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbiKXSoe (ORCPT ); Thu, 24 Nov 2022 13:44:34 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 104D4134110 for ; Thu, 24 Nov 2022 10:44:01 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id a29so3680552lfj.9 for ; Thu, 24 Nov 2022 10:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qVrcHr8M8g+X+IjIamBy7xJQroBzKdxIzP2voTF9VV0=; b=hDXo6BZhUv/y2cwG63DN+/++48ELKOiqMPH8mrPvSvGT6vNs+wDJQAUQ6YV05qiTJ0 vExfY3dsgfYBpm5CXbOeHgImIsM6RyTF1neUfPi1IliquK2XerIEA2D8Nwy56l1yBM5V 0/0gG4hREL9dm13097+9vX4fSHDcimf+d2rP7SEP6hCrE0hRLE67f0+PnI79Pl7g3Jr0 MezRE4HUJZ+xZ0jdV8oQBPS4AsoUC0HHX2ua7AxhX3JJNLmly1+u+n5vhvqtzMnYMXCM SzE5vqU3LOlyxm7wOEEEkZptGaqP72vnLuAHME+rnwqqQrtreGrMo2UrGXn/xPVeb0Vb Tv/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qVrcHr8M8g+X+IjIamBy7xJQroBzKdxIzP2voTF9VV0=; b=hNKv4gmgqVLygd4Mw1ezYah8HQBUpRvQxJ1rI+fQdGUpxf2ldio+avSyK9xQU8ORjT 2goJMkTd7U60+kOa5CK6RAbmNst2shj+fyc1a2b78M0/HvkXughRX0x+j0OQVUCOJA1T WhVWyvByA+d6ILO4+E7IGb13ZB3aG18QR8/IWbaG2c3bVpT2zrc4pejvpb289Phc9p2/ bN+Ec6xeG44WgZVg1FqGz8gS0DGJ+ihBp2sFKSjN1Q7sjdIVGZrzSsggL5sROlM3WlrZ ev1rNJhydeKw//4NXtu5qqwbKvYPtExIS8xZvVaQb1WuZeitFjqKWJ0M/Ug1eI8NpsSI y9KQ== X-Gm-Message-State: ANoB5pkxcdnntYHDosZYDVn/Ca3rCl/sHtbuS2b5+WqVziMBfxNrVAC5 7kNIO4fhXLD/w6qeoxuKD12YaA== X-Received: by 2002:ac2:5f42:0:b0:4a2:645b:15cd with SMTP id 2-20020ac25f42000000b004a2645b15cdmr6213235lfz.308.1669315441409; Thu, 24 Nov 2022 10:44:01 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v7-20020a2ea607000000b0026e0434eb1esm159098ljp.67.2022.11.24.10.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 10:44:00 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 15/15] dt-bindings: remoteproc: qcom,adsp: correct msm8996-slpi-pil clocks Date: Thu, 24 Nov 2022 19:43:33 +0100 Message-Id: <20221124184333.133911-16-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> References: <20221124184333.133911-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1750404304238307058?= X-GMAIL-MSGID: =?utf-8?q?1750404304238307058?= According to DTS and Linux driver, the MSM8996 SLPI PIL takes two clocks - xo and aggre2: qcom/msm8996-oneplus3t.dtb: remoteproc@1c00000: clocks: [[20], [3, 64]] is too long qcom/msm8996-oneplus3t.dtb: remoteproc@1c00000: clock-names: ['xo', 'aggre2'] is too long Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v2: 1. New patch. --- Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 7848d1d658f4..9af2db72b337 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -54,7 +54,6 @@ allOf: - qcom,msm8226-adsp-pil - qcom,msm8974-adsp-pil - qcom,msm8996-adsp-pil - - qcom,msm8996-slpi-pil - qcom,msm8998-adsp-pas - qcom,sdm845-adsp-pas - qcom,sdm845-cdsp-pas @@ -72,6 +71,7 @@ allOf: compatible: contains: enum: + - qcom,msm8996-slpi-pil - qcom,msm8998-slpi-pas then: properties: