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: 592946 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 26952CCA48B for ; Sat, 23 Jul 2022 08:24:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbiGWIYJ (ORCPT ); Sat, 23 Jul 2022 04:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237029AbiGWIYH (ORCPT ); Sat, 23 Jul 2022 04:24:07 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AC7E41998 for ; Sat, 23 Jul 2022 01:24:06 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id e11so7785956ljl.4 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=KiRaOFZTEzevx32/CzB4z8NKN7AI09jcBBs89h3ayAMnJV49qbq2scEpW3gDfDfeev d1wmeEbIgmaY+KJ2844SIc5RXFpLFI0wPumJ6iMyBq4t3RinXwrrJm/sYPUbeLSjwk2h aC+oY5HuhbWmEgkzpv65nZgqOOkO4Yl/e3rl/+f5R7PD6F0RLGDpZris0nqpwnYeQmL3 F7faMwP2Hn62ugeMdoiNs1u43/6C46DoP1NT02gluAATXWAeDnYTgwZTwvCd317Z7Dno EDqWpHCqXasnNPvnqeJP2vS3IOXL40KxiKUlPJrN15ryMMYFGFkw9RE8196hZJCKe3Bh vGYA== X-Gm-Message-State: AJIora/HiIOKigiZFJkDcDmCykonIvxb1FxBXfm8zMEIZh3DcGWFipzK WuJ3GWTXFM3hr0bNH4PvUrR5hQ== 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: devicetree@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 --- .../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>; + }; + }; }; }; - }; -... + }; + };