Files
Douglas Teles 32941a378a Fix joypad, FN button, and audio on original R36S
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>
2026-03-05 19:26:10 -03:00
..
2026-02-10 01:46:47 -03:00