From patchwork Tue Jan 17 22:30:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643503 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 B7CEBC38147 for ; Tue, 17 Jan 2023 22:44:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjAQWoL (ORCPT ); Tue, 17 Jan 2023 17:44:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbjAQWms (ORCPT ); Tue, 17 Jan 2023 17:42:48 -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 450C65D923 for ; Tue, 17 Jan 2023 14:30:17 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id mp20so32310368ejc.7 for ; Tue, 17 Jan 2023 14:30:17 -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=N7bEFoFbOUtsSE/6ZuuEBc3RCFNCiMzDE8TXDtdWn6U=; b=XeDsQQcWwPmi0pb4U7JUVvQaF/SuEoPvG+yj2lxCH1zA0apDK3k+1hy1JMp0WiPJv7 8wdBBOeXm1/c45mVf44ES/yXhNsxb5orX1s6ogfKNX4VRz5oN5Iq2moKEE+xb8pmz4g7 UNCNoyt1Fk8PL5zUcPCB7m93ks1jvFZnSN3eOerKDV+JqfmFMu4hIgkg1P/X8J6Es59g 0GGlG+GVWtYHs+8QxZoDCOs9anqqDPhsp6Ulk9HHjwvGROob8o85qVMahiugpkCqruat UA7bVSpjGuSaTj1wlkT1SAhR56IZDlX3ORCWuGNcv8O0p+ybUwjNO41QWLJamZ7O/3lt ihqQ== 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=N7bEFoFbOUtsSE/6ZuuEBc3RCFNCiMzDE8TXDtdWn6U=; b=F4N3GXKoBExtwXogdS7nTCvEScBQeBR78TNJiG7NYgIh7nMyUxo8palRUnqMDgms3Y VPJRzygyyWu4ZSBPaFxoRbYKH6/Dij8ywR26lUr+mi17zRjbcULeRDpRHN4T2XMrLhOz wMKUfU/SYx/gDSzaYjLCgLmH+a/5g3RaiFYMNhqQKVcF08Xjm34b9pdbp8FRHHZ0ZXXC l12AJhQtX8aIVtWNR6vMn/uEeIUI1JI683Sivd9ZbQWIXpZ+KFsNrznafSVDppY3f/x4 UroFMCAwBLRZsiG/dPcM3epyj2oRfjXzlfT0z5y7HzgI7wpdXDmwRaC27GQiovZztmHU Ltaw== X-Gm-Message-State: AFqh2kprQPcO1OXV4VmsKKcjCDfe1OhoZAj/om7R1cA6MjjwVwYJ0GA3 AMDeb8NFHrfWUFll6YDKaLimFA== X-Google-Smtp-Source: AMrXdXuGW7kOm7Q0K5Drssz2TXNa/0t0VkmEB96wiRTVFo/F7/KkA3siLMXKBe2AIG3hwIkRxvGrVA== X-Received: by 2002:a17:906:eb8e:b0:871:6b9d:dbc with SMTP id mh14-20020a170906eb8e00b008716b9d0dbcmr4640462ejb.21.1673994615878; Tue, 17 Jan 2023 14:30:15 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:15 -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 v3 1/6] dt-bindings: mailbox: qcom: add SDX55 compatible Date: Wed, 18 Jan 2023 00:30:08 +0200 Message-Id: <20230117223013.1545026-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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") Signed-off-by: Dmitry Baryshkov Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml 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 From patchwork Tue Jan 17 22:30:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643811 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 27544C678D4 for ; Tue, 17 Jan 2023 22:44:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229868AbjAQWoP (ORCPT ); Tue, 17 Jan 2023 17:44:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbjAQWnA (ORCPT ); Tue, 17 Jan 2023 17:43:00 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61D91646B1 for ; Tue, 17 Jan 2023 14:30:18 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id vw16so15764458ejc.12 for ; Tue, 17 Jan 2023 14:30:18 -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=uDaDU/ND0Via+W2IIJR2FBHA+vh86Uj3CFJnQI7EtO4=; b=yFE2hUQomkInlgwiPt7lD4kob7aUTwltfxBciwuomujqJkHRZDYfYgRqiqaNw3vS10 BlP9CvcYpb0QxfB9n4t45GOuxCQ56prhrDMBE6Hic7FcwNB+n9YGk9rZsIby3obweN6K nhvHVHoXrNP+pxWWQra5S6oRtEV2gcthFtH42nMB2GOog2mX0qEgc2ox02JudnlIoP0U pVEi29iNt5jeUbyIMbelsp9a1pphrMPkZt60ZT34hlsy4fChfmtxl5xaREAm55pT4sWn urnOWEYF6/vIgQ3fSBgqES8aKvZueBobxcogvAykzDD7bfkhV5DEx7BdoSaWfOg8zxWP nAnA== 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=uDaDU/ND0Via+W2IIJR2FBHA+vh86Uj3CFJnQI7EtO4=; b=DUKuC3yAXhrk9aL1yjZPPZML81Ye1mnJVBlHSxhoa+JDlb0kHx2g1hQhawKu9eAs6A +AtxEaNPKmVurFfXzrniURgj3D56gmThvJxNRQqFOKl5O+A4BqAjT5xeaR9ZjhvCNZ9B mt5/CO1z0hJE8gLM8L2rsAykqeQgYUiyZiCi1MBTQme5JOh6lJjrBCV+iiIYa0ABHIu4 gis44PdpGp/tZh18RMrXTdfXXNqUkD0RyZPlnDLf+OiG7PHshKn4QWDG43OwFsMt0EW7 g0PoF7hm/TaSACq9wibGDO5EBB38itRNRxMYqy49vjX78joaj3XpgCwbI2go5ZwqHhOB rxOw== X-Gm-Message-State: AFqh2kplreTLH6f5R0GN1QUhZQo1V1NoSTPWG8g0ggfQGv5WZA48Yd9d 7wKoMomKsSxV2Alo7iPumBRb9A== X-Google-Smtp-Source: AMrXdXtcD2KelzevLES83MtDShW+hs9Oy/AY8ul2ohWGgdXILh4VDxtR8tQRvVBsuLme0L5+sB2hBA== X-Received: by 2002:a17:906:e259:b0:84d:4923:366d with SMTP id gq25-20020a170906e25900b0084d4923366dmr4270003ejb.44.1673994616935; Tue, 17 Jan 2023 14:30:16 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:16 -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 v3 2/6] dt-bindings: mailbox: qcom: enable syscon compatible for msm8976 Date: Wed, 18 Jan 2023 00:30:09 +0200 Message-Id: <20230117223013.1545026-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 syscon const for relevant entries") Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- .../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-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml 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 From patchwork Tue Jan 17 22:30:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643502 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 EA7FEC38142 for ; Tue, 17 Jan 2023 22:44:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjAQWob (ORCPT ); Tue, 17 Jan 2023 17:44:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbjAQWnF (ORCPT ); Tue, 17 Jan 2023 17:43:05 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 694335D927 for ; Tue, 17 Jan 2023 14:30:19 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id hw16so67051131ejc.10 for ; Tue, 17 Jan 2023 14:30:19 -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=eion5X6q0VGOUxLUpNxKDysfDIqbYrJk68bo85TaH+Q=; b=VoyIsv4dph5cVUhjhEFt5ShuNiAHmXfJfanoTfOyckl1ni8SujS/8QgYx0Qo5hSiVy VkldYfJOuMGyp0mw70ptCMM7d8jWbnu3X5r7l6C2aynym5UxDG6JfUDi7lewFgTIcLUh 153j7dSvhNDfZhIwT9rwIKvgJSfgkLxpv156cqqvhCQYVkMCIeytGDC+y3dlo/pvleSh r3xyQxuEsmRzIT8gLNA7aK1RevD4OMIZz6U0JQYKF5jHayVpxFYd7qZeCmSFWGIS1G9v b/dGCAr/LSciZHAvcqbzmTJrg9rVXabuJKgYNZ6H9k1x1e384qbGc8iQnHEJPdm4vbHw ePGw== 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=eion5X6q0VGOUxLUpNxKDysfDIqbYrJk68bo85TaH+Q=; b=DebGJfzGhdzbk1mHdBeARpNantUDolrSqpGvLs2jU/hdqUrh9hMIMp9k9jT1uq8ZzA i3bWMjftqw8CYuDEzUFEircZjm/EcTMoqD52diBVWpkv5cxmExHJP0L8Cb/8ziVwBXt8 cnbIGUlPkQyQDmQUAAIIawTn4GdtlFr84pkYBlSjUa4hNgm3Q7ang2Hb3ESlYAJhozhL 9EcMSPPbzJr+hcdLacmPbQbO0S+JZCNfQW9kIvVzdT9R+LD2JmdyGz27Z62zVzFT1gP1 2UtSEGtv6b3WXVh/IZmnHjB/YpJgVIIA3sB+WxFJIziDRmzsVvOfM5+SRXenwTDzuFiF pm1A== X-Gm-Message-State: AFqh2kqDtW6j6fHsG8KyUyCeN38bRB9TNu3JC/IcIWRo+ptpSFXZrwvM UlWK0gF2B1Y2Prhn9XdbLCR1wg== X-Google-Smtp-Source: AMrXdXsVPq4w7cMK7zZzgZlY54dTlW+FD5LbTIjkx3OGzdQPjeGc7eDqOrmlrhG0fRBorpGJTUkB3g== X-Received: by 2002:a17:907:a80b:b0:86f:220e:94af with SMTP id vo11-20020a170907a80b00b0086f220e94afmr13486876ejc.56.1673994617996; Tue, 17 Jan 2023 14:30:17 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:17 -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 v3 3/6] dt-bindings: mailbox: qcom: correct the list of platforms using clocks Date: Wed, 18 Jan 2023 00:30:10 +0200 Message-Id: <20230117223013.1545026-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Only three platforms require `pll' and `aux' clocks: msm8916, msm8939 and qcs404. Correct the list of platforms in the corresponding clause. Fixes: 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") Signed-off-by: Dmitry Baryshkov --- .../mailbox/qcom,apcs-kpss-global.yaml | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index ecc286ab49ef..7d8de7a16984 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -72,15 +72,8 @@ allOf: compatible: enum: - qcom,msm8916-apcs-kpss-global - - qcom,msm8994-apcs-kpss-global - - qcom,msm8996-apcs-hmss-global - - qcom,msm8998-apcs-hmss-global + - qcom,msm8939-apcs-kpss-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 +117,30 @@ allOf: items: - const: pll - const: xo + + - if: + 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: + properties: + clocks: false + clock-names: false + - if: properties: compatible: From patchwork Tue Jan 17 22:30:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643810 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 6F730C38142 for ; Tue, 17 Jan 2023 22:44:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbjAQWoe (ORCPT ); Tue, 17 Jan 2023 17:44:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjAQWnK (ORCPT ); Tue, 17 Jan 2023 17:43:10 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 711F766CCD for ; Tue, 17 Jan 2023 14:30:19 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id ud5so78948640ejc.4 for ; Tue, 17 Jan 2023 14:30:19 -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=2/649yjEuK23rZZzK3k1WHwJIEsvrTOVei/MBU/upUo=; b=LTbrlGLrZvUgcQ1jtBvu5QHiVbmOZuHuey3EpptHHUoKDfLK46vSH8ZT3dYo89GLVw RK5CZn3qVZYlm9IFkiGwg6IvxbPuiFrhFDQmpW5H6plhalBm+rkZTscjEkeb3/746dCz Qy4sV5ov893ugyLT792EqKLCLvctSXYmzQ4tqranpLjTf1YYxbx/hD+E3tZATah5+3So YpDLC0NIH/hUKdHTfdRp5dHJD6cw/nMhkgvWs+ZWadQqMcWjx8yWGmVfxNLbkQk+16Ky 0v8DH2q7fU5pHkSvhW6wIkc/MokT85QXy8Q6/gw5D7ghWyXzfQqBcHzfw4mQehhn4mBi slsw== 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=2/649yjEuK23rZZzK3k1WHwJIEsvrTOVei/MBU/upUo=; b=CHJeo3tbaJdGkXpmnDMw9z0l6dPrH4Q4gcm8a/bWiKYg6BXc3Fzrc0kqjsJJKq7l9Z xfRmBDzv1aVqc3pMclXEBfwVnTg81sAv7w+nIs7CSi3smhlQq0mH0DQ9Ay28KDDok3hu r+T4ksoZhwURVQ7tqOjnWh98H+UYFpsiWNHBKImGeNxl4pYtnLw93B0ItGGSbexu9gFD yNSBc/4yyKyXvvQwPJ8DhE+7iEH7NpUgc7c9aoz6LJ6IfkREeYR2RhHErrAIo8NToDWa kCuE6ORT1AKK+HYrYnq0y71C3k4/eJVekLNyeXNkCn3dJHrPl4FHz9Bhf9clBwFWMFJA c2GQ== X-Gm-Message-State: AFqh2kq8yo+FLrJHcV6mqw1J5LYONJC25kTH1v+TBJxQShy3mSRPOdVY dJdkSl11qxi+0l00UHLh6eUdjw== X-Google-Smtp-Source: AMrXdXtP74UzqEdjchqIUiS/J3XmwshoVvYZSgQukiS//9qMvVXCXdFUIWuEj453Xzb1A5rTPJWndw== X-Received: by 2002:a17:907:cc2a:b0:86e:d375:1f0c with SMTP id uo42-20020a170907cc2a00b0086ed3751f0cmr4406823ejc.37.1673994619093; Tue, 17 Jan 2023 14:30:19 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:18 -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 v3 4/6] dt-bindings: mailbox: qcom: add #clock-cells to msm8996 example Date: Wed, 18 Jan 2023 00:30:11 +0200 Message-Id: <20230117223013.1545026-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml 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 = <0x9820000 0x1000>; #mbox-cells = <1>; + #clock-cells = <0>; }; rpm-glink { From patchwork Tue Jan 17 22:30:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643501 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 6969FC00A5A for ; Tue, 17 Jan 2023 22:45:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229716AbjAQWpe (ORCPT ); Tue, 17 Jan 2023 17:45:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjAQWnc (ORCPT ); Tue, 17 Jan 2023 17:43:32 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82BDB676CC for ; Tue, 17 Jan 2023 14:30:20 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id ud5so78948734ejc.4 for ; Tue, 17 Jan 2023 14:30:20 -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=LwMWS+VvZVE3ldXkhlFA4EaXFH8AblN2KRcYiAQP6o7of1u4dcCgb1dJP/rpth5t4k Y2IKKB9CIj6xVahlZZVQRDwnoe799ut4gnmptapV2yjLf9nqZE3+bM+JVITcyGE8RUx9 PqKz0Ew1R1Ro5BgRDODZvcJhESueuzOCt6ScW22dAAUK41oGvh+z8ehqv7FXQKUH5chy /KAxV60irRCRx4xAyP7eLp7pHVO6ejLc82KYB6c9i4i4bJdTXhA/L6JW0nfxGc2v7gQB feHpE3i1Jw6SyPKMo5PQskzRr+9CP6ykf31ReA0enPDSNgkWMTQng2u5/3BS7rUG+9mv 5Ysg== 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=1gExZjkxZUfDAH+jNCpNTpmjhKFoaLzbMlQFf+1i9q3zugMpWSbcjTC1aY2L8gVS+t NTVIUnukN1isiYXmKKmFKgOloIu1cHqtJSiSH+CF1XesvgzmiSC690yG2yZB+csPty5A ikX5RTLgePHVBlDBB5k2MIbJtWhaIrF8fCl47ZLaOZ83+lZnHE3puHs2K8DueJ7CbN4N 7kQYHgJGkaWxhK994O4zB/jdoLAg6PvK0ZVtPMsm/hEqwx7GnJliQLVj1d4TST5/NSSD w1E/BI9Pcutm7TBNKDmES4raLtdv7ALxdJ6zNRgZfdUJ/YmbZWHzsaQW1+rgTVFHMn8p /5fg== X-Gm-Message-State: AFqh2krNgIsBu4gyVXrePU9lzbBxTPAhnLAjJjegqZQ1P60FpFAGxxaG U3x61IhZH5g8+IQ6+JYb/lyBvA== X-Google-Smtp-Source: AMrXdXtjLoM3h1yIIOScwTckOqNzXWURKc4/sjRj8UvHCQsCg/p9ym++eVy5WH4cGIlE66qHNG9S4w== X-Received: by 2002:a17:907:a092:b0:85a:4230:756c with SMTP id hu18-20020a170907a09200b0085a4230756cmr4816939ejc.59.1673994620146; Tue, 17 Jan 2023 14:30:20 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:19 -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 v3 5/6] mailbox: qcom-apcs-ipc: enable APCS clock device for MSM8996 Date: Wed, 18 Jan 2023 00:30:12 +0200 Message-Id: <20230117223013.1545026-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 = { }; static const struct qcom_apcs_ipc_data msm8996_apcs_data = { - .offset = 16, .clk_name = NULL + .offset = 16, .clk_name = "qcom-apcs-msm8996-clk" }; static const struct qcom_apcs_ipc_data apps_shared_apcs_data = { From patchwork Tue Jan 17 22:30:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643809 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 E3E66C38147 for ; Tue, 17 Jan 2023 22:45:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbjAQWpi (ORCPT ); Tue, 17 Jan 2023 17:45:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjAQWnd (ORCPT ); Tue, 17 Jan 2023 17:43:33 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9869C5D93C for ; Tue, 17 Jan 2023 14:30:22 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id hw16so67051466ejc.10 for ; Tue, 17 Jan 2023 14:30:22 -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=BoKG1OZTpfvzhI6p7Wx4cZO5GpdbUwLl7Aqfiy9zZqIWnK3vhoy2A4+kB4SrelaSiw M4/D+IarDEfMD0L0GUmZK9Pjx5N7gTeogVyk/CVpjC1bnXOnw0Ta1LP9hvHrHuduJc56 d4oA1W+nUA0VeZJ/u0h2fNzn4sydScL73pQePQfqz8ZNMoH9diWNicXiNnmjJ3dg8PSN oH9B/DEVuwi5kc4dhi6GXFK1a3x72dvCbhe4r5ORUj1sW2TERNZijcoVEaiTxML83xV9 AyCmkAVhAB2C9ZAJ2bnDZbNpkdqFrIiFY2lcVGlchOVeAzrHtVSp442NrWTfpCqpAKUF EDaw== 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=cQB/nLRUzjNePRzJPK6PevjSj9+gAfEHJlP2EmT+2I4E9eHwO1IoWA8H+H0ZkrgILu iaTR6/5xlyXO9nQJlXA0Ss817jwqJh3dDaKU8M5NSCnQFmUwxMm0Ia++PLvFoJY71/5E 0Kd0W09SPre+od8CCLtM5uGqmAeOJ2bWsJSZ6TSRk67tCnrgZnNt2Ck0+9GvdT+NIZLH Tu8828iNca7DmPy0+9uOzlYMumT4bGp2Fm/G69AyEeu0D2Ad2wnfquFZ+ckSRZK46v5S cQT7w9jJUhO6R5fLu1VnRioeM2XBc6TAiTbdP4fKeDdF3eDEZ39NKPLi/8MQX9W4Hosp wP5A== X-Gm-Message-State: AFqh2kqCfpUaS19wGHi2XX64W3qzfXVLh6qePwUR9C6rFXCKe6drl73g uxEO6nmADeabHBMl3aLxRij9LQ== X-Google-Smtp-Source: AMrXdXudN6nTxFbHDx27w6zXqOJNRvsMyhu4ZNFDTJEErbNGnp6tMNUFCofTH87JTrgDYSP2xJ9zqA== X-Received: by 2002:a17:907:214c:b0:838:1b80:9a7a with SMTP id rk12-20020a170907214c00b008381b809a7amr4668012ejb.12.1673994621202; Tue, 17 Jan 2023 14:30:21 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:20 -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 v3 6/6] clk: qcom: add the driver for the MSM8996 APCS clocks Date: Wed, 18 Jan 2023 00:30:13 +0200 Message-Id: <20230117223013.1545026-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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) += mmcc-msm8998.o obj-$(CONFIG_QCOM_A53PLL) += a53-pll.o obj-$(CONFIG_QCOM_A7PLL) += a7-pll.o obj-$(CONFIG_QCOM_CLK_APCS_MSM8916) += apcs-msm8916.o -obj-$(CONFIG_QCOM_CLK_APCC_MSM8996) += clk-cpu-8996.o +obj-$(CONFIG_QCOM_CLK_APCC_MSM8996) += apcs-msm8996.o clk-cpu-8996.o obj-$(CONFIG_QCOM_CLK_APCS_SDX55) += apcs-sdx55.o obj-$(CONFIG_QCOM_CLK_RPM) += clk-rpm.o obj-$(CONFIG_QCOM_CLK_RPMH) += clk-rpmh.o diff --git a/drivers/clk/qcom/apcs-msm8996.c b/drivers/clk/qcom/apcs-msm8996.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 = &pdev->dev; + struct device *parent = dev->parent; + struct regmap *regmap; + struct clk_hw *hw; + unsigned int val; + int ret = -ENODEV; + + regmap = 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 = devm_clk_hw_register_fixed_rate(dev, "sys_apcs_aux", NULL, 0, 300000000); + 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 = { + .probe = qcom_apcs_msm8996_clk_probe, + .driver = { + .name = "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");