i2c: sh_mobile: updates to compatibles
Subsystems (2)
Wolfram Sang
maintainercover i2c: sh_mobile: updates to compatibles
As I could finally use a logic analyzer on a Gen3 Ebisu board and measure, we can switch now to better formulas for clock generation and add some sorting to compatibles before.
Wolfram Sang (2):
i2c: sh_mobile: sort compatible entries
i2c: sh_mobile: use new clock calculation formulas for Gen3
drivers/i2c/busses/i2c-sh_mobile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.19.1
Wolfram Sang
maintainerPATCH 1/2 i2c: sh_mobile: sort compatible entries
Makes it easier to add new ones.
--- drivers/i2c/busses/i2c-sh_mobile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-sh_mobile.c +2 -2
@@ -806,11 +806,11 @@ static const struct of_device_id sh_mobile_i2c_dt_ids[] = { { .compatible = "renesas,iic-r8a7792", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7793", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7794", .data = &fast_clock_dt_config }, - { .compatible = "renesas,rcar-gen2-iic", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7795", .data = &fast_clock_dt_config }, - { .compatible = "renesas,rcar-gen3-iic", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a77990", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-sh73a0", .data = &fast_clock_dt_config }, + { .compatible = "renesas,rcar-gen2-iic", .data = &fast_clock_dt_config }, + { .compatible = "renesas,rcar-gen3-iic", .data = &fast_clock_dt_config }, { .compatible = "renesas,rmobile-iic", .data = &default_dt_config }, {}, };
Signature · 1 line
2.19.1
Re: [PATCH 1/2] i2c: sh_mobile: sort compatible entries
Quoted 3 lines · Wolfram Sang
Makes it easier to add new ones.
Signed-off-by Wolfram Sang <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 1/2] i2c: sh_mobile: sort compatible entries
In reply to Wolfram SangQuoted 3 lines · Wolfram Sang
Makes it easier to add new ones.
Signed-off-by Wolfram Sang <[email protected]>
Wolfram Sang
AppliedRe: [PATCH 1/2] i2c: sh_mobile: sort compatible entries
In reply to Wolfram SangQuoted 3 lines · Wolfram Sang
Makes it easier to add new ones.
Signed-off-by Wolfram Sang <[email protected]>
Applied to for-next, thanks!
Wolfram Sang
maintainerPATCH 2/2 i2c: sh_mobile: use new clock calculation formulas for Gen3
In reply to Wolfram SangWe could finally measure the clock on an Ebisu board. The new formula gives way better results, i.e. 100kHz instead of 106kHz and 400kHz instead of 387kHz. Switch to these formulas for all Gen3 SoCs.
--- drivers/i2c/busses/i2c-sh_mobile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/i2c/busses/i2c-sh_mobile.c +3 -3
@@ -806,11 +806,11 @@ static const struct of_device_id sh_mobile_i2c_dt_ids[] = { { .compatible = "renesas,iic-r8a7792", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7793", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7794", .data = &fast_clock_dt_config }, - { .compatible = "renesas,iic-r8a7795", .data = &fast_clock_dt_config }, - { .compatible = "renesas,iic-r8a77990", .data = &fast_clock_dt_config }, + { .compatible = "renesas,iic-r8a7795", .data = &v2_freq_calc_dt_config }, + { .compatible = "renesas,iic-r8a77990", .data = &v2_freq_calc_dt_config }, { .compatible = "renesas,iic-sh73a0", .data = &fast_clock_dt_config }, { .compatible = "renesas,rcar-gen2-iic", .data = &fast_clock_dt_config }, - { .compatible = "renesas,rcar-gen3-iic", .data = &fast_clock_dt_config }, + { .compatible = "renesas,rcar-gen3-iic", .data = &v2_freq_calc_dt_config }, { .compatible = "renesas,rmobile-iic", .data = &default_dt_config }, {}, };
Signature · 1 line
2.19.1
Re: [PATCH 2/2] i2c: sh_mobile: use new clock calculation formulas for Gen3
Hi Wolfram,
Quoted 5 lines · Wolfram Sang
We could finally measure the clock on an Ebisu board. The new formula gives way better results, i.e. 100kHz instead of 106kHz and 400kHz instead of 387kHz. Switch to these formulas for all Gen3 SoCs.
Signed-off-by Wolfram Sang <[email protected]>
Thanks for your patch!
Quoted 6 lines
drivers/i2c/busses/i2c-sh_mobile.c +0
-0@@ -806,11 +806,11 @@ static const struct of_device_id sh_mobile_i2c_dt_ids[] = { { .compatible = "renesas,iic-r8a7792", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7793", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7794", .data = &fast_clock_dt_config },
drivers/i2c/busses/i2c-sh_mobile.c static const struct of_device_id sh_mobile_i2c_dt_ids[] = { · line 815
Quoted 10 lines
drivers/i2c/busses/i2c-sh_mobile.c +3
-3- { .compatible = "renesas,iic-r8a7795", .data = &fast_clock_dt_config }, - { .compatible = "renesas,iic-r8a77990", .data = &fast_clock_dt_config }, + { .compatible = "renesas,iic-r8a7795", .data = &v2_freq_calc_dt_config }, + { .compatible = "renesas,iic-r8a77990", .data = &v2_freq_calc_dt_config }, { .compatible = "renesas,iic-sh73a0", .data = &fast_clock_dt_config }, { .compatible = "renesas,rcar-gen2-iic", .data = &fast_clock_dt_config }, - { .compatible = "renesas,rcar-gen3-iic", .data = &fast_clock_dt_config }, + { .compatible = "renesas,rcar-gen3-iic", .data = &v2_freq_calc_dt_config }, { .compatible = "renesas,rmobile-iic", .data = &default_dt_config }, {},
I guess you want to make a similar change for R-Car Gen2 (both SoC-specific and family-specific)?
Currently only R-Car H2 uses the new formula, which should apply to all R-Car Gen2/Gen3 SoCs.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 2/2] i2c: sh_mobile: use new clock calculation formulas for Gen3
Quoted 5 lines
I guess you want to make a similar change for R-Car Gen2 (both SoC-specific and family-specific)?
Currently only R-Car H2 uses the new formula, which should apply to all R-Car Gen2/Gen3 SoCs.
Yes, can be argued. Thanks!
Re: [PATCH 2/2] i2c: sh_mobile: use new clock calculation formulas for Gen3
In reply to Wolfram SangQuoted 5 lines · Wolfram Sang
We could finally measure the clock on an Ebisu board. The new formula gives way better results, i.e. 100kHz instead of 106kHz and 400kHz instead of 387kHz. Switch to these formulas for all Gen3 SoCs.
Signed-off-by Wolfram Sang <[email protected]>
Wolfram Sang
AppliedRe: [PATCH 2/2] i2c: sh_mobile: use new clock calculation formulas for Gen3
In reply to Wolfram SangQuoted 5 lines · Wolfram Sang
We could finally measure the clock on an Ebisu board. The new formula gives way better results, i.e. 100kHz instead of 106kHz and 400kHz instead of 387kHz. Switch to these formulas for all Gen3 SoCs.
Signed-off-by Wolfram Sang <[email protected]>
Applied to for-next, thanks!