Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: soc: fsl: qe: document new fsl,qe-snums binding

Reading table 4-30, and its footnotes, of the QUICC Engine Block
Reference Manual shows that the set of snum _values_ is not
necessarily just a function of the _number_ of snums, as given in the
fsl,qe-num-snums property.

As an alternative, to make it easier to add support for other variants
of the QUICC engine IP, this introduces a new binding fsl,qe-snums,
which automatically encodes both the number of snums and the actual
values to use.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Li Yang <leoyang.li@nxp.com>

authored by

Rasmus Villemoes and committed by
Li Yang
8f762fe5 d7fc5963

+12 -1
+12 -1
Documentation/devicetree/bindings/soc/fsl/cpm_qe/qe.txt
··· 18 18 - reg : offset and length of the device registers. 19 19 - bus-frequency : the clock frequency for QUICC Engine. 20 20 - fsl,qe-num-riscs: define how many RISC engines the QE has. 21 - - fsl,qe-num-snums: define how many serial number(SNUM) the QE can use for the 21 + - fsl,qe-snums: This property has to be specified as '/bits/ 8' value, 22 + defining the array of serial number (SNUM) values for the virtual 22 23 threads. 23 24 24 25 Optional properties: ··· 35 34 - brg-frequency : the internal clock source frequency for baud-rate 36 35 generators in Hz. 37 36 37 + Deprecated properties 38 + - fsl,qe-num-snums: define how many serial number(SNUM) the QE can use 39 + for the threads. Use fsl,qe-snums instead to not only specify the 40 + number of snums, but also their values. 41 + 38 42 Example: 39 43 qe@e0100000 { 40 44 #address-cells = <1>; ··· 50 44 reg = <e0100000 480>; 51 45 brg-frequency = <0>; 52 46 bus-frequency = <179A7B00>; 47 + fsl,qe-snums = /bits/ 8 < 48 + 0x04 0x05 0x0C 0x0D 0x14 0x15 0x1C 0x1D 49 + 0x24 0x25 0x2C 0x2D 0x34 0x35 0x88 0x89 50 + 0x98 0x99 0xA8 0xA9 0xB8 0xB9 0xC8 0xC9 51 + 0xD8 0xD9 0xE8 0xE9>; 53 52 } 54 53 55 54 * Multi-User RAM (MURAM)