* [PATCH v1 0/2] Add one clock gate for i.MX95 HSIO block @ 2024-09-03 7:59 Richard Zhu 2024-09-03 7:59 ` [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL Richard Zhu 2024-09-03 7:59 ` [PATCH v1 2/2] clk: imx95-blk-ctl: Add one clock gate for HSIO block Richard Zhu 0 siblings, 2 replies; 7+ messages in thread From: Richard Zhu @ 2024-09-03 7:59 UTC (permalink / raw) To: abelvesa, peng.fan, mturquette, sboyd, shawnguo, s.hauer, festevam Cc: linux-kernel, linux-arm-kernel, linux-clk, imx, kernel CREF_EN (Bit6) of LFAST_IO_REG control i.MX95 PCIe REF clock out enable/disable. Add one clock gate for i.MX95 HSIO block to support PCIe REF clock out gate. [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible [PATCH v1 2/2] clk: imx95-blk-ctl: Add one clock gate for HSIO block Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml | 1 + drivers/clk/imx/clk-imx95-blk-ctl.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL 2024-09-03 7:59 [PATCH v1 0/2] Add one clock gate for i.MX95 HSIO block Richard Zhu @ 2024-09-03 7:59 ` Richard Zhu 2024-09-03 12:59 ` Krzysztof Kozlowski 2024-09-03 13:01 ` Fabio Estevam 2024-09-03 7:59 ` [PATCH v1 2/2] clk: imx95-blk-ctl: Add one clock gate for HSIO block Richard Zhu 1 sibling, 2 replies; 7+ messages in thread From: Richard Zhu @ 2024-09-03 7:59 UTC (permalink / raw) To: abelvesa, peng.fan, mturquette, sboyd, shawnguo, s.hauer, festevam Cc: linux-kernel, linux-arm-kernel, linux-clk, imx, kernel, Richard Zhu Add compatible string "nxp,imx95-hsio-blk-ctl" for iMX95. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> --- Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml index 2dffc02dcd8b..638241f6749f 100644 --- a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml @@ -17,6 +17,7 @@ properties: - nxp,imx95-display-csr - nxp,imx95-camera-csr - nxp,imx95-vpu-csr + - nxp,imx95-hsio-blk-ctl - const: syscon reg: -- 2.37.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL 2024-09-03 7:59 ` [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL Richard Zhu @ 2024-09-03 12:59 ` Krzysztof Kozlowski 2024-09-04 1:24 ` Hongxing Zhu 2024-09-03 13:01 ` Fabio Estevam 1 sibling, 1 reply; 7+ messages in thread From: Krzysztof Kozlowski @ 2024-09-03 12:59 UTC (permalink / raw) To: Richard Zhu, abelvesa, peng.fan, mturquette, sboyd, shawnguo, s.hauer, festevam Cc: linux-kernel, linux-arm-kernel, linux-clk, imx, kernel On 03/09/2024 09:59, Richard Zhu wrote: > Add compatible string "nxp,imx95-hsio-blk-ctl" for iMX95. > > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> > --- <form letter> Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline) or work on fork of kernel (don't, instead use mainline). Just use b4 and everything should be fine, although remember about `b4 prep --auto-to-cc` if you added new patches to the patchset. You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time. Please kindly resend and include all necessary To/Cc entries. </form letter> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL 2024-09-03 12:59 ` Krzysztof Kozlowski @ 2024-09-04 1:24 ` Hongxing Zhu 0 siblings, 0 replies; 7+ messages in thread From: Hongxing Zhu @ 2024-09-04 1:24 UTC (permalink / raw) To: Krzysztof Kozlowski, abelvesa, Peng Fan, mturquette, sboyd, shawnguo, s.hauer, festevam Cc: linux-kernel, linux-arm-kernel, linux-clk, imx, kernel > -----Original Message----- > From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Sent: 2024年9月3日 21:00 > To: Hongxing Zhu <hongxing.zhu@nxp.com>; abelvesa@kernel.org; Peng Fan > <peng.fan@nxp.com>; mturquette@baylibre.com; sboyd@kernel.org; > shawnguo@kernel.org; s.hauer@pengutronix.de; festevam@gmail.com > Cc: linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > linux-clk@vger.kernel.org; imx@lists.linux.dev; kernel@pengutronix.de > Subject: Re: [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add > compatible string for i.MX95 HSIO BLK CTRL > > On 03/09/2024 09:59, Richard Zhu wrote: > > Add compatible string "nxp,imx95-hsio-blk-ctl" for iMX95. > > > > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> > > --- > > <form letter> > Please use scripts/get_maintainers.pl to get a list of necessary people and > lists to CC. It might happen, that command when run on an older kernel, gives > you outdated entries. Therefore please be sure you base your patches on > recent Linux kernel. > > Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so > fix your workflow. Tools might also fail if you work on some ancient tree (don't, > instead use mainline) or work on fork of kernel (don't, instead use mainline). > Just use b4 and everything should be fine, although remember about `b4 prep > --auto-to-cc` if you added new patches to the patchset. > > You missed at least devicetree list (maybe more), so this won't be tested by > automated tooling. Performing review on untested code might be a waste of > time. > > Please kindly resend and include all necessary To/Cc entries. > </form letter> Thanks for reminder. It's my fault missing some entries. Would include all entries later. Best Regards Richard Zhu > > Best regards, > Krzysztof ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL 2024-09-03 7:59 ` [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL Richard Zhu 2024-09-03 12:59 ` Krzysztof Kozlowski @ 2024-09-03 13:01 ` Fabio Estevam 2024-09-04 1:28 ` Hongxing Zhu 1 sibling, 1 reply; 7+ messages in thread From: Fabio Estevam @ 2024-09-03 13:01 UTC (permalink / raw) To: Richard Zhu Cc: abelvesa, peng.fan, mturquette, sboyd, shawnguo, s.hauer, linux-kernel, linux-arm-kernel, linux-clk, imx, kernel Hi Richard, On Tue, Sep 3, 2024 at 5:21 AM Richard Zhu <hongxing.zhu@nxp.com> wrote: > > Add compatible string "nxp,imx95-hsio-blk-ctl" for iMX95. > > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> > --- > Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml > index 2dffc02dcd8b..638241f6749f 100644 > --- a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml > +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml > @@ -17,6 +17,7 @@ properties: > - nxp,imx95-display-csr > - nxp,imx95-camera-csr > - nxp,imx95-vpu-csr > + - nxp,imx95-hsio-blk-ctl Please keep the entries in alphabetical order. ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL 2024-09-03 13:01 ` Fabio Estevam @ 2024-09-04 1:28 ` Hongxing Zhu 0 siblings, 0 replies; 7+ messages in thread From: Hongxing Zhu @ 2024-09-04 1:28 UTC (permalink / raw) To: Fabio Estevam Cc: abelvesa, Peng Fan, mturquette, sboyd, shawnguo, s.hauer, linux-kernel, linux-arm-kernel, linux-clk, imx, kernel > -----Original Message----- > From: Fabio Estevam <festevam@gmail.com> > Sent: 2024年9月3日 21:02 > To: Hongxing Zhu <hongxing.zhu@nxp.com> > Cc: abelvesa@kernel.org; Peng Fan <peng.fan@nxp.com>; > mturquette@baylibre.com; sboyd@kernel.org; shawnguo@kernel.org; > s.hauer@pengutronix.de; linux-kernel@vger.kernel.org; > linux-arm-kernel@lists.infradead.org; linux-clk@vger.kernel.org; > imx@lists.linux.dev; kernel@pengutronix.de > Subject: Re: [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add > compatible string for i.MX95 HSIO BLK CTRL > > Hi Richard, > > On Tue, Sep 3, 2024 at 5:21 AM Richard Zhu <hongxing.zhu@nxp.com> wrote: > > > > Add compatible string "nxp,imx95-hsio-blk-ctl" for iMX95. > > > > Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> > > --- > > Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git > a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml > b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml > > index 2dffc02dcd8b..638241f6749f 100644 > > --- a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml > > +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml > > @@ -17,6 +17,7 @@ properties: > > - nxp,imx95-display-csr > > - nxp,imx95-camera-csr > > - nxp,imx95-vpu-csr > > + - nxp,imx95-hsio-blk-ctl > > Please keep the entries in alphabetical order. Thanks for your comments. I follow the time-sequence to add the changes before. In current compatible items, the alphabetical order is already messed-up. How do you think about the following one? --- a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml @@ -16,6 +16,7 @@ properties: - nxp,imx95-lvds-csr - nxp,imx95-display-csr - nxp,imx95-camera-csr + - nxp,imx95-hsio-blk-ctl - nxp,imx95-vpu-csr - const: syscon Best Regards Richard Zhu ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v1 2/2] clk: imx95-blk-ctl: Add one clock gate for HSIO block 2024-09-03 7:59 [PATCH v1 0/2] Add one clock gate for i.MX95 HSIO block Richard Zhu 2024-09-03 7:59 ` [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL Richard Zhu @ 2024-09-03 7:59 ` Richard Zhu 1 sibling, 0 replies; 7+ messages in thread From: Richard Zhu @ 2024-09-03 7:59 UTC (permalink / raw) To: abelvesa, peng.fan, mturquette, sboyd, shawnguo, s.hauer, festevam Cc: linux-kernel, linux-arm-kernel, linux-clk, imx, kernel, Richard Zhu CREF_EN (Bit6) of LFAST_IO_REG control i.MX95 PCIe REF clock out enable/disable. Add compatible string "fsl,imx95-hsio-blk-ctl" to support PCIe REF clock out gate. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> --- drivers/clk/imx/clk-imx95-blk-ctl.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/clk/imx/clk-imx95-blk-ctl.c b/drivers/clk/imx/clk-imx95-blk-ctl.c index 74f595f9e5e3..2c4b01038ebb 100644 --- a/drivers/clk/imx/clk-imx95-blk-ctl.c +++ b/drivers/clk/imx/clk-imx95-blk-ctl.c @@ -248,6 +248,25 @@ static const struct imx95_blk_ctl_dev_data dispmix_csr_dev_data = { .clk_reg_offset = 0, }; +static const struct imx95_blk_ctl_clk_dev_data hsio_blk_ctl_clk_dev_data[] = { + [0] = { + .name = "hsio_blk_ctl_clk", + .parent_names = (const char *[]){ "hsio_pll", }, + .num_parents = 1, + .reg = 0, + .bit_idx = 6, + .bit_width = 1, + .type = CLK_GATE, + .flags = CLK_SET_RATE_PARENT, + } +}; + +static const struct imx95_blk_ctl_dev_data hsio_blk_ctl_dev_data = { + .num_clks = 1, + .clk_dev_data = hsio_blk_ctl_clk_dev_data, + .clk_reg_offset = 0, +}; + static int imx95_bc_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -419,6 +438,7 @@ static const struct of_device_id imx95_bc_of_match[] = { { .compatible = "nxp,imx95-lvds-csr", .data = &lvds_csr_dev_data }, { .compatible = "nxp,imx95-display-csr", .data = &dispmix_csr_dev_data }, { .compatible = "nxp,imx95-vpu-csr", .data = &vpublk_dev_data }, + { .compatible = "nxp,imx95-hsio-blk-ctl", .data = &hsio_blk_ctl_dev_data }, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, imx95_bc_of_match); -- 2.37.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-09-04 1:28 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-09-03 7:59 [PATCH v1 0/2] Add one clock gate for i.MX95 HSIO block Richard Zhu 2024-09-03 7:59 ` [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL Richard Zhu 2024-09-03 12:59 ` Krzysztof Kozlowski 2024-09-04 1:24 ` Hongxing Zhu 2024-09-03 13:01 ` Fabio Estevam 2024-09-04 1:28 ` Hongxing Zhu 2024-09-03 7:59 ` [PATCH v1 2/2] clk: imx95-blk-ctl: Add one clock gate for HSIO block Richard Zhu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®