Re: [PATCH v2 2/2] clk: sophgo: Add clock controller support for SG2044 SoC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 26, 2025 at 10:57:46AM +0800, Chen Wang wrote:
> 
> On 2025/2/4 16:44, Inochi Amaoto wrote:
> [......]
> > diff --git a/drivers/clk/sophgo/clk-sg2044.c b/drivers/clk/sophgo/clk-sg2044.c
> > new file mode 100644
> > index 000000000000..7185c11ea2a5
> > --- /dev/null
> > +++ b/drivers/clk/sophgo/clk-sg2044.c
> > @@ -0,0 +1,2271 @@
> > +// SPDX-License-Identifier: GPL-2.0
> > +/*
> > + * Sophgo SG2042 clock controller Driver
> > + *
> > + * Copyright (C) 2024 Inochi Amaoto <inochiama@xxxxxxxxxxx>
> 
> I'm afraid you may need to use your new gmail emailbox address.
> 
> [......]
> 

OK, I will change it.

> > +static int sg2044_clk_probe(struct platform_device *pdev)
> > +{
> > +	struct device *dev = &pdev->dev;
> > +	struct sg2044_clk_ctrl *ctrl;
> > +	const struct sg2044_clk_desc_data *desc;
> > +	void __iomem *reg;
> > +	struct regmap *regmap;
> > +	u32 num_clks;
> > +
> > +	reg = devm_platform_ioremap_resource(pdev, 0);
> > +	if (IS_ERR(reg))
> > +		return PTR_ERR(reg);
> > +
> > +	regmap = syscon_regmap_lookup_by_compatible("sophgo,sg2044-top-syscon");
> 
> What's this? Do you miss some descritpion about dependency (in
> cover-letter?)
> 

It is just a generic syscon device in the device tree
(It only add compatiable string in syscon.yaml).
As the clock dts always require minimal dts to be
functional, I do not add a dependency for requesting
it.

> Others LGTM.
> 
> Reviewed-by: Chen Wang <unicorn_wang@xxxxxxxxxxx>
> 
> Regards,
> 
> Chen
> 
> [......]
> 




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux