Message ID | 1590582292-13314-1-git-send-email-sivaprak@codeaurora.org |
---|---|
Headers | show |
Series | Add APSS clock controller support for IPQ6018 | expand |
Quoting Sivaprakash Murugesan (2020-05-27 05:24:51) > diff --git a/drivers/clk/qcom/apss-ipq6018.c b/drivers/clk/qcom/apss-ipq6018.c > new file mode 100644 > index 0000000..004f7e1 > --- /dev/null > +++ b/drivers/clk/qcom/apss-ipq6018.c > @@ -0,0 +1,106 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2018, The Linux Foundation. All rights reserved. > + */ > + > +#include <linux/kernel.h> > +#include <linux/err.h> > +#include <linux/platform_device.h> > +#include <linux/clk-provider.h> > +#include <linux/regmap.h> > +#include <linux/module.h> > + > +#include <dt-bindings/clock/qcom,apss-ipq.h> > + > +#include "common.h" > +#include "clk-regmap.h" > +#include "clk-branch.h" > +#include "clk-alpha-pll.h" > +#include "clk-regmap-mux.h" > + > +enum { > + P_XO, > + P_APSS_PLL_EARLY, > +}; > + > +static const struct clk_parent_data parents_apcs_alias0_clk_src[] = { > + { .fw_name = "xo" }, > + { .fw_name = "pll" }, This pll clk is not described in the binding. Please add it there. > +}; > + > +static const struct parent_map parents_apcs_alias0_clk_src_map[] = { > + { P_XO, 0 }, > + { P_APSS_PLL_EARLY, 5 }, > +}; > +
On Wed, 27 May 2020 17:54:50 +0530, Sivaprakash Murugesan wrote: > Add dt-binding for ipq6018 apss clock controller > > Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org> > --- > [V6] > * Addressed review comment from Stephen > include/dt-bindings/clock/qcom,apss-ipq.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > create mode 100644 include/dt-bindings/clock/qcom,apss-ipq.h > Acked-by: Rob Herring <robh@kernel.org>
Hi Stepen, On 5/28/2020 7:29 AM, Stephen Boyd wrote: > Quoting Sivaprakash Murugesan (2020-05-27 05:24:51) >> diff --git a/drivers/clk/qcom/apss-ipq6018.c b/drivers/clk/qcom/apss-ipq6018.c >> new file mode 100644 >> index 0000000..004f7e1 >> --- /dev/null >> +++ b/drivers/clk/qcom/apss-ipq6018.c >> @@ -0,0 +1,106 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Copyright (c) 2018, The Linux Foundation. All rights reserved. >> + */ >> + >> +#include <linux/kernel.h> >> +#include <linux/err.h> >> +#include <linux/platform_device.h> >> +#include <linux/clk-provider.h> >> +#include <linux/regmap.h> >> +#include <linux/module.h> >> + >> +#include <dt-bindings/clock/qcom,apss-ipq.h> >> + >> +#include "common.h" >> +#include "clk-regmap.h" >> +#include "clk-branch.h" >> +#include "clk-alpha-pll.h" >> +#include "clk-regmap-mux.h" >> + >> +enum { >> + P_XO, >> + P_APSS_PLL_EARLY, >> +}; >> + >> +static const struct clk_parent_data parents_apcs_alias0_clk_src[] = { >> + { .fw_name = "xo" }, >> + { .fw_name = "pll" }, > This pll clk is not described in the binding. Please add it there. Sorry I did not get this, this PLL is not directly defined in this driver and it comes from dts. do you still want to describe it in binding?
On 6/2/2020 1:06 AM, Stephen Boyd wrote: > Quoting Sivaprakash Murugesan (2020-06-01 05:41:15) >> On 5/28/2020 7:29 AM, Stephen Boyd wrote: >>> Quoting Sivaprakash Murugesan (2020-05-27 05:24:51) >>>> diff --git a/drivers/clk/qcom/apss-ipq6018.c b/drivers/clk/qcom/apss-ipq6018.c >>>> new file mode 100644 >>>> index 0000000..004f7e1 >>>> --- /dev/null >>>> +++ b/drivers/clk/qcom/apss-ipq6018.c >>>> @@ -0,0 +1,106 @@ >>>> + P_XO, >>>> + P_APSS_PLL_EARLY, >>>> +}; >>>> + >>>> +static const struct clk_parent_data parents_apcs_alias0_clk_src[] = { >>>> + { .fw_name = "xo" }, >>>> + { .fw_name = "pll" }, >>> This pll clk is not described in the binding. Please add it there. >> Sorry I did not get this, this PLL is not directly defined in this >> driver and it comes >> >> from dts. do you still want to describe it in binding? >> > Yes, there should be a clock-names property for "pll" and a clocks > property in the binding document. I didn't see that. These are defined in https://lkml.org/lkml/2020/5/27/658and https://lkml.org/lkml/2020/5/27/659 it has been defined as part of mailbox binding, since this driver does not have a dts node and it is child of apcs mailbox driver.