11723d909SXuelin Shi* Freescale 85xx RAID Engine nodes 21723d909SXuelin Shi 31723d909SXuelin ShiRAID Engine nodes are defined to describe on-chip RAID accelerators. Each RAID 41723d909SXuelin ShiEngine should have a separate node. 51723d909SXuelin Shi 61723d909SXuelin ShiSupported chips: 71723d909SXuelin ShiP5020, P5040 81723d909SXuelin Shi 91723d909SXuelin ShiRequired properties: 101723d909SXuelin Shi 111723d909SXuelin Shi- compatible: Should contain "fsl,raideng-v1.0" as the value 121723d909SXuelin Shi This identifies RAID Engine block. 1 in 1.0 represents 131723d909SXuelin Shi major number whereas 0 represents minor number. The 141723d909SXuelin Shi version matches the hardware IP version. 151723d909SXuelin Shi- reg: offset and length of the register set for the device 161723d909SXuelin Shi- ranges: standard ranges property specifying the translation 171723d909SXuelin Shi between child address space and parent address space 181723d909SXuelin Shi 191723d909SXuelin ShiExample: 201723d909SXuelin Shi /* P5020 */ 211723d909SXuelin Shi raideng: raideng@320000 { 221723d909SXuelin Shi compatible = "fsl,raideng-v1.0"; 231723d909SXuelin Shi #address-cells = <1>; 241723d909SXuelin Shi #size-cells = <1>; 251723d909SXuelin Shi reg = <0x320000 0x10000>; 261723d909SXuelin Shi ranges = <0 0x320000 0x10000>; 271723d909SXuelin Shi }; 281723d909SXuelin Shi 291723d909SXuelin Shi 301723d909SXuelin ShiThere must be a sub-node for each job queue present in RAID Engine 311723d909SXuelin ShiThis node must be a sub-node of the main RAID Engine node 321723d909SXuelin Shi 331723d909SXuelin Shi- compatible: Should contain "fsl,raideng-v1.0-job-queue" as the value 341723d909SXuelin Shi This identifies the job queue interface 351723d909SXuelin Shi- reg: offset and length of the register set for job queue 361723d909SXuelin Shi- ranges: standard ranges property specifying the translation 371723d909SXuelin Shi between child address space and parent address space 381723d909SXuelin Shi 391723d909SXuelin ShiExample: 401723d909SXuelin Shi /* P5020 */ 411723d909SXuelin Shi raideng_jq0@1000 { 421723d909SXuelin Shi compatible = "fsl,raideng-v1.0-job-queue"; 431723d909SXuelin Shi reg = <0x1000 0x1000>; 441723d909SXuelin Shi ranges = <0x0 0x1000 0x1000>; 451723d909SXuelin Shi }; 461723d909SXuelin Shi 471723d909SXuelin Shi 481723d909SXuelin ShiThere must be a sub-node for each job ring present in RAID Engine 491723d909SXuelin ShiThis node must be a sub-node of job queue node 501723d909SXuelin Shi 511723d909SXuelin Shi- compatible: Must contain "fsl,raideng-v1.0-job-ring" as the value 521723d909SXuelin Shi This identifies job ring. Should contain either 531723d909SXuelin Shi "fsl,raideng-v1.0-hp-ring" or "fsl,raideng-v1.0-lp-ring" 541723d909SXuelin Shi depending upon whether ring has high or low priority 551723d909SXuelin Shi- reg: offset and length of the register set for job ring 561723d909SXuelin Shi- interrupts: interrupt mapping for job ring IRQ 571723d909SXuelin Shi 581723d909SXuelin ShiOptional property: 591723d909SXuelin Shi 601723d909SXuelin Shi- fsl,liodn: Specifies the LIODN to be used for Job Ring. This 611723d909SXuelin Shi property is normally set by firmware. Value 621723d909SXuelin Shi is of 12-bits which is the LIODN number for this JR. 631723d909SXuelin Shi This property is used by the IOMMU (PAMU) to distinquish 641723d909SXuelin Shi transactions from this JR and than be able to do address 651723d909SXuelin Shi translation & protection accordingly. 661723d909SXuelin Shi 671723d909SXuelin ShiExample: 681723d909SXuelin Shi /* P5020 */ 691723d909SXuelin Shi raideng_jq0@1000 { 701723d909SXuelin Shi compatible = "fsl,raideng-v1.0-job-queue"; 711723d909SXuelin Shi reg = <0x1000 0x1000>; 721723d909SXuelin Shi ranges = <0x0 0x1000 0x1000>; 731723d909SXuelin Shi 741723d909SXuelin Shi raideng_jr0: jr@0 { 751723d909SXuelin Shi compatible = "fsl,raideng-v1.0-job-ring", "fsl,raideng-v1.0-hp-ring"; 761723d909SXuelin Shi reg = <0x0 0x400>; 771723d909SXuelin Shi interrupts = <139 2 0 0>; 781723d909SXuelin Shi interrupt-parent = <&mpic>; 791723d909SXuelin Shi fsl,liodn = <0x41>; 801723d909SXuelin Shi }; 811723d909SXuelin Shi }; 82