summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorBilly Tsai <billy_tsai@aspeedtech.com>2026-10-05 18:22:54 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:39:13 +0000
commit4e7007317fdf83b5201f39afff5adfa0292fc707 (patch)
tree04184effbd7801f0a358ddf45748fb06236be367 /tools/perf/scripts
parent6ec0623a7c77bc2c383e9971d7b0c9df3ec988fb (diff)
iio: adc: aspeed: Use syscon phandle for trimming data when available
aspeed_adc_set_trim_data() locates the SCU holding the ADC's reference-voltage trimming data with of_find_node_by_name(NULL, "syscon"), a global search that matches the first device-tree node named "syscon" regardless of which SCU instance it actually is. On AST2700, which splits its SCU into "syscon0" (soc0) and "syscon1" (soc1), both nodes share the same node name "syscon" and only differ by label and unit address, so the lookup always resolves to syscon0 even though the ADC's trimming data lives in syscon1. Use the new "aspeed,trim-syscon" phandle property when present to look up the correct regmap directly, falling back to the old global by-name search when the property is absent so existing device trees keep working. Fixes: 9d8b88ffb773 ("iio: adc: aspeed: Add AST2700 ADC support") Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions