19c3c4176SSimon Horman# SPDX-License-Identifier: GPL-2.0 29c3c4176SSimon Horman%YAML 1.2 39c3c4176SSimon Horman--- 49c3c4176SSimon Horman$id: http://devicetree.org/schemas/spi/renesas,sh-msiof.yaml# 59c3c4176SSimon Horman$schema: http://devicetree.org/meta-schemas/core.yaml# 69c3c4176SSimon Horman 79c3c4176SSimon Hormantitle: Renesas MSIOF SPI controller 89c3c4176SSimon Horman 99c3c4176SSimon Hormanmaintainers: 109c3c4176SSimon Horman - Geert Uytterhoeven <geert+renesas@glider.be> 119c3c4176SSimon Horman 129c3c4176SSimon HormanallOf: 139c3c4176SSimon Horman - $ref: spi-controller.yaml# 149c3c4176SSimon Horman 159c3c4176SSimon Hormanproperties: 169c3c4176SSimon Horman compatible: 179c3c4176SSimon Horman oneOf: 189c3c4176SSimon Horman - items: 199c3c4176SSimon Horman - const: renesas,msiof-sh73a0 # SH-Mobile AG5 209c3c4176SSimon Horman - const: renesas,sh-mobile-msiof # generic SH-Mobile compatible 219c3c4176SSimon Horman # device 229c3c4176SSimon Horman - items: 239c3c4176SSimon Horman - enum: 246383b118SLad Prabhakar - renesas,msiof-r8a7742 # RZ/G1H 259c3c4176SSimon Horman - renesas,msiof-r8a7743 # RZ/G1M 269c3c4176SSimon Horman - renesas,msiof-r8a7744 # RZ/G1N 279c3c4176SSimon Horman - renesas,msiof-r8a7745 # RZ/G1E 289c3c4176SSimon Horman - renesas,msiof-r8a77470 # RZ/G1C 299c3c4176SSimon Horman - renesas,msiof-r8a7790 # R-Car H2 309c3c4176SSimon Horman - renesas,msiof-r8a7791 # R-Car M2-W 319c3c4176SSimon Horman - renesas,msiof-r8a7792 # R-Car V2H 329c3c4176SSimon Horman - renesas,msiof-r8a7793 # R-Car M2-N 339c3c4176SSimon Horman - renesas,msiof-r8a7794 # R-Car E2 349c3c4176SSimon Horman - const: renesas,rcar-gen2-msiof # generic R-Car Gen2 and RZ/G1 359c3c4176SSimon Horman # compatible device 369c3c4176SSimon Horman - items: 379c3c4176SSimon Horman - enum: 389c3c4176SSimon Horman - renesas,msiof-r8a774a1 # RZ/G2M 3997f41c68SFabrizio Castro - renesas,msiof-r8a774b1 # RZ/G2N 409c3c4176SSimon Horman - renesas,msiof-r8a774c0 # RZ/G2E 41b4f7f5f5SLad Prabhakar - renesas,msiof-r8a774e1 # RZ/G2H 429c3c4176SSimon Horman - renesas,msiof-r8a7795 # R-Car H3 439c3c4176SSimon Horman - renesas,msiof-r8a7796 # R-Car M3-W 44aef161f4SGeert Uytterhoeven - renesas,msiof-r8a77961 # R-Car M3-W+ 459c3c4176SSimon Horman - renesas,msiof-r8a77965 # R-Car M3-N 469c3c4176SSimon Horman - renesas,msiof-r8a77970 # R-Car V3M 479c3c4176SSimon Horman - renesas,msiof-r8a77980 # R-Car V3H 489c3c4176SSimon Horman - renesas,msiof-r8a77990 # R-Car E3 499c3c4176SSimon Horman - renesas,msiof-r8a77995 # R-Car D3 509c3c4176SSimon Horman - const: renesas,rcar-gen3-msiof # generic R-Car Gen3 and RZ/G2 519c3c4176SSimon Horman # compatible device 529c3c4176SSimon Horman - items: 53e1e62f05SWolfram Sang - enum: 54b076fdd0SWolfram Sang - renesas,msiof-r8a779a0 # R-Car V3U 55e1e62f05SWolfram Sang - renesas,msiof-r8a779f0 # R-Car S4-8 56aa69dc65SGeert Uytterhoeven - renesas,msiof-r8a779g0 # R-Car V4H 57e1e62f05SWolfram Sang - const: renesas,rcar-gen4-msiof # generic R-Car Gen4 58e1e62f05SWolfram Sang # compatible device 59e1e62f05SWolfram Sang - items: 609c3c4176SSimon Horman - const: renesas,sh-msiof # deprecated 619c3c4176SSimon Horman 629c3c4176SSimon Horman reg: 639c3c4176SSimon Horman minItems: 1 649c3c4176SSimon Horman maxItems: 2 659c3c4176SSimon Horman oneOf: 669c3c4176SSimon Horman - items: 679c3c4176SSimon Horman - description: CPU and DMA engine registers 689c3c4176SSimon Horman - items: 699c3c4176SSimon Horman - description: CPU registers 709c3c4176SSimon Horman - description: DMA engine registers 719c3c4176SSimon Horman 729c3c4176SSimon Horman interrupts: 739c3c4176SSimon Horman maxItems: 1 749c3c4176SSimon Horman 759c3c4176SSimon Horman clocks: 769c3c4176SSimon Horman maxItems: 1 779c3c4176SSimon Horman 78f4d38103SLad Prabhakar power-domains: 79f4d38103SLad Prabhakar maxItems: 1 80f4d38103SLad Prabhakar 81f4d38103SLad Prabhakar resets: 82f4d38103SLad Prabhakar maxItems: 1 83f4d38103SLad Prabhakar 849c3c4176SSimon Horman num-cs: 859c3c4176SSimon Horman description: | 869c3c4176SSimon Horman Total number of chip selects (default is 1). 879c3c4176SSimon Horman Up to 3 native chip selects are supported: 889c3c4176SSimon Horman 0: MSIOF_SYNC 899c3c4176SSimon Horman 1: MSIOF_SS1 909c3c4176SSimon Horman 2: MSIOF_SS2 919c3c4176SSimon Horman Hardware limitations related to chip selects: 929c3c4176SSimon Horman - Native chip selects are always deasserted in between transfers 939c3c4176SSimon Horman that are part of the same message. Use cs-gpios to work around 949c3c4176SSimon Horman this. 959c3c4176SSimon Horman - All slaves using native chip selects must use the same spi-cs-high 969c3c4176SSimon Horman configuration. Use cs-gpios to work around this. 979c3c4176SSimon Horman - When using GPIO chip selects, at least one native chip select must 989c3c4176SSimon Horman be left unused, as it will be driven anyway. 999c3c4176SSimon Horman minimum: 1 1009c3c4176SSimon Horman maximum: 3 1019c3c4176SSimon Horman default: 1 1029c3c4176SSimon Horman 1039c3c4176SSimon Horman dmas: 1049c3c4176SSimon Horman minItems: 2 1059c3c4176SSimon Horman maxItems: 4 1069c3c4176SSimon Horman 1079c3c4176SSimon Horman dma-names: 1089c3c4176SSimon Horman minItems: 2 1099c3c4176SSimon Horman maxItems: 4 1109c3c4176SSimon Horman items: 1119c3c4176SSimon Horman enum: [ tx, rx ] 1129c3c4176SSimon Horman 1139c3c4176SSimon Horman renesas,dtdl: 1149c3c4176SSimon Horman description: delay sync signal (setup) in transmit mode. 1153d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 1163d21a460SRob Herring enum: 1179c3c4176SSimon Horman - 0 # no bit delay 1189c3c4176SSimon Horman - 50 # 0.5-clock-cycle delay 1199c3c4176SSimon Horman - 100 # 1-clock-cycle delay 1209c3c4176SSimon Horman - 150 # 1.5-clock-cycle delay 1219c3c4176SSimon Horman - 200 # 2-clock-cycle delay 1229c3c4176SSimon Horman 1239c3c4176SSimon Horman renesas,syncdl: 1249c3c4176SSimon Horman description: delay sync signal (hold) in transmit mode 1253d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 1263d21a460SRob Herring enum: 1279c3c4176SSimon Horman - 0 # no bit delay 1289c3c4176SSimon Horman - 50 # 0.5-clock-cycle delay 1299c3c4176SSimon Horman - 100 # 1-clock-cycle delay 1309c3c4176SSimon Horman - 150 # 1.5-clock-cycle delay 1319c3c4176SSimon Horman - 200 # 2-clock-cycle delay 1329c3c4176SSimon Horman - 300 # 3-clock-cycle delay 1339c3c4176SSimon Horman 1349c3c4176SSimon Horman renesas,tx-fifo-size: 1359c3c4176SSimon Horman # deprecated for soctype-specific bindings 1369c3c4176SSimon Horman description: | 1379c3c4176SSimon Horman Override the default TX fifo size. Unit is words. Ignored if 0. 1383d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 1399c3c4176SSimon Horman default: 64 1409c3c4176SSimon Horman 1419c3c4176SSimon Horman renesas,rx-fifo-size: 1429c3c4176SSimon Horman # deprecated for soctype-specific bindings 1439c3c4176SSimon Horman description: | 1449c3c4176SSimon Horman Override the default RX fifo size. Unit is words. Ignored if 0. 1453d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 1469c3c4176SSimon Horman default: 64 1479c3c4176SSimon Horman 1489c3c4176SSimon Hormanrequired: 1499c3c4176SSimon Horman - compatible 1509c3c4176SSimon Horman - reg 1519c3c4176SSimon Horman - interrupts 152*a0dcd1ffSGeert Uytterhoeven - clocks 153*a0dcd1ffSGeert Uytterhoeven - power-domains 1549c3c4176SSimon Horman - '#address-cells' 1559c3c4176SSimon Horman - '#size-cells' 1569c3c4176SSimon Horman 157*a0dcd1ffSGeert Uytterhoevenif: 158*a0dcd1ffSGeert Uytterhoeven not: 159*a0dcd1ffSGeert Uytterhoeven properties: 160*a0dcd1ffSGeert Uytterhoeven compatible: 161*a0dcd1ffSGeert Uytterhoeven contains: 162*a0dcd1ffSGeert Uytterhoeven const: renesas,sh-mobile-msiof 163*a0dcd1ffSGeert Uytterhoeventhen: 164*a0dcd1ffSGeert Uytterhoeven required: 165*a0dcd1ffSGeert Uytterhoeven - resets 166*a0dcd1ffSGeert Uytterhoeven 1676fdc6e23SRob HerringunevaluatedProperties: false 1686fdc6e23SRob Herring 1699c3c4176SSimon Hormanexamples: 1709c3c4176SSimon Horman - | 171*a0dcd1ffSGeert Uytterhoeven #include <dt-bindings/clock/r8a7791-cpg-mssr.h> 172*a0dcd1ffSGeert Uytterhoeven #include <dt-bindings/interrupt-controller/arm-gic.h> 173*a0dcd1ffSGeert Uytterhoeven #include <dt-bindings/power/r8a7791-sysc.h> 1749c3c4176SSimon Horman 1759c3c4176SSimon Horman msiof0: spi@e6e20000 { 1769c3c4176SSimon Horman compatible = "renesas,msiof-r8a7791", "renesas,rcar-gen2-msiof"; 177fba56184SRob Herring reg = <0xe6e20000 0x0064>; 178*a0dcd1ffSGeert Uytterhoeven interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; 179*a0dcd1ffSGeert Uytterhoeven clocks = <&cpg CPG_MOD 000>; 1809c3c4176SSimon Horman dmas = <&dmac0 0x51>, <&dmac0 0x52>; 1819c3c4176SSimon Horman dma-names = "tx", "rx"; 182*a0dcd1ffSGeert Uytterhoeven power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; 183*a0dcd1ffSGeert Uytterhoeven resets = <&cpg 0>; 1849c3c4176SSimon Horman #address-cells = <1>; 1859c3c4176SSimon Horman #size-cells = <0>; 1869c3c4176SSimon Horman }; 187