xref: /linux/Documentation/devicetree/bindings/mtd/ti,am654-hbmc.yaml (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mtd/ti,am654-hbmc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: HyperBus Memory Controller (HBMC) on TI's K3 family of SoCs
8
9maintainers:
10  - Vignesh Raghavendra <vigneshr@ti.com>
11
12properties:
13  compatible:
14    const: ti,am654-hbmc
15
16  reg:
17    maxItems: 2
18
19  power-domains: true
20  '#address-cells': true
21  '#size-cells': true
22  ranges: true
23
24  mux-controls:
25    description: MMIO mux controller node to select b/w OSPI and HBMC.
26
27  clocks:
28    maxItems: 1
29
30patternProperties:
31  "^flash@[0-1],[0-9a-f]+$":
32    type: object
33    $ref: mtd-physmap.yaml
34    unevaluatedProperties: false
35
36required:
37  - compatible
38  - reg
39  - ranges
40  - clocks
41  - '#address-cells'
42  - '#size-cells'
43
44additionalProperties: false
45
46examples:
47  - |
48    bus {
49        #address-cells = <2>;
50        #size-cells = <2>;
51
52        hbmc: memory-controller@47034000 {
53            compatible = "ti,am654-hbmc";
54            reg = <0x0 0x47034000 0x0 0x100>,
55                  <0x5 0x00000000 0x1 0x0000000>;
56            ranges = <0x0 0x0 0x5 0x00000000 0x4000000>, /* CS0 - 64MB */
57                     <0x1 0x0 0x5 0x04000000 0x4000000>; /* CS1 - 64MB */
58            clocks = <&k3_clks 102 0>;
59            #address-cells = <2>;
60            #size-cells = <1>;
61            power-domains = <&k3_pds 55>;
62            mux-controls = <&hbmc_mux 0>;
63
64            flash@0,0 {
65                compatible = "cypress,hyperflash", "cfi-flash";
66                reg = <0x0 0x0 0x4000000>;
67                #address-cells = <1>;
68                #size-cells = <1>;
69            };
70        };
71    };
72