xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/ti,am654-hbmc.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/ti,am654-hbmc.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: HyperBus Memory Controller (HBMC) on TI's K3 family of SoCs
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Vignesh Raghavendra <vigneshr@ti.com>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotproperties:
135956d97fSEmmanuel Vadot  compatible:
145956d97fSEmmanuel Vadot    const: ti,am654-hbmc
155956d97fSEmmanuel Vadot
165956d97fSEmmanuel Vadot  reg:
175956d97fSEmmanuel Vadot    maxItems: 2
185956d97fSEmmanuel Vadot
195956d97fSEmmanuel Vadot  power-domains: true
205956d97fSEmmanuel Vadot  '#address-cells': true
215956d97fSEmmanuel Vadot  '#size-cells': true
225956d97fSEmmanuel Vadot  ranges: true
235956d97fSEmmanuel Vadot
245956d97fSEmmanuel Vadot  mux-controls:
255956d97fSEmmanuel Vadot    description: MMIO mux controller node to select b/w OSPI and HBMC.
265956d97fSEmmanuel Vadot
275956d97fSEmmanuel Vadot  clocks:
285956d97fSEmmanuel Vadot    maxItems: 1
295956d97fSEmmanuel Vadot
305956d97fSEmmanuel VadotpatternProperties:
315956d97fSEmmanuel Vadot  "^flash@[0-1],[0-9a-f]+$":
325956d97fSEmmanuel Vadot    type: object
33*f126890aSEmmanuel Vadot    $ref: mtd-physmap.yaml
34*f126890aSEmmanuel Vadot    unevaluatedProperties: false
355956d97fSEmmanuel Vadot
365956d97fSEmmanuel Vadotrequired:
375956d97fSEmmanuel Vadot  - compatible
385956d97fSEmmanuel Vadot  - reg
395956d97fSEmmanuel Vadot  - ranges
405956d97fSEmmanuel Vadot  - clocks
415956d97fSEmmanuel Vadot  - '#address-cells'
425956d97fSEmmanuel Vadot  - '#size-cells'
435956d97fSEmmanuel Vadot
445956d97fSEmmanuel VadotadditionalProperties: false
455956d97fSEmmanuel Vadot
465956d97fSEmmanuel Vadotexamples:
475956d97fSEmmanuel Vadot  - |
485956d97fSEmmanuel Vadot    bus {
495956d97fSEmmanuel Vadot        #address-cells = <2>;
505956d97fSEmmanuel Vadot        #size-cells = <2>;
515956d97fSEmmanuel Vadot
525956d97fSEmmanuel Vadot        hbmc: memory-controller@47034000 {
535956d97fSEmmanuel Vadot            compatible = "ti,am654-hbmc";
545956d97fSEmmanuel Vadot            reg = <0x0 0x47034000 0x0 0x100>,
555956d97fSEmmanuel Vadot                  <0x5 0x00000000 0x1 0x0000000>;
565956d97fSEmmanuel Vadot            ranges = <0x0 0x0 0x5 0x00000000 0x4000000>, /* CS0 - 64MB */
575956d97fSEmmanuel Vadot                     <0x1 0x0 0x5 0x04000000 0x4000000>; /* CS1 - 64MB */
585956d97fSEmmanuel Vadot            clocks = <&k3_clks 102 0>;
595956d97fSEmmanuel Vadot            #address-cells = <2>;
605956d97fSEmmanuel Vadot            #size-cells = <1>;
615956d97fSEmmanuel Vadot            power-domains = <&k3_pds 55>;
625956d97fSEmmanuel Vadot            mux-controls = <&hbmc_mux 0>;
635956d97fSEmmanuel Vadot
645956d97fSEmmanuel Vadot            flash@0,0 {
655956d97fSEmmanuel Vadot                compatible = "cypress,hyperflash", "cfi-flash";
665956d97fSEmmanuel Vadot                reg = <0x0 0x0 0x4000000>;
675956d97fSEmmanuel Vadot                #address-cells = <1>;
685956d97fSEmmanuel Vadot                #size-cells = <1>;
695956d97fSEmmanuel Vadot            };
705956d97fSEmmanuel Vadot        };
715956d97fSEmmanuel Vadot    };
72