Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/spi/st,ssc-spi.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: STMicroelectronics SSC SPI Controller |
| 8 | |
| 9 | description: | |
| 10 | The STMicroelectronics SSC SPI controller can be found on STi platforms |
| 11 | and it used to communicate with external devices using the |
| 12 | Serial Peripheral Interface. |
| 13 | |
| 14 | maintainers: |
| 15 | - Patrice Chotard <patrice.chotard@foss.st.com> |
| 16 | |
| 17 | allOf: |
| 18 | - $ref: spi-controller.yaml# |
| 19 | |
| 20 | properties: |
| 21 | compatible: |
| 22 | const: st,comms-ssc4-spi |
| 23 | |
| 24 | reg: |
| 25 | maxItems: 1 |
| 26 | |
| 27 | clocks: |
| 28 | maxItems: 1 |
| 29 | |
| 30 | clock-names: |
| 31 | const: ssc |
| 32 | |
| 33 | interrupts: |
| 34 | maxItems: 1 |
| 35 | |
| 36 | required: |
| 37 | - compatible |
| 38 | - reg |
| 39 | - clocks |
| 40 | - clock-names |
| 41 | - interrupts |
| 42 | |
| 43 | unevaluatedProperties: false |
| 44 | |
| 45 | examples: |
| 46 | - | |
| 47 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 48 | #include <dt-bindings/clock/stih407-clks.h> |
| 49 | spi@9840000 { |
| 50 | compatible = "st,comms-ssc4-spi"; |
| 51 | reg = <0x9840000 0x110>; |
| 52 | interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; |
| 53 | clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; |
| 54 | clock-names = "ssc"; |
| 55 | pinctrl-0 = <&pinctrl_spi0_default>; |
| 56 | pinctrl-names = "default"; |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <0>; |
| 59 | }; |
| 60 | |
| 61 | ... |