79 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2# Copyright (C) Sunplus Co., Ltd. 20213%YAML 1.24---5$id: http://devicetree.org/schemas/spi/spi-sunplus-sp7021.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Sunplus sp7021 SPI controller9 10allOf:11 - $ref: spi-controller.yaml12 13maintainers:14 - Li-hao Kuo <lhjeff911@gmail.com>15 16properties:17 compatible:18 enum:19 - sunplus,sp7021-spi20 21 reg:22 items:23 - description: the SPI master registers24 - description: the SPI slave registers25 26 reg-names:27 items:28 - const: master29 - const: slave30 31 interrupt-names:32 items:33 - const: dma_w34 - const: master_risc35 - const: slave_risc36 37 interrupts:38 minItems: 339 40 clocks:41 maxItems: 142 43 resets:44 maxItems: 145 46required:47 - compatible48 - reg49 - reg-names50 - interrupts51 - interrupt-names52 - clocks53 - resets54 - pinctrl-names55 - pinctrl-056 57unevaluatedProperties: false58 59examples:60 - |61 #include <dt-bindings/interrupt-controller/irq.h>62 spi@9c002d80 {63 compatible = "sunplus,sp7021-spi";64 reg = <0x9c002d80 0x80>, <0x9c002e00 0x80>;65 reg-names = "master", "slave";66 interrupt-parent = <&intc>;67 interrupt-names = "dma_w",68 "master_risc",69 "slave_risc";70 interrupts = <144 IRQ_TYPE_LEVEL_HIGH>,71 <146 IRQ_TYPE_LEVEL_HIGH>,72 <145 IRQ_TYPE_LEVEL_HIGH>;73 clocks = <&clkc 0x32>;74 resets = <&rstc 0x22>;75 pinctrl-names = "default";76 pinctrl-0 = <&pins_spi0>;77 };78...79