From nobody Sun Sep 14 20:21:21 2025 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 0825CC38159 for ; Wed, 18 Jan 2023 13:52:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbjARNwS (ORCPT ); Wed, 18 Jan 2023 08:52:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbjARNvj (ORCPT ); Wed, 18 Jan 2023 08:51:39 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B6F2A146 for ; Wed, 18 Jan 2023 05:22:59 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id qx13so24812997ejb.13 for ; Wed, 18 Jan 2023 05:22: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=BQXELW2Do44btByeSJJTILU+sMVZVBVp+PBgWqh0iPQ=; b=mdlQpnPf+uKgvSYoCCHJ/a33KtYz7Y/Z91Keh7J1dVduTh+DVWviEa7bfa+49wHu6U XjrdGvOWaikxGOrenkW4klkxNFQaO6IW6f7MjBG6/680yL+aBU6J9nCD00cV08qFTA46 DqL0eqKskZkO+mYgQLtns5Vn/bX1CpirCtj1frA+wuOFVqUyBWyXaLYJTSs//0wIiZax g8QBmppPDRSTF2WGTaulWHljkIBxB/gg3lKrtd1bxx2LLXx0kbycZw5WQg6pyE8grr6J iHGs9kQZtpanuG7WPuIj9c8YBKcwcI6pI9budQ8ntLeJ6WoQMvuY/234Vz0Bwg+YZ9YS 6O4g== 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=BQXELW2Do44btByeSJJTILU+sMVZVBVp+PBgWqh0iPQ=; b=eNa8WLkDG4QB8nlagbYux7hHspE0lcN08hPaydAGuhZ57DuWEQD47n8vBhJvKX4Vz6 c2wqawuBd6m/L3/DeXEKf0XxFL7ZYm6/K6D8Rmlo9KntwQ9L0XhMje7xCH7CNyNsbwX2 kSTwSJ8op5DTjNaEJYe+7FPn9VM9s+LOmIu0uWc8VF3qqEyWIvkbA7y1NXvvPu41Luo5 xsYmlsngkx8W0xAs1JA4k6q8Ny6M9jqfXJSIpBBSpW+kko0d0R6PMgLwe0WwBzjMAcYe UN2QYb90A365GtusS2Udv9ATvl0zlUwe/vWjl8fbd82BwJvVwBDysLVAVQRtmrYpjArY AlFw== X-Gm-Message-State: AFqh2ko3YkBcYpLJH1U+GrnFNYlBqi1lcjXIKglbZO0bZ9nDRcYYyErz 73Cd6dL5U8i6n3VUmSL7axmzEQ== X-Google-Smtp-Source: AMrXdXu5CSOCJza++NFweL6KpfKXKYInRWlUyYp9fYiDkiK6c0iahxTAEyYET9kPGEz0jBuXBSRamA== X-Received: by 2002:a17:907:2135:b0:86f:fe8a:be with SMTP id qo21-20020a170907213500b0086ffe8a00bemr6880577ejb.4.1674048177546; Wed, 18 Jan 2023 05:22:57 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id u2-20020a1709061da200b0083f91a32131sm14633831ejh.0.2023.01.18.05.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 05:22:57 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v4 1/7] dt-bindings: mailbox: qcom: add SDX55 compatible Date: Wed, 18 Jan 2023 15:22:48 +0200 Message-Id: <20230118132254.2356209-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> References: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The commit 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") added SDX55 compatible string to one of clock-selection conditions, but failed to add one to the main schema's compatible list. Fix this omission. Fixes: 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-globa= l.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.ya= ml index 943f9472ae10..36deddca1524 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -39,6 +39,7 @@ properties: - qcom,msm8953-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,qcs404-apcs-apps-global + - qcom,sdx55-apcs-gcc - const: syscon reg: maxItems: 1 --=20 2.39.0 From nobody Sun Sep 14 20:21:21 2025 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 BC996C32793 for ; Wed, 18 Jan 2023 13:52:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbjARNwy (ORCPT ); Wed, 18 Jan 2023 08:52:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230293AbjARNvk (ORCPT ); Wed, 18 Jan 2023 08:51:40 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D24A2B091 for ; Wed, 18 Jan 2023 05:23:00 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id v30so49588826edb.9 for ; Wed, 18 Jan 2023 05:23: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=60xbViVesinnCs8Gq9usNvmq6jftqqElQdF+JDe/eCU=; b=vMnArBtwFK+ZQHBIyDOCXanMsjFDGRnmqoZvZCRbbUB/mLky6/T/bIV+KhAzU8WYaA Wd/OWikKAqyta07XHjcZ8wtzKMfxryEPz7ZV4md8G0q0Y0USDT9dvDT6CrhchAcilTfV xn9CQPms374BHGV78tPJi7jBVAi3xNSH3xrjEUtv26WWP3uIeTfJG/k505qo8QH0wsSQ WhJcxuwCzeMqwQfY2mxT1lzI3ZTqucGW+u2d/oq+Gyy0ic14muFNc5znEimopr1+t9EL wo2jtrdeuUai6z2qI+0KjLYKwMA04Ey1ubCqKzGwksBO+4ZDasOZrNO7YG/HUij7Mh6Y rXVw== 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=60xbViVesinnCs8Gq9usNvmq6jftqqElQdF+JDe/eCU=; b=pj4lBWcHI50gWoCOKXVVTSmnYCHwqMDpCzk2hr8es9Fae1IuV/2vK4z4grE9d5EAbR Ms4utmeN/mfthwoZJZIqiqszZIonUa4wJzhVP4t5p5pyDdeB8QISl26iiQ0FeoolERjm zdP/LFPGGkXub5SSb2ELyusYFDqNnxknFF7YtXkObMIoZyRJZzHczb8phs8m1XQtw9Of cyRRGTWdM1ec9ap8ME3OeEMAWlUh7gtQk/SOSJ1zt88FdrFJw79IbWUU23piub+QaXww 5dlj7XGOb2w+F6WqU2yS6D1Gt28cOUMiHj6gv+W9EBjFochrWBMsdnbAWtyjd2JkFVhm FMig== X-Gm-Message-State: AFqh2krKlyfDkq1x61ESeRiYboCHmLGDVGBHpSXhT4OrNLNCScrKhkJs jZaRLAFI2zvnMZLhoSWwx6BrpA== X-Google-Smtp-Source: AMrXdXv4f7LT2d3zD2Ax7BTC3iK/2dSjk4ltLAGRw2xK239RRRMe20st10dqr45G9GJMjiROmYf+qw== X-Received: by 2002:aa7:c709:0:b0:499:ef31:3549 with SMTP id i9-20020aa7c709000000b00499ef313549mr20674499edq.6.1674048178691; Wed, 18 Jan 2023 05:22:58 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id u2-20020a1709061da200b0083f91a32131sm14633831ejh.0.2023.01.18.05.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 05:22:58 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v4 2/7] dt-bindings: mailbox: qcom: enable syscon compatible for msm8976 Date: Wed, 18 Jan 2023 15:22:49 +0200 Message-Id: <20230118132254.2356209-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> References: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On msm8976 platform APCS also uses syscon compatible, so move it to the block of compatibles using SoC-compat together with syscon. Fixes: 60545466180e ("dt-bindings: mailbox: qcom,apcs-kpss-global: Add sysc= on const for relevant entries") Acked-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-globa= l.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.ya= ml index 36deddca1524..ecc286ab49ef 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -20,7 +20,6 @@ properties: - enum: - qcom,ipq6018-apcs-apps-global - qcom,ipq8074-apcs-apps-global - - qcom,msm8976-apcs-kpss-global - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global - qcom,qcm2290-apcs-hmss-global @@ -37,6 +36,7 @@ properties: - qcom,msm8916-apcs-kpss-global - qcom,msm8939-apcs-kpss-global - qcom,msm8953-apcs-kpss-global + - qcom,msm8976-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,qcs404-apcs-apps-global - qcom,sdx55-apcs-gcc --=20 2.39.0 From nobody Sun Sep 14 20:21:21 2025 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 10779C32793 for ; Wed, 18 Jan 2023 13:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbjARNw7 (ORCPT ); Wed, 18 Jan 2023 08:52:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbjARNvm (ORCPT ); Wed, 18 Jan 2023 08:51:42 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304A12B0A7 for ; Wed, 18 Jan 2023 05:23:00 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id az20so64100822ejc.1 for ; Wed, 18 Jan 2023 05:23: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=qd5f8hzZm5qMEoqR4g+4cAWjwGfAnZ3T8KmzKwoOA5o=; b=WsBANPIb/MSdauDOF3I1Cwh7/TeK7qJ7AeqGW3ZSNUpH8GfOH/c3JFn2WMxTRj2Z3T BK0Nh81P6QcLQFzaW9A5aAnV53te9rmMSyqgNs1Kd5sU2un5YEbBWO59Zsu8bi/aE3EF KpSJk3qJ3+kpfCsj4Xf8DvGW+t0vkNIazvkqspeW5oa081KI4JdvUPLQDP0fptUibCNV Ul/9yQRGToJfmrERGayAr0sMZJ5kbZ5t2IcA6naE03IUoED9r6g5iBttjsTI4WCtiQk+ B03lzUsWoPhWoqevcJZ4t/XyYIXnnVRyexuwPraWyDjI0q+QtoFLZCWNkHUEzyEGcVb+ L5UQ== 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=qd5f8hzZm5qMEoqR4g+4cAWjwGfAnZ3T8KmzKwoOA5o=; b=EbzkLcQ87IUalgt2ls62FKC3BYm7hYo0A+vZTfuSmwBC/4DtYMJup7OJK0Z/JOLf64 hi5Fy8y6+r1QtlKqGE4kCjP1yHftq2wcAI/gCTJmRuo+H1kl/+RI15IcDydxQhZ7aKQr OsKTGuuGpHm8TGQvLOWrdyUph1uMinPlv52SBNdmGazBvdCatBc8Jx3EmGznefxTwPPU lTLW3qJBZ0gxn/4Cz3HAdAVklGcjwpqcLNQubd5wwv/qem3IkE6SqTzPYT1w/LP0G9RH s6VVS+daWb5EcYLy5U922JPWoO9YApBxMnEbEB7BL4BO/AoCd3Gro42G8W9KZxSqkWuG E4Ug== X-Gm-Message-State: AFqh2kpCgDyDF+mfnRdkOMAZ6VohzrlcgUxxJipG1kLibPXnVfenCMu5 rFtD92B39ZgK/7lpXpVdDeFoiQ== X-Google-Smtp-Source: AMrXdXujj5F9K3yswBHwGPwac2uPaJDZZt4vRzzKOpqsN79uy1jIzXyd9Ml4Gc5huOXZpaqZkejJbw== X-Received: by 2002:a17:906:5a5f:b0:86f:3c6b:f7c6 with SMTP id my31-20020a1709065a5f00b0086f3c6bf7c6mr7134674ejc.64.1674048179800; Wed, 18 Jan 2023 05:22:59 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id u2-20020a1709061da200b0083f91a32131sm14633831ejh.0.2023.01.18.05.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 05:22:59 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/7] dt-bindings: mailbox: qcom: correct the list of platforms using clocks Date: Wed, 18 Jan 2023 15:22:50 +0200 Message-Id: <20230118132254.2356209-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> References: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The schema incorrectly lists some of the platforms in the statement requiring clocks/clock-names. Correct this by moving platforms not requiring additional clocks to the separate clause. Fixes: 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") Signed-off-by: Dmitry Baryshkov Reviewed-by: Krzysztof Kozlowski --- .../mailbox/qcom,apcs-kpss-global.yaml | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-globa= l.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.ya= ml index ecc286ab49ef..5f7770036fed 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -72,15 +72,7 @@ allOf: compatible: enum: - qcom,msm8916-apcs-kpss-global - - qcom,msm8994-apcs-kpss-global - - qcom,msm8996-apcs-hmss-global - - qcom,msm8998-apcs-hmss-global - qcom,qcs404-apcs-apps-global - - qcom,sc7180-apss-shared - - qcom,sdm660-apcs-hmss-global - - qcom,sdm845-apss-shared - - qcom,sm6125-apcs-hmss-global - - qcom,sm8150-apss-shared then: properties: clocks: @@ -124,6 +116,24 @@ allOf: items: - const: pll - const: xo + + - if: + properties: + compatible: + enum: + - qcom,msm8994-apcs-kpss-global + - qcom,msm8996-apcs-hmss-global + - qcom,msm8998-apcs-hmss-global + - qcom,sc7180-apss-shared + - qcom,sdm660-apcs-hmss-global + - qcom,sdm845-apss-shared + - qcom,sm6125-apcs-hmss-global + - qcom,sm8150-apss-shared + then: + properties: + clocks: false + clock-names: false + - if: properties: compatible: --=20 2.39.0 From nobody Sun Sep 14 20:21:21 2025 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 74C11C677F1 for ; Wed, 18 Jan 2023 13:52:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjARNwY (ORCPT ); Wed, 18 Jan 2023 08:52:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjARNvn (ORCPT ); Wed, 18 Jan 2023 08:51:43 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4075736689 for ; Wed, 18 Jan 2023 05:23:01 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id ud5so83237829ejc.4 for ; Wed, 18 Jan 2023 05:23: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=hRKyrZr81DMca68YFjyhXPTCMmSK78W5VKDY0bLRYxE=; b=ntttPA7BIz+aA2yMG5R99dACf+qfOMuzzC3vIE/q4g/0T3792YOn9fx186fPq0otDn Dv1pxEnB9xKh/6lm9Aiua22sJRhdRlMneSHtSLCrH+ORh9arvxaJWmmIgVRV5FaomIk3 PVs7EQIihKlSUAEbFd4Gt+Y9kapHFDM2mf/y6AbqJCxyKqjxpZcq4NQtzxesQKqafO7R V1Ckm1Wj2qHGeel/xW/Wm13Frh3vS4aV2OCaYkZBjLfn40YDeC0ApTeY7OwIqLnFuRCK j0ZZuTM1uVp52toKBwrBaIqfzdPwPcn53KZM4Y0Zl9Q4qQolvOsFo2gpmEXmpQMZ0zuI 9ZKg== 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=hRKyrZr81DMca68YFjyhXPTCMmSK78W5VKDY0bLRYxE=; b=xOnSBCX5LrT9vmO+YKcCwEhhaGboMRIZm/XFWUAm+5irPaBw0az33U8CydU99o+R3v +Bj0UsrEGy2MD8uyq9ncAPitpBAvJhgI03JM18XWuS+2dOlMM4PYJGgk9CXpTvwVBQB2 zKJ5wEsjPlR4bcYP+TDWTGT56cDeWjj0CUKdPN3oCX7O+IWqS3/UUHVo27jKhVJFT9Pt 75WiRGUBXsRrPo8x7Qqd8ovQ7q+J3cSmlZDj2JRe0m9zzjlZuT+fnqLAOfgU2BnSBfsM QO/yqaum7hpE/BXfNHdhh76HRN1tmbdUb/Ka4BD+AMPKj0Crk9k+BdcCOEyW7meWFQPU Dh2Q== X-Gm-Message-State: AFqh2krEbMFjhmEQvNbaVtiWOWN9XDHp7rQUeXVk7VNPVGxocck9AlV5 NLmW9+XfYi7KtarpLUDitMGX4g== X-Google-Smtp-Source: AMrXdXsqju9rIDXFcQjbit3W1i9sZZx9gKeO8uR4chgMb7j+hXPDI08hI8OcNdvvoe4YWLZwsPyHgQ== X-Received: by 2002:a17:907:6d0e:b0:871:7b6f:9c53 with SMTP id sa14-20020a1709076d0e00b008717b6f9c53mr9341365ejc.30.1674048180860; Wed, 18 Jan 2023 05:23:00 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id u2-20020a1709061da200b0083f91a32131sm14633831ejh.0.2023.01.18.05.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 05:23:00 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 4/7] dt-bindings: mailbox: qcom: add missing platforms to conditional clauses Date: Wed, 18 Jan 2023 15:22:51 +0200 Message-Id: <20230118132254.2356209-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> References: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add missing platforms to the conditional clauses selecting whether the clocks/clock-names properties are required or whether they must be omitted. Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-globa= l.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.ya= ml index 5f7770036fed..7d8de7a16984 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -72,6 +72,7 @@ allOf: compatible: enum: - qcom,msm8916-apcs-kpss-global + - qcom,msm8939-apcs-kpss-global - qcom,qcs404-apcs-apps-global then: properties: @@ -121,12 +122,18 @@ allOf: properties: compatible: enum: + - qcom,msm8953-apcs-kpss-global + - qcom,msm8976-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global + - qcom,qcm2290-apcs-hmss-global - qcom,sc7180-apss-shared + - qcom,sc8180x-apss-shared - qcom,sdm660-apcs-hmss-global - qcom,sdm845-apss-shared + - qcom,sm4250-apcs-hmss-global + - qcom,sm6115-apcs-hmss-global - qcom,sm6125-apcs-hmss-global - qcom,sm8150-apss-shared then: --=20 2.39.0 From nobody Sun Sep 14 20:21:21 2025 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 394A1C32793 for ; Wed, 18 Jan 2023 13:52:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230212AbjARNwo (ORCPT ); Wed, 18 Jan 2023 08:52:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbjARNvs (ORCPT ); Wed, 18 Jan 2023 08:51:48 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 848284C6D0 for ; Wed, 18 Jan 2023 05:23:03 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id kt14so24296187ejc.3 for ; Wed, 18 Jan 2023 05:23:03 -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=QXnOHOh5QfaalI7LSXB28OMKjzgZCCU/t1AphNsWkmU=; b=jVy6cI5Y2Gqwq63utnSYVTfRMoB0i/4a2T4WK0rqHMmk934kXDo48bhRIqqA/5bPRr yxj9gy7Jpcve/AK8UyQg3DFbuZ0bXYlPKRmJEJ3PWvWMhO57n0apT8/Uw9aoqAfknfwx bBu/aoXAoOGRuopTsGs1YTra1QL/IzM4rxxZVlipHWecWEKcONzU0Wm5jtmj8udQp2jJ 3hsZ70+asjKJgUg21YPG+4p0oyic6n/shJE9gq2I2TggTiLFzqistku8lY9iex6qSgUg MklMdD8oaTb8e1z3crNhepAFgVevzoI91Ladek55ZL6pzckZ16yk00wx1wQSBbEEzjXF qvXw== 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=QXnOHOh5QfaalI7LSXB28OMKjzgZCCU/t1AphNsWkmU=; b=UcyqnaNnqnYNrqA5qb1qL7DVY+zsl3EKyl4E6GsF5QwUu6T6LG2OstNFN43kAEwMqt hRpSHeVpV2iLBNUP569PsBQhQUBWuAO7kZ4XZkYWdEqN1+p42V/hh4sAwLR+Bw5KCBDG 0/IsqJTaLQfxHoS5RIY+8zvK6Z3KC7C+SlqPNDt4HN6+kXIvJvaQK6ijOuGc6p3HpSxd r+iM/251h5/Fbxygir+G820AbDQS1ApFmVYu4no0ZIf6HMVhGpwTzfq6eLjY8FrqKbAH 6gRX/iIJPvTy7lIHDRmPtKKklPEy2VS3Nq6wlcf1pyepRmeSqd0BSh0L43UK9qJ4WvbG n0gg== X-Gm-Message-State: AFqh2krn8ZyJakyl3bmx5ZXL/khNEm2Hov9rZqhITqvQ2wYpJoD1HeyD +jbZx/OuDDw9UdPqtIYLI2AEAQ== X-Google-Smtp-Source: AMrXdXvEvf8lIORvXJrxWslPTiqR0cMA289EZOn/n3Fnaz44xSeTERqwc5iSyyK2avTmGujkJwsc1A== X-Received: by 2002:a17:906:a393:b0:7c1:1fcf:266c with SMTP id k19-20020a170906a39300b007c11fcf266cmr7015490ejz.14.1674048182042; Wed, 18 Jan 2023 05:23:02 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id u2-20020a1709061da200b0083f91a32131sm14633831ejh.0.2023.01.18.05.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 05:23:01 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v4 5/7] dt-bindings: mailbox: qcom: add #clock-cells to msm8996 example Date: Wed, 18 Jan 2023 15:22:52 +0200 Message-Id: <20230118132254.2356209-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> References: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add the #clock-cells property to the MSM8996 example, as the APCS block is going to provide the `sys_apcs_aux' clock to the consumers. Acked-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-globa= l.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.ya= ml index 7d8de7a16984..1633aa82fc84 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -166,6 +166,7 @@ examples: reg =3D <0x9820000 0x1000>; =20 #mbox-cells =3D <1>; + #clock-cells =3D <0>; }; =20 rpm-glink { --=20 2.39.0 From nobody Sun Sep 14 20:21:21 2025 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 B3BF6C32793 for ; Wed, 18 Jan 2023 13:52:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbjARNw3 (ORCPT ); Wed, 18 Jan 2023 08:52:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbjARNvw (ORCPT ); Wed, 18 Jan 2023 08:51:52 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E724ED2C for ; Wed, 18 Jan 2023 05:23:03 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id bk15so25684068ejb.9 for ; Wed, 18 Jan 2023 05:23:03 -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=60yxEW22hoAOOhOWGOTH5M2hZiABdMD97947KesUJto=; b=gfY6iL0rwH5atzxFw11g+DLW74OMhX2MYgGHfFVXdXWRoIhLjavXDTvM70MkEMFli2 2K1cyBaSkZF3spWf7BmE+i7CNbG0XzAgMYUTPqLoJdLw6DEdsuaUpdCCun6fYc9ZAVDM 5Y4IjCcAp/A9t8WQGASm4efMBVkfHj6ug7snNgOMT+dc/1aFCQS/GJrjETCsHBOEpLsk fHLDZ5Slo55EofdS2WQjAHvfi1pWgKKHFZAfpGBopjUy+9xMzMXxEmaJdsu+ftaomyMt UVV9S9vAwhNIn1K0NvWV3+fNtH8jLR6TbPJ2oZlhFfWfRQKNk1jkMn7O4aovM+RN2Z3Q AQRw== 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=60yxEW22hoAOOhOWGOTH5M2hZiABdMD97947KesUJto=; b=wXWPBFTVQcxtM+3t9f7xfJqM08f6w48Bg1C5wGSbijQaixdEkJkv4Y8doJ5XgHycUU qX4JCJwbjMp6yzelpiNjnC3oTM6KFlWkviVKx/inShdVw/PMmbrMM0aEYRKmmMxuYQQ2 zZOMpaIA4u8cBHcpX/PNMbxirUv0Lz+t9wzbD/agO3kjSqJRQBP+BW9+2WHWwipZFSrQ xrJpb7dIOVFcxtg+84AwKQqIgydtNdtYsMEMwlLKn0UN4L2mv9rCgpT/Aq0cu2gvDNJM 4wgWLzvdgAVDUkXIHnM4Rw//72+qVoYbLDaJMP7qGOXh7VZGDxrNLjwigNpaoEIIZSvH XqQg== X-Gm-Message-State: AFqh2koCCrHy/i5SOsyCRAkwt/gio56SJcTGc8rtybWPfDZWOEoTSopP P4+D7ZZHcH9MBBXeMTzSehZS1w== X-Google-Smtp-Source: AMrXdXu9XmiL3q2VIQiZbBOHbxXO0ki9w+4xQCqDxJve3AGmadrWZRhx+jG374RE1UzWUeeRaUQQIA== X-Received: by 2002:a17:907:1621:b0:870:34c:97df with SMTP id hb33-20020a170907162100b00870034c97dfmr16824173ejc.4.1674048183291; Wed, 18 Jan 2023 05:23:03 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id u2-20020a1709061da200b0083f91a32131sm14633831ejh.0.2023.01.18.05.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 05:23:02 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 6/7] mailbox: qcom-apcs-ipc: enable APCS clock device for MSM8996 Date: Wed, 18 Jan 2023 15:22:53 +0200 Message-Id: <20230118132254.2356209-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> References: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" MSM8996 also has the clock-related part of the APCS mailbox device. Follow the usual pattern and create a child device to handle these clocks. Signed-off-by: Dmitry Baryshkov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom= -apcs-ipc-mailbox.c index 0e9f9cba8668..bd61dacb44ba 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -42,7 +42,7 @@ static const struct qcom_apcs_ipc_data msm8994_apcs_data = =3D { }; =20 static const struct qcom_apcs_ipc_data msm8996_apcs_data =3D { - .offset =3D 16, .clk_name =3D NULL + .offset =3D 16, .clk_name =3D "qcom-apcs-msm8996-clk" }; =20 static const struct qcom_apcs_ipc_data apps_shared_apcs_data =3D { --=20 2.39.0 From nobody Sun Sep 14 20:21:21 2025 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 39CAFC32793 for ; Wed, 18 Jan 2023 13:52:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbjARNwj (ORCPT ); Wed, 18 Jan 2023 08:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbjARNvw (ORCPT ); Wed, 18 Jan 2023 08:51:52 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B40B62BF09 for ; Wed, 18 Jan 2023 05:23:04 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id qx13so24813642ejb.13 for ; Wed, 18 Jan 2023 05:23:04 -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=BMW+GSgIGk9zwaJfSGSRXu37YBef4YGDH39JKBNKrJA=; b=BR9/wQvQyD873TEdwHBWb/d7e84iUtIhWTXO+AcfqUfNDq+xcdNnenQQBwaJQmBYJ5 9IdK2KAnUxTgSFPOdNxjmcz4MjqfRfbjTGwbJxdq3moVaZtUC3oSJJy2W7pSVX7WnciB SeAXUl8uWqO8OjUHgrvI0Wm1P/xSMpcnXDWr0VxEdazP3CZtjLfI+Ja5zTYvvOVlVYPD rIMEp+TyOsWoYzqare5tOL1vfrSiIkJx493DdsRzXmGUAaR69su2G5e4LMhY6GQ1BHVa ZpUr+VHsg7Crhxr1+FhOKoHNy2s8pc734ctfXIMBdj8b1f3sw2fMekloz3QOPXDKRlgn 6P6A== 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=BMW+GSgIGk9zwaJfSGSRXu37YBef4YGDH39JKBNKrJA=; b=2VNwVRt0o88/KiRH9o6oEMunMtcWUzFo11Q6MOrH5yoenChmUm75DlMTFW7ogSx5Q6 OsGreuOuxfSHcCVFmzzcpDEVnFZVYw5aDvZP4sBzpCNK186er/FxkdvpRm+EOD7OGNio K99J5AOTMfvkiut/s7wnGm4FMPp2P+PmA4ZCK3iTxNSO4iXZIY4efGds1DXxD73p2o0Q R1nwC5wrMfkoFysanY+sz+dZEOmb4toNbCcwboo1LUP25rYH3A0ChEZEe2Z9/MeS+ubA /VqIm543ynbVZa80xnaiE9AckGGl230c3RP1RjZVW5n3QD8i2B8o7SEmcC6nbHuj0lDe VAUA== X-Gm-Message-State: AFqh2koVSTeOtEZq8SFnPwV1fcvQcZk+pkW/n718n8ZkVtxdCADdWXw3 9g2e3GItfrYkt8/nYcz0TtbKZA== X-Google-Smtp-Source: AMrXdXtfGBqlMl3u8iNOzJDJiTWqQYdjjM5w8+BpTV8ufP8g9OPTLEAwBq9M/5+/li4UavLk4CSi/w== X-Received: by 2002:a17:906:4b4c:b0:871:e336:cd2a with SMTP id j12-20020a1709064b4c00b00871e336cd2amr6750774ejv.47.1674048184304; Wed, 18 Jan 2023 05:23:04 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id u2-20020a1709061da200b0083f91a32131sm14633831ejh.0.2023.01.18.05.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 05:23:04 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 7/7] clk: qcom: add the driver for the MSM8996 APCS clocks Date: Wed, 18 Jan 2023 15:22:54 +0200 Message-Id: <20230118132254.2356209-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> References: <20230118132254.2356209-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add a simple driver handling the APCS clocks on MSM8996. For now it supports just a single aux clock, linking GPLL0 to CPU and CBF clocks. Note, there is little sense in registering sys_apcs_aux as a child of gpll0. The PLL is always-on. And listing the gpll0 as a property of the apcs would delay its probing until the GCC has been probed (while we would like for the apcs to be probed as early as possible). Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/Makefile | 2 +- drivers/clk/qcom/apcs-msm8996.c | 76 +++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/qcom/apcs-msm8996.c diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile index 6c589f671003..98523c48c541 100644 --- a/drivers/clk/qcom/Makefile +++ b/drivers/clk/qcom/Makefile @@ -52,7 +52,7 @@ obj-$(CONFIG_MSM_MMCC_8998) +=3D mmcc-msm8998.o obj-$(CONFIG_QCOM_A53PLL) +=3D a53-pll.o obj-$(CONFIG_QCOM_A7PLL) +=3D a7-pll.o obj-$(CONFIG_QCOM_CLK_APCS_MSM8916) +=3D apcs-msm8916.o -obj-$(CONFIG_QCOM_CLK_APCC_MSM8996) +=3D clk-cpu-8996.o +obj-$(CONFIG_QCOM_CLK_APCC_MSM8996) +=3D apcs-msm8996.o clk-cpu-8996.o obj-$(CONFIG_QCOM_CLK_APCS_SDX55) +=3D apcs-sdx55.o obj-$(CONFIG_QCOM_CLK_RPM) +=3D clk-rpm.o obj-$(CONFIG_QCOM_CLK_RPMH) +=3D clk-rpmh.o diff --git a/drivers/clk/qcom/apcs-msm8996.c b/drivers/clk/qcom/apcs-msm899= 6.c new file mode 100644 index 000000000000..7e46ea8ed444 --- /dev/null +++ b/drivers/clk/qcom/apcs-msm8996.c @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Qualcomm APCS clock controller driver + * + * Copyright (c) 2022, Linaro Limited + * Author: Dmitry Baryshkov + */ + +#include +#include +#include +#include +#include +#include + +#define APCS_AUX_OFFSET 0x50 + +#define APCS_AUX_DIV_MASK GENMASK(17, 16) +#define APCS_AUX_DIV_2 0x1 + +static int qcom_apcs_msm8996_clk_probe(struct platform_device *pdev) +{ + struct device *dev =3D &pdev->dev; + struct device *parent =3D dev->parent; + struct regmap *regmap; + struct clk_hw *hw; + unsigned int val; + int ret =3D -ENODEV; + + regmap =3D dev_get_regmap(parent, NULL); + if (!regmap) { + dev_err(dev, "failed to get regmap: %d\n", ret); + return ret; + } + + regmap_read(regmap, APCS_AUX_OFFSET, &val); + regmap_update_bits(regmap, APCS_AUX_OFFSET, APCS_AUX_DIV_MASK, + FIELD_PREP(APCS_AUX_DIV_MASK, APCS_AUX_DIV_2)); + + /* Hardware mandated delay */ + udelay(5); + + /* + * Register the clock as fixed rate instead of being a child of gpll0 + * to let the driver register probe as early as possible. + */ + hw =3D devm_clk_hw_register_fixed_rate(dev, "sys_apcs_aux", NULL, 0, 3000= 00000); + if (IS_ERR(hw)) + return PTR_ERR(hw); + + return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, hw); +} + +static struct platform_driver qcom_apcs_msm8996_clk_driver =3D { + .probe =3D qcom_apcs_msm8996_clk_probe, + .driver =3D { + .name =3D "qcom-apcs-msm8996-clk", + }, +}; + +/* Register early enough to fix the clock to be used for other cores */ +static int __init qcom_apcs_msm8996_clk_init(void) +{ + return platform_driver_register(&qcom_apcs_msm8996_clk_driver); +} +postcore_initcall(qcom_apcs_msm8996_clk_init); + +static void __exit qcom_apcs_msm8996_clk_exit(void) +{ + platform_driver_unregister(&qcom_apcs_msm8996_clk_driver); +} +module_exit(qcom_apcs_msm8996_clk_exit); + +MODULE_AUTHOR("Dmitry Baryshkov "); +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Qualcomm MSM8996 APCS clock driver"); --=20 2.39.0