From patchwork Tue May 3 19:56:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 569130 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 129B0C433F5 for ; Tue, 3 May 2022 19:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235723AbiECUAO (ORCPT ); Tue, 3 May 2022 16:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234264AbiECUAI (ORCPT ); Tue, 3 May 2022 16:00:08 -0400 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 953D13FBE1; Tue, 3 May 2022 12:56:34 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id gh6so35513254ejb.0; Tue, 03 May 2022 12:56: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=WTfXR0xPMf1GwhzCgPtnYbCFhGYrMS55yt3GLmdVE6Y=; b=TqCJPmQv+Y9x8pClvLoNB5xM2gTnrsP3TME0h5TS3nFqB/PdYTG1/UciEAVcXqpWiS f01NtXOMx6A8/LJCN0IRQ7LjbBwcowo+2fZRVEjqF6KZYLvBa3o3yJHBXE8kzKbb2N4L Bgt6kg6Jk1wDS6f1YNTZjQmTc1+zEg8tUmtzyJHfiLoKqfln8Co98RZSi5PkeXKiSStd c1yWsqYlFxrZmBoT59Q+RAQOGBiGPJk49isDrQozCCx6WJ/eUvLZ9O3sQoKBGJuKHW5j JqhtgEc2AeYP1DwI3wk21OfQj4b1o4uA4j9jUbabX8m8WKPTiG6O8qSean34B+n7Ttfg k3dg== 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=WTfXR0xPMf1GwhzCgPtnYbCFhGYrMS55yt3GLmdVE6Y=; b=AQ6bZrffpRyUUm2gTKRPFP/Fl2g5aRSN9eRcRi5SN+MWHKosRQypuXMt7Pc0wsL2xe AvzQF/eOMNKdiSyEn7dFaKN7GE3XKiy2MW0Y3uNqnzimvlnz4XQdLoRrpwxRa7gGAMIL CfNkRiaHEuUJ+iLyhyy3cveUhkGXUAyaBXG207Slj68byxpTnGpXzhzGIYg4fGgKlEPZ UKCPHJFYKJbH16ZC/1gv+7Pkbd1TWlWYU08mG5x0k4GvkQACRKfHnvkDkzegWk5ACIkF owbz1T1H6rbaU3zyaTGtX3f5oSZzVlvhNJD4ONixyT9ggTSZKnZuDryyaIDdrC0F639W 76Xg== X-Gm-Message-State: AOAM533LdsdOrNRpVYkr7HCgmOgDpzutUHm/SgkjEiB8aQgCFsQPtPM6 cvdXRUng9ycwDp0U2QwkHr4= X-Google-Smtp-Source: ABdhPJwSgE730HjvEIp3jz9m3z46PaYLcSFPYfMDS9A6brHG8udSJOjYj8eNgfnirC6sRdhltCn4xg== X-Received: by 2002:a17:907:3da2:b0:6f4:78d8:7c23 with SMTP id he34-20020a1709073da200b006f478d87c23mr6358986ejc.233.1651607792997; Tue, 03 May 2022 12:56:32 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:32 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v2 2/6] dt-bindings: clock: Add support for IPQ8074 APSS clock controller Date: Tue, 3 May 2022 21:56:01 +0200 Message-Id: <20220503195605.4015616-2-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add dt-binding for the IPQ8074 APSS clock controller which provides clocks to the CPU cores. Signed-off-by: Robert Marko --- Changes in v2: * Correct subject --- include/dt-bindings/clock/qcom,apss-ipq8074.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/dt-bindings/clock/qcom,apss-ipq8074.h diff --git a/include/dt-bindings/clock/qcom,apss-ipq8074.h b/include/dt-bindings/clock/qcom,apss-ipq8074.h new file mode 100644 index 000000000000..df07766b0146 --- /dev/null +++ b/include/dt-bindings/clock/qcom,apss-ipq8074.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2021, The Linux Foundation. All rights reserved. + */ + +#ifndef _DT_BINDINGS_CLOCK_QCA_APSS_IPQ8074_H +#define _DT_BINDINGS_CLOCK_QCA_APSS_IPQ8074_H + +#define APSS_PLL_EARLY 0 +#define APSS_PLL 1 +#define APCS_ALIAS0_CLK_SRC 2 +#define APCS_ALIAS0_CORE_CLK 3 + +#endif From patchwork Tue May 3 19:56:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 569129 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 5BFD4C4167D for ; Tue, 3 May 2022 19:56:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236995AbiECUAS (ORCPT ); Tue, 3 May 2022 16:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235843AbiECUAN (ORCPT ); Tue, 3 May 2022 16:00:13 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DADDB3FDBC; Tue, 3 May 2022 12:56:39 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id l18so35387383ejc.7; Tue, 03 May 2022 12:56: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=WS2x6vv6JnON45ABgr8Q7FnMIDw6+iA8Ls1Rj6RQoYU=; b=LSkejewlqQFT8gb9JKB7TL3S1JFmeYCUHswXIYLiTKvro72gWS+sGYEafs1Kql5tF/ 1hqr+LxKrrenxMGT8Sil4npeW6ReD6OpttSKqI7byNIHGgUcVfQnyedeQIkveMLf9Fwy +5+UjIjIEUVA7m6fwsxxca2RF8OqdkyQOpFRwpVoCGoabeFGreuvfLUVUFMWKelPfrkx ybqIJcUEwhz+ZUYWzxH3pTPDPiHVy9CM4E19JLQp/dZdOjgRKv1YkOYZy48kKI1DMYiy ZCJ/31fGTBeq3euZ74godW7NVoZEFB7AzJo2PF/2YqdbbUkBd6g/cFRlXsM54u+GQ+ip 4yuQ== 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=WS2x6vv6JnON45ABgr8Q7FnMIDw6+iA8Ls1Rj6RQoYU=; b=DLhrq4s2C9u2y6jVrI+zrb2auEa3HRyRMbn6OJE1FFrSlU680Cs8Iza/J/bL1S4qmv GEDVoNwV5/0iY/Ew0qroWzQDunOzU6p+jk79LEXJplzIgKSS4u2MYdfhMEVPrrmPHJ1e ax02QGW73ZfKj9faIfLLHxpv3ET6yWAGcQXQWm3ZSVi04PPLMhtSwTn+p1HqXaHb1VFo 99Jjjj6vHtLB3kz7I5xM6ATrp/EVvI8pZqbTGkQeHQGS5HG4VOd/IINNagydXeodcjBJ pz3haFQaJlYLJGhvhTDwa4vB32GULv7ihStESrELkA9QjFFttLVtZvQBDwFqZy9FVt+c ufkg== X-Gm-Message-State: AOAM531g9apmGzqTdy9V/OSrj8UGLN9UzhI/ih2W+wNsmnattlq8VnNC 4IkmY7kW8vYWdU5fDwDfxDI= X-Google-Smtp-Source: ABdhPJxSulwPskI+0w5Vl/tR1QNiHfne6DWxJBJ/WeaZ+v3SFGPAkFGTyjpNMKKo0L42P4bHOW8A9w== X-Received: by 2002:a17:906:358a:b0:6f4:2903:417e with SMTP id o10-20020a170906358a00b006f42903417emr14821442ejb.592.1651607798403; Tue, 03 May 2022 12:56:38 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:38 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v2 5/6] dt-bindings: mailbox: qcom: set correct #clock-cells Date: Tue, 3 May 2022 21:56:04 +0200 Message-Id: <20220503195605.4015616-5-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 v2: * Correct subject name --- .../mailbox/qcom,apcs-kpss-global.yaml | 18 +++++++++++++++++- 1 file changed, 17 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..1f803925867e 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,22 @@ 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 May 3 19:56:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 569128 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 15D2BC4332F for ; Tue, 3 May 2022 19:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236861AbiECUA0 (ORCPT ); Tue, 3 May 2022 16:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236291AbiECUAR (ORCPT ); Tue, 3 May 2022 16:00:17 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 516EE3FBFD; Tue, 3 May 2022 12:56:42 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id i27so35425809ejd.9; Tue, 03 May 2022 12:56:42 -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=8D8Zb3AbrRdlYOjMRwAdaA0keCtGvT87VpUtEaSReTM=; b=jFHJ2gEr/0gyqoZwP1LOX662mQO3rjZbZ6ZrgsxMPuuKgLTTkGK6v7/a909RXlL35q yPp53lRlieYrNPEFTRwEACq9HvnUKoxcGt4o2YwicrZE/jsE0hbjI1Lo1G4ZqwAS4vBY pInWnBdczwb38m3V+mbFQ/mnC1fPexOqv4mFwEgtxakL0QgJdujpZN92r7/PN+7a78Nk xOFwh+0asgdiXwSpKudEryL0LkxeEOuAFdzMKbodLbVWnvUvoLcWwTvyT689U+towvvG qojJQLaCs6n2EfufJVJOSYNoTmejSErqrjYH6jXGnvlC57pAtGEtmcnzV6UT5EB9VjBl uWUA== 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=8D8Zb3AbrRdlYOjMRwAdaA0keCtGvT87VpUtEaSReTM=; b=IxjafrxuAa6UzfJZY7VSsxsyDqfSEkYUhlO7va/2uVuOqNxnIPyOwZ1JyfdGivEM4v 42F1vbCAKJVkPw1XRlGx6QFFWm5wdHr66x/h+wvwHLO+JRVm1+helpQc9FXbx9yLbWRR zCMtxWy67HD3c/x9TrnEDLwMMXTE4JArHIEjxM1pkv8HYk9F5h9nZpLCGpUKG3rHz/nu U085vnyB62NTZ8lsBGBhY05gt6zCEyjZngW6FVFXeupRLqaRSIPjYSaQdPncCd1wM0WZ bYxyVcqxZ04zGbva4FIExMCqBPjhW5tsQJ4IgxNufT3IOFm23t4Oi9c2FHWCkw8b1RGV DSAw== X-Gm-Message-State: AOAM530rIwcvUolihp+F9T9uq2f1sp1d7YrFw3hRIbP71TlFaUB5x+yU ddaEQKflmFhL2L2r9JneKi8= X-Google-Smtp-Source: ABdhPJxxLAJcm8pdy1HkCsFZO+90Lpf1sBnKst873AvjaTviI180lxgWX5kNsbKrq4Xr9iBzDqp6TA== X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr18044123ejc.554.1651607800847; Tue, 03 May 2022 12:56:40 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:40 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v2 6/6] arm64: dts: ipq8074: update APCS node due to clock support Date: Tue, 3 May 2022 21:56:05 +0200 Message-Id: <20220503195605.4015616-6-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org APCS now has support for providing the APSS clocks as the child device for IPQ8074, so update the DT node to reflect the expanded register space as well as add #clock-cells property as it now provides the APSS clock that will be used for CPU 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 dfba87f2b295..96de58fb7736 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -970,8 +970,9 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ apcs_glb: mailbox@b111000 { compatible = "qcom,ipq8074-apcs-apps-global"; - reg = <0x0b111000 0x1000>; + reg = <0x0b111000 0x6000>; + #clock-cells = <1>; #mbox-cells = <1>; };