From patchwork Thu Jul 7 17:37: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: 588955 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 CDFD9C43334 for ; Thu, 7 Jul 2022 17:37:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236320AbiGGRhk (ORCPT ); Thu, 7 Jul 2022 13:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236241AbiGGRhj (ORCPT ); Thu, 7 Jul 2022 13:37:39 -0400 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 0F43D53D38; Thu, 7 Jul 2022 10:37:38 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id r21so4874237eju.0; Thu, 07 Jul 2022 10:37: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:mime-version :content-transfer-encoding; bh=PsjitoP8X4csfgh+EfeOV0/lVCQ3q/lBLUKmsZbTedY=; b=er3DVhP5d2eDhPxQBeGJ6kJM6217Xq/EDxUgvtx2xC2pdQ/cDPdlcThuSxybFC3fV0 eWyw0hX1I1SpIbXtjSOX0lg6TdN7Bc7pD4nkRzECWhHqVg6cJ+os8274sPabghd5XTno sX1euRXERpLMW8bcHv8QlR3BnWMis1U+Ag0JF1HAFEfcs8TELLDxTWmhSxDAak4toYiF GSzFvNK51GwxjieFV7r4uTf1H6CRUjOdTeCBKkZ+/v9+sAJvjeO25Or55CyPqqdh0Wmz RkSitlX6lvI+iGs3geZcrHvXy5BqGrCzmJ3nMw7D9PnqWUQuj76rsDyPCxUdUsUh96s0 7Iyg== 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=PsjitoP8X4csfgh+EfeOV0/lVCQ3q/lBLUKmsZbTedY=; b=MaMI1nHO8PTAdZSqKQWq+4bw761KAeL+b5x+VL1Cak/YwlIF/elEHy3Ct6eS6TaYOz vI3OkBg8mml2BlDX+ff/uv7/Xum8CG2O55OjwlTBfxqXz4IQr7h6VGkkytXC976rid/9 jSXCSZnT9oaWl/K5UcAiDJyQJ8wtCZtcp75Zrbvrj1iEr3Gtj1xF/Izke8y4CWhD+xpw iWoV3XYUI/ynFhOu/EFvljuS+IgY2U0DQJpBoFYZs6DrTV9/RHMuRf8LK7ZnVu+pBlbg dOJGH8fxst7RtGDJcklmXtWDPGj6CGrxmlaHeBbsnw9+PeVzOGSA1YlPHXnniVxJaB7M T5Tg== X-Gm-Message-State: AJIora+Ipv86VvIBAnLsYZ60TGyLI/CPWdWdZcjQFM8b8YdNodBzuTY7 y97iLJ1K6GlE7Q2PJRB08YM= X-Google-Smtp-Source: AGRyM1vuQUcVbv/4yEx/Y2IsTPvKiFjTxTK9IecZiGFAI85ew94nVm2Q7nV3RGRls2/LttaQQY3SLg== X-Received: by 2002:a17:907:94ca:b0:726:f4de:535b with SMTP id dn10-20020a17090794ca00b00726f4de535bmr46383722ejc.590.1657215456651; Thu, 07 Jul 2022 10:37:36 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-250.xnet.hr. [88.207.96.250]) by smtp.googlemail.com with ESMTPSA id l10-20020a1709060cca00b0072b16ea4795sm674715ejh.48.2022.07.07.10.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 10:37: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, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v6 1/4] mailbox: qcom-apcs-ipc: make regmap max_register configurable Date: Thu, 7 Jul 2022 19:37:30 +0200 Message-Id: <20220707173733.404947-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 APCS register space in IPQ8074 is 0x6000 so regmap max_register needs to be 0x5ffc. Instead of making it global, make max_register configurable via match data. Signed-off-by: Robert Marko Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 80a54d81412e..c05f3276d02c 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -27,6 +27,7 @@ struct qcom_apcs_ipc { struct qcom_apcs_ipc_data { int offset; char *clk_name; + unsigned int max_register; }; static const struct qcom_apcs_ipc_data ipq6018_apcs_data = { @@ -53,7 +54,7 @@ static const struct qcom_apcs_ipc_data sdx55_apcs_data = { .offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk" }; -static const struct regmap_config apcs_regmap_config = { +static struct regmap_config apcs_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, @@ -91,12 +92,17 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) if (IS_ERR(base)) return PTR_ERR(base); + apcs_data = of_device_get_match_data(&pdev->dev); + if (!apcs_data) + return -ENODATA; + + if (apcs_data->max_register) + apcs_regmap_config.max_register = apcs_data->max_register; + regmap = devm_regmap_init_mmio(&pdev->dev, base, &apcs_regmap_config); if (IS_ERR(regmap)) return PTR_ERR(regmap); - apcs_data = of_device_get_match_data(&pdev->dev); - apcs->regmap = regmap; apcs->offset = apcs_data->offset; From patchwork Thu Jul 7 17:37: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: 588165 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 73C8CC43334 for ; Thu, 7 Jul 2022 17:37:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236429AbiGGRhm (ORCPT ); Thu, 7 Jul 2022 13:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236415AbiGGRhk (ORCPT ); Thu, 7 Jul 2022 13:37:40 -0400 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 E3CFA33A3E; Thu, 7 Jul 2022 10:37:39 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id os14so3424944ejb.4; Thu, 07 Jul 2022 10:37: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=+2iUJRSSFPeKtqt+m5PTxHkXVeupFaLc8VFbsLkL0Yg=; b=TqT2JcUKveYN3USi0cvSIV2c6xKPkBjMJf1F2HoAG7o42uej3xUKN148plcp7SkYEx lTBMaCw50UkmyE5bC6Fl39wzx3oVnrJ7cErzczZAFzuJrxHNvPZ723aJTBkHB0BPA+Tg JtKjeyG9PBsZ+zwCbhOvPo7gOzmnH7fJX/48GJ/ae5tJB7vQuAMfQERQxEZssCT9FnsM iilO+fcG7j/GElbfw4Y77LrR1l99zorCovZlRMItFd2Sik2JWAeTwAYTuJbsZai2eElC H+rWxOYfCWmRZINVhVsB3syqbD9jDsZNSIWwTsWj0qVfptJGgnIp9UDwm21jFVKW+c1F 9ckg== 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=+2iUJRSSFPeKtqt+m5PTxHkXVeupFaLc8VFbsLkL0Yg=; b=lc5Xwc6PkQg00IGm0XagaWZCJKzle6rAv1canWlP7jNtOFNBxzzDfhOOENvzVDK7kV zW8KlsqBqhudFJbSfWIfKo4buU77Ap2Wq+uTkXQHQchsWY4phGj3OnOoC21jD2pF1ox/ EGAuty+wV+57hy7+pEO1230L3oJSgSYyxGwYpZmqtnZMHiqWZl4EWuxiNT8kgLM84kPy K5ri8YzwmYTY00L8yOj9PBSAubg13W3SLrZoPnggKpT8lyN1H+f79Ubu0/hVYhdlzQxn 7hZh87P9s8DFJJAshK0WxTiNfbn+4+LsO6J38LWaac50vW+3AlWaTKuWEilPIVhqIv67 1Mng== X-Gm-Message-State: AJIora8NKv686SNHBe6JKAxhqZZAXs37ta6iSCHmaw7HS4tjOCWVz719 DFPJ/LJMv0Le9pTkrLbKfetfmBAfAH1xqA== X-Google-Smtp-Source: AGRyM1uvUEM6FG+lZXZgLl5wJCJO9bsr/KFOlyaNrcZo9G5TvrRMCULVC2+5Jc9pktchW1OKO073+g== X-Received: by 2002:a17:907:3e84:b0:6fe:8c5f:d552 with SMTP id hs4-20020a1709073e8400b006fe8c5fd552mr45879895ejc.710.1657215457737; Thu, 07 Jul 2022 10:37:37 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-250.xnet.hr. [88.207.96.250]) by smtp.googlemail.com with ESMTPSA id l10-20020a1709060cca00b0072b16ea4795sm674715ejh.48.2022.07.07.10.37.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 10:37: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, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v6 2/4] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Date: Thu, 7 Jul 2022 19:37:31 +0200 Message-Id: <20220707173733.404947-2-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707173733.404947-1-robimarko@gmail.com> References: <20220707173733.404947-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 does as well, but just by utilizing the IPQ8074 specific APSS clock driver. Signed-off-by: Robert Marko Reviewed-by: Bjorn Andersson --- Changes in v6: * Adjust max_register value using match data instead of globally 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index c05f3276d02c..5d6b41fa6256 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -34,6 +34,12 @@ static const struct qcom_apcs_ipc_data ipq6018_apcs_data = { .offset = 8, .clk_name = "qcom,apss-ipq6018-clk" }; +static const struct qcom_apcs_ipc_data ipq8074_apcs_data = { + .offset = 8, + .max_register = 0x5ffc, + .clk_name = "qcom-apss-ipq8074-clk" +}; + static const struct qcom_apcs_ipc_data msm8916_apcs_data = { .offset = 8, .clk_name = "qcom-apcs-msm8916-clk" }; @@ -148,7 +154,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 = &ipq8074_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 Jul 7 17:37: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: 588954 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 A64FBCCA479 for ; Thu, 7 Jul 2022 17:37:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236349AbiGGRhn (ORCPT ); Thu, 7 Jul 2022 13:37:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236423AbiGGRhl (ORCPT ); Thu, 7 Jul 2022 13:37:41 -0400 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 9194453D38; Thu, 7 Jul 2022 10:37:40 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id u12so33632454eja.8; Thu, 07 Jul 2022 10:37: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=kTqxGKRaQ+4R4vGFv2ndzSh2OvA6/IVMbt55ouGGu20=; b=kdx4Nx8NFxwLq90EPWcFdjmjKvR8Nc7CIYHyL9We1Dj1efO4m9KAjgmSVFZMhQmKM0 UvmRIDMAMWHIL5TtG1xl9ElPzwfThyYx4n79/yyPWNpERY7BgKiByY2CifTnkvETETiU kdzx6/0AovY/1sMb9kCoO9cTNslnXVLLGzi6LTkJv7FUb7jUyAoZ0NIKIIpF6/qt4Fmp 6Jd/NTVwXSoL5XiW+zr6UWaJXRpYEMOxBZwC6dxyDLTE2XFyIA+UoyUNl3fVGU75rzbi EaV+XNsPhnM8zYV6RuSIEn2xefoWdK5FEBlCmBlBLD8iCidXeZ6iJGgZiQVSe1IJBHvt UI+Q== 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=kTqxGKRaQ+4R4vGFv2ndzSh2OvA6/IVMbt55ouGGu20=; b=AhoqX0jV5azJmUIrDCzC+DV640RqIRB+e1P947nnszlZiH2s7TEBeXz2r/zJ7w/Mj6 gfthZpHLjHEnSi+ahW4Glg4SHorE7K/D2RywFZAI9H2Db0kijjAQ9JBraTh6aOIgUjFt emetIwQeI20O+BB5UuUK5bzjQZqvXhnpUvoI0a4NN9D11/fxjCQ6W6yK9e8aDH41xZVG qkVZl5/QqtFd/eUrqhe8E/YXlfDG5wwUUyVcg328xerNML/nFByFg5ePFuWxswqA4KtC yEEKVNyeox7vSoIAeo3YeBYPLDaQixYKfj1EfaCnaEaqkZlodfU0tbOOfyQnYMYokkHM erig== X-Gm-Message-State: AJIora9JTlMqrOA0iMNqeoGgEzwuYLsPt3bVDFc5Qsxibzut8pZs4WRE 4DuJetua5KyU8IGnX8HFTZM= X-Google-Smtp-Source: AGRyM1v6pmxNlNCmGigCKNa0PjKVsvHO4Vt0XRzXTKhPxKJTYELJZMlo9HEEDTRJ8lXaLPE9NZCd8A== X-Received: by 2002:a17:906:8301:b0:6e4:896d:59b1 with SMTP id j1-20020a170906830100b006e4896d59b1mr45983891ejx.396.1657215459063; Thu, 07 Jul 2022 10:37:39 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-250.xnet.hr. [88.207.96.250]) by smtp.googlemail.com with ESMTPSA id l10-20020a1709060cca00b0072b16ea4795sm674715ejh.48.2022.07.07.10.37.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 10:37: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, dmitry.baryshkov@linaro.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v6 3/4] dt-bindings: mailbox: qcom: set correct #clock-cells Date: Thu, 7 Jul 2022 19:37:32 +0200 Message-Id: <20220707173733.404947-3-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707173733.404947-1-robimarko@gmail.com> References: <20220707173733.404947-1-robimarko@gmail.com> 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 Thu Jul 7 17:37: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: 588164 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 763D3C43334 for ; Thu, 7 Jul 2022 17:37:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236389AbiGGRhn (ORCPT ); Thu, 7 Jul 2022 13:37:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236395AbiGGRhm (ORCPT ); Thu, 7 Jul 2022 13:37:42 -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 7BE8433A3E; Thu, 7 Jul 2022 10:37:41 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id l23so1873743ejr.5; Thu, 07 Jul 2022 10:37:41 -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=Lnir6LgkpdRMbpwiFT3OtePuYtNQt7Z4A5ni5uK8NYM=; b=kblcKqBZdr4sSFcKa1z5P7DrASwYaA8KSy70SbMzV3uOqN6yGWc1nE/REZsP7dbRUp fGHwyAlLxjlsSe1H9QT4SmHVjJvpfDVqAHP6FW6IvkTG4YKirje4EyDB+bjt1VqcViOV FQEDZwkYwj9JeOriw4viuGpD/ExZyT1zl96KfEqJKHr14maPac0+YAbl0od+uVnpmP7Y PxAPpn42rMxMTwb+DdB3a03xSKB9bc5LBGUZWcXYZ8GZi87Sf3h+TScGuec+nEp8kZPe owtsipMfPThPm8v+OBFJhXG2chUhA4nN60/2SqEV0S7bSLQQvWqFdqTEU72xdoUxo9FL kUTA== 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=Lnir6LgkpdRMbpwiFT3OtePuYtNQt7Z4A5ni5uK8NYM=; b=VaExffct+ML6/9Mez9WxNi83tbMbQ1MTjdU4I53BaYwSgjLFS2rUnbJmNJB1/HGOgl 5ImsaVEb9d9GtlpVA+x5UmdhgDaCUHCMXBh1zNrV4iHzmWQY5E/KOAIE7z9RpR6Dcw4p JM8zinVWXbrOMZtD/Xsd+Yd5/Gk6nMaxHwYEWZssepPhWICI3+yZm8bgFZsfL1annn++ QtXtzJl8unXEhOtCE2IWtp/xJYJx+A2Z0zpfzbG6rpUPGsIKFijb2Y1vxjfQ75G095jx 6pg1hUoH8C4LSd49uy4zza7KxhsJFS30WVYy/oaq+onq4h1kw+NwdmUsHY9jsy8mLS+L fpTA== X-Gm-Message-State: AJIora/q9hc6xeb42QqIZepxPmo59a/N4muQGxvQU/y3ZtENK/Hz5lWI G1plJukkrwPN29uY5U5tZ/sCW9wQ8fXGJg== X-Google-Smtp-Source: AGRyM1tNkqn649mBRfSwZAp/UrqG/OSWPDgkHtChgS5HKqpGsnFpdJtjeRcMkmc6Cx3Cduh86KOAlA== X-Received: by 2002:a17:907:2894:b0:72b:145b:af83 with SMTP id em20-20020a170907289400b0072b145baf83mr2853406ejc.234.1657215460099; Thu, 07 Jul 2022 10:37:40 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-250.xnet.hr. [88.207.96.250]) by smtp.googlemail.com with ESMTPSA id l10-20020a1709060cca00b0072b16ea4795sm674715ejh.48.2022.07.07.10.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 10:37: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, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v6 4/4] arm64: dts: ipq8074: add APCS node Date: Thu, 7 Jul 2022 19:37:33 +0200 Message-Id: <20220707173733.404947-4-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220707173733.404947-1-robimarko@gmail.com> References: <20220707173733.404947-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 it as it will later be used as the CPU clocksource. Signed-off-by: Robert Marko Reviewed-by: Dmitry Baryshkov --- 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index b4ae13f16398..76707b9f9845 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -886,5 +886,13 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ "axi_m_sticky"; status = "disabled"; }; + + apcs_glb: mailbox@b111000 { + compatible = "qcom,ipq8074-apcs-apps-global"; + reg = <0x0b111000 0x6000>; + + #clock-cells = <1>; + #mbox-cells = <1>; + }; }; };