[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1420651215-3836-5-git-send-email-ezequiel.garcia@imgtec.com>
Date: Wed, 7 Jan 2015 14:20:15 -0300
From: Ezequiel Garcia <ezequiel.garcia@...tec.com>
To: Andrew Bresticker <abrestic@...omium.org>,
Thierry Reding <thierry.reding@...il.com>,
James Hartley <james.hartley@...tec.com>,
"Arnd Bergmann" <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: <devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-pwm@...r.kernel.org>,
Naidu Tellapati <Naidu.Tellapati@...tec.com>,
Arul Ramasamy <Arul.Ramasamy@...tec.com>,
Ezequiel Garcia <ezequiel.garcia@...tec.com>
Subject: [PATCH v7 4/4] DT: pdm: Add binding document for IMG PDM DAC
From: Naidu Tellapati <Naidu.Tellapati@...tec.com>
Add binding document for the Pulse Density Modulator (PDM) DAC present on the
Pistachio SOC.
Signed-off-by: Naidu Tellapati <Naidu.Tellapati@...tec.com>
Signed-off-by: Arul Ramasamy <Arul.Ramasamy@...tec.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@...tec.com>
---
Documentation/devicetree/bindings/misc/img-pdm.txt | 54 ++++++++++++++++++++++
1 file changed, 54 insertions(+)
create mode 100644 Documentation/devicetree/bindings/misc/img-pdm.txt
diff --git a/Documentation/devicetree/bindings/misc/img-pdm.txt b/Documentation/devicetree/bindings/misc/img-pdm.txt
new file mode 100644
index 0000000..96fde23
--- /dev/null
+++ b/Documentation/devicetree/bindings/misc/img-pdm.txt
@@ -0,0 +1,54 @@
+Imagination Technologies Pulse Density Modulator (PDM) DAC.
+
+Required properties:
+- compatible: Must be "img,pistachio-pdm"
+- clocks: phandle to input PDM clock
+- clock-names: Must include the following entry:
+ - pdm: input clock to pdm block.
+- img,cr-periph: Must contain a phandle to the peripheral control
+ syscon node which contains PDM control registers.
+- #pdm-cells: Must be 2.
+- The first cell is the PDM channel number (valid values: 0, 1, 2, 3)
+- The second cell is 12-bit pulse-in value
+
+Specifying PDM information for devices
+======================================
+
+1. PDM User nodes
+
+PDM properties should be named "pdms". The exact meaning of each pdms property
+is described above.
+
+ pdm-specifier : array of #pdm-cells specifying the given PDM
+ (controller specific)
+
+The following example could be used to describe a PDM-based backlight device:
+
+ pdm: pdm {
+ #pdm-cells = <2>;
+ };
+
+ [...]
+
+ bl: backlight {
+ pdms = <&pdm 2 0>;
+ };
+
+pdm-specifier typically encodes the chip-relative PDM channel number and the
+12-bit pulse-in value.
+
+2. PDM Controller nodes
+
+PDM controller nodes must specify the number of cells used for the specifier
+using the '#pdm-cells' property.
+
+An example PDM controller might look like this:
+
+Example:
+ pdm: pdm@...48000 {
+ compatible = "img,pistachio-pdm";
+ clocks = <&pdm_clk>;
+ clk-names = "pdm";
+ img,cr-periph = <&cr_periph>;
+ #pdm-cells = <2>;
+ };
--
2.2.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists