rk3588 tsadc

Heiko Stübner heiko at sntech.de
Wed Jun 14 08:17:48 PDT 2023


Am Mittwoch, 14. Juni 2023, 17:12:45 CEST schrieb Sebastian Reichel:
> Hello Vincent,
> 
> On Wed, Jun 14, 2023 at 02:56:31PM +0000, Vincent Legoll wrote:
> > when testing the latest collabora rk3588 branch, I see the
> > following kernel message:
> > 
> > rockchip-thermal fec00000.tsadc: Missing rockchip,grf property
> > 
> > Is this something on my end or is the
> > arch/arm64/boot/dts/rockchip/rk3588s.dtsi
> > file missing a rockchip,grf line ?
> 
> No, that is fine. The RK3588 is one of the chips where this comment
> applies:
> 
> 	/* The tsadc wont to handle the error in here since some SoCs didn't
> 	 * need this property.
> 	 */
> 	thermal->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
> 	if (IS_ERR(thermal->grf))
> 		dev_warn(dev, "Missing rockchip,grf property\n");
> 
> Maybe we should add 'bool grf_needed' to 'struct rockchip_tsadc_chip'
> and make this mandatory on platforms needing the GRF and not
> requested at all on the other platforms to reduce confusion.

sounds like a good idea, though looking through the instances it looks
like all grf-uses are guarded by a "if (!IS_ERR(grf))" and handle differently
when no GRF link is present.





More information about the Linux-rockchip mailing list