From patchwork Tue Jul 12 10:07: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: 590496 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 D8F70CCA47C for ; Tue, 12 Jul 2022 10:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232327AbiGLKHj (ORCPT ); Tue, 12 Jul 2022 06:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbiGLKHj (ORCPT ); Tue, 12 Jul 2022 06:07:39 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 151E4AAB38; Tue, 12 Jul 2022 03:07:38 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id y8so9462393eda.3; Tue, 12 Jul 2022 03:07:38 -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=pkwqT0p9reHxG5NNziBFKHep3mzeSWMdQjuLqBj3Z93BDYrG5PosjiWli6sI0OaXfG Ruht+6uwaL0YFUH5vEQs8gnKIMMGItsxgRm3AY9zADh/Vi7ONTCV48SFMAZ3YM23zvIO k/0cAJFtISgK+BGOQtCry2XPRJ74hFrpPs2bJO7QmBuX3FqWsLDZuFlx+XfKg+7H9CMg YP5TcMBV/rFakXL44rQHE8BF+kmiFo6otU13ZD6pSyxmb7mZrnv5F12HXLi9f8xBx5xP BgygRgSROnAqmch1bfNwfIIgUOmK25Oek6z6aMy7E+WsTUM1YZkSOW3q9rctT8Teh9i+ YVMw== 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=cuoQjw9BXz8WIIWz0Gcl1Y/chmORHi1eblF3Pr7xBbSaKUdMNZ2vcOvTfsEt1IPpHp Q99q7Kj20DREV9g/OodmvvElrGjRj+QnI/F+kjP4P4hLMEI2QIJYCZw8zQ0fZo6on7h1 Xg3LCTAZdkaGIkmb02pQZNRZ2BXy1d5n5Ky8+uOVSMiYbpwT6mFtXFyePjWdTi5KRIg2 K64DwLp11uo8I3AraL68K6/CbhICJvrz1AlsUQLI7obGIaeiGRB0i1pyc9R4cApxziyM wTpuaaEIidu4CJB5EEhj9k0LUYkY2pvPoCeZTCiWPK9CgZw3nkYlIBgzIg7d9BO4igM6 5MRg== X-Gm-Message-State: AJIora8IIAQr7QkRFP/cxX9qMAaw9btnPqDUsF+R7zQFF9GKVyjQhynY xYyMJJvHYeA6uWi5iHGYn6k= X-Google-Smtp-Source: AGRyM1vsV7oT7VKKqx70BYd9loPyNBlyHXC2igMEcGuYerOS2SXyzGyFprw2BKPwaynm0IdBgUt1/g== X-Received: by 2002:a50:fd93:0:b0:43a:71e2:781e with SMTP id o19-20020a50fd93000000b0043a71e2781emr30883012edt.396.1657620456614; Tue, 12 Jul 2022 03:07:36 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id bd27-20020a056402207b00b0043a21e3b4a5sm5799675edb.40.2022.07.12.03.07.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 03:07: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 , Krzysztof Kozlowski Subject: [PATCH v8 1/4] dt-bindings: mailbox: qcom: set correct #clock-cells Date: Tue, 12 Jul 2022 12:07:30 +0200 Message-Id: <20220712100733.34261-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 Tue Jul 12 10:07: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: 589875 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 57663CCA482 for ; Tue, 12 Jul 2022 10:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232759AbiGLKHl (ORCPT ); Tue, 12 Jul 2022 06:07:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232711AbiGLKHj (ORCPT ); Tue, 12 Jul 2022 06:07:39 -0400 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 DFE4FAAB3E; Tue, 12 Jul 2022 03:07:38 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id g1so9435854edb.12; Tue, 12 Jul 2022 03:07:38 -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=hD9PCfFVxjdxgo34wYFmoGSgALWaO8qG+oDMmVmOZg0=; b=kXPavMW5sAa+Rbyof8y1bogy7+VAlw9KQ3529zM/VyZO5iBcZsrhkcrD/Va0Iafz9n WP9I1rDqAFGXzyuuFLCZ0qebiOghHmIIdNGN4AbUuerRccN0bEeUSEktIdEcCfi4gkk/ 9tC3Rk8OkIb2lVmjybOIQ9AubQlFbX57K9B7hZWo21hsCgoLELGcXLLjeweavVtKpXWN NMAzfVDjDFaXm7aGBF5s8UTk6TAIPSR8aVBLqzE5L/nPPLeM9f4CJ/PeoHnxNqHPnKXx r4R535JuszyvD8vklaM5VhP4onTwCvbKu/j3J7gSqUevbBbA2pttlUchnpjcXpgkgbIb TINQ== 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=hD9PCfFVxjdxgo34wYFmoGSgALWaO8qG+oDMmVmOZg0=; b=qlsPP8Hz3vO6gJrhiZ13xNqq3hZfJw0zpvIDBzQZ2bvnmcJPK2vTnbjo+X7S5J3Rqc eNTdGvCaurBLY1erLHsNSyO7Ig1PjVN56cIRTWqLQnMhdJl/WqH5DFi2otFmtZNO/Gmr HuJNCsgR56uXcgfkHWyb2y3WSG2fACgxIqy8Icddk9r0ODyDsxuKxD6Bya0ZZj7jWKk8 K6+uqKmNUMfilUljyqjItT5kuf9sm4tXQooDabx1dvaavMVnriYrtjdNkBSUsoFBF9mR MJD4U3j2xNMx6RpxFeRtrmVA24dyVj1UUUSg0L4nbHOo3f9gdlB/c6gAQWPQDlBkijZP cJtg== X-Gm-Message-State: AJIora/7fal0hHKYT9WHoSquut5tojX5tViQ46Eac21NQt+iAJYdIn6V CitWTOZBOzINHiEa2KwFV7c= X-Google-Smtp-Source: AGRyM1vL79feMqsyNz94la0rfhTZH3JD4RrnvdugStbHKDbmZCIDZ9DfrdHwHhLHyOOG9d0c/A/DJQ== X-Received: by 2002:a05:6402:3907:b0:431:6776:64e7 with SMTP id fe7-20020a056402390700b00431677664e7mr30518374edb.0.1657620457532; Tue, 12 Jul 2022 03:07:37 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id bd27-20020a056402207b00b0043a21e3b4a5sm5799675edb.40.2022.07.12.03.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 03:07:37 -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 v8 2/4] dt-bindings: mailbox: qcom: correct clocks for IPQ6018 and IPQ8074 Date: Tue, 12 Jul 2022 12:07:31 +0200 Message-Id: <20220712100733.34261-2-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712100733.34261-1-robimarko@gmail.com> References: <20220712100733.34261-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 --- Changes in v8: * Add maxItems to clocks and clock-names --- .../mailbox/qcom,apcs-kpss-global.yaml | 46 ++++++++++++++----- 1 file changed, 34 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..9ebe1af47710 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -41,10 +41,7 @@ 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 + maxItems: 3 '#mbox-cells': const: 1 @@ -54,10 +51,7 @@ properties: clock-names: minItems: 2 - items: - - const: pll - - const: aux - - const: ref + maxItems: 3 required: - compatible @@ -71,8 +65,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 +78,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 +93,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 Tue Jul 12 10:07:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 590495 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 F1A4EC433EF for ; Tue, 12 Jul 2022 10:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiGLKHl (ORCPT ); Tue, 12 Jul 2022 06:07:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232746AbiGLKHl (ORCPT ); Tue, 12 Jul 2022 06:07:41 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8253AAB38; Tue, 12 Jul 2022 03:07:39 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id eq6so9464372edb.6; Tue, 12 Jul 2022 03:07:39 -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=ddZjIbYll5j1xU/Makkx5ivXMXtzYaZP4m3U3y8uUKo=; b=NzskHhXO51lXDBi6AdCQr9mBok7tmEQ1LHlNiZSLQiAOymWKp6RapyCR0Y4XHTk+wm /ii0vY1vbEHv2opZIpBrPlBPpJk/xX/u/Xd2w+4oq/Km8l4XJXwJBXxtJp7xTHiIXBfC kZC0e2tkUi6xAeEiJOHYRmayt4OYMjg7XGJgUiF+h7VEqemA18nT2vqDN//X0HO/eMBB RVIEfngvoRJ/Mtd08EM/ueMhiYl09JNGFslshhafLuQol0SMHv+gnsPjKf7TrIt3O4n5 ASgt3VoSC4gWB9tbuAwjVKBKOKsuMXF2SybJBR+TJ5E//h/yaKp3Jb6nE2vDSQiQETsG yqrA== 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=ddZjIbYll5j1xU/Makkx5ivXMXtzYaZP4m3U3y8uUKo=; b=w5bUV1mZHrzWRglH9Z+s+FQflnIv/w5C+erq1nW4K/Vgz2pOWDSbIZQ+kDQk1n4tCR SzEZ59zs4et99URum+p5ZdByKczO3si4Sc78h2oXBMxxs4mlXUjpVwwg44Taa1wBF5E7 53RKcLauUfO4lDU/O4kxfpahEq6+bqhKIi5psiiSv+efo5CGc2tq58EYuhDIdjeEiUCy aSkcvdgrfLfOM22eQTc3zcB5roYtwQjj6FieKGZ8NC096x50TA4MCu705UqWZiKRakyB cXiJQfMRHEy+Aq+/afEdhPXGFPUcZ9ztEpcpbgbM49/Luk1245ehTjT3Bo7SFzhYnpuL zblw== X-Gm-Message-State: AJIora9fbKICUFAMHxr8xntgQwNRopF/sKsGKIBxgE64G8bmnpnZRCQW Q8FDR7SoInQSJhhIMkrW8WA= X-Google-Smtp-Source: AGRyM1u8t/MUsOEkf/rCSRi9bfIxxrCIMu4Ad6ddi60UTU7OB4bh0FFaMndqUpZYZCBziExmKvih5A== X-Received: by 2002:a05:6402:2743:b0:43a:7f92:8e30 with SMTP id z3-20020a056402274300b0043a7f928e30mr29838578edd.168.1657620458496; Tue, 12 Jul 2022 03:07:38 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id bd27-20020a056402207b00b0043a21e3b4a5sm5799675edb.40.2022.07.12.03.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 03:07:38 -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 , Dmitry Baryshkov Subject: [PATCH v8 3/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock support Date: Tue, 12 Jul 2022 12:07:32 +0200 Message-Id: <20220712100733.34261-3-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712100733.34261-1-robimarko@gmail.com> References: <20220712100733.34261-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 Tue Jul 12 10:07:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 589874 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 DBD02CCA485 for ; Tue, 12 Jul 2022 10:07:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232806AbiGLKHm (ORCPT ); Tue, 12 Jul 2022 06:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232783AbiGLKHm (ORCPT ); Tue, 12 Jul 2022 06:07:42 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7C78AB68E; Tue, 12 Jul 2022 03:07:40 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id t3so9204313edd.0; Tue, 12 Jul 2022 03:07:40 -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=j+7XQV2J1dvTbZpa/Qhzqdb5dvUbDMSITE7NK+nJ05nRbIyW2HOb1z8ONEJBotPGrc Axg6CPGNl3V53glbEhCLpWZVH3fY34rxCtQvg7J9IoCNGwJbkiLaK7g8rutEFVpDa675 bRtxHCbQl5bF8neunMcUi2tMDl94hGvx03sxZmNgFzc2kMAInovQoX4tWTjteRsRQna7 LNaRCyE/zXJDS9OTWxy9kbCMDWdk8jQqIckNfuAW0eKysKLJsLjEz3BJo55lJd15Jy1/ yFxkkOtpdB8S04LeXobipJ+i9RINdNUvv4lfmNyCJ4SidOWDgqgemSvuS6XzRywDf2Ha 2GMg== 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=to0FhJ3sYu5VIXOvSFt5x4s4far+exSoZtThmu79nRvY3J+uNDU7r1/WhGbbfgHvOZ iJ8o7Oo2D689KRk9loY9Yvb7TlRHAnP6HKZ7bji8xmILg11fC+LyV+mXlYZ0G4TimlOl BSad8xE5lL6EPdxBWEfgtcVZciBeMwcGtHp9QClnsnzsR8PFrVsVSH3Rs+nYKbcwd5o8 gMqna225EsiS/A2QSWPKbyfCpo2pZCEy7i8EFnqyG3SatrtKX/SQLsmjj1JhS0NzDdbd sP4V0fHtfZIdodMAIawqqbcRLuLbNmwK50W1c4f/q/4Qvk7TWegt0Uo7BVCohBxxfWce bbeg== X-Gm-Message-State: AJIora8LdgXVBxAjQrAnzGCA5b4vMhrFx5UFGLB0QrBEWIK3uOOsHlav 6x4unpqnu5rjwwQ0haIzitM= X-Google-Smtp-Source: AGRyM1tmEqvblkLPuM3cKpX2kKeFRSezIsUBldJxUuJeEfON3wJh7LyGr0QnX2GZ5affre2rf11Zdg== X-Received: by 2002:a05:6402:42d3:b0:435:2c49:313d with SMTP id i19-20020a05640242d300b004352c49313dmr30051549edc.86.1657620459423; Tue, 12 Jul 2022 03:07:39 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id bd27-20020a056402207b00b0043a21e3b4a5sm5799675edb.40.2022.07.12.03.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 03:07:39 -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 v8 4/4] arm64: dts: ipq8074: add APCS support Date: Tue, 12 Jul 2022 12:07:33 +0200 Message-Id: <20220712100733.34261-4-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712100733.34261-1-robimarko@gmail.com> References: <20220712100733.34261-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 {