[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1531326349.2708.136.camel@baylibre.com>
Date: Wed, 11 Jul 2018 18:25:49 +0200
From: Jerome Brunet <jbrunet@...libre.com>
To: Yixun Lan <yixun.lan@...ogic.com>,
Kevin Hilman <khilman@...libre.com>
Cc: Xingyu Chen <xingyu.chen@...ogic.com>,
linux-amlogic@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v2] ARM64: dts: meson-axg: add saradc support
On Mon, 2018-07-02 at 22:25 +0000, Yixun Lan wrote:
> From: Xingyu Chen <xingyu.chen@...ogic.com>
>
> Add the DT info for SAR ADC of the Amlogic's Meson-AXG SoC.
>
> Signed-off-by: Xingyu Chen <xingyu.chen@...ogic.com>
> Signed-off-by: Yixun Lan <yixun.lan@...ogic.com>
> ---
> Hi kevin
> I just re-send this patch which rebased to your khilman/v4.18/integ branch
> Thanks
> Yixun
>
> nothing changed since patch v1 [1]:
> -
>
> [1] https://lkml.kernel.org/r/20180326092117.208416-1-yixun.lan@amlogic.com
>
> ---
> .../arm64/boot/dts/amlogic/meson-axg-s400.dts | 5 +++++
> arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 21 +++++++++++++++++++
> 2 files changed, 26 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
> index 4b3331fbfe39..6041f68b32ae 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
> +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
> @@ -153,3 +153,8 @@
> compatible = "brcm,bcm4329-fmac";
> };
> };
> +
> +&saradc {
> + status = "okay";
> + vref-supply = <&vddio_ao18>;
> +};
> diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
> index 67d7115e4eff..52678a69dbf8 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
> @@ -91,6 +91,13 @@
> method = "smc";
> };
>
> + vddio_ao18: regulator-vddio_ao18 {
> + compatible = "regulator-fixed";
> + regulator-name = "VDDIO_AO18";
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + };
Kevin, Yixun,
I find odd that we are adding a regulator to SoC device tree file.
Those regulator are usually part of board file
Unless the regulator is actually inside the SoC, this is not the place for it.
Sorry for not catching this earlier.
> +
> timer {
> compatible = "arm,armv8-timer";
> interrupts = <GIC_PPI 13
> @@ -1194,6 +1201,20 @@
> interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
> status = "disabled";
> };
> +
> + saradc: adc@...0 {
> + compatible = "amlogic,meson-axg-saradc",
> + "amlogic,meson-saradc";
> + reg = <0x0 0x9000 0x0 0x38>;
> + #io-channel-cells = <1>;
> + interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
> + clocks = <&xtal>,
> + <&clkc_AO CLKID_AO_SAR_ADC>,
> + <&clkc_AO CLKID_AO_SAR_ADC_CLK>,
> + <&clkc_AO CLKID_AO_SAR_ADC_SEL>;
> + clock-names = "clkin", "core", "adc_clk", "adc_sel";
> + status = "disabled";
> + };
> };
> };
> };
Powered by blists - more mailing lists