Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-or-later) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/fsi/ibm,fsi2spi.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: IBM FSI-attached SPI controllers |
| 8 | |
| 9 | maintainers: |
| 10 | - Eddie James <eajames@linux.ibm.com> |
| 11 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 12 | description: |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 13 | This binding describes an FSI CFAM engine called the FSI2SPI. Therefore this |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 14 | node will always be a child of an FSI CFAM node. This FSI2SPI engine provides |
| 15 | access to a number of SPI controllers. |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 16 | |
| 17 | properties: |
| 18 | compatible: |
| 19 | enum: |
| 20 | - ibm,fsi2spi |
| 21 | |
| 22 | reg: |
| 23 | items: |
| 24 | - description: FSI slave address |
| 25 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 26 | "#address-cells": |
| 27 | const: 1 |
| 28 | |
| 29 | "#size-cells": |
| 30 | const: 0 |
| 31 | |
| 32 | patternProperties: |
| 33 | "^spi@[0-9a-f]+$": |
| 34 | type: object |
| 35 | $ref: /schemas/spi/ibm,spi-fsi.yaml |
| 36 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 37 | required: |
| 38 | - compatible |
| 39 | - reg |
| 40 | |
| 41 | additionalProperties: false |
| 42 | |
| 43 | examples: |
| 44 | - | |
| 45 | fsi2spi@1c00 { |
| 46 | compatible = "ibm,fsi2spi"; |
| 47 | reg = <0x1c00 0x400>; |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 48 | #address-cells = <1>; |
| 49 | #size-cells = <0>; |
| 50 | |
| 51 | spi@0 { |
| 52 | compatible = "ibm,spi-fsi"; |
| 53 | reg = <0>; |
| 54 | #address-cells = <1>; |
| 55 | #size-cells = <0>; |
| 56 | |
| 57 | eeprom@0 { |
| 58 | compatible = "atmel,at25"; |
| 59 | reg = <0>; |
| 60 | address-width = <24>; |
| 61 | pagesize = <256>; |
| 62 | size = <0x80000>; |
| 63 | spi-max-frequency = <1000000>; |
| 64 | }; |
| 65 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 66 | }; |