From patchwork Sat Jul 23 08:23:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 593193 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58887C43334 for ; Sat, 23 Jul 2022 08:24:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232087AbiGWIYG (ORCPT ); Sat, 23 Jul 2022 04:24:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbiGWIYG (ORCPT ); Sat, 23 Jul 2022 04:24:06 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D12712D35 for ; Sat, 23 Jul 2022 01:24:04 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id o12so7786809ljc.3 for ; Sat, 23 Jul 2022 01:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xmn9d8wzhnb5rJgQvodKI4xlV+AmvezLKvvvO2g+5Xw=; b=q3rCjGjHxIsteFA+mGheCmcGphALCC5qQyvL1IWmxpnh/N/PFGUT5COeKVE2CyVQhk u1ccqAadoN5RaUzUFxGnVlmNRpR4Bmug1TiVJtmttUclLGh4iV1ApGMhNXZLrmf7usKT /2AWyFOtZwIOGMz3CBRAWrWxDtd7HE3/hQAFfvaKyDX+VupLFyXWF1Ys4d34FZdzkkiM neZRjmR6j3q+ji+arzdGcyrx3JYPOF6wWkhJOyG8RKTbWWIf9Wo5PD7D66zztAEMVfz5 XCppdaNqOcPxkGnnoE4sdIkB/ecyiaek6jJot9RHHZiAGIEQJ2x/8uU+KsRDTUCUsFTq 9Zmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xmn9d8wzhnb5rJgQvodKI4xlV+AmvezLKvvvO2g+5Xw=; b=kKjwfuXPBqIyTS18rYfASm9zH4VtFiTwrTVtY8q9FbbZs/yqwbhXCE/2dZ+0RlEqHF KTpN6BssrkBOeRCG774ISHO6wl+kmun+LbFzH4o/5FTaTsPioURik7iM+Jt7jO77Hvso aFpV9RLH48E5btTc2b6sHUf1HmHqbMps8pUOBxUEIyWvO6LQxj6LyJQFbNdFvBrI6QUW 07F/Y0nK0iyg2GEOdw0pfRSd8pIGAmhJvUcaj2Na4L8XDB0A2QF9Nj4FNP0a8TkCXtpY ZKwexj4phrE2X9WWMTyoQd8lUEzCZLhIxeMtMrc8YE+cwk2uEsyry/tcIB8YubctyecL YE+w== X-Gm-Message-State: AJIora8VmpvRSlRO7Ha83rotyeMecK9rBC8/YiZPQJ6AVOUoTSOtzsLZ EgsP6DGz6D/unCs6Gdo/yBfv+w== X-Google-Smtp-Source: AGRyM1sSYW8ZLNTSp/sYr7jGuU90PzmK4d+zJ/DDks0XWBPtFsmcrMWTuXSmSg0Z1dCOKCZ/lekjgQ== X-Received: by 2002:a2e:92c8:0:b0:25d:6ddf:e71d with SMTP id k8-20020a2e92c8000000b0025d6ddfe71dmr1166082ljh.170.1658564642591; Sat, 23 Jul 2022 01:24:02 -0700 (PDT) Received: from krzk-bin.home (93.81-167-86.customer.lyse.net. [81.167.86.93]) by smtp.gmail.com with ESMTPSA id n22-20020a05651203f600b004886508ca5csm1545801lfq.68.2022.07.23.01.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 01:24:01 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: soc: qcom: smd: reference SMD edge schema Date: Sat, 23 Jul 2022 10:23:57 +0200 Message-Id: <20220723082358.39544-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The child node of smd is an SMD edge representing remote subsystem. Bring back missing reference from previously sent patch (disappeared when applying). Link: https://lore.kernel.org/r/20220517070113.18023-9-krzysztof.kozlowski@linaro.org Fixes: 385fad1303af ("dt-bindings: remoteproc: qcom,smd-edge: define re-usable schema for smd-edge") Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml index 62bebb5f83bc..9b3efe97f47c 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml @@ -21,7 +21,7 @@ properties: patternProperties: "^.*-edge|rpm$": - type: object + $ref: /schemas/remoteproc/qcom,smd-edge.yaml# description: Each subnode of the SMD node represents a remote subsystem or a remote processor of some sort - or in SMD language an "edge". The name of the From patchwork Sat Jul 23 08:23:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 592881 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE687CCA489 for ; Sat, 23 Jul 2022 08:24:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237066AbiGWIYI (ORCPT ); Sat, 23 Jul 2022 04:24:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbiGWIYH (ORCPT ); Sat, 23 Jul 2022 04:24:07 -0400 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 197E540BFC for ; Sat, 23 Jul 2022 01:24:06 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id k19so7766348lji.10 for ; Sat, 23 Jul 2022 01:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uzzbvpcg92Vbq8cJiUX3FDJ4W3Mjvx8Z9ViLMy+/Iz0=; b=Cps9dw8np9iAWjKLFJuS1W1hsqiaDqmn2ucE7ToyztqPWHvlnSu2mNr5uYcLGCsJCt tAC9OiyjVsvpCZJxaEfww2Dy5AWXb14vGJrz0v0Km8Yv5MegvB/RRADkQng4k2Z93ris fhVYcaocO0vfAU+uCbFfazw2BkCpRQuIefpdyENlc2HiSLev89LYF1B2YvmCNWS9oT17 +1OXLs3gITMbV6Onchfdd7mkz12evzcqmDx3NCTWPdLX9vbFHv4PP5YPSLBEMqnM1jk5 oHZemE5TKf4YM66PNyZRbUosunHyFKkfgVmaQoiimOdBj1eGfWhDdkCjtEUaZzEhxYZN 0PoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uzzbvpcg92Vbq8cJiUX3FDJ4W3Mjvx8Z9ViLMy+/Iz0=; b=p4Zp1HMG8eDiUeFgaCrjfePd2nuQ2SXACa2pGGcafmju2P3S1CLKFmIxXv1nnNf6RY Aswv45jH53UjXUhWft2Z4wbsIAcG/DGGn1s+gwGdQTw8UAlfXVDdZErSl315xTDvnTVR rly3zbVFPY6qlxQw2DscnUPtonU46oNBoraa9Mo/T0OlBqva6nqU0LtACjkRW8u+XJ2r zM21+z4W7N2XY2oGssV4rfDwlbnEt+vxO/vHNPQs/nwnHRRyl2h1iMV/koqrQSAcNHAZ o/b4W8i5a/lP72kZSRQmGsgH3nW28enUS+j6oiB8L3PNBCP2qug0qqUD0ekht/d+QjKq LvZQ== X-Gm-Message-State: AJIora/QLAwLpcOeVRbO75XLsNvAaEAf5kvx//fD8+dfSr7aGKOkHLje b0cSoX7Zv1iPZFIJlrGugESYzQ== X-Google-Smtp-Source: AGRyM1vL5hOgF0NC4f4hiyfHgxovQf/IcINrfQ3sxHEt7eJkUJjP+rW3wnpLzsb9MXEXUoVJWs3RGQ== X-Received: by 2002:a05:651c:4cb:b0:25d:9a43:16fd with SMTP id e11-20020a05651c04cb00b0025d9a4316fdmr1171257lji.493.1658564644447; Sat, 23 Jul 2022 01:24:04 -0700 (PDT) Received: from krzk-bin.home (93.81-167-86.customer.lyse.net. [81.167.86.93]) by smtp.gmail.com with ESMTPSA id n22-20020a05651203f600b004886508ca5csm1545801lfq.68.2022.07.23.01.24.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 01:24:03 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] dt-bindings: soc: qcom: smd-rpm: extend example Date: Sat, 23 Jul 2022 10:23:58 +0200 Message-Id: <20220723082358.39544-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220723082358.39544-1-krzysztof.kozlowski@linaro.org> References: <20220723082358.39544-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Replace existing limited example with proper code for Qualcomm Resource Power Manager (RPM) over SMD based on MSM8916. This also fixes the example's indentation. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../bindings/soc/qcom/qcom,smd-rpm.yaml | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml index 50f834563e19..09d5bfa920f2 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml @@ -92,12 +92,33 @@ examples: qcom,ipc = <&apcs 8 0>; qcom,smd-edge = <15>; - rpm-requests { - compatible = "qcom,rpm-msm8974"; - qcom,smd-channels = "rpm_requests"; + rpm-requests { + compatible = "qcom,rpm-msm8916"; + qcom,smd-channels = "rpm_requests"; + + clock-controller { + compatible = "qcom,rpmcc-msm8916", "qcom,rpmcc"; + #clock-cells = <1>; + clocks = <&xo_board>; + clock-names = "xo"; + }; - /* Regulator nodes to follow */ + power-controller { + compatible = "qcom,msm8916-rpmpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmpd_opp_table>; + + rpmpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-1 { + opp-level = <1>; + }; + opp-2 { + opp-level = <2>; + }; + }; }; }; - }; -... + }; + };