* [PATCH] ARM64: dts: meson-axg: add saradc support
@ 2018-03-26 9:21 Yixun Lan
2018-03-27 1:11 ` kbuild test robot
0 siblings, 1 reply; 2+ messages in thread
From: Yixun Lan @ 2018-03-26 9:21 UTC (permalink / raw)
To: Kevin Hilman
Cc: Xingyu Chen, Yixun Lan, Rob Herring, Carlo Caione, linux-amlogic,
linux-arm-kernel, linux-kernel, devicetree
From: Xingyu Chen <xingyu.chen@amlogic.com>
Add the DT info for SAR ADC of the Amlogic's Meson-AXG SoC.
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
---
Hi Kevin:
Please note, the saradc driver in Meson-AXG platfrom actually
depend on the AO clock driver [0] & saradc patch itself [1].
And I've rebased this patch on top of your v4.17/dt64 branch
[0] https://lkml.kernel.org/r/20180323143816.200573-1-yixun.lan@amlogic.com
[1] https://lkml.kernel.org/r/20180326084629.100070-1-yixun.lan@amlogic.com
Yixun
---
arch/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 57eedced5a51..bbb88debbc04 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -47,3 +47,8 @@
pinctrl-0 = <&i2c1_z_pins>;
pinctrl-names = "default";
};
+
+&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 40ca49fb94a6..105884efc033 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -818,6 +818,27 @@
interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
status = "disabled";
};
+
+ saradc: adc@9000 {
+ 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";
+ };
};
};
+
+ vddio_ao18: regulator-vddio_ao18 {
+ compatible = "regulator-fixed";
+ regulator-name = "VDDIO_AO18";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
};
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM64: dts: meson-axg: add saradc support
2018-03-26 9:21 [PATCH] ARM64: dts: meson-axg: add saradc support Yixun Lan
@ 2018-03-27 1:11 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2018-03-27 1:11 UTC (permalink / raw)
To: Yixun Lan
Cc: kbuild-all, Kevin Hilman, Xingyu Chen, Yixun Lan, Rob Herring,
Carlo Caione, linux-amlogic, linux-arm-kernel, linux-kernel,
devicetree
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
Hi Xingyu,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20180326]
[cannot apply to robh/for-next v4.16-rc7 v4.16-rc6 v4.16-rc5 v4.16-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Yixun-Lan/ARM64-dts-meson-axg-add-saradc-support/20180326-233815
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64
All errors (new ones prefixed by >>):
>> Error: arch/arm64/boot/dts/amlogic/meson-axg.dtsi:810.16-17 syntax error
FATAL ERROR: Unable to parse input tree
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37376 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-27 1:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-26 9:21 [PATCH] ARM64: dts: meson-axg: add saradc support Yixun Lan
2018-03-27 1:11 ` kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).