lkml.org 
[lkml]   [2023]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 2/3] dt-bindings: soc: meta: Add meta cld driver bindings
Date
Add a device tree bindings for Meta control logic device.

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com>
---
.../misc/meta,control-logic-device.txt | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 Documentation/devicetree/bindings/misc/meta,control-logic-device.txt

diff --git a/Documentation/devicetree/bindings/misc/meta,control-logic-device.txt b/Documentation/devicetree/bindings/misc/meta,control-logic-device.txt
new file mode 100644
index 000000000000..e966368e2fd6
--- /dev/null
+++ b/Documentation/devicetree/bindings/misc/meta,control-logic-device.txt
@@ -0,0 +1,37 @@
+* Meta Control Logic Device(CLD) Driver
+
+PROPERTIES
+
+- compatible:
+ Usage: required
+ Type: <string-list>
+ Definition: must include "meta,control-logic-device-<driver version>."
+ For v1, the register number, name and mode can be set in dts file.
+ Driver exports the filesystem following the dts setting.
+
+- reg:
+ Usage: required
+ Definition: physical address
+
+- register-map:
+ Usage: optional
+ type: <string-list>
+ Definition: this property is an array of strings defining the names, modes
+ and offsets of the CLD registers. The string format is "<name>:<mode>:<offset>".
+ <name>: the system file name
+ <mode>: the system file access mode. Should be r, w or rw.
+ <offset>: the register offset. If it begins with 0x the number will be
+ parsed as a hexadecimal, if it otherwise begins with 0, it will
+ be parsed as an octal number. Otherwise it will be parsed as a
+ decimal.
+
+EXAMPLE
+ cld: cld@0f {
+ compatible = "meta,control-logic-device-v1";
+ reg = <0x0f>;
+ registers-map =
+ "uart-selection:rw:0x00",
+ "led-identify:rw:0x01",
+ "led-critical:rw:0x02";
+ };
+
--
2.17.1
\
 
 \ /
  Last update: 2023-03-26 23:44    [W:0.062 / U:1.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site