1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright 2019,2020 Lubomir Rintel <lkundrak@ 2 # Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk> 3 %YAML 1.2 3 %YAML 1.2 4 --- 4 --- 5 $id: http://devicetree.org/schemas/spi/marvell 5 $id: http://devicetree.org/schemas/spi/marvell,mmp2-ssp.yaml# 6 $schema: http://devicetree.org/meta-schemas/co 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 7 8 title: PXA2xx SSP SPI Controller 8 title: PXA2xx SSP SPI Controller 9 9 10 maintainers: 10 maintainers: 11 - Lubomir Rintel <lkundrak@v3.sk> 11 - Lubomir Rintel <lkundrak@v3.sk> 12 12 >> 13 allOf: >> 14 - $ref: spi-controller.yaml# >> 15 13 properties: 16 properties: 14 compatible: 17 compatible: 15 enum: !! 18 const: marvell,mmp2-ssp 16 - marvell,mmp2-ssp << 17 - mrvl,ce4100-ssp << 18 - mvrl,pxa168-ssp << 19 - mrvl,pxa25x-ssp << 20 - mvrl,pxa25x-nssp << 21 - mrvl,pxa27x-ssp << 22 - mrvl,pxa3xx-ssp << 23 - mrvl,pxa910-ssp << 24 19 25 interrupts: 20 interrupts: 26 maxItems: 1 21 maxItems: 1 27 22 28 reg: 23 reg: 29 maxItems: 1 24 maxItems: 1 30 25 31 clocks: 26 clocks: 32 maxItems: 1 27 maxItems: 1 33 28 34 dmas: << 35 items: << 36 - description: Receive DMA << 37 - description: Transmit DMA << 38 << 39 dma-names: << 40 items: << 41 - const: rx << 42 - const: tx << 43 << 44 ready-gpios: 29 ready-gpios: 45 description: | 30 description: | 46 GPIO used to signal a SPI master that th 31 GPIO used to signal a SPI master that the FIFO is filled and we're 47 ready to service a transfer. Only useful 32 ready to service a transfer. Only useful in slave mode. 48 maxItems: 1 33 maxItems: 1 49 34 50 required: 35 required: 51 - compatible 36 - compatible 52 - reg 37 - reg 53 - interrupts 38 - interrupts 54 - clocks 39 - clocks 55 40 56 dependencies: 41 dependencies: 57 ready-gpios: [ spi-slave ] 42 ready-gpios: [ spi-slave ] 58 << 59 allOf: << 60 - $ref: spi-controller.yaml# << 61 - if: << 62 properties: << 63 compatible: << 64 contains: << 65 const: marvell,mmp2-ssp << 66 then: << 67 properties: << 68 dmas: false << 69 dma-names: false << 70 43 71 unevaluatedProperties: false 44 unevaluatedProperties: false 72 45 73 examples: 46 examples: 74 - | 47 - | 75 #include <dt-bindings/clock/marvell,mmp2.h 48 #include <dt-bindings/clock/marvell,mmp2.h> 76 spi@d4035000 { 49 spi@d4035000 { 77 compatible = "marvell,mmp2-ssp"; 50 compatible = "marvell,mmp2-ssp"; 78 #address-cells = <1>; 51 #address-cells = <1>; 79 #size-cells = <0>; 52 #size-cells = <0>; 80 reg = <0xd4035000 0x1000>; 53 reg = <0xd4035000 0x1000>; 81 clocks = <&soc_clocks MMP2_CLK_SSP0>; 54 clocks = <&soc_clocks MMP2_CLK_SSP0>; 82 interrupts = <0>; 55 interrupts = <0>; 83 }; 56 }; 84 57 85 ... 58 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.