Path: blob/main/sys/contrib/device-tree/Bindings/bus/imx-weim.txt
48378 views
Device tree bindings for i.MX Wireless External Interface Module (WEIM)12The term "wireless" does not imply that the WEIM is literally an interface3without wires. It simply means that this module was originally designed for4wireless and mobile applications that use low-power technology.56The actual devices are instantiated from the child nodes of a WEIM node.78Required properties:910- compatible: Should contain one of the following:11"fsl,imx1-weim"12"fsl,imx27-weim"13"fsl,imx51-weim"14"fsl,imx50-weim"15"fsl,imx6q-weim"16- reg: A resource specifier for the register space17(see the example below)18- clocks: the clock, see the example below.19- #address-cells: Must be set to 2 to allow memory address translation20- #size-cells: Must be set to 1 to allow CS address passing21- ranges: Must be set up to reflect the memory layout with four22integer values for each chip-select line in use:2324<cs-number> 0 <physical address of mapping> <size>2526Optional properties:2728- fsl,weim-cs-gpr: For "fsl,imx50-weim" and "fsl,imx6q-weim" type of29devices, it should be the phandle to the system General30Purpose Register controller that contains WEIM CS GPR31register, e.g. IOMUXC_GPR1 on i.MX6Q. IOMUXC_GPR1[11:0]32should be set up as one of the following 4 possible33values depending on the CS space configuration.3435IOMUXC_GPR1[11:0] CS0 CS1 CS2 CS336---------------------------------------------3705 128M 0M 0M 0M38033 64M 64M 0M 0M390113 64M 32M 32M 0M4001111 32M 32M 32M 32M4142In case that the property is absent, the reset value or43what bootloader sets up in IOMUXC_GPR1[11:0] will be44used.4546- fsl,burst-clk-enable For "fsl,imx50-weim" and "fsl,imx6q-weim" type of47devices, the presence of this property indicates that48the weim bus should operate in Burst Clock Mode.4950- fsl,continuous-burst-clk Make Burst Clock to output continuous clock.51Without this option Burst Clock will output clock52only when necessary. This takes effect only if53"fsl,burst-clk-enable" is set.5455Timing property for child nodes. It is mandatory, not optional.5657- fsl,weim-cs-timing: The timing array, contains timing values for the58child node. We get the CS indexes from the address59ranges in the child node's "reg" property.60The number of registers depends on the selected chip:61For i.MX1, i.MX21 ("fsl,imx1-weim") there are two62registers: CSxU, CSxL.63For i.MX25, i.MX27, i.MX31 and i.MX35 ("fsl,imx27-weim")64there are three registers: CSCRxU, CSCRxL, CSCRxA.65For i.MX50, i.MX53 ("fsl,imx50-weim"),66i.MX51 ("fsl,imx51-weim") and i.MX6Q ("fsl,imx6q-weim")67there are six registers: CSxGCR1, CSxGCR2, CSxRCR1,68CSxRCR2, CSxWCR1, CSxWCR2.6970Example for an imx6q-sabreauto board, the NOR flash connected to the WEIM:7172weim: weim@21b8000 {73compatible = "fsl,imx6q-weim";74reg = <0x021b8000 0x4000>;75clocks = <&clks 196>;76#address-cells = <2>;77#size-cells = <1>;78ranges = <0 0 0x08000000 0x08000000>;79fsl,weim-cs-gpr = <&gpr>;8081nor@0,0 {82compatible = "cfi-flash";83reg = <0 0 0x02000000>;84#address-cells = <1>;85#size-cells = <1>;86bank-width = <2>;87fsl,weim-cs-timing = <0x00620081 0x00000001 0x1c022000880x0000c000 0x1404a38e 0x00000000>;89};90};9192Example for an imx6q-based board, a multi-chipselect device connected to WEIM:9394In this case, both chip select 0 and 1 will be configured with the same timing95array values.9697weim: weim@21b8000 {98compatible = "fsl,imx6q-weim";99reg = <0x021b8000 0x4000>;100clocks = <&clks 196>;101#address-cells = <2>;102#size-cells = <1>;103ranges = <0 0 0x08000000 0x020000001041 0 0x0a000000 0x020000001052 0 0x0c000000 0x020000001063 0 0x0e000000 0x02000000>;107fsl,weim-cs-gpr = <&gpr>;108109acme@0 {110compatible = "acme,whatever";111reg = <0 0 0x100>, <0 0x400000 0x800>,112<1 0x400000 0x800>;113fsl,weim-cs-timing = <0x024400b1 0x00001010 0x200811001140x00000000 0xa0000240 0x00000000>;115};116};117118119