[PATCH v2 0/6] arm64: dts: qcom: r0q: enable more peripherals

Eric Gonçalves posted 6 patches 2 months ago
.../boot/dts/qcom/sm8450-samsung-r0q.dts      | 278 +++++++++++++++++-
1 file changed, 270 insertions(+), 8 deletions(-)
[PATCH v2 0/6] arm64: dts: qcom: r0q: enable more peripherals
Posted by Eric Gonçalves 2 months ago
This patchset adds support for multiple devices found on the Galaxy S22,
side buttons, touchscreen, max77705 charger/fuelgauge, RTC and UFS. It
depends on "Input: add support for the STM FTS2BA61Y touchscreen" for
TS to be enabled - and for the fuelgauge/charger to work,
"mfd: max77705: support revision 0x2" is needed too.

Thanks!

Changes in v2:
- split the gpio keys patch into 2 for small refactor
- rename spi-gpio: spi-gpio@0 to spi8
- use tabs instead of spaces on max77705 nodes
- added new patch that fixes adsp_mem and video_mem memory regions
I couldn't find the clock-frequency for i2c5 bus :(

Eric Gonçalves (6):
  arm64: dts: qcom: r0q: small refactor
  arm64: dts: qcom: r0q: add gpio keys
  arm64: dts: qcom: r0q: add touchscreen support
  arm64: dts: qcom: r0q: enable max77705 fuelgauge
  arm64: dts: qcom: r0q: enable ufs storage
  arm64: dts: qcom: r0q: fix reserved memory regions

 .../boot/dts/qcom/sm8450-samsung-r0q.dts      | 278 +++++++++++++++++-
 1 file changed, 270 insertions(+), 8 deletions(-)

-- 
2.51.0

Re: [PATCH v2 0/6] arm64: dts: qcom: r0q: enable more peripherals
Posted by Konrad Dybcio 2 months ago
On 10/14/25 6:41 AM, Eric Gonçalves wrote:
> This patchset adds support for multiple devices found on the Galaxy S22,
> side buttons, touchscreen, max77705 charger/fuelgauge, RTC and UFS. It
> depends on "Input: add support for the STM FTS2BA61Y touchscreen" for
> TS to be enabled - and for the fuelgauge/charger to work,
> "mfd: max77705: support revision 0x2" is needed too.
> 
> Thanks!
> 
> Changes in v2:
> - split the gpio keys patch into 2 for small refactor
> - rename spi-gpio: spi-gpio@0 to spi8
> - use tabs instead of spaces on max77705 nodes
> - added new patch that fixes adsp_mem and video_mem memory regions
> I couldn't find the clock-frequency for i2c5 bus :(

You can boot downstram and run debugcc to dump the current state
(incl. rates) of all clocks

https://github.com/linux-msm/debugcc

Or /sys/kernel/debug/clk/gcc_name_of_the_clock/clk_rate

may also give you a good result, although YMMV

Konrad
Re: [PATCH v2 0/6] arm64: dts: qcom: r0q: enable more peripherals
Posted by Ghatto 1 month, 2 weeks ago
On Tue, Oct 14, 2025 at 6:58 AM Konrad Dybcio
<konrad.dybcio@oss.qualcomm.com> wrote:
>
> On 10/14/25 6:41 AM, Eric Gonçalves wrote:
> > This patchset adds support for multiple devices found on the Galaxy S22,
> > side buttons, touchscreen, max77705 charger/fuelgauge, RTC and UFS. It
> > depends on "Input: add support for the STM FTS2BA61Y touchscreen" for
> > TS to be enabled - and for the fuelgauge/charger to work,
> > "mfd: max77705: support revision 0x2" is needed too.
> >
> > Thanks!
> >
> > Changes in v2:
> > - split the gpio keys patch into 2 for small refactor
> > - rename spi-gpio: spi-gpio@0 to spi8
> > - use tabs instead of spaces on max77705 nodes
> > - added new patch that fixes adsp_mem and video_mem memory regions
> > I couldn't find the clock-frequency for i2c5 bus :(
>
> You can boot downstram and run debugcc to dump the current state
> (incl. rates) of all clocks
>
> https://github.com/linux-msm/debugcc
I can't get a custom build of the downstream kernel running on recent
Android versions...
>
> Or /sys/kernel/debug/clk/gcc_name_of_the_clock/clk_rate
Nothing exists past /sys/kernel/debug
>
> may also give you a good result, although YMMV
>
> Konrad