Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1447660

[PATCH v5 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.

From Zhiyong Tao <zhiyong.tao@mediatek.com>
Newsgroups linux.kernel
Subject [PATCH v5 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc.
Date 2016-07-21 09:20 +0200
Message-ID <rXgr0-4k5-19@gated-at.bofh.it> (permalink)
References <rXgqZ-4k5-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The commit adds the device tree binding documentation for the mediatek
auxadc found on Mediatek MT2701.
Thermal gets auxadc sample data by iio device.
So the commit changes auxadc device tree binding documentation from
/soc/mediatek/auxadc.txt to /iio/adc/mt6577_auxadc.txt.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
---
 .../auxadc.txt => iio/adc/mt6577_auxadc.txt}       |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
 rename Documentation/devicetree/bindings/{soc/mediatek/auxadc.txt => iio/adc/mt6577_auxadc.txt} (46%)

diff --git a/Documentation/devicetree/bindings/soc/mediatek/auxadc.txt b/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt
similarity index 46%
rename from Documentation/devicetree/bindings/soc/mediatek/auxadc.txt
rename to Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt
index bdb7829..68c45cb 100644
--- a/Documentation/devicetree/bindings/soc/mediatek/auxadc.txt
+++ b/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt
@@ -1,4 +1,4 @@
-MediaTek AUXADC
+* Mediatek AUXADC - Analog to Digital Converter on Mediatek mobile soc (mt65xx/mt81xx/mt27xx)
 ===============
 
 The Auxiliary Analog/Digital Converter (AUXADC) is an ADC found
@@ -10,12 +10,20 @@ Documentation/devicetree/bindings/thermal/mediatek-thermal.txt
 for the Thermal Controller which holds a phandle to the AUXADC.
 
 Required properties:
-- compatible: Must be "mediatek,mt8173-auxadc"
-- reg: Address range of the AUXADC unit
+  - compatible: Should be one of:
+    - "mediatek,mt2701-auxadc": For MT2701 family of SoCs
+    - "mediatek,mt8173-auxadc": For MT8173 family of SoCs
+  - reg: Address range of the AUXADC unit.
+  - clocks: Should contain a clock specifier for each entry in clock-names
+  - clock-names: Should contain "main".
+  - #io-channel-cells: Should be 1, see ../iio-bindings.txt
 
 Example:
 
-auxadc: auxadc@11001000 {
-	compatible = "mediatek,mt8173-auxadc";
+auxadc: adc@11001000 {
+	compatible = "mediatek,mt2701-auxadc";
 	reg = <0 0x11001000 0 0x1000>;
+	clocks = <&pericfg CLK_PERI_AUXADC>;
+	clock-names = "main";
+	#io-channel-cells = <1>;
 };
-- 
1.7.9.5

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v5 0/3] AUXADC: Mediatek auxadc driver  Zhiyong Tao <zhiyong.tao@mediatek.com> - 2016-07-21 09:20 +0200
  [PATCH v5 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for mt2701. Zhiyong Tao <zhiyong.tao@mediatek.com> - 2016-07-21 09:20 +0200
    Re: [PATCH v5 2/3] iio: adc: mt2701: Add Mediatek auxadc driver for  mt2701. Jonathan Cameron <jic23@kernel.org> - 2016-07-23 13:00 +0200
  [PATCH v5 3/3] arm: dts: mt2701: Add auxadc node. Zhiyong Tao <zhiyong.tao@mediatek.com> - 2016-07-21 09:20 +0200
    Re: [PATCH v5 3/3] arm: dts: mt2701: Add auxadc node. kbuild test robot <lkp@intel.com> - 2016-07-22 00:20 +0200
      Re: [PATCH v5 3/3] arm: dts: mt2701: Add auxadc node. zhiyong tao <zhiyong.tao@mediatek.com> - 2016-07-22 06:20 +0200
    Re: [PATCH v5 3/3] arm: dts: mt2701: Add auxadc node. kbuild test robot <lkp@intel.com> - 2016-07-24 01:10 +0200
  [PATCH v5 1/3] dt-bindings: auxadc: Add binding document for Mediatek auxadc. Zhiyong Tao <zhiyong.tao@mediatek.com> - 2016-07-21 09:20 +0200

csiph-web