mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Some R36S boards have SARADC ADC values in the R33S range (140-190), causing a_boot.ini to load the R33S DTB — which has no analog sticks, no THUMBL/THUMBR buttons, and no FN (BTN_MODE). Fix: add GPIO2_PA2 (THUMBL) check in a_boot.ini when hwrev=r33s. R36S has a pull-up on this pin (L3 button), R33S does not. Audio: R36S original has an external speaker amplifier on GPIO3_PC4. The mainline rk817_codec.c does not support the BSP-only spk-ctl-gpios property. Fix: add simple-audio-amplifier node to the R36S DTS with aux-devs routing through the sound card. Also set CONFIG_SND_SOC_SIMPLE_AMPLIFIER=y (was =m). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>