Skip to content

Commit 33063e5

Browse files
committed
Merge tag 'renesas-drivers-for-v6.4-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into soc/drivers
Renesas driver updates for v6.4 - Drop support for the obsolete R-Car H3 ES1.* (R8A77950) SoC, - Miscellaneous fixes and improvements. * tag 'renesas-drivers-for-v6.4-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel: soc: renesas: Use "#ifdef" for single-symbol definition checks soc: renesas: pwc-rzv2m: drop of_match_ptr for ID table soc: renesas: mark OF related data as maybe unused soc: renesas: rmobile-sysc: Use of_fwnode_handle() helper soc: renesas: Remove r8a77950 arch soc: renesas: rcar-sysc: Remove R-Car H3 ES1.* handling Link: https://lore.kernel.org/r/cover.1679907059.git.geert+renesas@glider.be Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents eeac8ed + 2653d5b commit 33063e5

6 files changed

Lines changed: 8 additions & 28 deletions

File tree

drivers/soc/renesas/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,6 @@ config ARCH_R8A77990
206206
This enables support for the Renesas R-Car E3 SoC.
207207
This includes different gradings like R-Car E3e.
208208

209-
config ARCH_R8A77950
210-
bool "ARM64 Platform support for R-Car H3 ES1.x"
211-
select ARCH_RCAR_GEN3
212-
select SYSC_R8A7795
213-
help
214-
This enables support for the Renesas R-Car H3 SoC (revision 1.x).
215-
216209
config ARCH_R8A77951
217210
bool "ARM64 Platform support for R-Car H3 ES2.0+"
218211
select ARCH_RCAR_GEN3

drivers/soc/renesas/pwc-rzv2m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static struct platform_driver rzv2m_pwc_driver = {
131131
.probe = rzv2m_pwc_probe,
132132
.driver = {
133133
.name = "rzv2m_pwc",
134-
.of_match_table = of_match_ptr(rzv2m_pwc_of_match),
134+
.of_match_table = rzv2m_pwc_of_match,
135135
},
136136
};
137137
module_platform_driver(rzv2m_pwc_driver);

