From patchwork Mon Jul 11 10:59:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12913371 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 F1A25CCA47B for ; Mon, 11 Jul 2022 11:26:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231352AbiGKL0T (ORCPT ); Mon, 11 Jul 2022 07:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbiGKLZz (ORCPT ); Mon, 11 Jul 2022 07:25:55 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F127B2ACF; Mon, 11 Jul 2022 03:59:34 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id r129-20020a1c4487000000b003a2d053adcbso4762549wma.4; Mon, 11 Jul 2022 03:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kTqxGKRaQ+4R4vGFv2ndzSh2OvA6/IVMbt55ouGGu20=; b=cTAZD0es7Gkom7UES3GVk4DHAgKqa4fpHjhnfruyCk6cElvXVB3AGQ73llxREalBjz CLTCXnwSYQwTorfOLGMsHT06lUE8Q+6uNeksCL9LZQIe8qIgJWBwDk8FPB6nFUc5vXmq FwwiydQRM6M6CWZzD1L3UmE7imKlB6UXvITpqOjzeY0eseaXLbrVxnpJWJkKsiwQI/l3 8ycLxUEDq7bVo4beQWdjefAi7IX2b4Cr2u1G8NbQklieVXlW+LA7+nahwHrRd87fOyXr gSoc5WZC9BybqPmfaOWg1Wk1B7vogAeL55+GiCAyAMZSSq8bYioCFmog/yfcxPoOku/v aInw== 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=kTqxGKRaQ+4R4vGFv2ndzSh2OvA6/IVMbt55ouGGu20=; b=jQoVhLw91YEqBHs+Ma4V8AB6mc65a+kliJpGJc2X5+yWfwUy3vXDTPrGe2Mt/mw9NG tJT8SztO/fEqWrjXBQG/viGCB1Mf0jRumBiCL4mbgRmO0GdGbb6qwd6j6TVaktK/1Pn3 2hAsOdVEaqZIkbjCHX2mgEmNzGkF30bKj9zmYKMw88WHYwcN2noFAQfqPGEH9FnSB3BA TRxDtKBxo2lMCKsfffxb7WCteqv/8DEP6WRYLvC04oVqgNVuCQi1QwZ1GOytJ3cKTYgk 4qeUSaLvYSkD98fG+/JjAZtZ9/IiBscDUTDPWmcJi3B1VciBmuRwncAjkWXMLEFgQQim OC+w== X-Gm-Message-State: AJIora9jsBLiXu0Jn+apMCgsctnNo5Gh/clk5D+kAXW7wdlmpZpxNKFe AT4LgmtUNlvGWWbhdrwC+0w= X-Google-Smtp-Source: AGRyM1uhOQQf/o5f2uaOMpY2jcWb2zxhDgkdYJHMeAGh6gqF+Em11CqLmIlInFCXeWqh/0ebZsnNcA== X-Received: by 2002:a05:600c:284a:b0:3a1:996f:3cad with SMTP id r10-20020a05600c284a00b003a1996f3cadmr15317824wmb.95.1657537173471; Mon, 11 Jul 2022 03:59:33 -0700 (PDT) Received: from fedora.robimarko.hr (cpezg-94-253-144-242-cbl.xnet.hr. [94.253.144.242]) by smtp.googlemail.com with ESMTPSA id w15-20020a1cf60f000000b003a2c7bf0497sm6504617wmc.16.2022.07.11.03.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 03:59:32 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v7 1/4] dt-bindings: mailbox: qcom: set correct #clock-cells Date: Mon, 11 Jul 2022 12:59:28 +0200 Message-Id: <20220711105931.43164-1-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ6018 and IPQ8074 require #clock-cells to be set to 1 as their APSS clock driver provides multiple clock outputs. So allow setting 1 as #clock-cells and check that its set to 1 for IPQ6018 and IPQ8074, check others for 0 as its currently. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Changes in v3: * Drop not needed blank line Changes in v2: * Correct subject name --- .../bindings/mailbox/qcom,apcs-kpss-global.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 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 3b5ba7ecc19d..95ecb84e3278 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -50,7 +50,7 @@ properties: const: 1 '#clock-cells': - const: 0 + enum: [0, 1] clock-names: minItems: 2 @@ -96,6 +96,21 @@ allOf: properties: clocks: maxItems: 3 + - if: + properties: + compatible: + enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global + then: + properties: + '#clock-cells': + const: 1 + else: + properties: + '#clock-cells': + const: 0 + examples: # Example apcs with msm8996 From patchwork Mon Jul 11 10:59:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12913370 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 079C5C43334 for ; Mon, 11 Jul 2022 11:26:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbiGKL0S (ORCPT ); Mon, 11 Jul 2022 07:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiGKLZz (ORCPT ); Mon, 11 Jul 2022 07:25:55 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F38B22AF8; Mon, 11 Jul 2022 03:59:35 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id y22-20020a7bcd96000000b003a2e2725e89so2480589wmj.0; Mon, 11 Jul 2022 03:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CMUVv/tE+dGyKOrvqDmuCdHpuwmXgZgMiezQmg+PaDo=; b=cPx0TrUmvAftcE5MaNP2oWUkDqOsiHR3GcMp0Khgs1G2knx+LF8gtvmB4VzyCZzh/q 3Awr+kKVRfKFiRsSh4BccUt3G7dSksUm3eJ10uxHLqCRMb7joCOrD5xo6TB6U9Bh/GrK IcaykbPo7CN0JmV/jx4gvp4stBL0TPKzDGEtowqXDc66wuREcAwJ7vpQesqa4RfnvFxc USlU9NXEerMqxi6m/guPJN/BCRko9m0lH+e/NcBIedI/kyRRpwY8UwNYg0pbkfzQMGCN 5GCmLeBd/68vy/ikazh0NpWpVIrdQ3MLLfZBlpDr4BJLzXjY77mwPdxlwIRI4nes8AbE cgiw== 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=CMUVv/tE+dGyKOrvqDmuCdHpuwmXgZgMiezQmg+PaDo=; b=PveRDO1EA7vZg49GHmnC3/QNgeg5RW2m4R9GOWMQjEFZ5aTsHFxxIhsqbQcev4ElFl fSMoeGoAj/9Jx25SJrffTQwO3hbGYEIRvLZlWQp5fcGxs8cGR6idavq8LzTOYPe666xU YBKdg02P2KVKnKWKshPnuppUuffOCebLWqXkifIewM6mPIXY0DbZxHpd2kea/0OXTyqF pvavrLQ0DY+pNV3ZuON3t1jrnQYtBemDZrYDAw3koHQYS95SzrConrJu8mfAzRucdFZd J2pqFtQS0PktovnbRHw7ZO8eQ69TxLzUs9QW29UJ9VabLto5Z/hFAe0L/26jB8C2+LcI njZg== X-Gm-Message-State: AJIora+r8rwDSDJ3sbIhcdVw/jLMvLU4ZNEsYtWHvvvtfhjcWwn/h8BT nUOt+UofMlt9QM49shdrPEA= X-Google-Smtp-Source: AGRyM1v3HpQpv9UCgB6CfGp4rFla4uENCrT4CsrBLRbNF8KdYqeEYUNkTMqxDe/qeFtbVy4JuztpiQ== X-Received: by 2002:a05:600c:41c7:b0:3a2:e8fd:fe52 with SMTP id t7-20020a05600c41c700b003a2e8fdfe52mr3133168wmh.123.1657537174480; Mon, 11 Jul 2022 03:59:34 -0700 (PDT) Received: from fedora.robimarko.hr (cpezg-94-253-144-242-cbl.xnet.hr. [94.253.144.242]) by smtp.googlemail.com with ESMTPSA id w15-20020a1cf60f000000b003a2c7bf0497sm6504617wmc.16.2022.07.11.03.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 03:59:34 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Robert Marko Subject: [PATCH v7 2/4] dt-bindings: mailbox: qcom: correct clocks for IPQ6018 and IPQ8074 Date: Mon, 11 Jul 2022 12:59:29 +0200 Message-Id: <20220711105931.43164-2-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711105931.43164-1-robimarko@gmail.com> References: <20220711105931.43164-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ6018 APSS driver is registered by APCS as they share the same register space, and it uses "pll" and "xo" as inputs. Correct the allowed clocks for IPQ6018 and IPQ8074 as they share the same driver to allow "pll" and "xo" as clock-names. Signed-off-by: Robert Marko --- .../mailbox/qcom,apcs-kpss-global.yaml | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 95ecb84e3278..939ce63fa824 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -41,10 +41,6 @@ properties: clocks: description: phandles to the parent clocks of the clock driver minItems: 2 - items: - - description: primary pll parent of the clock driver - - description: auxiliary parent - - description: reference clock '#mbox-cells': const: 1 @@ -54,10 +50,6 @@ properties: clock-names: minItems: 2 - items: - - const: pll - - const: aux - - const: ref required: - compatible @@ -71,8 +63,6 @@ allOf: properties: compatible: enum: - - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global - qcom,msm8916-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,msm8996-apcs-hmss-global @@ -86,7 +76,13 @@ allOf: then: properties: clocks: - maxItems: 2 + items: + - description: primary pll parent of the clock driver + - description: auxiliary parent + clock-names: + items: + - const: pll + - const: aux - if: properties: compatible: @@ -95,7 +91,31 @@ allOf: then: properties: clocks: - maxItems: 3 + items: + - description: primary pll parent of the clock driver + - description: auxiliary parent + - description: reference clock + clock-names: + items: + - const: pll + - const: aux + - const: ref + - if: + properties: + compatible: + enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global + then: + properties: + clocks: + items: + - description: primary pll parent of the clock driver + - description: XO clock + clock-names: + items: + - const: pll + - const: xo - if: properties: compatible: From patchwork Mon Jul 11 10:59:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12913373 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 67771CCA483 for ; Mon, 11 Jul 2022 11:26:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231390AbiGKL0U (ORCPT ); Mon, 11 Jul 2022 07:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229849AbiGKLZ4 (ORCPT ); Mon, 11 Jul 2022 07:25:56 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AC7D2DC3; Mon, 11 Jul 2022 03:59:37 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id c131-20020a1c3589000000b003a2cc290135so3244138wma.2; Mon, 11 Jul 2022 03:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+WXgRMiTgqX2tD7jS3P4TsuHzbPBo1GBlNVC43Q1FzA=; b=c0SJ96FyIgA3bG8QIM/DKh5ta5UOPEn7He0+XWqiR9VJ4EX2VKOamCHGmCW/XPxVo5 zzqbo67VmKUH4VDUa5nk9xGGsjuQyI+oqyXzZxcvoAnW8/PXHP/lACcwL5+NNkbQWkMt w4yKGpNDlfkBFl5Njz0YWJcrpF9jTljlhXzN15ESTlFIykzV6zFk1gKMb9DVSGnECqV4 O9ojp/MfBi1//pYxPu443K27AuI0+m1zzFiT0v2seFrFv5L8oHgiI5QKEpFojfO9uWDp PK//dyPDcwvJGpY7snd/P3RdE6qquwKQNaWLGDCnw/7s8zUH8zIvA+ZJSwatsttd2fhO fefw== 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=+WXgRMiTgqX2tD7jS3P4TsuHzbPBo1GBlNVC43Q1FzA=; b=AdT3W9V+ctkb7cT8NM+/ent1PrNCTMqZe2DVrQma3Re45CbvJQUvhE4T69c0A3wMSn n2ZZ3cO47Vtsu8P2IXh1chHCh9bd7kqxjj2wNktrwP+iaB1uiiB/gRUdc/GOw1oF4Opt T1e2d0M2VTTPTvbYxwCx3AEFqQpv57ZdKg5EGOf44vzkW+JncpWhkhlw86iV3Ku/Ny0a XUiOkWkyF31yGFbON3VEfNQUxsxYT+yt+UyrPkgPJPxNkoD+FkZru4qjiM+RFlxnpbSp w8CA/+fZpWWdYfw7Ds4+n3gngzzAO3RivIKsiytNxHHjMXA0dC9XNe8cV0nCkN35zn00 wR6g== X-Gm-Message-State: AJIora9Qwev8jiOm9msDqsEwXCROdszy4BVGEBIwwmPiofRq5tZprRFN EVUt+OLvWBTQxaIQ9NRnqDs= X-Google-Smtp-Source: AGRyM1vVjxI4kVIK5pzYUOyy8Fsue0YMtmtqN9DKtWECAV/LTUwlPoLPdujT1Irz1r38cdT8KKsXwA== X-Received: by 2002:a05:600c:1d83:b0:3a2:e9c6:69c5 with SMTP id p3-20020a05600c1d8300b003a2e9c669c5mr1712528wms.171.1657537175532; Mon, 11 Jul 2022 03:59:35 -0700 (PDT) Received: from fedora.robimarko.hr (cpezg-94-253-144-242-cbl.xnet.hr. [94.253.144.242]) by smtp.googlemail.com with ESMTPSA id w15-20020a1cf60f000000b003a2c7bf0497sm6504617wmc.16.2022.07.11.03.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 03:59:35 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Robert Marko Subject: [PATCH v7 3/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock support Date: Mon, 11 Jul 2022 12:59:30 +0200 Message-Id: <20220711105931.43164-3-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711105931.43164-1-robimarko@gmail.com> References: <20220711105931.43164-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ8074 has the APSS clock controller utilizing the same register space as the APCS, so provide access to the APSS utilizing a child device like IPQ6018. IPQ6018 and IPQ8074 use the same controller and driver, so just utilize IPQ6018 match data for IPQ8074. Signed-off-by: Robert Marko Reviewed-by: Dmitry Baryshkov --- Changes in v7: * Dont max_register modifications * Drop custom IPQ8074 match data and use IPQ6018 one as they share the controller and driver Changes in v5: * Use lower case hex for max_register * Update the APSS clock name to match the new one without commas --- 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 80a54d81412e..f1f0e87a79e6 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -142,7 +142,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev) /* .data is the offset of the ipc register within the global block */ static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, - { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &msm8994_apcs_data }, + { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data }, From patchwork Mon Jul 11 10:59:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12913372 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 2531FCCA480 for ; Mon, 11 Jul 2022 11:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230292AbiGKL0U (ORCPT ); Mon, 11 Jul 2022 07:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231348AbiGKLZ4 (ORCPT ); Mon, 11 Jul 2022 07:25:56 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081932DCB; Mon, 11 Jul 2022 03:59:38 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id c131-20020a1c3589000000b003a2cc290135so3244161wma.2; Mon, 11 Jul 2022 03:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XbujW824CNr3VEPvbgVSYfLKtCakKHejuLWKhEvhbjo=; b=Ro7RqaQin9erMkTrlFHkFXcSaUltN4ETlxyV4BqD/wNP25lWGF0IBaUYLkgB7BYNCa e3LLKRpx7dZpRaX5VyTTGkBxu7sV0gabuv6VFisV8Ju30NdNcGhfNETkIv1UrDiq+Wh9 Wbskb4MIk9FyCEP4YSHcO5j+gkGWYxfqEm7WRlwi38kTKw8+H/BYFP1NvGsC0yLI7Mkl tc/ZpPnrVqtSnT1D+dnMNEvbCR6FNDV6Kg6sWca5otq9qXAaQBCfxnjkhXhLpgr6fjDO I4UsZ0K/XdIpBI3HicO0mxeBXlNQPFyDIhrQ/JLxOi5HwzHGmEppta9tuoPbb9Y1JgyP p2tQ== 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=XbujW824CNr3VEPvbgVSYfLKtCakKHejuLWKhEvhbjo=; b=FqWXDZxebu30vRhPKryoYouMx8wv4W/us6LqyxVqkE5K9VHlOiNzjW66y7COgueRmE dk+2IzUUVSEAbeUNNmTytOQt8ub/wUdTC8OgWJEZnMWTmD5z1q+DgoXxvvrPZ4FBNUgm rqkbPZCo0Bl6vC4sLHH/s3GzGpRjawoI8x3Ve9K10OFcoZEgiYh4LCLKSPLjUEspCzKc Z+uoa02wqRt8RrOq/C9qY9ltpJI+ko9Htbp0iBnMdaQANAplMt7hCROURqFeDomhyMy0 1ZkmR1pokaTI07Q50NqDp4ID/YaHt0k59zHxhqJkWncmGwOi3N/AwQ8kxMZEldh/yHdB jeRg== X-Gm-Message-State: AJIora9pI64emmCZIoTgEIAa3ZAXmw0VSero/YTdMpwEIBjqe2mUWq2x gML8H325o6eh5NXiV+smrSY= X-Google-Smtp-Source: AGRyM1tqi7ZNUAz3GiW76AK0ZmwpLEYyrHT1GYYadfaK18P+/cwlZvRqhX15B9CUnjHxExHXhea2Kg== X-Received: by 2002:a05:600c:34d0:b0:3a1:a05c:b523 with SMTP id d16-20020a05600c34d000b003a1a05cb523mr14829216wmq.94.1657537176580; Mon, 11 Jul 2022 03:59:36 -0700 (PDT) Received: from fedora.robimarko.hr (cpezg-94-253-144-242-cbl.xnet.hr. [94.253.144.242]) by smtp.googlemail.com with ESMTPSA id w15-20020a1cf60f000000b003a2c7bf0497sm6504617wmc.16.2022.07.11.03.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 03:59:36 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Robert Marko Subject: [PATCH v7 4/4] arm64: dts: ipq8074: add APCS support Date: Mon, 11 Jul 2022 12:59:31 +0200 Message-Id: <20220711105931.43164-4-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711105931.43164-1-robimarko@gmail.com> References: <20220711105931.43164-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org APCS now has support for providing the APSS clocks as the child device for IPQ8074. So, add the required DT node for APCS and A53PLL which feeds it the PLL clock for APSS, since APSS will be used for CPU frequency scaling. Signed-off-by: Robert Marko --- Changes in v7: * Drop review tag due to significant changes * Add A53PLL node * Add clocks to APCS node Changes in v3: * Node does not currently exist in the upstream kernel, so add it instead of modifying. --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 080796555809..6a13bd3ead55 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -879,6 +879,23 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ "axi_m_sticky"; status = "disabled"; }; + + apcs_glb: mailbox@b111000 { + compatible = "qcom,ipq8074-apcs-apps-global"; + reg = <0x0b111000 0x1000>; + #clock-cells = <1>; + clocks = <&a53pll>, <&xo>; + clock-names = "pll", "xo"; + #mbox-cells = <1>; + }; + + a53pll: clock@b116000 { + compatible = "qcom,ipq8074-a53pll"; + reg = <0x0b116000 0x40>; + #clock-cells = <0>; + clocks = <&xo>; + clock-names = "xo"; + }; }; timer {