xref: /freebsd/sys/contrib/device-tree/Bindings/fsi/ibm,fsi2spi.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-or-later)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/fsi/ibm,fsi2spi.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: IBM FSI-attached SPI controllers
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Eddie James <eajames@linux.ibm.com>
11c66ec88fSEmmanuel Vadot
12*0e8011faSEmmanuel Vadotdescription:
13c66ec88fSEmmanuel Vadot  This binding describes an FSI CFAM engine called the FSI2SPI. Therefore this
14*0e8011faSEmmanuel Vadot  node will always be a child of an FSI CFAM node. This FSI2SPI engine provides
15*0e8011faSEmmanuel Vadot  access to a number of SPI controllers.
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadotproperties:
18c66ec88fSEmmanuel Vadot  compatible:
19c66ec88fSEmmanuel Vadot    enum:
20c66ec88fSEmmanuel Vadot      - ibm,fsi2spi
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  reg:
23c66ec88fSEmmanuel Vadot    items:
24c66ec88fSEmmanuel Vadot      - description: FSI slave address
25c66ec88fSEmmanuel Vadot
26*0e8011faSEmmanuel Vadot  "#address-cells":
27*0e8011faSEmmanuel Vadot    const: 1
28*0e8011faSEmmanuel Vadot
29*0e8011faSEmmanuel Vadot  "#size-cells":
30*0e8011faSEmmanuel Vadot    const: 0
31*0e8011faSEmmanuel Vadot
32*0e8011faSEmmanuel VadotpatternProperties:
33*0e8011faSEmmanuel Vadot  "^spi@[0-9a-f]+$":
34*0e8011faSEmmanuel Vadot    type: object
35*0e8011faSEmmanuel Vadot    $ref: /schemas/spi/ibm,spi-fsi.yaml
36*0e8011faSEmmanuel Vadot
37c66ec88fSEmmanuel Vadotrequired:
38c66ec88fSEmmanuel Vadot  - compatible
39c66ec88fSEmmanuel Vadot  - reg
40c66ec88fSEmmanuel Vadot
416be33864SEmmanuel VadotadditionalProperties: false
426be33864SEmmanuel Vadot
43c66ec88fSEmmanuel Vadotexamples:
44c66ec88fSEmmanuel Vadot  - |
45c66ec88fSEmmanuel Vadot    fsi2spi@1c00 {
46c66ec88fSEmmanuel Vadot        compatible = "ibm,fsi2spi";
47c66ec88fSEmmanuel Vadot        reg = <0x1c00 0x400>;
48*0e8011faSEmmanuel Vadot        #address-cells = <1>;
49*0e8011faSEmmanuel Vadot        #size-cells = <0>;
50*0e8011faSEmmanuel Vadot
51*0e8011faSEmmanuel Vadot        spi@0 {
52*0e8011faSEmmanuel Vadot            compatible = "ibm,spi-fsi";
53*0e8011faSEmmanuel Vadot            reg = <0>;
54*0e8011faSEmmanuel Vadot            #address-cells = <1>;
55*0e8011faSEmmanuel Vadot            #size-cells = <0>;
56*0e8011faSEmmanuel Vadot
57*0e8011faSEmmanuel Vadot            eeprom@0 {
58*0e8011faSEmmanuel Vadot                compatible = "atmel,at25";
59*0e8011faSEmmanuel Vadot                reg = <0>;
60*0e8011faSEmmanuel Vadot                address-width = <24>;
61*0e8011faSEmmanuel Vadot                pagesize = <256>;
62*0e8011faSEmmanuel Vadot                size = <0x80000>;
63*0e8011faSEmmanuel Vadot                spi-max-frequency = <1000000>;
64*0e8011faSEmmanuel Vadot            };
65*0e8011faSEmmanuel Vadot        };
66c66ec88fSEmmanuel Vadot    };
67