drivers/soc/renesas/r8a7795-sysc.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ static struct rcar_sysc_area r8a7795_areas[] __initdata = {
3838
{ "a3vp", 0x340, 0, R8A7795_PD_A3VP, R8A7795_PD_ALWAYS_ON },
3939
{ "cr7", 0x240, 0, R8A7795_PD_CR7, R8A7795_PD_ALWAYS_ON },
4040
{ "a3vc", 0x380, 0, R8A7795_PD_A3VC, R8A7795_PD_ALWAYS_ON },
41-
/* A2VC0 exists on ES1.x only */
42-
{ "a2vc0", 0x3c0, 0, R8A7795_PD_A2VC0, R8A7795_PD_A3VC },
4341
{ "a2vc1", 0x3c0, 1, R8A7795_PD_A2VC1, R8A7795_PD_A3VC },
4442
{ "3dg-a", 0x100, 0, R8A7795_PD_3DG_A, R8A7795_PD_ALWAYS_ON },
4543
{ "3dg-b", 0x100, 1, R8A7795_PD_3DG_B, R8A7795_PD_3DG_A },
@@ -54,14 +52,10 @@ static struct rcar_sysc_area r8a7795_areas[] __initdata = {
5452
* Fixups for R-Car H3 revisions
5553
*/
5654

57-
#define HAS_A2VC0 BIT(0) /* Power domain A2VC0 is present */
5855
#define NO_EXTMASK BIT(1) /* Missing SYSCEXTMASK register */
5956

6057
static const struct soc_device_attribute r8a7795_quirks_match[] __initconst = {
6158
{
62-
.soc_id = "r8a7795", .revision = "ES1.*",
63-
.data = (void *)(HAS_A2VC0 | NO_EXTMASK),
64-
}, {
6559
.soc_id = "r8a7795", .revision = "ES2.*",
6660
.data = (void *)(NO_EXTMASK),
6761
},
@@ -77,10 +71,6 @@ static int __init r8a7795_sysc_init(void)
7771
if (attr)
7872
quirks = (uintptr_t)attr->data;
7973

80-
if (!(quirks & HAS_A2VC0))
81-
rcar_sysc_nullify(r8a7795_areas, ARRAY_SIZE(r8a7795_areas),
82-
R8A7795_PD_A2VC0);
83-
8474
if (quirks & NO_EXTMASK)
8575
r8a7795_sysc_info.extmask_val = 0;
8676

drivers/soc/renesas/renesas-soc.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static const struct renesas_soc soc_shmobile_ag5 __initconst __maybe_unused = {
269269
};
270270

271271

272-
static const struct of_device_id renesas_socs[] __initconst = {
272+
static const struct of_device_id renesas_socs[] __initconst __maybe_unused = {
273273
#ifdef CONFIG_ARCH_R7S72100
274274
{ .compatible = "renesas,r7s72100", .data = &soc_rz_a1h },
275275
#endif
@@ -330,10 +330,8 @@ static const struct of_device_id renesas_socs[] __initconst = {
330330
#ifdef CONFIG_ARCH_R8A7794
331331
{ .compatible = "renesas,r8a7794", .data = &soc_rcar_e2 },
332332
#endif
333-
#if defined(CONFIG_ARCH_R8A77950) || defined(CONFIG_ARCH_R8A77951)
334-
{ .compatible = "renesas,r8a7795", .data = &soc_rcar_h3 },
335-
#endif
336333
#ifdef CONFIG_ARCH_R8A77951
334+
{ .compatible = "renesas,r8a7795", .data = &soc_rcar_h3 },
337335
{ .compatible = "renesas,r8a779m0", .data = &soc_rcar_h3 },
338336
{ .compatible = "renesas,r8a779m1", .data = &soc_rcar_h3 },
339337
{ .compatible = "renesas,r8a779m8", .data = &soc_rcar_h3 },
@@ -375,20 +373,20 @@ static const struct of_device_id renesas_socs[] __initconst = {
375373
#ifdef CONFIG_ARCH_R8A779G0
376374
{ .compatible = "renesas,r8a779g0", .data = &soc_rcar_v4h },
377375
#endif
378-
#if defined(CONFIG_ARCH_R9A07G043)
376+
#ifdef CONFIG_ARCH_R9A07G043
379377
#ifdef CONFIG_RISCV
380378
{ .compatible = "renesas,r9a07g043", .data = &soc_rz_five },
381379
#else
382380
{ .compatible = "renesas,r9a07g043", .data = &soc_rz_g2ul },
383381
#endif
384382
#endif
385-
#if defined(CONFIG_ARCH_R9A07G044)
383+
#ifdef CONFIG_ARCH_R9A07G044
386384
{ .compatible = "renesas,r9a07g044", .data = &soc_rz_g2l },
387385
#endif
388-
#if defined(CONFIG_ARCH_R9A07G054)
386+
#ifdef CONFIG_ARCH_R9A07G054
389387
{ .compatible = "renesas,r9a07g054", .data = &soc_rz_v2l },
390388
#endif
391-
#if defined(CONFIG_ARCH_R9A09G011)
389+
#ifdef CONFIG_ARCH_R9A09G011
392390
{ .compatible = "renesas,r9a09g011", .data = &soc_rz_v2m },
393391
#endif
394392
#ifdef CONFIG_ARCH_SH73A0

drivers/soc/renesas/rmobile-sysc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int __init rmobile_init_pm_domains(void)
343343
break;
344344
}
345345

346-
fwnode_dev_initialized(&np->fwnode, true);
346+
fwnode_dev_initialized(of_fwnode_handle(np), true);
347347
}
348348

349349
put_special_pds();

include/dt-bindings/power/r8a7795-sysc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#define R8A7795_PD_CA53_SCU 21
3131
#define R8A7795_PD_3DG_E 22
3232
#define R8A7795_PD_A3IR 24
33-
#define R8A7795_PD_A2VC0 25 /* ES1.x only */
3433
#define R8A7795_PD_A2VC1 26
3534

3635
/* Always-on power area */

0 commit comments

Comments
 (0)