i.MX Wireless External Interface Module (WEIM)
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/fsl,imx-weim.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"
The term "wireless" does not imply that the WEIM is literally an interface without wires. It simply means that this module was originally designed for wireless and mobile applications that use low-power technology. The actual devices are instantiated from the child nodes of a WEIM node.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^memory-controller@[0-9a-f]+$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx1-weim","fsl,imx27-weim","fsl,imx50-weim","fsl,imx51-weim","fsl,imx6q-weim"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx27-weim"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6q-weim"
#address-cells — required here #
Exact value (const): 2
#size-cells — required here #
Exact value (const): 1
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
ranges — required here #
true — No constraints added by this property rule.
fsl,weim-cs-gpr — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the system General Purpose Register controller that contains WEIM CS GPR register, e.g. IOMUXC_GPR1 on i.MX6Q. IOMUXC_GPR1[11:0] should be set up as one of the following 4 possible values depending on the CS space configuration.
IOMUXC_GPR1[11:0] CS0 CS1 CS2 CS3
---------------------------------------------
05 128M 0M 0M 0M
033 64M 64M 0M 0M
0113 64M 32M 32M 0M
01111 32M 32M 32M 32M
In case that the property is absent, the reset value or what bootloader sets up in IOMUXC_GPR1[11:0] will be used.
fsl,burst-clk-enable — not listed as required here #
Value type (type): "boolean"
The presence of this property indicates that the weim bus should operate in Burst Clock Mode.
fsl,continuous-burst-clk — not listed as required here #
Value type (type): "boolean"
Make Burst Clock to output continuous clock. Without this option Burst Clock will output clock only when necessary.
Properties matching a name pattern (patternProperties) #
^.*@[0-7],[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Devices attached to chip selects are represented as subnodes.
Shared schema rule ($ref): fsl,imx-weim-peripherals.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Required in this object (required): "fsl,weim-cs-timing"
Required in this object (required): "compatible", "reg", "clocks", "#address-cells", "#size-cells", "ranges"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
fsl,weim-cs-gpr— not listed as required here
false— Not permitted by this property rule.
fsl,burst-clk-enable— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
fsl,continuous-burst-clk— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx1-weim"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^.*@[0-7],[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
fsl,weim-cs-timing— not listed as required hereArray item rules (
items)Item 1
CSxU
Item 2
CSxL
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,imx27-weim","fsl,imx31-weim","fsl,imx35-weim"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^.*@[0-7],[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
fsl,weim-cs-timing— not listed as required hereArray item rules (
items)Item 1
CSCRxU
Item 2
CSCRxL
Item 3
CSCRxA
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,imx50-weim","fsl,imx51-weim","fsl,imx6q-weim","fsl,imx6sx-weim","fsl,imx6ul-weim"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^.*@[0-7],[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
fsl,weim-cs-timing— not listed as required hereArray item rules (
items)Item 1
CSxGCR1
Item 2
CSxGCR2
Item 3
CSxRCR1
Item 4
CSxRCR2
Item 5
CSxWCR1
Item 6
CSxWCR2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
memory-controller@21b8000 {
compatible = "fsl,imx6q-weim";
reg = <0x021b8000 0x4000>;
clocks = <&clks 196>;
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x08000000 0x08000000>;
fsl,weim-cs-gpr = <&gpr>;
flash@0,0 {
compatible = "cfi-flash";
reg = <0 0 0x02000000>;
#address-cells = <1>;
#size-cells = <1>;
bank-width = <2>;
fsl,weim-cs-timing = <0x00620081 0x00000001 0x1c022000
0x0000c000 0x1404a38e 0x00000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)