From patchwork Thu Aug 18 22:08:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598139 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 9E719C00140 for ; Thu, 18 Aug 2022 22:08:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbiHRWIy (ORCPT ); Thu, 18 Aug 2022 18:08:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231724AbiHRWIx (ORCPT ); Thu, 18 Aug 2022 18:08:53 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B438067C93; Thu, 18 Aug 2022 15:08:52 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id x21so3549843edd.3; Thu, 18 Aug 2022 15:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=lMkwOm7mWtrtXUll5KTQ55LOAdRpd/t46mKz83pxDuc=; b=k5C1aO5I2qAdOgimiLeFEBHmqWDKbz3N+z2JFjidSiNDwMezEic0qMiYizhk2Z8UiJ ri8el/ij7mEa+o7K+X4sUIz86sGFzCnRY2IpDuANMSl1QzX9yaccTVR1GZmbQoJOzMto Ghwh+sHuhehTotlxeVCL6rOTOxAhvt7rYjdpMu3itU84I8mWlLy9E+ZABCChRtHh7K1a YhDValMT6ETZmMHUTnvVX9hSXRkni5KeZrMTviPG7+jP4tkkzHDsPBZr/PvI6leF1MwT aMHdv3TlhH0WG6GA9TmGGNHEnoJTsIetykkodwAWAqMwSB0ChXmWgZATD2vwLZd8r/g9 IqhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=lMkwOm7mWtrtXUll5KTQ55LOAdRpd/t46mKz83pxDuc=; b=Bi9tKLxWNrBPbfeAH5YYViUYP6nZxH9xnE6Xx6uBEhqHcdD7DX+Ruwu17NrUvRgwR4 IcDdSazkKxtMUPAtl448LzNJ4zmoB/8Hq/B0rtHePM9oIdVvnz+EZkxDCu3pFACywv1o ZeTSYZ4uV4ZawWJiVreCyXdbjNES1Frh7oRaC3crtqmmYdoVSeH/nTzg35FVKRWx9JkO 9a49VJupMGl+OhE3LThF5IwLHZkxht70ZbK1a77RfiokLIQEf3t8zRMguj1XtcuKDHoF bMHNIyw4UsOxAP/giexIBAiUqOh8eVgQ+iq+WjuTAhvBQFdAsslWil+1XKzZ/628BfTt T7qQ== X-Gm-Message-State: ACgBeo3IiD6sWczQCEn0l0PkELn5hApiIqvnBklK10JBJFYwQYdnaGlN VvoCjitxzgUtHW2DM0bY4waTSmAFMb0= X-Google-Smtp-Source: AA6agR4jCbxmPFKxhU9Jh25GxHxo4xQCIQxQPILxu4V5+IPUV0/7VsmoMJenuHjsyWRgPT38XXBPfA== X-Received: by 2002:a50:fd83:0:b0:43c:bca0:bdd1 with SMTP id o3-20020a50fd83000000b0043cbca0bdd1mr3748597edt.360.1660860531335; Thu, 18 Aug 2022 15:08:51 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id j9-20020a17090643c900b00730b61d8a5esm1385022ejn.61.2022.08.18.15.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:08:50 -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, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v9 1/4] dt-bindings: mailbox: qcom: set correct #clock-cells Date: Fri, 19 Aug 2022 00:08:46 +0200 Message-Id: <20220818220849.339732-1-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 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 f504652fc0ea..982bcdebba4c 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -54,7 +54,7 @@ properties: const: 1 '#clock-cells': - const: 0 + enum: [0, 1] clock-names: minItems: 2 @@ -100,6 +100,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 Thu Aug 18 22:08:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598564 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 AADB8C25B0E for ; Thu, 18 Aug 2022 22:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242473AbiHRWI4 (ORCPT ); Thu, 18 Aug 2022 18:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231724AbiHRWIz (ORCPT ); Thu, 18 Aug 2022 18:08:55 -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 DFA1E696E0; Thu, 18 Aug 2022 15:08:53 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id z20so3516524edb.9; Thu, 18 Aug 2022 15:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=/+Xzgtqyjpf0bxywlg9y8nGdpmWVYev076qjkdvwa1A=; b=MY//JHwwO1YpltNDwPhaQxlJjdzftbOOHfhrEPFV9K3/tH6HcCR3wgliWwLmwFHSWx Yeh8CNusSePTDjz//iqA7ZajsjX24hcTB8KEWpRWBAszBNpGg26l0TFAQ2zRAFNUVBJC WRHd0HRhw0ayo456nQxaPNbd5ufZaYfhEr9wqkY8dUy1GxUrVcLqJUepzYCQJxBVTYRY 29l72wwrj80AfretwbCmIZh+BcbMi2MfTwH7DqK6o4H8Z3DyimDHaqoNbr1NE/bKnKF8 UUJ3CRIcNErKGkMCuDlJlU67I3KQn1iEjcRvo8N0MjMSEB6M/AHpl/s3kgKvhqP9m7Pb EiqA== 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; bh=/+Xzgtqyjpf0bxywlg9y8nGdpmWVYev076qjkdvwa1A=; b=WsETs+QjrM1+6tiiNPwwgUk6KNNDplJCi8ne1cpWXsOdI4Asp8t4DNW4zmwEH23AEC OFQ/h6Sf1id+qPHFoMOBS9IuZpnC7sy5Q/kez7fuMyt1uU4Z20cAbq0NceLAHdn198oo 4X0iazw7Yu5YgENd3F/avTReEXrnIorBA9vsUD9AeKP+/yht075e73lxZVRPomy/g5Zo +5pJ04v7Tkn+25YkbJrum/dS/+KJuFRc9q2jluHw9O9jtWf90MZZnNlnPjbgT4A4vsnf GRSkgCtg+nskAGnsUPXfaX4aSdCGjVA+GAu2vjAFyifGAKQk157JQjoyetYjup91kI0q IyRA== X-Gm-Message-State: ACgBeo0JU9v+8FAZ1wz/J+OH3QkCeVaiKds9y1qXLNlzwYfy1BjZTW7G ryT3tiHtih6h1306m3FjskQ= X-Google-Smtp-Source: AA6agR69AmzTEY0+Kwvzc58NlTH9muOxazd4Ll5IOveIWTHGW657knLfuRJAFFBxHDVENOjQMtdGmQ== X-Received: by 2002:a05:6402:5488:b0:443:39c5:5347 with SMTP id fg8-20020a056402548800b0044339c55347mr3739678edb.204.1660860532383; Thu, 18 Aug 2022 15:08:52 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id j9-20020a17090643c900b00730b61d8a5esm1385022ejn.61.2022.08.18.15.08.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:08:52 -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, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v9 2/4] dt-bindings: mailbox: qcom: correct clocks for IPQ6018 and IPQ8074 Date: Fri, 19 Aug 2022 00:08:47 +0200 Message-Id: <20220818220849.339732-2-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220818220849.339732-1-robimarko@gmail.com> References: <20220818220849.339732-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 Reviewed-by: Krzysztof Kozlowski --- 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 982bcdebba4c..f24fd84b4b05 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -45,10 +45,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 @@ -58,10 +55,7 @@ properties: clock-names: minItems: 2 - items: - - const: pll - - const: aux - - const: ref + maxItems: 3 required: - compatible @@ -75,8 +69,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 @@ -90,7 +82,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: @@ -99,7 +97,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 Thu Aug 18 22:08:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598138 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 CCC90C32774 for ; Thu, 18 Aug 2022 22:08:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240337AbiHRWI5 (ORCPT ); Thu, 18 Aug 2022 18:08:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243146AbiHRWI4 (ORCPT ); Thu, 18 Aug 2022 18:08:56 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00A3467454; Thu, 18 Aug 2022 15:08:54 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id q2so1430298edb.6; Thu, 18 Aug 2022 15:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=MRnl5EQzqjmZ04r70hPwMB9x2TzaYnZd+rj2RUNUHac=; b=XiJCMszoFBkqQLJLgGrong3i9NadbnPsztGlkq5+uFI8nrtaGkT7ttAAc/4HsyCcmB MyS0BtFifIrh/bCRRV4tBtp4EH08MZtrjhchWjldTyiLLGHgQT2XMHDnTpkven5vEEL0 GxV3E8Oerb7xzmKFY8lMFlzPy111YwXhSg/+abKg69uh2n+/FR5XSIRmW+ofgV/5Y9VS OvX5cf7Wuxz9WoVUNI5cX4c3CpGXZyXzIBASE2+PaquZyQg8LdOIFKrNGjIGSV8tiMTC tDowbKGliw3wB6HQf2woNgJ7tcuHy5KIIcWLCd9SK3TrMQq62WeLN5aXAp+3WswXt5/+ tShQ== 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; bh=MRnl5EQzqjmZ04r70hPwMB9x2TzaYnZd+rj2RUNUHac=; b=UlrdboPT12cs47yI6FQbUW6TMraXtLEQ2kCSDoUykUTvUNjQ076kT8es6U5j/yBFj8 o0qOHIhg2vlf91JhLRD2kJvhdEowS71ng80ZcXLOZDAxb+xa0CUvgFpPBjYMVBxoJccH NJJrSDpeVYY+NZutd6I23x7sdxpxVHanOM1EsnX2rXWz80y6CWJdzCgYHiYwNYmiiMJg dCIkh74jssLOTiajs2+OSRp7u+e8SPnhQ15s6DwurJEuUWf7nYbJ6iR/hOCeQTmTbc9k 6BffWTHylX1NyvrjN/xrP3Dg1hTMCTCGjbPBaCW9v7xanNDKUgFUU+nSi9bnUSmo9zyP mszA== X-Gm-Message-State: ACgBeo0PTNs9L2FSLptRGTYic4Itj5m2GFRGFZD7hXCQjChadsydC6Id 8YHB2EiejNFhPSIWeoNxOgE= X-Google-Smtp-Source: AA6agR45+36GxXVF6+EHwdO0Nw/nAPsNrszkQ2TEnCyW/asocx6zq9YnalVzryTuHnBwsT4PZ89xwA== X-Received: by 2002:a05:6402:90d:b0:443:ef4c:480f with SMTP id g13-20020a056402090d00b00443ef4c480fmr3714309edz.128.1660860533415; Thu, 18 Aug 2022 15:08:53 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id j9-20020a17090643c900b00730b61d8a5esm1385022ejn.61.2022.08.18.15.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:08:53 -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, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v9 3/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock support Date: Fri, 19 Aug 2022 00:08:48 +0200 Message-Id: <20220818220849.339732-3-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220818220849.339732-1-robimarko@gmail.com> References: <20220818220849.339732-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 Thu Aug 18 22:08:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598563 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 CDD5DC32789 for ; Thu, 18 Aug 2022 22:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243146AbiHRWI6 (ORCPT ); Thu, 18 Aug 2022 18:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244178AbiHRWI5 (ORCPT ); Thu, 18 Aug 2022 18:08:57 -0400 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 BF8B410FE9; Thu, 18 Aug 2022 15:08:55 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a7so5728268ejp.2; Thu, 18 Aug 2022 15:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=ZIJeFXxpXvhra3Imr6kp9MXtkhBnprCLsQHefLWwGpM=; b=f5YuzZmLUFfxsTxaI9fSfqx7E3tJU1HbL4utvcA3T6UdYCdrAwwxq5hIUgY6iwiq3N VdK+vZvaNmFh49kFB+RfE2R/VPoJOkI3PKbQzEGI3/+5oEw5tKzKaORheHhUyyZnZdff c2D0Huniyfkqb1LWUhQbvLKko4JjmGbL7BM9dcDTF7xvDPKQAdJjdHgMj9LuJWQTq8K3 CD4pq5JSkU33h1ALjlRCBClAXMhFllBwC2q0Yzlde/s6vR8vF3JpiFILG1eZl4l2wz6w xDIGtyCEp2sw1ivHacSjDMTZaCGDVHlGXmVaqklJ/x246A8PG/lVuFBE+O/4PPHCA1DZ E4yQ== 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; bh=ZIJeFXxpXvhra3Imr6kp9MXtkhBnprCLsQHefLWwGpM=; b=2iHKTc6azBmpnXLzrjy1R88XGj/ppDq2M/YTzc/jw1Ta81UnQXafacj53YFMKu2vNL ewzWlTR8lo25SIeVN4Go+VCGVRbWnARWMcHi8hgDN10m7gkBXTBcKAekjhEF2/75vE3e Dnq+ERAdq03BHYir7STIOQZFNQH/sLMFySMc9K5xW+63WTUNA96mG45JM4PEB5efz84m BvgLELHd1XCUx+kTkyaFFgo5GXrujQFzUlwvt02bk46dpzXqSUVhkhO391yZe/PlBUYU Ifueoj0Zrq2EvJzDcr+gBoZcXV6muFKAkGa113my6rn4wV5gqcig48r6kQfjh/PgahLy gM7w== X-Gm-Message-State: ACgBeo1wGZ9UYwxbLD5iK/Hrl2NWOnvhjPDbrVQ8QHZjZ/2dkXjIAY0d ZM+UIDA500S5Aw9xH5IgO50= X-Google-Smtp-Source: AA6agR4jXYts5DjO6aD6gjTRki35xZjl1p1gkwyuq41ait55RMTJVuUbEh4oMKU1D7mQ3wZNmLigUw== X-Received: by 2002:a17:906:4fc3:b0:72e:eab4:d9d7 with SMTP id i3-20020a1709064fc300b0072eeab4d9d7mr2939775ejw.599.1660860534383; Thu, 18 Aug 2022 15:08:54 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id j9-20020a17090643c900b00730b61d8a5esm1385022ejn.61.2022.08.18.15.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:08:54 -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, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v9 4/4] arm64: dts: qcom: ipq8074: add clocks to APCS Date: Fri, 19 Aug 2022 00:08:49 +0200 Message-Id: <20220818220849.339732-4-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220818220849.339732-1-robimarko@gmail.com> References: <20220818220849.339732-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 A53 PLL and XO clocks in order to use APCS as the CPU clocksource for APSS scaling. Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index bace14b742a1..7d4ff7d8a239 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -704,8 +704,9 @@ watchdog: watchdog@b017000 { 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>; };