From: Stephen Boyd <sboyd@kernel.org>
To: Cixi Geng <gengcixi@gmail.com>,
baolin.wang7@gmail.com, krzysztof.kozlowski+dt@linaro.org,
lee.jones@linaro.org, mturquette@baylibre.com,
orsonzhai@gmail.com, robh+dt@kernel.org, zhang.lyra@gmail.com
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 4/4] clk: sprd: Add clocks support for UMS512
Date: Mon, 11 Jul 2022 13:26:52 -0700 [thread overview]
Message-ID: <20220711202654.91B1CC341CE@smtp.kernel.org> (raw)
In-Reply-To: <20220505101433.1575096-5-gengcixi@gmail.com>
Quoting Cixi Geng (2022-05-05 03:14:33)
> diff --git a/drivers/clk/sprd/ums512-clk.c b/drivers/clk/sprd/ums512-clk.c
> new file mode 100644
> index 000000000000..53ed58de61cd
> --- /dev/null
> +++ b/drivers/clk/sprd/ums512-clk.c
> @@ -0,0 +1,2199 @@
> +// SPDX-License-Identifier: GPL
Please pick an appropriate license.
WARNING: 'SPDX-License-Identifier: GPL' is not supported in LICENSES/...
#49: FILE: drivers/clk/sprd/ums512-clk.c:1:
+// SPDX-License-Identifier: GPL
> +/*
> + * Unisoc UMS512 clock driver
> + *
> + * Copyright (C) 2022 Unisoc, Inc.
> + * Author: Xiaolong Zhang <xiaolong.zhang@unisoc.com>
> + */
> +
> +#include <linux/clk-provider.h>
> +#include <linux/err.h>
> +#include <linux/io.h>
> +#include <linux/module.h>
> +#include <linux/of_device.h>
> +#include <linux/platform_device.h>
> +#include <linux/slab.h>
> +
> +#include <dt-bindings/clock/sprd,ums512-clk.h>
> +
> +#include "common.h"
> +#include "composite.h"
> +#include "div.h"
> +#include "gate.h"
> +#include "mux.h"
> +#include "pll.h"
> +
> +#define UMS512_MUX_FLAG \
> + (CLK_GET_RATE_NOCACHE | CLK_SET_RATE_NO_REPARENT)
Why do we need nocache?
> +
> +/* pll gate clock */
> +/* some pll clocks configure CLK_IGNORE_UNUSED because hw dvfs does not call
> + * clock interface. hw dvfs can not gate the pll clock.
> + */
> +static CLK_FIXED_FACTOR_FW_NAME(clk_26m_aud, "clk-26m-aud", "ext-26m", 1, 1, 0);
[...]
> + .hw_clks = &ums512_pmu_gate_hws,
> +};
> +
> +/* pll clock at g0 */
> +static const u64 itable_dpll0[7] = {6, 0, 0,
Please put space after '{' and before '}'
> + 1173000000ULL, 1475000000ULL,
> + 1855000000ULL, 1866000000ULL};
> +
[...]
> +
> +static int ums512_clk_probe(struct platform_device *pdev)
> +{
> + const struct sprd_clk_desc *desc;
> +
> + desc = device_get_match_data(&pdev->dev);
> + if (!desc)
> + return -ENODEV;
> +
> + sprd_clk_regmap_init(pdev, desc);
Check for error please
> +
> + return sprd_clk_probe(&pdev->dev, desc->hw_clks);
> +}
> +
next prev parent reply other threads:[~2022-07-11 20:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 10:14 [PATCH v5 0/4] Add ums512 clocks and relative bindings file Cixi Geng
2022-05-05 10:14 ` [PATCH v5 1/4] dt-bindings: clk: sprd: Add bindings for ums512 clock controller Cixi Geng
2022-07-11 20:27 ` Stephen Boyd
2022-05-05 10:14 ` [PATCH v5 2/4] dt-bindings: mfd: sprd: Add bindings for ums512 global registers Cixi Geng
2022-05-05 10:14 ` [PATCH v5 3/4] clk: sprd: Add dt-bindings include file for UMS512 Cixi Geng
2022-07-11 20:27 ` Stephen Boyd
2022-05-05 10:14 ` [PATCH v5 4/4] clk: sprd: Add clocks support " Cixi Geng
2022-07-11 20:26 ` Stephen Boyd [this message]
2022-05-24 9:25 ` [PATCH v5 0/4] Add ums512 clocks and relative bindings file Cixi Geng
2022-06-07 8:37 ` Cixi Geng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220711202654.91B1CC341CE@smtp.kernel.org \
--to=sboyd@kernel.org \
--cc=baolin.wang7@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=gengcixi@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee.jones@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=orsonzhai@gmail.com \
--cc=robh+dt@kernel.org \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).