Add driver support for ESWIN eic700 SoC clock controller
Subsystems (3)
[email protected]
maintainerv11 cover Add driver support for ESWIN eic700 SoC clock controller
From: Xuyang Dong <[email protected]>
The link [1] provides the official documentation for the EIC7700. Section 3.2 covers the clock subsystem.
[1] https://www.sifive.com/document-file/eic7700x-datasheet
Updates:
Change in v11:
- Updated driver file
- Add "Tested-by: Marcel Ziswiler <[email protected]> # ebc77" tag.
- Fix build error in function eswin_clk_register_clks (reported by kernel test robot).
- Link to v10: https://lore.kernel.org/all/[email protected]/
Changes in v10:
- Updated driver file
- Add a private clock divider API named 'eswin_register_clkdiv' to register divider clocks with private flag.
Define 'ESWIN_PRIV_DIV_MIN_2' private flag for registering the clock dividers whose division ratio start from 2.
Implement the private set_rate, recalc_rate, and determine_rate accordingly.
- Add CLK_DIVIDER_ALLOW_ZERO flag to the clock dividers whose division ratio start from 0.
- Replace CONFIG_ARCH_ESWIN with CONFIG_COMMON_CLK_ESWIN in the Makefile.
- Modify the help description of COMMON_CLK_EIC7700.
- Move register offset definitions from 'clk-eic7700.h' to 'clk-eic7700.c' and remove the 'clk-eic7700.h'. Remove '_CTRL' from the offset names.
- Remove all unused headers.
- Use devm_platform_ioremap_resource() instead of devm_of_iomap().
- Export the functions from clk.c as symbols.
- Use readl_poll_timeout().
- Use 'clk_parent_data' and '.hw' instead of string parent names.
- Rename the header file from clk.h to common.h.
- Rename macros from EIC7700_* to ESWIN_* in common.h.
- Add a new function, 'eswin_clk_register_clks', which can register divider, mux, gate, and fixed-factor clocks based on their types.
- Add structure 'eswin_clk_info' to manage the clocks that need to be registered in a specific order.
- Add macros 'ESWIN_*_TYPE' to define divider, mux, gate, and fixed-factor clocks with type. Add enum 'eswin_clk_type' for these types.
- Remove 'eswin_clk_register_mux_tbl'. Use 'eswin_clk_register_mux' to register mux clocks with or without table.
- Add xtal24m as the parent clock of the PLL.
- Change 2025 to 2026 in all files.
- Link to v9: https://lore.kernel.org/all/[email protected]/
Changes in v9:
- Updated driver file
- Checked return values of eswin_clk_register_*() in the probe function.
- Removed binding IDs check from pll functions in clk.c, as these functions were exclusively used by pll clocks and did not require ID validation.
- The PLL structure has been extended with max_rate and min_rate fields to explicitly define the frequency operating range of the PLL. These limits were now utilized by the clk_pll_determine_rate() function.
- Removed __clk_lookup() in clk_pll_set_rate. Added clk_notifier support in clk-eic7700.c.
- Added five previously missing clocks from [1].
- Link to v8: https://lore.kernel.org/all/[email protected]/
Changes in v8:
- Updated YAML file
- Added "Acked-by: Troy Mitchell <[email protected]>"
- Updated driver file
- Changed Kconfig from bool to tristate.
- Updated MAINTAINERS file
- Added "ESWIN SOC SERIES CLOCK DRIVER"
- Link to v7: https://lore.kernel.org/all/[email protected]/
Changes in v7:
- Updated YAML file
- Added "Acked-by: Conor Dooley <[email protected]>" for bindings.
- Updated driver file
- Added description for clk of eswin_calc_pll().
- Added macro EIC7700_MUX_TBL to manage mux clock-tree.
- Added eswin_clk_register_mux_tbl() to register mux clocks with discontinuous parent indexes.
- Link to v6: https://lore.kernel.org/all/[email protected]/
Changes in v6:
- Removed config option patch dependency from cover letter, because the patch was applied.
- Updated YAML file
- Added an oscillator as the clock input, named xtal24m.
- Added clocks property.
- Updated driver file
- Replaced fixed_rate_clk_xtal_24m with xtal24m.
- Dropped fixed_rate_clk_xtal_24m from driver. Because clock xtal24m was registered by fixed-clock as oscillator.
- Link to v5: https://lore.kernel.org/all/[email protected]/
Changes in v5:
- Removed vendor prefix patch dependency from cover letter, because the patch was applied.
- Updated YAML file
- Placed the required after all properties.
- Removed patternProperties. Also removed compatible of eswin,pll-clock, eswin,mux-clock, eswin,divider-clock and eswin,gate-clock as we have moved clock tree from DTS to Linux driver.
- Removed the clock tree from DTS. Used clock-controller to manage all clock. Removed all child nodes in clock-controller.
- Removed '#address-cells' and '#size-cells' properties, because the clock controller did not need to define these properties.
- Removed eic7700-clocks.dtsi.
- Added dt-bindings header for clock IDs. Because used the IDs to register clocks.
- Updated driver file
- Modified the commit for clock driver. Dropped indentation in commit.
- Removed CLK_OF_DECLARE(). Used *clk_hw_register* to register clocks. Used devm_of_clk_add_hw_provider.
- Dropped singletons.
- Checked the value right after obtaining it.
- Removed the definitions of macro frequency in clk.h like CLK_FREQ_24M.
- Modified description of help in Kconfig.
- Added COMPILE_TEST. Added COMMON_CLK_ESWIN for clk.o. And added "select COMMON_CLK_ESWIN" for clk-eic7700.c. Without COMMON_CLK_EIC7700, clk.c could not be compiled.
- Used .determined_rate.
- Added macro definitions of EIC7700_DIV, EIC7700_FIXED, EIC7700_FACTOR, EIC7700_MUX and EIC7700_PLL to manage clock tree.
- Added clk-eic7700.h to place eic7700 SoC clock registers.
- Removed refdiv_val and postdiv1_val from clk_pll_recalc_rate(). Because these values were unused.
- Link to v4: https://lore.kernel.org/all/[email protected]/
Changes in v4:
- Updated YAML file
- Changed name from cpu-default-frequency to cpu-default-freq-hz.
- Dropped $ref of cpu-default-frequency.
- Added cpu-default-frequency for required.
- Removed cpu-default-frequency in updated file, because there was no need to add cpu-default-frequency.
- Moved DIVIDER to DIV.
- Arranged the IDs in order.
- Dropped EIC7700_NR_CLKS.
- Removed dt-bindings eswin,eic7700-clock.h. Because IDs was not used, and used clock device nodes.
- According to the updated driver codes, the YAML has been updated.
- Updated driver file
- Remove undocumented parameters "cpu_no_boost_1_6ghz" and "cpu-default-frequency".
- Modified the comment and used the correct Linux coding style.
- Removed codes of voltage, because it was not the clock driver.
- Updated the formula of clock frequency calculation. Removed the logic that only used register selection.
- Used CLK_OF_DECLARE() to register clocks. Registered pll-clock, mux-clock, divider-clock, and gate-clock in clk-eic7700.c. The specific implementation of clock registration was in clk.c.
- Added eic7700-clocks.dtsi.
- Moved device information to DTS. Put all clocks' node in the eic7700-clocks.dtsi.
- Link to v3: https://lore.kernel.org/all/[email protected]/
Changes in v3:
- Update example, drop child node and add '#clock-cells' to the parent
node.
- Change parent node from sys-crg to clock-controller for this yaml.
- Drop "syscon", "simple-mfd" to clear warnings/errors by using "make dt_binding_check". And these are not necessary.
- Add "cpu-default-frequency" definition in yaml for "undocumented ABI".
- Drop Reviewed-by, this is misunderstanding. We have not received such
an email.
- Link to v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- Update example, drop child node.
- Clear warnings/errors for using "make dt_binding_check".
- Change to the correct format.
- Drop some non-stanard code.
- Use dev_err_probe() in probe functions.
- Link to v1: https://lore.kernel.org/all/[email protected]/
Xuyang Dong (3):
dt-bindings: clock: eswin: Documentation for eic7700 SoC
clock: eswin: Add eic7700 clock driver
MAINTAINERS: Add entry for ESWIN EIC7700 clock driver
.../bindings/clock/eswin,eic7700-clock.yaml | 46 + MAINTAINERS | 8 + drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/eswin/Kconfig | 15 + drivers/clk/eswin/Makefile | 8 + drivers/clk/eswin/clk-eic7700.c | 1337 +++++++++++++++++ drivers/clk/eswin/clk.c | 579 +++++++ drivers/clk/eswin/common.h | 373 +++++ .../dt-bindings/clock/eswin,eic7700-clock.h | 285 ++++ 10 files changed, 2653 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml create mode 100644 drivers/clk/eswin/Kconfig create mode 100644 drivers/clk/eswin/Makefile create mode 100644 drivers/clk/eswin/clk-eic7700.c create mode 100644 drivers/clk/eswin/clk.c create mode 100644 drivers/clk/eswin/common.h create mode 100644 include/dt-bindings/clock/eswin,eic7700-clock.h
--
2.34.1
[email protected]
maintainerPATCH v11 1/3 dt-bindings: clock: eswin: Documentation for eic7700 SoC
From: Xuyang Dong <[email protected]>
Add device tree binding documentation for the ESWIN eic7700 clock controller module.
--- .../bindings/clock/eswin,eic7700-clock.yaml | 46 +++ .../dt-bindings/clock/eswin,eic7700-clock.h | 285 ++++++++++++++++++ 2 files changed, 331 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml create mode 100644 include/dt-bindings/clock/eswin,eic7700-clock.h
Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml new file +46 -0
@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/eswin,eic7700-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Eswin EIC7700 SoC clock controller + +maintainers: + - Yifeng Huang <[email protected]> + - Xuyang Dong <[email protected]> + +description: + The clock controller generates and supplies clock to all the modules + for eic7700 SoC. + +properties: + compatible: + const: eswin,eic7700-clock + + reg: + maxItems: 1 + + clocks: + items: + - description: External 24MHz oscillator clock + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - clocks + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clock-controller@51828000 { + compatible = "eswin,eic7700-clock"; + reg = <0x51828000 0x300>; + clocks = <&xtal24m>; + #clock-cells = <1>; + };
include/dt-bindings/clock/eswin,eic7700-clock.h new file +285 -0
285 lines not on this page · raw message
--
2.34.1
[email protected]
maintainerPATCH v11 2/3 clock: eswin: Add eic7700 clock driver
In reply to [email protected]From: Xuyang Dong <[email protected]>
Add clock drivers for the EIC7700 SoC. The clock controller on the ESWIN EIC7700 provides various clocks to different IP blocks within the SoC.
--- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/eswin/Kconfig | 15 + drivers/clk/eswin/Makefile | 8 + drivers/clk/eswin/clk-eic7700.c | 1337 +++++++++++++++++++++++++++++++ drivers/clk/eswin/clk.c | 579 +++++++++++++ drivers/clk/eswin/common.h | 373 +++++++++ 7 files changed, 2314 insertions(+) create mode 100644 drivers/clk/eswin/Kconfig create mode 100644 drivers/clk/eswin/Makefile create mode 100644 drivers/clk/eswin/clk-eic7700.c create mode 100644 drivers/clk/eswin/clk.c create mode 100644 drivers/clk/eswin/common.h
drivers/clk/Kconfig +1 -0
@@ -504,6 +504,7 @@ source "drivers/clk/analogbits/Kconfig" source "drivers/clk/aspeed/Kconfig" source "drivers/clk/baikal-t1/Kconfig" source "drivers/clk/bcm/Kconfig" +source "drivers/clk/eswin/Kconfig" source "drivers/clk/hisilicon/Kconfig" source "drivers/clk/imgtec/Kconfig" source "drivers/clk/imx/Kconfig"
drivers/clk/Makefile +1 -0
@@ -120,6 +120,7 @@ obj-$(CONFIG_CLK_BAIKAL_T1) += baikal-t1/ obj-y += bcm/ obj-$(CONFIG_ARCH_BERLIN) += berlin/ obj-$(CONFIG_ARCH_DAVINCI) += davinci/ +obj-$(CONFIG_COMMON_CLK_ESWIN) += eswin/ obj-$(CONFIG_ARCH_HISI) += hisilicon/ obj-y += imgtec/ obj-y += imx/
drivers/clk/eswin/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0 + +config COMMON_CLK_ESWIN + bool + +config COMMON_CLK_EIC7700 + tristate "EIC7700 Clock Driver" + depends on ARCH_ESWIN || COMPILE_TEST + select COMMON_CLK_ESWIN + default ARCH_ESWIN + help + This driver provides support for clock controller on ESWIN EIC7700 + SoC. The clock controller generates and supplies clocks to various + peripherals within the SoC. + Say yes here to support the clock controller on the EIC7700 SoC.
drivers/clk/eswin/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Eswin Clock specific Makefile +# + +obj-$(CONFIG_COMMON_CLK_ESWIN) += clk.o + +obj-$(CONFIG_COMMON_CLK_EIC7700) += clk-eic7700.o
drivers/clk/eswin/clk-eic7700.c new file +1337 -0
1,337 lines not on this page · raw message
drivers/clk/eswin/clk.c new file +579 -0
579 lines not on this page · raw message
drivers/clk/eswin/common.h new file +373 -0
373 lines not on this page · raw message
--
2.34.1
kernel test robot
build botRe: [PATCH v11 2/3] clock: eswin: Add eic7700 clock driver
kernel test robot noticed the following build errors:
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on clk/clk-next]
[also build test ERROR on linus/master v6.19 next-20260210] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/dongxuyang-eswincomputing-com/dt-bindings-clock-eswin-Documentation-for-eic7700-SoC/20260210-175433 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20260210095106.839-1-dongxuyang%40eswincomputing.com patch subject: [PATCH v11 2/3] clock: eswin: Add eic7700 clock driver config: microblaze-allyesconfig (https://download.01.org/0day-ci/archive/20260211/[email protected]/config) compiler: microblaze-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
microblaze-linux-ld: drivers/clk/eswin/clk.o: in function `clk_pll_set_rate':
>> clk.o:(.text+0x1278): undefined reference to `__udivdi3'
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
[email protected]
maintainerPATCH v11 3/3 MAINTAINERS: Add entry for ESWIN EIC7700 clock driver
In reply to [email protected]From: Xuyang Dong <[email protected]>
Add myself as maintainer of ESWIN EIC7700 clock driver
--- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
@@ -9499,6 +9499,14 @@ T: git https://github.com/eswincomputing/linux-next.git F: Documentation/devicetree/bindings/riscv/eswin.yaml F: arch/riscv/boot/dts/eswin/ +ESWIN EIC7700 CLOCK DRIVER +M: Yifeng Huang <[email protected]> +M: Xuyang Dong <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml +F: drivers/clk/eswin/ +F: include/dt-bindings/clock/eswin,eic7700-clock.h + ET131X NETWORK DRIVER M: Mark Einon <[email protected]> S: Odd Fixes
--
2.34.1
Hi Xuyang,
Do you have a device-tree that can work with this patchset and enable eMMC/eth/SATA on Hifive P550? Given these drivers are already merged, I'd like to test it myself. I just need a proper device-tree. I checked your github repo: https://github.com/eswincomputing/linux-next, which hasn't been updated for a while, and none of the branches are based on the latest v6.19-rc7
Bo
Quoted 209 lines · On 2/10/26 01:50, [email protected] wrote:
From: Xuyang Dong <[email protected]>
The link [1] provides the official documentation for the EIC7700. Section 3.2 covers the clock subsystem.
[1] https://www.sifive.com/document-file/eic7700x-datasheet
Updates:
Change in v11:
- Updated driver file
- Add "Tested-by: Marcel Ziswiler <[email protected]> # ebc77" tag.
- Fix build error in functioneswin_clk_register_clks(reported by kernel test robot).Reported-by kernel test robot <[email protected]>- Link to v10: https://lore.kernel.org/all/[email protected]/
Changes in v10:
- Updated driver file
- Add a private clock divider API named 'eswin_register_clkdiv' to register divider clocks with private flag.
Define 'ESWIN_PRIV_DIV_MIN_2' private flag for registering the clock dividers whose division ratio start from 2.
Implement the privateset_rate,recalc_rate, anddetermine_rateaccordingly.
- AddCLK_DIVIDER_ALLOW_ZEROflag to the clock dividers whose division ratio start from 0.
- ReplaceCONFIG_ARCH_ESWINwithCONFIG_COMMON_CLK_ESWINin theMakefile.
- Modify the help description ofCOMMON_CLK_EIC7700.
- Move register offset definitions from 'clk-eic7700.h' to 'clk-eic7700.c' and remove the 'clk-eic7700.h'. Remove '_CTRL' from the offset names.
- Remove all unused headers.
- Usedevm_platform_ioremap_resource()instead ofdevm_of_iomap().
- Export the functions fromclk.cas symbols.
- Usereadl_poll_timeout().
- Use 'clk_parent_data' and '.hw' instead of string parent names.
- Rename the header file fromclk.htocommon.h.
- Rename macros from EIC7700_* to ESWIN_* incommon.h.
- Add a new function, 'eswin_clk_register_clks', which can register divider, mux, gate, and fixed-factor clocks based on their types.
- Add structure 'eswin_clk_info' to manage the clocks that need to be registered in a specific order.
- Add macros 'ESWIN_*_TYPE' to define divider, mux, gate, and fixed-factor clocks with type. Add enum 'eswin_clk_type' for these types.
- Remove 'eswin_clk_register_mux_tbl'. Use 'eswin_clk_register_mux' to register mux clocks with or without table.
- Add xtal24m as the parent clock of the PLL.
- Change 2025 to 2026 in all files.- Link to v9: https://lore.kernel.org/all/[email protected]/
Changes in v9:
- Updated driver file
- Checked return values of eswin_clk_register_*() in the probe function.
- Removed binding IDs check from pll functions inclk.c, as these functions were exclusively used by pll clocks and did not require ID validation.
- The PLL structure has been extended withmax_rateandmin_ratefields to explicitly define the frequency operating range of the PLL. These limits were now utilized by theclk_pll_determine_rate()function.
- Removed__clk_lookup()inclk_pll_set_rate. Addedclk_notifiersupport inclk-eic7700.c.
- Added five previously missing clocks from [1].- Link to v8: https://lore.kernel.org/all/[email protected]/
Changes in v8:
- Updated YAML file
- Added "Acked-by: Troy Mitchell <[email protected]>"
- Updated driver file
- ChangedKconfigfrom bool to tristate.
- UpdatedMAINTAINERSfile
- Added "ESWIN SOC SERIES CLOCK DRIVER"- Link to v7: https://lore.kernel.org/all/[email protected]/
Changes in v7:
- Updated YAML file
- Added "Acked-by: Conor Dooley <[email protected]>" for bindings.
- Updated driver file
- Added description for clk ofeswin_calc_pll().
- Added macroEIC7700_MUX_TBLto manage mux clock-tree.
- Addedeswin_clk_register_mux_tbl()to register mux clocks with discontinuous parent indexes.- Link to v6: https://lore.kernel.org/all/[email protected]/
Changes in v6:
- Removed config option patch dependency from cover letter, because the patch was applied.
- Updated YAML file
- Added an oscillator as the clock input, named xtal24m.
- Added clocks property.
- Updated driver file
- Replacedfixed_rate_clk_xtal_24mwith xtal24m.
- Droppedfixed_rate_clk_xtal_24mfrom driver. Because clock xtal24m was registered by fixed-clock as oscillator.- Link to v5: https://lore.kernel.org/all/[email protected]/
Changes in v5:
- Removed vendor prefix patch dependency from cover letter, because the patch was applied.
- Updated YAML file
- Placed the required after all properties.
- Removed patternProperties. Also removed compatible of eswin,pll-clock, eswin,mux-clock, eswin,divider-clock and eswin,gate-clock as we have moved clock tree from DTS to Linux driver.
- Removed the clock tree from DTS. Used clock-controller to manage all clock. Removed all child nodes in clock-controller.
- Removed '#address-cells' and '#size-cells' properties, because the clock controller did not need to define these properties.
- Removedeic7700-clocks.dtsi.
- Added dt-bindings header for clock IDs. Because used the IDs to register clocks.
- Updated driver file
- Modified the commit for clock driver. Dropped indentation in commit.
- RemovedCLK_OF_DECLARE(). Used *clk_hw_register* to register clocks. Useddevm_of_clk_add_hw_provider.
- Dropped singletons.
- Checked the value right after obtaining it.
- Removed the definitions of macro frequency inclk.hlikeCLK_FREQ_24M.
- Modified description of help inKconfig.
- AddedCOMPILE_TEST. AddedCOMMON_CLK_ESWINfor clk.o. And added "selectCOMMON_CLK_ESWIN" forclk-eic7700.c. WithoutCOMMON_CLK_EIC7700,clk.ccould not be compiled.
- Used .determined_rate.
- Added macro definitions ofEIC7700_DIV,EIC7700_FIXED,EIC7700_FACTOR,EIC7700_MUXandEIC7700_PLLto manage clock tree.
- Addedclk-eic7700.hto place eic7700 SoC clock registers.
- Removedrefdiv_valandpostdiv1_valfromclk_pll_recalc_rate(). Because these values were unused.- Link to v4: https://lore.kernel.org/all/[email protected]/
Changes in v4:
- Updated YAML file
- Changed name from cpu-default-frequency to cpu-default-freq-hz.
- Dropped $ref of cpu-default-frequency.
- Added cpu-default-frequency for required.
- Removed cpu-default-frequency in updated file, because there was no need to add cpu-default-frequency.
- Moved DIVIDER to DIV.
- Arranged the IDs in order.
- DroppedEIC7700_NR_CLKS.
- Removed dt-bindings eswin,eic7700-clock.h. Because IDs was not used, and used clock device nodes.
- According to the updated driver codes, the YAML has been updated.
- Updated driver file
- Remove undocumented parameters "cpu_no_boost_1_6ghz" and "cpu-default-frequency".
- Modified the comment and used the correct Linux coding style.
- Removed codes of voltage, because it was not the clock driver.
- Updated the formula of clock frequency calculation. Removed the logic that only used register selection.
- UsedCLK_OF_DECLARE()to register clocks. Registered pll-clock, mux-clock, divider-clock, and gate-clock inclk-eic7700.c. The specific implementation of clock registration was inclk.c.
- Addedeic7700-clocks.dtsi.
- Moved device information to DTS. Put all clocks' node in theeic7700-clocks.dtsi.- Link to v3: https://lore.kernel.org/all/[email protected]/
Changes in v3:
- Update example, drop child node and add '#clock-cells' to the parent
node.
- Change parent node from sys-crg to clock-controller for this yaml.
- Drop "syscon", "simple-mfd" to clear warnings/errors by using "makedt_binding_check". And these are not necessary.
- Add "cpu-default-frequency" definition in yaml for "undocumented ABI".
- Drop Reviewed-by, this is misunderstanding. We have not received such
an email.
- Link to v2: https://lore.kernel.org/all/[email protected]/Changes in v2:
- Update example, drop child node.
- Clear warnings/errors for using "makedt_binding_check".
- Change to the correct format.
- Drop some non-stanard code.
- Usedev_err_probe()in probe functions.
- Link to v1: https://lore.kernel.org/all/[email protected]/Xuyang Dong (3):
dt-bindings: clock: eswin: Documentation for eic7700 SoC
clock: eswin: Add eic7700 clock driver
MAINTAINERS: Add entry for ESWIN EIC7700 clock driver.../bindings/clock/eswin,eic7700-clock.yaml | 46 + MAINTAINERS | 8 + drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/eswin/Kconfig | 15 + drivers/clk/eswin/Makefile | 8 + drivers/clk/eswin/clk-eic7700.c | 1337 +++++++++++++++++ drivers/clk/eswin/clk.c | 579 +++++++ drivers/clk/eswin/common.h | 373 +++++ .../dt-bindings/clock/eswin,eic7700-clock.h | 285 ++++ 10 files changed, 2653 insertions(+)create mode 100644
Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yamlcreate mode 100644drivers/clk/eswin/Kconfig
create mode 100644drivers/clk/eswin/Makefile
create mode 100644drivers/clk/eswin/clk-eic7700.c
create mode 100644drivers/clk/eswin/clk.c
create mode 100644drivers/clk/eswin/common.h
create mode 100644include/dt-bindings/clock/eswin,eic7700-clock.h--
2.34.1
Hi Bo
Quoted 8 lines · Bo Gan
Hi Xuyang,
Do you have a device-tree that can work with this patchset and enable eMMC/eth/SATA on Hifive P550? Given these drivers are already merged, I'd like to test it myself. I just need a proper device-tree. I checked your github repo: https://github.com/eswincomputing/linux-next, which hasn't been updated for a while, and none of the branches are based on the latest v6.19-rc7
You may find this [1] helpful. It is re-based on-top-of v6.19. However, so far, I only tested with micro SD card on EBC77. I may try Ethernet later this week as well.
[1] https://github.com/riscv/meta-riscv/blob/master/recipes-kernel/linux/linux-eswin-ebc77-mainline.bb
Quoted 1 line
Bo
Cheers
Marcel
[snip]
Xuyang Dong
maintainerHi Marcel and Bo,
Thanks for the suggestions and for providing the device-tree information.
Quoted 8 lines
Quoted 7 lines
Do you have a device-tree that can work with this patchset and enable eMMC/eth/SATA on Hifive P550? Given these drivers are already merged, I'd like to test it myself. I just need a proper device-tree. I checked your github repo: https://github.com/eswincomputing/linux-next, which hasn't been updated for a while, and none of the branches are based on the latest v6.19-rc7
Quoted 5 lines
You may find this [1] helpful. It is re-based on-top-of v6.19. However, so far, I only tested with micro SD card on EBC77. I may try Ethernet later this week as well.
[1] https://github.com/riscv/meta-riscv/blob/master/recipes-kernel/linux/linux-eswin-ebc77-mainline.bb
Bo, please apply the device-tree patch from [1] — it matches the description we tested on kernel 6.18. Next, we'll add the device-tree for the driver modules that have already been accepted upstream, targeting the latest 6.19 kernel.
Regards,
Xuyang Dong