ARM: davinci: common clock prep work
Subsystems (6)
cover ARM: davinci: common clock prep work
This series contains some changes needed for the conversion of arch/arm/mach- davinci to the common clock framework.
Most of the boards in mach-davinci do not have device tree support. However, CFGCHIP, which is a syscon regmap, is needed during clock init in early boot. Using a platform device for the syscon at this point is not an option. So, this series introduces a new way to register a syscon regmap on non-DT systems.
The DA8XX USB PHY driver is a consumer of the CFGCHIP syscon regmap, so some changes are needed in that driver as well since we are removing the syscon platform devices. The patch "phy: da8xx-usb: rename clock con_ids" doesn't have anything to do with syscon, but I included in this series because we are touching PHY code here anyway and it is also a dependency for the upcoming common clock framework conversion changes.
Maintainers, please coordinate with Sekhar before committing. We will probably want everything to go through the linux-davinci tree if possible.
David Lechner (6):
mfd: syscon: Add syscon_register() function
phy: da8xx-usb: Always check for syscon compatible
phy: da8xx-usb: rename clock con_ids
ARM: davinci: move davinci_clk_init() to init_time
ARM: da8xx: Move CFGCHIP registration to init_time
phy: da8xx-usb: drop use of syscon_regmap_lookup_by_pdevname()
arch/arm/mach-davinci/board-da830-evm.c | 6 +-- arch/arm/mach-davinci/board-da850-evm.c | 6 +-- arch/arm/mach-davinci/board-dm355-evm.c | 2 +- arch/arm/mach-davinci/board-dm355-leopard.c | 2 +- arch/arm/mach-davinci/board-dm365-evm.c | 2 +- arch/arm/mach-davinci/board-dm644x-evm.c | 2 +- arch/arm/mach-davinci/board-dm646x-evm.c | 19 +++++--- arch/arm/mach-davinci/board-mityomapl138.c | 6 +-- arch/arm/mach-davinci/board-neuros-osd2.c | 2 +- arch/arm/mach-davinci/board-omapl138-hawk.c | 6 +-- arch/arm/mach-davinci/board-sffsdr.c | 2 +- arch/arm/mach-davinci/da830.c | 8 +++- arch/arm/mach-davinci/da850.c | 31 ++++++------- arch/arm/mach-davinci/da8xx-dt.c | 2 +- arch/arm/mach-davinci/davinci.h | 4 ++ arch/arm/mach-davinci/devices-da8xx.c | 29 ++---------- arch/arm/mach-davinci/dm355.c | 8 +++- arch/arm/mach-davinci/dm365.c | 8 +++- arch/arm/mach-davinci/dm644x.c | 8 +++- arch/arm/mach-davinci/dm646x.c | 22 ++++----- arch/arm/mach-davinci/include/mach/common.h | 1 - arch/arm/mach-davinci/include/mach/da8xx.h | 6 ++- arch/arm/mach-davinci/usb-da8xx.c | 12 ++--- drivers/mfd/syscon.c | 71 +++++++++++++++++++++++++++++ drivers/phy/ti/phy-da8xx-usb.c | 14 ++---- include/linux/mfd/syscon.h | 9 ++++ 26 files changed, 178 insertions(+), 110 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/6 mfd: syscon: Add syscon_register() function
This adds a new syscon_register() function that creates a new syscon regmap and adds it to the lookup list.
This function serves two purposes:
1. This is needed for platforms without device tree support where the syscon regmap is needed in early boot (e.g. clocks), because using a platform driver at this point in boot is not an option.
2. It allows other drivers to use syscon_regmap_lookup_by_compatible() for both device tree and non-DT platforms instead of having to have a separate case that calls syscon_regmap_lookup_by_pdevname().
--- drivers/mfd/syscon.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++ include/linux/mfd/syscon.h | 9 ++++++ 2 files changed, 80 insertions(+)
drivers/mfd/syscon.c +71 -0
@@ -25,6 +25,8 @@#include <linux/mfd/syscon.h> #include <linux/slab.h> +#define SYSCON_COMPATIBLE_SIZE 50 +static struct platform_driver syscon_driver;static DEFINE_SPINLOCK (syscon_list_slock);
@@ -34,6 +36,7 @@ struct syscon {struct device_node *np;struct regmap *regmap;struct list_head list; +char compatible[SYSCON_COMPATIBLE_SIZE ]; };static const struct regmap_config syscon_regmap_config = {
@@ -140,9 +143,27 @@ EXPORT_SYMBOL_GPL(syscon_node_to_regmap);struct regmap *syscon_regmap_lookup_by_compatible (const char *s) { +struct syscon *entry, *syscon =NULL ;struct device_node *syscon_np;struct regmap *regmap; +spin_lock (&syscon_list_slock); + +/* Check for entries registered with syscon_register() */ +list_for_each_entry (entry, &syscon_list, list) { +if (!entry->compatible) +continue ; +if (!strncmp (entry->compatible, s,SYSCON_COMPATIBLE_SIZE )) { + syscon = entry; +break ; + } + } + +spin_unlock (&syscon_list_slock); + +if (syscon) +return syscon->regmap; + syscon_np =of_find_compatible_node (NULL ,NULL , s);if (!syscon_np)return ERR_PTR (-ENODEV );
@@ -196,6 +217,56 @@ struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np, }EXPORT_SYMBOL_GPL (syscon_regmap_lookup_by_phandle); +/** +* syscon_register - Register a new syscon regmap +* @start: The starting memory address of the regmap +* @size: The size of the regmap in bytes +* @compatible: Compatible string used for lookup +* +* Returns: Pointer to a regmap or a negative error code. +*/ +struct regmap *syscon_register (resource_size_t start,size_t size, +const char *compatible) +{ +struct regmap_config syscon_config = syscon_regmap_config; +struct syscon *syscon; +void __iomem *base; +int err; + + syscon =kzalloc (sizeof (*syscon),GFP_KERNEL ); +if (!syscon) +return ERR_PTR (-ENOMEM ); + + base =ioremap (start, size); +if (!base) { + err = -ENOMEM ; + goto err_free_syscon; + } + +strncpy (syscon->compatible, compatible,SYSCON_COMPATIBLE_SIZE ); + + syscon_config.max_register = size -1 ; + syscon->regmap =regmap_init_mmio (NULL , base, &syscon_config); +if (IS_ERR (syscon->regmap)) { + err =PTR_ERR (syscon->regmap); + goto err_iounmap; + } + +spin_lock (&syscon_list_slock); +list_add_tail (&syscon->list, &syscon_list); +spin_unlock (&syscon_list_slock); + +return syscon->regmap; + +err_iounmap: +iounmap (base); +err_free_syscon: +kfree (syscon); + +return ERR_PTR (err); +} +EXPORT_SYMBOL_GPL (syscon_register); +static int syscon_probe (struct platform_device *pdev) {struct device *dev = &pdev->dev;
include/linux/mfd/syscon.h +9 -0
@@ -27,6 +27,8 @@ extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s);extern struct regmap *syscon_regmap_lookup_by_phandle (struct device_node *np,const char *property); +extern struct regmap *syscon_register (resource_size_t start,size_t size, +const char *compatible);#else static inline struct regmap *syscon_node_to_regmap (struct device_node *np) {
@@ -49,6 +51,13 @@ static inline struct regmap *syscon_regmap_lookup_by_phandle( {return ERR_PTR (-ENOTSUPP ); } + +static inline struct regmap *syscon_register (resource_size_t start, +size_t size, +const char *id) +{ +return ERR_PTR (-ENOTSUPP ); +}#endif #endif /* __LINUX_MFD_SYSCON_H__ */
Signature · 1 line
2.7.4
PATCH 2/6 phy: da8xx-usb: Always check for syscon compatible
In reply to David LechnerThis slightly changes the logic for getting the CFGCHIP syscon register. We now always call syscon_regmap_lookup_by_compatible() even when not using device tree. This is in preparation for some changes in how the CFGCHIP syscon regmap is registered on da8xx platforms.
--- drivers/phy/ti/phy-da8xx-usb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/phy/ti/phy-da8xx-usb.c +2 -4
@@ -152,10 +152,8 @@ static int da8xx_usb_phy_probe(struct platform_device *pdev)if (!d_phy)return -ENOMEM ; -if (node) - d_phy->regmap =syscon_regmap_lookup_by_compatible ( -"ti,da830-cfgchip" ); -else + d_phy->regmap =syscon_regmap_lookup_by_compatible ("ti,da830-cfgchip" ); +if (IS_ERR (d_phy->regmap)) d_phy->regmap =syscon_regmap_lookup_by_pdevname ("syscon" );if (IS_ERR (d_phy->regmap)) {dev_err (dev,"Failed to get syscon\n" );
Signature · 1 line
2.7.4
PATCH 3/6 phy: da8xx-usb: rename clock con_ids
In reply to David LechnerThis renames the clock con_ids in the DA8XX USB PHY driver as well as the matching names in the mach clock registration code.
This is in preparation for using device tree clocks where these names will become part of the device tree bindings. The new names more closely match the names used in the USB clock diagram in the SoC TRM.
--- arch/arm/mach-davinci/usb-da8xx.c | 12 ++++++------ drivers/phy/ti/phy-da8xx-usb.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/mach-davinci/usb-da8xx.c +6 -6
@@ -256,14 +256,14 @@ static int usb20_phy_clk_set_parent(struct clk *clk, struct clk *parent) }static struct clk usb20_phy_clk = { - .name ="usb20_phy" , + .name ="usb0_clk48" , .clk_enable = usb20_phy_clk_enable, .clk_disable = usb20_phy_clk_disable, .set_parent = usb20_phy_clk_set_parent, };static struct clk_lookup usb20_phy_clk_lookup = -CLK ("da8xx-usb-phy" ,"usb20_phy" , &usb20_phy_clk); +CLK ("da8xx-usb-phy" ,"usb0_clk48" , &usb20_phy_clk);/** * da8xx_register_usb20_phy_clk - register USB0PHYCLKMUX clock
@@ -320,18 +320,18 @@ static int usb11_phy_clk_set_parent(struct clk *clk, struct clk *parent) }static struct clk usb11_phy_clk = { - .name ="usb11_phy" , + .name ="usb1_clk48" , .set_parent = usb11_phy_clk_set_parent, };static struct clk_lookup usb11_phy_clk_lookup = -CLK ("da8xx-usb-phy" ,"usb11_phy" , &usb11_phy_clk); +CLK ("da8xx-usb-phy" ,"usb1_clk48" , &usb11_phy_clk);/** * da8xx_register_usb11_phy_clk - register USB1PHYCLKMUX clock * * @use_usb_refclkin: Selects the parent clock - either "usb_refclkin" if true -* or "usb20_phy" if false. +* or "usb0_clk48" if false. */ int __init da8xx_register_usb11_phy_clk (bool use_usb_refclkin) {
@@ -341,7 +341,7 @@ int __init da8xx_register_usb11_phy_clk(bool use_usb_refclkin)if (use_usb_refclkin) parent =clk_get (NULL ,"usb_refclkin" );else - parent =clk_get (&da8xx_usb_phy.dev,"usb20_phy" ); + parent =clk_get (&da8xx_usb_phy.dev,"usb0_clk48" );if (IS_ERR (parent))return PTR_ERR (parent);
drivers/phy/ti/phy-da8xx-usb.c +4 -4
@@ -160,15 +160,15 @@ static int da8xx_usb_phy_probe(struct platform_device *pdev)return PTR_ERR (d_phy->regmap); } - d_phy->usb11_clk =devm_clk_get (dev,"usb11_phy" ); + d_phy->usb11_clk =devm_clk_get (dev,"usb1_clk48" );if (IS_ERR (d_phy->usb11_clk)) { -dev_err (dev,"Failed to get usb11_phy clock\n" ); +dev_err (dev,"Failed to get usb1_clk48\n" );return PTR_ERR (d_phy->usb11_clk); } - d_phy->usb20_clk =devm_clk_get (dev,"usb20_phy" ); + d_phy->usb20_clk =devm_clk_get (dev,"usb0_clk48" );if (IS_ERR (d_phy->usb20_clk)) { -dev_err (dev,"Failed to get usb20_phy clock\n" ); +dev_err (dev,"Failed to get usb0_clk48\n" );return PTR_ERR (d_phy->usb20_clk); }
Signature · 1 line
2.7.4
PATCH 4/6 ARM: davinci: move davinci_clk_init() to init_time
In reply to David LechnerThis moves the call of davinci_clk_init() from map_io to init_time for all boards.
This is the proper place to init clocks. This is also done in preparation for moving to the common clock framework.
dm646x is a special case because we need to handle different ref_clk rates depending on which board is being used. The clock init in this case is modified to set the rate before registering the clocks instead of using davinci_set_refclk_rate() to recalculate the entire clock tree after all of the clocks are registered.
Also, the cpu_clks field is removed from struct davinci_soc_info since it is no longer needed.
--- arch/arm/mach-davinci/board-da830-evm.c | 2 +- arch/arm/mach-davinci/board-da850-evm.c | 2 +- arch/arm/mach-davinci/board-dm355-evm.c | 2 +- arch/arm/mach-davinci/board-dm355-leopard.c | 2 +- arch/arm/mach-davinci/board-dm365-evm.c | 2 +- arch/arm/mach-davinci/board-dm644x-evm.c | 2 +- arch/arm/mach-davinci/board-dm646x-evm.c | 19 +++++++++++++------ arch/arm/mach-davinci/board-mityomapl138.c | 2 +- arch/arm/mach-davinci/board-neuros-osd2.c | 2 +- arch/arm/mach-davinci/board-omapl138-hawk.c | 2 +- arch/arm/mach-davinci/board-sffsdr.c | 2 +- arch/arm/mach-davinci/da830.c | 7 +++++-- arch/arm/mach-davinci/da850.c | 7 +++++-- arch/arm/mach-davinci/da8xx-dt.c | 2 +- arch/arm/mach-davinci/davinci.h | 4 ++++ arch/arm/mach-davinci/dm355.c | 8 ++++++-- arch/arm/mach-davinci/dm365.c | 8 ++++++-- arch/arm/mach-davinci/dm644x.c | 8 ++++++-- arch/arm/mach-davinci/dm646x.c | 22 +++++++++++----------- arch/arm/mach-davinci/include/mach/common.h | 1 - arch/arm/mach-davinci/include/mach/da8xx.h | 3 +++ 21 files changed, 70 insertions(+), 39 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +1 -1
@@ -638,7 +638,7 @@ MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137/AM17x EVM") .atag_offset = 0x100, .map_io = da830_evm_map_io, .init_irq = cp_intc_init, - .init_time = davinci_timer_init, + .init_time = da830_init_time, .init_machine = da830_evm_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-da850-evm.c +1 -1
@@ -1481,7 +1481,7 @@ MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM") .atag_offset = 0x100, .map_io = da850_evm_map_io, .init_irq = cp_intc_init, - .init_time = davinci_timer_init, + .init_time = da850_init_time, .init_machine = da850_evm_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-dm355-evm.c +1 -1
@@ -416,7 +416,7 @@ MACHINE_START(DAVINCI_DM355_EVM, "DaVinci DM355 EVM") .atag_offset = 0x100, .map_io = dm355_evm_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm355_init_time, .init_machine = dm355_evm_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-dm355-leopard.c +1 -1
@@ -271,7 +271,7 @@ MACHINE_START(DM355_LEOPARD, "DaVinci DM355 leopard") .atag_offset = 0x100, .map_io = dm355_leopard_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm355_init_time, .init_machine = dm355_leopard_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-dm365-evm.c +1 -1
@@ -774,7 +774,7 @@ MACHINE_START(DAVINCI_DM365_EVM, "DaVinci DM365 EVM") .atag_offset = 0x100, .map_io = dm365_evm_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm365_init_time, .init_machine = dm365_evm_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-dm644x-evm.c +1 -1
@@ -817,7 +817,7 @@ MACHINE_START(DAVINCI_EVM, "DaVinci DM644x EVM") .atag_offset = 0x100, .map_io = davinci_evm_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm644x_init_time, .init_machine = davinci_evm_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-dm646x-evm.c +13 -6
@@ -44,10 +44,8 @@#include <mach/common.h> #include <mach/irqs.h> #include <mach/serial.h> -#include <mach/clock.h> #include "davinci.h" -#include "clock.h" #define NAND_BLOCK_SIZE SZ_128K
@@ -716,14 +714,23 @@ static void __init evm_init_i2c(void) }#endif +#define DM646X_REF_FREQ 27000000 +#define DM646X_AUX_FREQ 24000000#define DM6467T_EVM_REF_FREQ 33000000static void __init davinci_map_io (void ) {dm646x_init (); +} -if (machine_is_davinci_dm6467tevm ()) -davinci_set_refclk_rate (DM6467T_EVM_REF_FREQ ); +static void __init dm646x_evm_init_time (void ) +{ +dm646x_init_time (DM646X_REF_FREQ ,DM646X_AUX_FREQ ); +} + +static void __init dm6467t_evm_init_time (void ) +{ +dm646x_init_time (DM6467T_EVM_REF_FREQ ,DM646X_AUX_FREQ ); }#define DM646X_EVM_PHY_ID "davinci_mdio-0:01"
@@ -797,7 +804,7 @@ MACHINE_START(DAVINCI_DM6467_EVM, "DaVinci DM646x EVM") .atag_offset = 0x100, .map_io = davinci_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm646x_evm_init_time, .init_machine = evm_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
@@ -807,7 +814,7 @@ MACHINE_START(DAVINCI_DM6467TEVM, "DaVinci DM6467T EVM") .atag_offset = 0x100, .map_io = davinci_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm6467t_evm_init_time, .init_machine = evm_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-mityomapl138.c +1 -1
@@ -570,7 +570,7 @@ MACHINE_START(MITYOMAPL138, "MityDSP-L138/MityARM-1808") .atag_offset = 0x100, .map_io = mityomapl138_map_io, .init_irq = cp_intc_init, - .init_time = davinci_timer_init, + .init_time = da850_init_time, .init_machine = mityomapl138_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-neuros-osd2.c +1 -1
@@ -227,7 +227,7 @@ MACHINE_START(NEUROS_OSD2, "Neuros OSD2") .atag_offset = 0x100, .map_io = davinci_ntosd2_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm644x_init_time, .init_machine = davinci_ntosd2_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-omapl138-hawk.c +1 -1
@@ -334,7 +334,7 @@ MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard") .atag_offset = 0x100, .map_io = omapl138_hawk_map_io, .init_irq = cp_intc_init, - .init_time = davinci_timer_init, + .init_time = da850_init_time, .init_machine = omapl138_hawk_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/board-sffsdr.c +1 -1
@@ -150,7 +150,7 @@ MACHINE_START(SFFSDR, "Lyrtech SFFSDR") .atag_offset = 0x100, .map_io = davinci_sffsdr_map_io, .init_irq = davinci_irq_init, - .init_time = davinci_timer_init, + .init_time = dm644x_init_time, .init_machine = davinci_sffsdr_init, .init_late = davinci_init_late, .dma_zone_size = SZ_128M,
arch/arm/mach-davinci/da830.c +5 -2
@@ -1200,7 +1200,6 @@ static const struct davinci_soc_info davinci_soc_info_da830 = { .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, .ids = da830_ids, .ids_num = ARRAY_SIZE(da830_ids), - .cpu_clks = da830_clks, .psc_bases = da830_psc_bases, .psc_bases_num = ARRAY_SIZE(da830_psc_bases), .pinmux_base = DA8XX_SYSCFG0_BASE + 0x120,
@@ -1220,6 +1219,10 @@ void __init da830_init(void) da8xx_syscfg0_base =ioremap (DA8XX_SYSCFG0_BASE ,SZ_4K );WARN (!da8xx_syscfg0_base,"Unable to map syscfg0 module" ); +} -davinci_clk_init (davinci_soc_info_da830.cpu_clks); +void __init da830_init_time (void ) +{ +davinci_clk_init (da830_clks); +davinci_timer_init (); }
arch/arm/mach-davinci/da850.c +5 -2
@@ -1353,7 +1353,6 @@ static const struct davinci_soc_info davinci_soc_info_da850 = { .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, .ids = da850_ids, .ids_num = ARRAY_SIZE(da850_ids), - .cpu_clks = da850_clks, .psc_bases = da850_psc_bases, .psc_bases_num = ARRAY_SIZE(da850_psc_bases), .pinmux_base = DA8XX_SYSCFG0_BASE + 0x120,
@@ -1392,6 +1391,10 @@ void __init da850_init(void) v =__raw_readl (DA8XX_SYSCFG0_VIRT (DA8XX_CFGCHIP3_REG )); v &= ~CFGCHIP3_PLL1_MASTER_LOCK ;__raw_writel (v,DA8XX_SYSCFG0_VIRT (DA8XX_CFGCHIP3_REG )); +} -davinci_clk_init (davinci_soc_info_da850.cpu_clks); +void __init da850_init_time (void ) +{ +davinci_clk_init (da850_clks); +davinci_timer_init (); }
arch/arm/mach-davinci/da8xx-dt.c +1 -1
@@ -96,7 +96,7 @@ static const char *const da850_boards_compat[] __initconst = {DT_MACHINE_START (DA850_DT ,"Generic DA850/OMAP-L138/AM18x" ) .map_io = da850_init, - .init_time = davinci_timer_init, + .init_time = da850_init_time, .init_machine = da850_init_machine, .dt_compat = da850_boards_compat, .init_late = davinci_init_late,
arch/arm/mach-davinci/davinci.h +4 -0
@@ -83,6 +83,7 @@ int davinci_init_wdt(void);/* DM355 function declarations */ void dm355_init (void ); +void dm355_init_time (void );void dm355_init_spi0 (unsigned chipselect_mask,const struct spi_board_info *info,unsigned len);void dm355_init_asp1 (u32 evt_enable);
@@ -91,6 +92,7 @@ int dm355_gpio_register(void);/* DM365 function declarations */ void dm365_init (void ); +void dm365_init_time (void );void dm365_init_asp (void );void dm365_init_vc (void );void dm365_init_ks (struct davinci_ks_platform_data *pdata);
@@ -102,12 +104,14 @@ int dm365_gpio_register(void);/* DM644x function declarations */ void dm644x_init (void ); +void dm644x_init_time (void );void dm644x_init_asp (void );int dm644x_init_video (struct vpfe_config *,struct vpbe_config *);int dm644x_gpio_register (void );/* DM646x function declarations */ void dm646x_init (void ); +void dm646x_init_time (unsigned long ref_clk_rate,unsigned long aux_clkin_rate);void dm646x_init_mcasp0 (struct snd_platform_data *pdata);void dm646x_init_mcasp1 (struct snd_platform_data *pdata);int dm646x_init_edma (struct edma_rsv_info *rsv);
arch/arm/mach-davinci/dm355.c +6 -2
@@ -1012,7 +1012,6 @@ static const struct davinci_soc_info davinci_soc_info_dm355 = { .jtag_id_reg = 0x01c40028, .ids = dm355_ids, .ids_num = ARRAY_SIZE(dm355_ids), - .cpu_clks = dm355_clks, .psc_bases = dm355_psc_bases, .psc_bases_num = ARRAY_SIZE(dm355_psc_bases), .pinmux_base = DAVINCI_SYSTEM_MODULE_BASE,
@@ -1043,7 +1042,12 @@ void __init dm355_init(void) {davinci_common_init (&davinci_soc_info_dm355);davinci_map_sysmod (); -davinci_clk_init (davinci_soc_info_dm355.cpu_clks); +} + +void __init dm355_init_time (void ) +{ +davinci_clk_init (dm355_clks); +davinci_timer_init (); } int __init dm355_init_video(struct vpfe_config *vpfe_cfg,
arch/arm/mach-davinci/dm365.c +6 -2
@@ -1116,7 +1116,6 @@ static const struct davinci_soc_info davinci_soc_info_dm365 = { .jtag_id_reg = 0x01c40028, .ids = dm365_ids, .ids_num = ARRAY_SIZE(dm365_ids), - .cpu_clks = dm365_clks, .psc_bases = dm365_psc_bases, .psc_bases_num = ARRAY_SIZE(dm365_psc_bases), .pinmux_base = DAVINCI_SYSTEM_MODULE_BASE,
@@ -1168,7 +1167,12 @@ void __init dm365_init(void) {davinci_common_init (&davinci_soc_info_dm365);davinci_map_sysmod (); -davinci_clk_init (davinci_soc_info_dm365.cpu_clks); +} + +void __init dm365_init_time (void ) +{ +davinci_clk_init (dm365_clks); +davinci_timer_init (); }static struct resource dm365_vpss_resources[] = {
arch/arm/mach-davinci/dm644x.c +6 -2
@@ -905,7 +905,6 @@ static const struct davinci_soc_info davinci_soc_info_dm644x = { .jtag_id_reg = 0x01c40028, .ids = dm644x_ids, .ids_num = ARRAY_SIZE(dm644x_ids), - .cpu_clks = dm644x_clks, .psc_bases = dm644x_psc_bases, .psc_bases_num = ARRAY_SIZE(dm644x_psc_bases), .pinmux_base = DAVINCI_SYSTEM_MODULE_BASE,
@@ -931,7 +930,12 @@ void __init dm644x_init(void) {davinci_common_init (&davinci_soc_info_dm644x);davinci_map_sysmod (); -davinci_clk_init (davinci_soc_info_dm644x.cpu_clks); +} + +void __init dm644x_init_time (void ) +{ +davinci_clk_init (dm644x_clks); +davinci_timer_init (); } int __init dm644x_init_video(struct vpfe_config *vpfe_cfg,
arch/arm/mach-davinci/dm646x.c +11 -11
@@ -39,12 +39,6 @@#define VSCLKDIS_MASK (BIT_MASK(11) | BIT_MASK(10) | BIT_MASK(9) |\ BIT_MASK(8)) -/* -* Device specific clocks -*/ -#define DM646X_REF_FREQ 27000000 -#define DM646X_AUX_FREQ 24000000 -#define DM646X_EMAC_BASE 0x01c80000#define DM646X_EMAC_MDIO_BASE (DM646X_EMAC_BASE + 0x4000)#define DM646X_EMAC_CNTRL_OFFSET 0x0000
@@ -64,13 +58,12 @@ static struct pll_data pll2_data = {static struct clk ref_clk = { .name ="ref_clk" , - .rate =DM646X_REF_FREQ , - .set_rate = davinci_simple_set_rate, +/* rate is initialized in dm646x_init_time() */ };static struct clk aux_clkin = { .name ="aux_clkin" , - .rate =DM646X_AUX_FREQ , +/* rate is initialized in dm646x_init_time() */ };static struct clk pll1_clk = {
@@ -888,7 +881,6 @@ static const struct davinci_soc_info davinci_soc_info_dm646x = { .jtag_id_reg = 0x01c40028, .ids = dm646x_ids, .ids_num = ARRAY_SIZE(dm646x_ids), - .cpu_clks = dm646x_clks, .psc_bases = dm646x_psc_bases, .psc_bases_num = ARRAY_SIZE(dm646x_psc_bases), .pinmux_base = DAVINCI_SYSTEM_MODULE_BASE,
@@ -956,7 +948,15 @@ void __init dm646x_init(void) {davinci_common_init (&davinci_soc_info_dm646x);davinci_map_sysmod (); -davinci_clk_init (davinci_soc_info_dm646x.cpu_clks); +} + +void __init dm646x_init_time (unsigned long ref_clk_rate, +unsigned long aux_clkin_rate) +{ + ref_clk.rate = ref_clk_rate; + aux_clkin.rate = aux_clkin_rate; +davinci_clk_init (dm646x_clks); +davinci_timer_init (); }static int __init dm646x_init_devices (void )
arch/arm/mach-davinci/include/mach/common.h +0 -1
@@ -53,7 +53,6 @@ struct davinci_soc_info {u32 jtag_id_reg;struct davinci_id *ids;unsigned long ids_num; -struct clk_lookup *cpu_clks;u32 *psc_bases;unsigned long psc_bases_num;u32 pinmux_base;
arch/arm/mach-davinci/include/mach/da8xx.h +3 -0
@@ -87,7 +87,10 @@ extern unsigned int da850_max_speed;#define DA8XX_ARM_RAM_BASE 0xffff0000void da830_init (void ); +void da830_init_time (void ); +void da850_init (void ); +void da850_init_time (void );int da830_register_edma (struct edma_rsv_info *rsv);int da850_register_edma (struct edma_rsv_info *rsv[2 ]);
Signature · 1 line
2.7.4
PATCH 5/6 ARM: da8xx: Move CFGCHIP registration to init_time
In reply to David LechnerThis moves the registration of the CFGCHIP syscon device to the init_time callback. This is in preparation of moving to the common clock framework. There are a number of clocks in this syscon device so it will be needed at this point in boot to register the clocks.
In da850.c also move the PLL unlock code to make use of the CFGCHIP regmap. It makes more sense to have it in init_time anyway since it is related to clocks.
--- arch/arm/mach-davinci/board-da830-evm.c | 4 ---- arch/arm/mach-davinci/board-da850-evm.c | 4 ---- arch/arm/mach-davinci/board-mityomapl138.c | 4 ---- arch/arm/mach-davinci/board-omapl138-hawk.c | 4 ---- arch/arm/mach-davinci/da830.c | 1 + arch/arm/mach-davinci/da850.c | 28 ++++++++++++---------------- arch/arm/mach-davinci/devices-da8xx.c | 29 ++++------------------------- arch/arm/mach-davinci/include/mach/da8xx.h | 3 ++- 8 files changed, 19 insertions(+), 58 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +0 -4
@@ -551,10 +551,6 @@ static __init void da830_evm_init(void)struct davinci_soc_info *soc_info = &davinci_soc_info;int ret; - ret =da8xx_register_cfgchip (); -if (ret) -pr_warn ("%s: CFGCHIP registration failed: %d\n" , __func__, ret); - ret =da830_register_gpio ();if (ret)pr_warn ("%s: GPIO init failed: %d\n" , __func__, ret);
arch/arm/mach-davinci/board-da850-evm.c +0 -4
@@ -1334,10 +1334,6 @@ static __init void da850_evm_init(void) {int ret; - ret =da8xx_register_cfgchip (); -if (ret) -pr_warn ("%s: CFGCHIP registration failed: %d\n" , __func__, ret); - ret =da850_register_gpio ();if (ret)pr_warn ("%s: GPIO init failed: %d\n" , __func__, ret);
arch/arm/mach-davinci/board-mityomapl138.c +0 -4
@@ -502,10 +502,6 @@ static void __init mityomapl138_init(void) {int ret; - ret =da8xx_register_cfgchip (); -if (ret) -pr_warn ("%s: CFGCHIP registration failed: %d\n" , __func__, ret); -/* for now, no special EDMA channels are reserved */ ret =da850_register_edma (NULL );if (ret)
arch/arm/mach-davinci/board-omapl138-hawk.c +0 -4
@@ -281,10 +281,6 @@ static __init void omapl138_hawk_init(void) {int ret; - ret =da8xx_register_cfgchip (); -if (ret) -pr_warn ("%s: CFGCHIP registration failed: %d\n" , __func__, ret); - ret =da850_register_gpio ();if (ret)pr_warn ("%s: GPIO init failed: %d\n" , __func__, ret);
arch/arm/mach-davinci/da830.c +1 -0
@@ -1223,6 +1223,7 @@ void __init da830_init(void)void __init da830_init_time (void ) { +da8xx_register_cfgchip ();davinci_clk_init (da830_clks);davinci_timer_init (); }
arch/arm/mach-davinci/da850.c +12 -16
@@ -17,6 +17,8 @@#include <linux/clk.h> #include <linux/platform_device.h> #include <linux/cpufreq.h> +#include <linux/mfd/da8xx-cfgchip.h> +#include <linux/regmap.h> #include <linux/regulator/consumer.h> #include <linux/platform_data/gpio-davinci.h>
@@ -40,10 +42,6 @@#define DA850_REF_FREQ 24000000 -#define CFGCHIP3_ASYNC3_CLKSRC BIT(4) -#define CFGCHIP3_PLL1_MASTER_LOCK BIT(5) -#define CFGCHIP0_PLL_MASTER_LOCK BIT(4) -static int da850_set_armrate (struct clk *clk,unsigned long rate);static int da850_round_armrate (struct clk *clk,unsigned long rate);static int da850_set_pll0rate (struct clk *clk,unsigned long armrate);
@@ -1370,8 +1368,6 @@ static const struct davinci_soc_info davinci_soc_info_da850 = {void __init da850_init (void ) { -unsigned int v; -davinci_common_init (&davinci_soc_info_da850); da8xx_syscfg0_base =ioremap (DA8XX_SYSCFG0_BASE ,SZ_4K );
@@ -1381,20 +1377,20 @@ void __init da850_init(void) da8xx_syscfg1_base =ioremap (DA8XX_SYSCFG1_BASE ,SZ_4K );if (WARN (!da8xx_syscfg1_base,"Unable to map syscfg1 module" ))return ; - -/* Unlock writing to PLL0 registers */ - v =__raw_readl (DA8XX_SYSCFG0_VIRT (DA8XX_CFGCHIP0_REG )); - v &= ~CFGCHIP0_PLL_MASTER_LOCK ; -__raw_writel (v,DA8XX_SYSCFG0_VIRT (DA8XX_CFGCHIP0_REG )); - -/* Unlock writing to PLL1 registers */ - v =__raw_readl (DA8XX_SYSCFG0_VIRT (DA8XX_CFGCHIP3_REG )); - v &= ~CFGCHIP3_PLL1_MASTER_LOCK ; -__raw_writel (v,DA8XX_SYSCFG0_VIRT (DA8XX_CFGCHIP3_REG )); }void __init da850_init_time (void ) { +struct regmap *cfgchip; + + cfgchip =da8xx_register_cfgchip (); +if (WARN (IS_ERR (cfgchip),"failed to register CFGCHIP syscon" )) +return ; + +/* Unlock writing to PLL registers */ +regmap_write_bits (cfgchip,CFGCHIP (0 ),CFGCHIP0_PLL_MASTER_LOCK ,0 ); +regmap_write_bits (cfgchip,CFGCHIP (3 ),CFGCHIP3_PLL1_MASTER_LOCK ,0 ); +davinci_clk_init (da850_clks);davinci_timer_init (); }
arch/arm/mach-davinci/devices-da8xx.c +4 -25
@@ -11,7 +11,7 @@* (at your option) any later version. */ #include <linux/init.h> -#include <linux/platform_data/syscon.h> +#include <linux/mfd/syscon.h> #include <linux/platform_device.h> #include <linux/dma-contiguous.h> #include <linux/serial_8250.h>
@@ -1105,29 +1105,8 @@ int __init da850_register_sata(unsigned long refclkpn) }#endif -static struct syscon_platform_data da8xx_cfgchip_platform_data = { - .label ="cfgchip" , -}; - -static struct resource da8xx_cfgchip_resources[] = { - { - .start =DA8XX_SYSCFG0_BASE +DA8XX_CFGCHIP0_REG , - .end =DA8XX_SYSCFG0_BASE +DA8XX_CFGCHIP4_REG +3 , - .flags =IORESOURCE_MEM , - }, -}; - -static struct platform_device da8xx_cfgchip_device = { - .name ="syscon" , - .id =-1 , - .dev = { - .platform_data = &da8xx_cfgchip_platform_data, - }, - .num_resources =ARRAY_SIZE (da8xx_cfgchip_resources), - .resource = da8xx_cfgchip_resources, -}; - -int __init da8xx_register_cfgchip (void ) +struct regmap *__init da8xx_register_cfgchip (void ) { -return platform_device_register (&da8xx_cfgchip_device); +return syscon_register (DA8XX_SYSCFG0_BASE +DA8XX_CFGCHIP0_REG , +sizeof (u32) *5 ,"ti,da830-cfgchip" ); }
arch/arm/mach-davinci/include/mach/da8xx.h +2 -1
@@ -18,6 +18,7 @@#include <linux/spi/spi.h> #include <linux/platform_data/davinci_asp.h> #include <linux/reboot.h> +#include <linux/regmap.h> #include <linux/videodev2.h> #include <mach/serial.h>
@@ -125,7 +126,7 @@ void da8xx_rproc_reserve_cma(void);int da8xx_register_rproc (void );int da850_register_gpio (void );int da830_register_gpio (void ); -int da8xx_register_cfgchip (void ); +struct regmap *da8xx_register_cfgchip (void );extern struct platform_device da8xx_serial_device[];extern struct emac_platform_data da8xx_emac_pdata;
Signature · 1 line
2.7.4
PATCH 6/6 phy: da8xx-usb: drop use of syscon_regmap_lookup_by_pdevname()
In reply to David LechnerThis drops the use of syscon_regmap_lookup_by_pdevname() from the DA8XX USB PHY driver. There are no longer any boards that register a syscon platform device, so it is no longer needed.
--- drivers/phy/ti/phy-da8xx-usb.c | 2 -- 1 file changed, 2 deletions(-)
drivers/phy/ti/phy-da8xx-usb.c +0 -2
@@ -153,8 +153,6 @@ static int da8xx_usb_phy_probe(struct platform_device *pdev)return -ENOMEM ; d_phy->regmap =syscon_regmap_lookup_by_compatible ("ti,da830-cfgchip" ); -if (IS_ERR (d_phy->regmap)) - d_phy->regmap =syscon_regmap_lookup_by_pdevname ("syscon" );if (IS_ERR (d_phy->regmap)) {dev_err (dev,"Failed to get syscon\n" );return PTR_ERR (d_phy->regmap);
Signature · 1 line
2.7.4
Re: [PATCH 1/6] mfd: syscon: Add syscon_register() function
In reply to David LechnerQuoted 8 lines · David Lechner
This adds a new
syscon_register()function that creates a new syscon regmap and adds it to the lookup list.This function serves two purposes:
1. This is needed for platforms without device tree support where the syscon regmap is needed in early boot (e.g. clocks), because using a platform driver at this point in boot is not an option.
Is this because platform_device_register() of the syscon device fails when called early on? It will be nice to document the exact failure case here (at least the return value) so its clear what the issue is.
Quoted 3 lines
2. It allows other drivers to use
syscon_regmap_lookup_by_compatible()for both device tree and non-DT platforms instead of having to have a separate case that callssyscon_regmap_lookup_by_pdevname().
"compatible" is a very device-tree specific terminology so I am afraid this is will actually turn out to be confusing.
So, if we are doing this, I would rather be more explicit about it:
/*
* registers a "global" syscon "device", usually not backed by a real
* device. To be used only in cases where the syscon is not
* related to any actual device, like system clocks, for example. *
* name passed here must be globally unique.
*/
struct regmap *syscon_register_by_name(resource_size_t start, size_t
size, const char *name);
and
struct regmap *syscon_regmap_lookup_by_name(const char *name);
I understand, with this the driver becomes little more complicated and DT and non-DT cases still need to be handled differently. But I think thats not the main issue you are trying to solve.
Quoted 2 lines
Signed-off-by David Lechner <[email protected]>
Thanks,
Sekhar
Arnd Bergmann
maintainerRe: [PATCH 1/6] mfd: syscon: Add syscon_register() function
Quoted 14 lines · Sekhar Nori
Quoted 2 lines · David Lechner
This adds a new
syscon_register()function that creates a new syscon regmap and adds it to the lookup list./*
* registers a "global" syscon "device", usually not backed by a real
* device. To be used only in cases where the syscon is not
* related to any actual device, like system clocks, for example. *
* name passed here must be globally unique.
*/
struct regmap *syscon_register_by_name(resource_size_t start,size_tsize, const char *name);
Quoted 7 lines
and
struct regmap *syscon_regmap_lookup_by_name(const char *name);
I understand, with this the driver becomes little more complicated and DT and non-DT cases still need to be handled differently. But I think thats not the main issue you are trying to solve.
I think the easiest way to handle this in traditional board files is to use a platform_data structure: when the platform registers the syscon, it holds a pointer to the regmap and can simply add pass it to any device using the syscon through platform_data. The driver using it then does:
if (dev->of_node) {
priv->regmap = syscon_regmap_lookup_by_phandle(...);
else
priv->regmap = pdata->regmap;At some point, we had a syscon_regmap_lookup_by_pdevname() that was introduced for a similar case, but we should just kill that now, after the platform that needed it is DT-only.
Arnd
Quoted 15 lines · David Lechner
This series contains some changes needed for the conversion of
arch/arm/mach-davinci to the common clock framework.Most of the boards in mach-davinci do not have device tree support. However, CFGCHIP, which is a syscon regmap, is needed during clock init in early boot. Using a platform device for the syscon at this point is not an option. So, this series introduces a new way to register a syscon regmap on non-DT systems.
The DA8XX USB PHY driver is a consumer of the CFGCHIP syscon regmap, so some changes are needed in that driver as well since we are removing the syscon platform devices. The patch "phy: da8xx-usb: rename clock
con_ids" doesn't have anything to do with syscon, but I included in this series because we are touching PHY code here anyway and it is also a dependency for the upcoming common clock framework conversion changes.
Quoted 2 lines
Maintainers, please coordinate with Sekhar before committing. We will probably want everything to go through the linux-davinci tree if possible.
You should wait for some more feedback before resending anything, but I think it will be easier to reivew/accept this if the changes are just related to removal of "syscon" platform device from devices-da8xx.c.
It _seems_ like this series does more than just that, and I hope it can be pared down.
Thanks,
Sekhar
Re: [PATCH 1/6] mfd: syscon: Add syscon_register() function
In reply to Arnd BergmannQuoted 29 lines · Arnd Bergmann
Quoted 14 lines · Sekhar Nori
Quoted 2 lines · David Lechner
This adds a new
syscon_register()function that creates a new syscon regmap and adds it to the lookup list./*
* registers a "global" syscon "device", usually not backed by a real
* device. To be used only in cases where the syscon is not
* related to any actual device, like system clocks, for example. *
* name passed here must be globally unique.
*/
struct regmap *syscon_register_by_name(resource_size_t start,size_tsize, const char *name);Quoted 7 lines
and
struct regmap *syscon_regmap_lookup_by_name(const char *name);
I understand, with this the driver becomes little more complicated and DT and non-DT cases still need to be handled differently. But I think thats not the main issue you are trying to solve.
I think the easiest way to handle this in traditional board files is to use a
platform_datastructure: when the platform registers the syscon, it holds a pointer to the regmap and can simply add pass it to any device using the syscon throughplatform_data. The driver using it then does:
Quoted 4 lines
if (dev->of_node) {
priv->regmap = syscon_regmap_lookup_by_phandle(...);
else
priv->regmap = pdata->regmap;I think this works as well and does not need any new API. For clocks, there is no platform data AFAICT, so it will have to be whatever structure is being used to pass clock info to CCF driver (like perhaps an addition parameter to da850_pll_clk_init() in David's under-review DaVinci CCF conversion series).
Quoted 3 lines
At some point, we had a
syscon_regmap_lookup_by_pdevname()that was introduced for a similar case, but we should just kill that now, after the platform that needed it is DT-only.
Yeah, I just noticed that too. syscon_regmap_lookup_by_pdevname has only two callers in kernel. The call from clps711x.c UART driver does not seem to be needed anymore after clps711x was converted to DT-only in v4.8
The other user is phy-da8xx-usb.c which this series is trying to get rid of. So, perhaps syscon_regmap_lookup_by_pdevname() should be dropped by v2 of this series.
Thanks,
Sekhar
Re: [PATCH 1/6] mfd: syscon: Add syscon_register() function
Quoted 45 lines · Sekhar Nori
Quoted 29 lines · Arnd Bergmann
Quoted 14 lines · Sekhar Nori
Quoted 2 lines · David Lechner
This adds a new
syscon_register()function that creates a new syscon regmap and adds it to the lookup list./*
* registers a "global" syscon "device", usually not backed by a real
* device. To be used only in cases where the syscon is not
* related to any actual device, like system clocks, for example. *
* name passed here must be globally unique.
*/
struct regmap *syscon_register_by_name(resource_size_t start,size_tsize, const char *name);Quoted 7 lines
and
struct regmap *syscon_regmap_lookup_by_name(const char *name);
I understand, with this the driver becomes little more complicated and DT and non-DT cases still need to be handled differently. But I think thats not the main issue you are trying to solve.
I think the easiest way to handle this in traditional board files is to use a
platform_datastructure: when the platform registers the syscon, it holds a pointer to the regmap and can simply add pass it to any device using the syscon throughplatform_data. The driver using it then does:Quoted 4 lines
if (dev->of_node) { priv->regmap = syscon_regmap_lookup_by_phandle(...); else priv->regmap = pdata->regmap;I think this works as well and does not need any new API. For clocks, there is no platform data AFAICT, so it will have to be whatever structure is being used to pass clock info to CCF driver (like perhaps an addition parameter to
da850_pll_clk_init()in David's under-review DaVinci CCF conversion series).Quoted 3 lines
At some point, we had a
syscon_regmap_lookup_by_pdevname()that was introduced for a similar case, but we should just kill that now, after the platform that needed it is DT-only.
Quoted 8 lines
Yeah, I just noticed that too.
syscon_regmap_lookup_by_pdevnamehas only two callers in kernel. The call fromclps711x.cUART driver does not seem to be needed anymore after clps711x was converted to DT-only in v4.8The other user is
phy-da8xx-usb.cwhich this series is trying to get rid of. So, perhapssyscon_regmap_lookup_by_pdevname()should be dropped by v2 of this series.
Sounds like a plan.
Sekhar, would you please have a look at [PATCH 4/6] "ARM: davinci: move davinci_clk_init() to init_time" I've sent this 5 times already as part of the common clock series. If it looks good to you, it would be nice if you could pick it up so I don't have to keep resending it. :-)
Sekhar Nori
AppliedRe: [PATCH 4/6] ARM: davinci: move davinci_clk_init() to init_time
In reply to David LechnerQuoted 12 lines · David Lechner
This moves the call of
davinci_clk_init()frommap_iotoinit_timefor all boards.This is the proper place to init clocks. This is also done in preparation for moving to the common clock framework.
dm646x is a special case because we need to handle different
ref_clkrates depending on which board is being used. The clock init in this case is modified to set the rate before registering the clocks instead of usingdavinci_set_refclk_rate()to recalculate the entire clock tree after all of the clocks are registered.
Quoted 4 lines
Also, the
cpu_clksfield is removed from structdavinci_soc_infosince it is no longer needed.Signed-off-by David Lechner <[email protected]>
Applied to my tree for v4.17
Thanks,
Sekhar
Quoted 19 lines · Sekhar Nori
Quoted 15 lines · David Lechner
This series contains some changes needed for the conversion of
arch/arm/mach-davinci to the common clock framework.Most of the boards in mach-davinci do not have device tree support. However, CFGCHIP, which is a syscon regmap, is needed during clock init in early boot. Using a platform device for the syscon at this point is not an option. So, this series introduces a new way to register a syscon regmap on non-DT systems.
The DA8XX USB PHY driver is a consumer of the CFGCHIP syscon regmap, so some changes are needed in that driver as well since we are removing the syscon platform devices. The patch "phy: da8xx-usb: rename clock
con_ids" doesn't have anything to do with syscon, but I included in this series because we are touching PHY code here anyway and it is also a dependency for the upcoming common clock framework conversion changes.Quoted 2 lines
Maintainers, please coordinate with Sekhar before committing. We will probably want everything to go through the linux-davinci tree if possible.
Quoted 7 lines
You should wait for some more feedback before resending anything, but I think it will be easier to reivew/accept this if the changes are just related to removal of "syscon" platform device from
devices-da8xx.c.It _seems_ like this series does more than just that, and I hope it can be pared down.
This series has been split out into "ARM: da8xx: use platform data for CFGCHIP syscon regmap" [1] and "phy: da8xx-usb: rename clock con_ids" [2].
[1]: https://patchwork.kernel.org/patch/10181147/
[2]: https://patchwork.kernel.org/patch/10180897/