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: 249c3c4176SSimon Horman - renesas,msiof-r8a7743 # RZ/G1M 259c3c4176SSimon Horman - renesas,msiof-r8a7744 # RZ/G1N 269c3c4176SSimon Horman - renesas,msiof-r8a7745 # RZ/G1E 279c3c4176SSimon Horman - renesas,msiof-r8a77470 # RZ/G1C 289c3c4176SSimon Horman - renesas,msiof-r8a7790 # R-Car H2 299c3c4176SSimon Horman - renesas,msiof-r8a7791 # R-Car M2-W 309c3c4176SSimon Horman - renesas,msiof-r8a7792 # R-Car V2H 319c3c4176SSimon Horman - renesas,msiof-r8a7793 # R-Car M2-N 329c3c4176SSimon Horman - renesas,msiof-r8a7794 # R-Car E2 339c3c4176SSimon Horman - const: renesas,rcar-gen2-msiof # generic R-Car Gen2 and RZ/G1 349c3c4176SSimon Horman # compatible device 359c3c4176SSimon Horman - items: 369c3c4176SSimon Horman - enum: 379c3c4176SSimon Horman - renesas,msiof-r8a774a1 # RZ/G2M 3897f41c68SFabrizio Castro - renesas,msiof-r8a774b1 # RZ/G2N 399c3c4176SSimon Horman - renesas,msiof-r8a774c0 # RZ/G2E 409c3c4176SSimon Horman - renesas,msiof-r8a7795 # R-Car H3 419c3c4176SSimon Horman - renesas,msiof-r8a7796 # R-Car M3-W 429c3c4176SSimon Horman - renesas,msiof-r8a77965 # R-Car M3-N 439c3c4176SSimon Horman - renesas,msiof-r8a77970 # R-Car V3M 449c3c4176SSimon Horman - renesas,msiof-r8a77980 # R-Car V3H 459c3c4176SSimon Horman - renesas,msiof-r8a77990 # R-Car E3 469c3c4176SSimon Horman - renesas,msiof-r8a77995 # R-Car D3 479c3c4176SSimon Horman - const: renesas,rcar-gen3-msiof # generic R-Car Gen3 and RZ/G2 489c3c4176SSimon Horman # compatible device 499c3c4176SSimon Horman - items: 509c3c4176SSimon Horman - const: renesas,sh-msiof # deprecated 519c3c4176SSimon Horman 529c3c4176SSimon Horman reg: 539c3c4176SSimon Horman minItems: 1 549c3c4176SSimon Horman maxItems: 2 559c3c4176SSimon Horman oneOf: 569c3c4176SSimon Horman - items: 579c3c4176SSimon Horman - description: CPU and DMA engine registers 589c3c4176SSimon Horman - items: 599c3c4176SSimon Horman - description: CPU registers 609c3c4176SSimon Horman - description: DMA engine registers 619c3c4176SSimon Horman 629c3c4176SSimon Horman interrupts: 639c3c4176SSimon Horman maxItems: 1 649c3c4176SSimon Horman 659c3c4176SSimon Horman clocks: 669c3c4176SSimon Horman maxItems: 1 679c3c4176SSimon Horman 689c3c4176SSimon Horman num-cs: 699c3c4176SSimon Horman description: | 709c3c4176SSimon Horman Total number of chip selects (default is 1). 719c3c4176SSimon Horman Up to 3 native chip selects are supported: 729c3c4176SSimon Horman 0: MSIOF_SYNC 739c3c4176SSimon Horman 1: MSIOF_SS1 749c3c4176SSimon Horman 2: MSIOF_SS2 759c3c4176SSimon Horman Hardware limitations related to chip selects: 769c3c4176SSimon Horman - Native chip selects are always deasserted in between transfers 779c3c4176SSimon Horman that are part of the same message. Use cs-gpios to work around 789c3c4176SSimon Horman this. 799c3c4176SSimon Horman - All slaves using native chip selects must use the same spi-cs-high 809c3c4176SSimon Horman configuration. Use cs-gpios to work around this. 819c3c4176SSimon Horman - When using GPIO chip selects, at least one native chip select must 829c3c4176SSimon Horman be left unused, as it will be driven anyway. 839c3c4176SSimon Horman minimum: 1 849c3c4176SSimon Horman maximum: 3 859c3c4176SSimon Horman default: 1 869c3c4176SSimon Horman 879c3c4176SSimon Horman dmas: 889c3c4176SSimon Horman minItems: 2 899c3c4176SSimon Horman maxItems: 4 909c3c4176SSimon Horman 919c3c4176SSimon Horman dma-names: 929c3c4176SSimon Horman minItems: 2 939c3c4176SSimon Horman maxItems: 4 949c3c4176SSimon Horman items: 959c3c4176SSimon Horman enum: [ tx, rx ] 969c3c4176SSimon Horman 979c3c4176SSimon Horman renesas,dtdl: 989c3c4176SSimon Horman description: delay sync signal (setup) in transmit mode. 99*3d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 100*3d21a460SRob Herring enum: 1019c3c4176SSimon Horman - 0 # no bit delay 1029c3c4176SSimon Horman - 50 # 0.5-clock-cycle delay 1039c3c4176SSimon Horman - 100 # 1-clock-cycle delay 1049c3c4176SSimon Horman - 150 # 1.5-clock-cycle delay 1059c3c4176SSimon Horman - 200 # 2-clock-cycle delay 1069c3c4176SSimon Horman 1079c3c4176SSimon Horman renesas,syncdl: 1089c3c4176SSimon Horman description: delay sync signal (hold) in transmit mode 109*3d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 110*3d21a460SRob Herring enum: 1119c3c4176SSimon Horman - 0 # no bit delay 1129c3c4176SSimon Horman - 50 # 0.5-clock-cycle delay 1139c3c4176SSimon Horman - 100 # 1-clock-cycle delay 1149c3c4176SSimon Horman - 150 # 1.5-clock-cycle delay 1159c3c4176SSimon Horman - 200 # 2-clock-cycle delay 1169c3c4176SSimon Horman - 300 # 3-clock-cycle delay 1179c3c4176SSimon Horman 1189c3c4176SSimon Horman renesas,tx-fifo-size: 1199c3c4176SSimon Horman # deprecated for soctype-specific bindings 1209c3c4176SSimon Horman description: | 1219c3c4176SSimon Horman Override the default TX fifo size. Unit is words. Ignored if 0. 122*3d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 123*3d21a460SRob Herring maxItems: 1 1249c3c4176SSimon Horman default: 64 1259c3c4176SSimon Horman 1269c3c4176SSimon Horman renesas,rx-fifo-size: 1279c3c4176SSimon Horman # deprecated for soctype-specific bindings 1289c3c4176SSimon Horman description: | 1299c3c4176SSimon Horman Override the default RX fifo size. Unit is words. Ignored if 0. 130*3d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 131*3d21a460SRob Herring maxItems: 1 1329c3c4176SSimon Horman default: 64 1339c3c4176SSimon Horman 1349c3c4176SSimon Hormanrequired: 1359c3c4176SSimon Horman - compatible 1369c3c4176SSimon Horman - reg 1379c3c4176SSimon Horman - interrupts 1389c3c4176SSimon Horman - '#address-cells' 1399c3c4176SSimon Horman - '#size-cells' 1409c3c4176SSimon Horman 1419c3c4176SSimon Hormanexamples: 1429c3c4176SSimon Horman - | 1439c3c4176SSimon Horman #include <dt-bindings/clock/r8a7791-clock.h> 1449c3c4176SSimon Horman #include <dt-bindings/interrupt-controller/irq.h> 1459c3c4176SSimon Horman 1469c3c4176SSimon Horman msiof0: spi@e6e20000 { 1479c3c4176SSimon Horman compatible = "renesas,msiof-r8a7791", "renesas,rcar-gen2-msiof"; 1489c3c4176SSimon Horman reg = <0 0xe6e20000 0 0x0064>; 1499c3c4176SSimon Horman interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>; 1509c3c4176SSimon Horman clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>; 1519c3c4176SSimon Horman dmas = <&dmac0 0x51>, <&dmac0 0x52>; 1529c3c4176SSimon Horman dma-names = "tx", "rx"; 1539c3c4176SSimon Horman #address-cells = <1>; 1549c3c4176SSimon Horman #size-cells = <0>; 1559c3c4176SSimon Horman }; 156