Message ID | 20190527132200.17377-9-narmstrong@baylibre.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm64: meson-gx: misc fixes | expand |
On Mon, May 27, 2019 at 3:23 PM Neil Armstrong <narmstrong@baylibre.com> wrote: > > Add SARARC node and associated regulator to support reading the > ADC inputs on the Vega S95 I'm curious: is this the same problem than on the Wetek boards (where SCPI hwmon reads garbage if SAR ADC is disabled)? > Suggested-by: Christian Hewitt <christianshewitt@gmail.com> > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> in any case: Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
On 27/05/2019 20:24, Martin Blumenstingl wrote: > On Mon, May 27, 2019 at 3:23 PM Neil Armstrong <narmstrong@baylibre.com> wrote: >> >> Add SARARC node and associated regulator to support reading the >> ADC inputs on the Vega S95 > I'm curious: is this the same problem than on the Wetek boards (where > SCPI hwmon reads garbage if SAR ADC is disabled)? Yes > >> Suggested-by: Christian Hewitt <christianshewitt@gmail.com> >> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> > in any case: > Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> >
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index be8799653ad7..4d2aa4dc59e7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -54,6 +54,13 @@ regulator-max-microvolt = <3300000>; }; + vddio_ao18: regulator-vddio_ao18 { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_AO18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + vcc_3v3: regulator-vcc_3v3 { compatible = "regulator-fixed"; regulator-name = "VCC_3V3"; @@ -152,6 +159,11 @@ clock-names = "clkin0"; }; +&saradc { + status = "okay"; + vref-supply = <&vddio_ao18>; +}; + /* Wireless SDIO Module */ &sd_emmc_a { status = "okay";
Add SARARC node and associated regulator to support reading the ADC inputs on the Vega S95 Suggested-by: Christian Hewitt <christianshewitt@gmail.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)