brintos

brintos / linux-shallow public Read only

0
0
Text · 9.9 KiB · 94eb203 Raw
332 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/remoteproc/ti,omap-remoteproc.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: OMAP4+ Remoteproc Devices8 9maintainers:10  - Suman Anna <s-anna@ti.com>11 12description:13  The OMAP family of SoCs usually have one or more slave processor sub-systems14  that are used to offload some of the processor-intensive tasks, or to manage15  other hardware accelerators, for achieving various system level goals.16 17  The processor cores in the sub-system are usually behind an IOMMU, and may18  contain additional sub-modules like Internal RAM and/or ROMs, L1 and/or L219  caches, an Interrupt Controller, a Cache Controller etc.20 21  The OMAP SoCs usually have a DSP processor sub-system and/or an IPU processor22  sub-system. The DSP processor sub-system can contain any of the TI's C64x,23  C66x or C67x family of DSP cores as the main execution unit. The IPU processor24  sub-system usually contains either a Dual-Core Cortex-M3 or Dual-Core25  Cortex-M4 processors.26 27  Each remote processor sub-system is represented as a single DT node. Each node28  has a number of required or optional properties that enable the OS running on29  the host processor (MPU) to perform the device management of the remote30  processor and to communicate with the remote processor. The various properties31  can be classified as constant or variable. The constant properties are32  dictated by the SoC and does not change from one board to another having the33  same SoC. Examples of constant properties include 'iommus', 'reg'. The34  variable properties are dictated by the system integration aspects such as35  memory on the board, or configuration used within the corresponding firmware36  image. Examples of variable properties include 'mboxes', 'memory-region',37  'timers', 'watchdog-timers' etc.38 39properties:40  compatible:41    enum:42      - ti,omap4-dsp43      - ti,omap5-dsp44      - ti,dra7-dsp45      - ti,omap4-ipu46      - ti,omap5-ipu47      - ti,dra7-ipu48 49  iommus:50    minItems: 151    maxItems: 252    description: |53      phandles to OMAP IOMMU nodes, that need to be programmed54      for this remote processor to access any external RAM memory or55      other peripheral device address spaces. This property usually56      has only a single phandle. Multiple phandles are used only in57      cases where the sub-system has different ports for different58      sub-modules within the processor sub-system (eg: DRA7 DSPs),59      and need the same programming in both the MMUs.60 61  mboxes:62    minItems: 163    maxItems: 264    description: |65      OMAP Mailbox specifier denoting the sub-mailbox, to be used for66      communication with the remote processor. The specifier format is67      as per the bindings,68      Documentation/devicetree/bindings/mailbox/ti,omap-mailbox.yaml69      This property should match with the sub-mailbox node used in70      the firmware image.71 72  clocks:73    maxItems: 174    description: |75      Main functional clock for the remote processor76 77  resets:78    minItems: 179    maxItems: 280    description: |81      Reset handles for the remote processor82 83  firmware-name:84    description: |85      Default name of the firmware to load to the remote processor.86 87# Optional properties:88# --------------------89# Some of these properties are mandatory on some SoCs, and some are optional90# depending on the configuration of the firmware image to be executed on the91# remote processor. The conditions are mentioned for each property.92#93# The following are the optional properties:94 95  memory-region:96    maxItems: 197    description: |98      phandle to the reserved memory node to be associated99      with the remoteproc device. The reserved memory node100      can be a CMA memory node, and should be defined as101      per the bindings,102      Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt103 104  reg:105    description: |106      Address space for any remoteproc memories present on107      the SoC. Should contain an entry for each value in108      'reg-names'. These are mandatory for all DSP and IPU109      processors that have them (OMAP4/OMAP5 DSPs do not have110      any RAMs)111 112  reg-names:113    description: |114      Required names for each of the address spaces defined in115      the 'reg' property. Expects the names from the following116      list, in the specified order, each representing the corresponding117      internal RAM memory region.118    minItems: 1119    items:120      - const: l2ram121      - const: l1pram122      - const: l1dram123 124  ti,bootreg:125    $ref: /schemas/types.yaml#/definitions/phandle-array126    items:127      - items:128          - description: phandle to the System Control Configuration region129          - description: register offset of the boot address register130          - description: the bit shift within the register131    description:132      This property is required for all the DSP instances on OMAP4, OMAP5133      and DRA7xx SoCs.134 135  ti,autosuspend-delay-ms:136    description: |137      Custom autosuspend delay for the remoteproc in milliseconds.138      Recommended values is preferable to be in the order of couple139      of seconds. A negative value can also be used to disable the140      autosuspend behavior.141 142  ti,timers:143    $ref: /schemas/types.yaml#/definitions/phandle-array144    items:145      maxItems: 1146    description: |147      One or more phandles to OMAP DMTimer nodes, that serve148      as System/Tick timers for the OS running on the remote149      processors. This will usually be a single timer if the150      processor sub-system is running in SMP mode, or one per151      core in the processor sub-system. This can also be used152      to reserve specific timers to be dedicated to the153      remote processors.154 155      This property is mandatory on remote processors requiring156      external tick wakeup, and to support Power Management157      features. The timers to be used should match with the158      timers used in the firmware image.159 160  ti,watchdog-timers:161    $ref: /schemas/types.yaml#/definitions/phandle-array162    items:163      maxItems: 1164    description: |165      One or more phandles to OMAP DMTimer nodes, used to166      serve as Watchdog timers for the processor cores. This167      will usually be one per executing processor core, even168      if the processor sub-system is running a SMP OS.169 170      The timers to be used should match with the watchdog171      timers used in the firmware image.172 173if:174  properties:175    compatible:176      enum:177        - ti,dra7-dsp178then:179  properties:180    reg:181      minItems: 3182      maxItems: 3183  required:184    - reg185    - reg-names186    - ti,bootreg187 188else:189  if:190    properties:191      compatible:192        enum:193          - ti,omap4-ipu194          - ti,omap5-ipu195          - ti,dra7-ipu196  then:197    properties:198      reg:199        minItems: 1200        maxItems: 1201      ti,bootreg: false202    required:203      - reg204      - reg-names205 206  else:207    properties:208      reg: false209    required:210      - ti,bootreg211 212required:213  - compatible214  - iommus215  - mboxes216  - clocks217  - resets218  - firmware-name219 220additionalProperties: false221 222examples:223  - |224 225    //Example 1: OMAP4 DSP226 227    /* DSP Reserved Memory node */228    #include <dt-bindings/clock/omap4.h>229    reserved-memory {230        #address-cells = <1>;231        #size-cells = <1>;232 233        dsp_memory_region: dsp-memory@98000000 {234            compatible = "shared-dma-pool";235            reg = <0x98000000 0x800000>;236            reusable;237        };238    };239 240    /* DSP node */241    ocp {242        dsp: dsp {243            compatible = "ti,omap4-dsp";244            ti,bootreg = <&scm_conf 0x304 0>;245            iommus = <&mmu_dsp>;246            mboxes = <&mailbox &mbox_dsp>;247            memory-region = <&dsp_memory_region>;248            ti,timers = <&timer5>;249            ti,watchdog-timers = <&timer6>;250            clocks = <&tesla_clkctrl OMAP4_DSP_CLKCTRL 0>;251            resets = <&prm_tesla 0>, <&prm_tesla 1>;252            firmware-name = "omap4-dsp-fw.xe64T";253        };254    };255 256  - |+257 258    //Example 2: OMAP5 IPU259 260    /* IPU Reserved Memory node */261    #include <dt-bindings/clock/omap5.h>262    reserved-memory {263        #address-cells = <2>;264        #size-cells = <2>;265 266        ipu_memory_region: ipu-memory@95800000 {267            compatible = "shared-dma-pool";268            reg = <0 0x95800000 0 0x3800000>;269            reusable;270        };271    };272 273    /* IPU node */274    ocp {275        #address-cells = <1>;276        #size-cells = <1>;277 278        ipu: ipu@55020000 {279            compatible = "ti,omap5-ipu";280            reg = <0x55020000 0x10000>;281            reg-names = "l2ram";282            iommus = <&mmu_ipu>;283            mboxes = <&mailbox &mbox_ipu>;284            memory-region = <&ipu_memory_region>;285            ti,timers = <&timer3>, <&timer4>;286            ti,watchdog-timers = <&timer9>, <&timer11>;287            clocks = <&ipu_clkctrl OMAP5_MMU_IPU_CLKCTRL 0>;288            resets = <&prm_core 2>;289            firmware-name = "omap5-ipu-fw.xem4";290        };291    };292 293  - |+294 295    //Example 3: DRA7xx/AM57xx DSP296 297    /* DSP1 Reserved Memory node */298    #include <dt-bindings/clock/dra7.h>299    reserved-memory {300        #address-cells = <2>;301        #size-cells = <2>;302 303        dsp1_memory_region: dsp1-memory@99000000 {304            compatible = "shared-dma-pool";305            reg = <0x0 0x99000000 0x0 0x4000000>;306            reusable;307        };308    };309 310    /* DSP1 node */311    ocp {312        #address-cells = <1>;313        #size-cells = <1>;314 315        dsp1: dsp@40800000 {316            compatible = "ti,dra7-dsp";317            reg = <0x40800000 0x48000>,318                  <0x40e00000 0x8000>,319                  <0x40f00000 0x8000>;320            reg-names = "l2ram", "l1pram", "l1dram";321            ti,bootreg = <&scm_conf 0x55c 0>;322            iommus = <&mmu0_dsp1>, <&mmu1_dsp1>;323            mboxes = <&mailbox5 &mbox_dsp1_ipc3x>;324            memory-region = <&dsp1_memory_region>;325            ti,timers = <&timer5>;326            ti,watchdog-timers = <&timer10>;327            resets = <&prm_dsp1 0>;328            clocks = <&dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0>;329            firmware-name = "dra7-dsp1-fw.xe66";330        };331    };332