aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-02-10 16:17:08 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-02-10 16:18:42 +0100
commit640e70c912b114297c90db7273b08e722d043a59 (patch)
tree6821ae1b2ec7ffdc69970d59c70e598bd17006c6
parent369f64f38a7c91f4130862959bab930cf6f54045 (diff)
downloadkernel_replicant_linux-640e70c912b114297c90db7273b08e722d043a59.tar.gz
kernel_replicant_linux-640e70c912b114297c90db7273b08e722d043a59.tar.bz2
kernel_replicant_linux-640e70c912b114297c90db7273b08e722d043a59.zip
net: sipc: core: Add basic DT bindings documentation
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--Documentation/devicetree/bindings/sipc/samsung-modem.txt104
1 files changed, 104 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sipc/samsung-modem.txt b/Documentation/devicetree/bindings/sipc/samsung-modem.txt
new file mode 100644
index 000000000000..490ec7917756
--- /dev/null
+++ b/Documentation/devicetree/bindings/sipc/samsung-modem.txt
@@ -0,0 +1,104 @@
+Samsung modem client bindings
+
+Required properties:
+- compatible: Should be "samsung,sipc4-modem"
+- protocol: version of the sameung-ipc protocol
+ - SAMSUNG_IPC_VERSION_40 for protocol version 40
+ - SAMSUNG_IPC_VERSION_41 for protocol version 41
+ - SAMSUNG_IPC_VERSION_42 for protocol version 42
+
+The DT node must also contains sub-nodes for each channel, which
+contains the following required properties:
+- reg:
+- format: indicates the channel format. Must be one of
+ - SAMSUNG_IPC_FORMAT_FMT for modem commands
+ - SAMSUNG_IPC_FORMAT_RAW for raw network data
+ - SAMSUNG_IPC_FORMAT_RFS for the modem remote filesystem access (RFS)
+ - SAMSUNG_IPC_FORMAT_MULTI_RAW for multiplexed raw network data
+ - SAMSUNG_IPC_FORMAT_CMD for link-layer control commands
+ - SAMSUNG_IPC_FORMAT_RAMDUMP for modem RAM dump
+- type: indicates how the channel is exposed to userspace. Must be one of:
+ - SAMSUNG_IPC_TYPE_MISC for misc device
+ - SAMSUNG_IPC_TYPE_NETDEV for network device
+ - SAMSUNG_IPC_TYPE_DUMMY for not exposing the channel to userspace
+- label: symbolic name for the channel. It is used when exposing the
+ channel to userspace.
+
+Example:
+
+modem {
+ compatible = "samsung,sipc4-modem";
+ protocol = <SAMSUNG_IPC_VERSION_40>;
+ #size-cells = <0>;
+ #address-cells = <1>;
+
+ ipc-fmt-channel@1 {
+ reg = <0x1>;
+ format = <SAMSUNG_IPC_FORMAT_FMT>;
+ type = <SAMSUNG_IPC_TYPE_MISC>;
+ label = "umts_ipc";
+ };
+
+ ipc-rfs-channel@41 {
+ reg = <0x41>;
+ format = <SAMSUNG_IPC_FORMAT_RFS>;
+ type = <SAMSUNG_IPC_TYPE_MISC>;
+ label = "umts_rfs";
+ };
+
+ ipc-raw-channel@2a {
+ reg = <0x2a>;
+ format = <SAMSUNG_IPC_FORMAT_RAW>;
+ type = <SAMSUNG_IPC_TYPE_NETDEV>;
+ label = "rmnet0";
+ };
+
+ ipc-raw-channel@2b {
+ reg = <0x2b>;
+ format = <SAMSUNG_IPC_FORMAT_RAW>;
+ type = <SAMSUNG_IPC_TYPE_NETDEV>;
+ label = "rmnet1";
+ };
+
+ ipc-raw-channel@2c {
+ reg = <0x2c>;
+ format = <SAMSUNG_IPC_FORMAT_RAW>;
+ type = <SAMSUNG_IPC_TYPE_NETDEV>;
+ label = "rmnet2";
+ };
+
+ ipc-raw-channel@21 {
+ reg = <0x21>;
+ format = <SAMSUNG_IPC_FORMAT_RAW>;
+ type = <SAMSUNG_IPC_TYPE_MISC>;
+ label = "umts_csd";
+ };
+
+ ipc-raw-channel@39 {
+ reg = <0x39>;
+ format = <SAMSUNG_IPC_FORMAT_RAW>;
+ type = <SAMSUNG_IPC_TYPE_MISC>;
+ label = "umts_router";
+ };
+
+ ipc-raw-channel@3f {
+ reg = <0x3f>;
+ format = <SAMSUNG_IPC_FORMAT_RAW>;
+ type = <SAMSUNG_IPC_TYPE_MISC>;
+ label = "umts_loopback";
+ };
+
+ ipc-multi-raw-channel@1 {
+ reg = <0x1>;
+ format = <SAMSUNG_IPC_FORMAT_MULTI_RAW>;
+ type = <SAMSUNG_IPC_TYPE_DUMMY>;
+ label = "multipdp";
+ };
+
+ ipc-cmd-channel@1 {
+ reg = <0x1>;
+ format = <SAMSUNG_IPC_FORMAT_CMD>;
+ type = <SAMSUNG_IPC_TYPE_DUMMY>;
+ label = "cmd";
+ };
+};