Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ti-sysc: allow OMAP2 and OMAP4 timers to be reserved on AM33xx

am33xx.dtsi has the same clock setup as am35xx.dtsi, setting
ti,no-reset-on-init and ti,no-idle on timer1_target and timer2_target,
so AM33 needs the same workaround as AM35 to avoid ti-sysc probe
failing on certain target modules.

Signed-off-by: Matthias Schiffer <matthias.schiffer@tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20250825131114.2206804-1-alexander.stein@ew.tq-group.com
Signed-off-by: Kevin Hilman <khilman@baylibre.com>

authored by

Matthias Schiffer and committed by
Kevin Hilman
3f617839 3a866087

+9 -2
+9 -2
drivers/bus/ti-sysc.c
··· 48 48 SOC_UNKNOWN, 49 49 SOC_2420, 50 50 SOC_2430, 51 + SOC_AM33, 51 52 SOC_3430, 52 53 SOC_AM35, 53 54 SOC_3630, ··· 2913 2912 static const struct soc_device_attribute sysc_soc_match[] = { 2914 2913 SOC_FLAG("OMAP242*", SOC_2420), 2915 2914 SOC_FLAG("OMAP243*", SOC_2430), 2915 + SOC_FLAG("AM33*", SOC_AM33), 2916 2916 SOC_FLAG("AM35*", SOC_AM35), 2917 2917 SOC_FLAG("OMAP3[45]*", SOC_3430), 2918 2918 SOC_FLAG("OMAP3[67]*", SOC_3630), ··· 3119 3117 * can be dropped if we stop supporting old beagleboard revisions 3120 3118 * A to B4 at some point. 3121 3119 */ 3122 - if (sysc_soc->soc == SOC_3430 || sysc_soc->soc == SOC_AM35) 3120 + switch (sysc_soc->soc) { 3121 + case SOC_AM33: 3122 + case SOC_3430: 3123 + case SOC_AM35: 3123 3124 error = -ENXIO; 3124 - else 3125 + break; 3126 + default: 3125 3127 error = -EBUSY; 3128 + } 3126 3129 3127 3130 if ((ddata->cfg.quirks & SYSC_QUIRK_NO_RESET_ON_INIT) && 3128 3131 (ddata->cfg.quirks & SYSC_QUIRK_NO_IDLE))