From: Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com>
To: patrick@stwcx.xyz, Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: garnermic@fb.com, Derek Kiernan <derek.kiernan@xilinx.com>,
Dragan Cvetic <dragan.cvetic@xilinx.com>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Stanislav Jakubek <stano.jakubek@gmail.com>,
Daniel Palmer <daniel@0x0f.com>,
Linus Walleij <linus.walleij@linaro.org>,
Samuel Holland <samuel@sholland.org>,
linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v1 2/3] dt-bindings: soc: meta: Add meta cld driver bindings
Date: Tue, 17 Jan 2023 17:44:21 +0800 [thread overview]
Message-ID: <20230117094425.19004-3-Delphine_CC_Chiu@Wiwynn.com> (raw)
In-Reply-To: <20230117094425.19004-1-Delphine_CC_Chiu@Wiwynn.com>
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
next prev parent reply other threads:[~2023-01-17 9:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-17 9:44 [PATCH v1 0/3] Meta control logic device support Delphine CC Chiu
2023-01-17 9:44 ` [PATCH v1 1/3] dt-bindings: vendor-prefixes: Add an entry for Meta Delphine CC Chiu
2023-01-17 10:49 ` Krzysztof Kozlowski
2023-01-17 9:44 ` Delphine CC Chiu [this message]
2023-01-17 10:50 ` [PATCH v1 2/3] dt-bindings: soc: meta: Add meta cld driver bindings Krzysztof Kozlowski
2023-03-13 8:47 ` Delphine_CC_Chiu/WYHQ/Wiwynn
2023-01-17 9:44 ` [PATCH v1 3/3] misc: Add meta cld driver Delphine CC Chiu
2023-01-17 10:15 ` Greg Kroah-Hartman
2023-03-13 8:47 ` Delphine_CC_Chiu/WYHQ/Wiwynn
2023-03-13 8:57 ` Greg Kroah-Hartman
2023-01-17 10:54 ` Krzysztof Kozlowski
2023-03-13 8:48 ` Delphine_CC_Chiu/WYHQ/Wiwynn
2023-03-13 8:52 ` Krzysztof Kozlowski
2023-01-17 11:40 ` Linus Walleij
2023-03-13 8:48 ` Delphine_CC_Chiu/WYHQ/Wiwynn
2023-03-13 10:32 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230117094425.19004-3-Delphine_CC_Chiu@Wiwynn.com \
--to=delphine_cc_chiu@wiwynn.com \
--cc=arnd@arndb.de \
--cc=daniel@0x0f.com \
--cc=derek.kiernan@xilinx.com \
--cc=devicetree@vger.kernel.org \
--cc=dragan.cvetic@xilinx.com \
--cc=garnermic@fb.com \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrick@stwcx.xyz \
--cc=robh+dt@kernel.org \
--cc=samuel@sholland.org \
--cc=stano.jakubek@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox