Renesas ARM SoC updates for v7.3

- Use the of_machine_compatible_match() helper.
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQQ9qaHoIs/1I4cXmEiKwlD9ZEnxcAUCaliTVgAKCRCKwlD9ZEnx
 cIRaAP9XQsanQJJhsoGR4Smy+mZp9f6gl0xwqdw/k2YqgAflUAD/QqHZBY1iOv8C
 GSCANIxjBNIa2faeDbfuIIE4/RwvxAc=
 =c32c
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmpjjjoACgkQmmx57+YA
 GNnp0A/9HpSznhMs+/A052uIQ9x7uuuGYyKAt0xIJkUXbNUIW5Xzs2i8kWJuwpuZ
 LLm5LZiKz58uJOlAdGS/cHqr8owIu6dIFCqfCmgEOj1q4G7dXTuFVovlDMnkvZq0
 Is86b4vIU59Z0N1T316wYu40us5IKsVsyTx24gmRdFrfCUxrpBCNyyon2sr2hBXq
 +ImwhwR70qRTdUmYXrC2930WdIabC2dMapQ+xb7r1ZGnit7fbVDBGphKrdadjxBz
 L6wcsYi4p1NYrR0Ciofu24GU0SR7xg/jR9YNdBnZ0FoNum1no8LM3WJ/pcPd6iXK
 QgMxXjAg5hhHVdtucAG7W3tKIFRv3LDUKgOb7xCvMZzUFUbk79laFni9MEIliTqM
 h9sMoqdyFLVy2lwUJ8HqjnpO7b5c0JhtWTUMg/OuL/blCQXBwD7XMQyD8+pPo8yf
 bVyadKgIeLo6XY5tCAc52b4hwBIMXHgKthMOYr/wl9jkhqVtJIjPOIWpQ+a1OBfq
 Zk4SeWR1/yVG5+aPbGb5acBfQS/pjYFrpoHfUVV1q+D4onTD+xQYetkRjCaBK5aY
 pE602XFqvyEEtDjQ3LlNbBK5i6ZTzx1P8gNRqUvWWxsxNFKwhG17dyKIWo9k7RIy
 5Yz97RLmlUODWcALjFKP4PZBG0KNbGI4JhPF3g9Hq+OaGffBzdM=
 =242n
 -----END PGP SIGNATURE-----

Merge tag 'renesas-arm-soc-for-v7.3-tag1' of https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into soc/arm

Renesas ARM SoC updates for v7.3

  - Use the of_machine_compatible_match() helper.

* tag 'renesas-arm-soc-for-v7.3-tag1' of https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
  ARM: shmobile: rcar-gen2: Use of_machine_compatible_match() helper

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2026-07-24 18:09:24 +02:00
commit 044c20254f
2 changed files with 10 additions and 9 deletions

View File

@ -140,6 +140,10 @@ static struct notifier_block regulator_quirk_nb = {
static int __init rcar_gen2_regulator_quirk(void)
{
static const char *const boards[] __initconst = {
"renesas,koelsch", "renesas,lager", "renesas,porter",
"renesas,stout", "renesas,gose", NULL
};
struct regulator_quirk *quirk, *pos, *tmp;
struct of_phandle_args *args;
const struct of_device_id *id;
@ -147,11 +151,7 @@ static int __init rcar_gen2_regulator_quirk(void)
u32 mon, addr;
int ret;
if (!of_machine_is_compatible("renesas,koelsch") &&
!of_machine_is_compatible("renesas,lager") &&
!of_machine_is_compatible("renesas,porter") &&
!of_machine_is_compatible("renesas,stout") &&
!of_machine_is_compatible("renesas,gose"))
if (!of_machine_compatible_match(boards))
return -ENODEV;
for_each_matching_node_and_match(np, rcar_gen2_quirk_match, &id) {

View File

@ -56,6 +56,10 @@ static unsigned int __init get_extal_freq(void)
static void __init rcar_gen2_timer_init(void)
{
static const char *const fixed_freq_socs[] __initconst = {
"renesas,r8a7745", "renesas,r8a77470", "renesas,r8a7792",
"renesas,r8a7794", NULL
};
bool need_update = true;
void __iomem *base;
u32 freq;
@ -76,10 +80,7 @@ static void __init rcar_gen2_timer_init(void)
secure_cntvoff_init();
if (of_machine_is_compatible("renesas,r8a7745") ||
of_machine_is_compatible("renesas,r8a77470") ||
of_machine_is_compatible("renesas,r8a7792") ||
of_machine_is_compatible("renesas,r8a7794")) {
if (of_machine_compatible_match(fixed_freq_socs)) {
freq = 260000000 / 8; /* ZS / 8 */
} else {
/* At Linux boot time the r8a7790 arch timer comes up