18c2ecf20Sopenharmony_ci%YAML 1.2
28c2ecf20Sopenharmony_ci---
38c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/bus/renesas,bsc.yaml#
48c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_cititle: Renesas Bus State Controller (BSC)
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_cimaintainers:
98c2ecf20Sopenharmony_ci  - Geert Uytterhoeven <geert+renesas@glider.be>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cidescription: |
128c2ecf20Sopenharmony_ci  The Renesas Bus State Controller (BSC, sometimes called "LBSC within Bus
138c2ecf20Sopenharmony_ci  Bridge", or "External Bus Interface") can be found in several Renesas ARM
148c2ecf20Sopenharmony_ci  SoCs.  It provides an external bus for connecting multiple external
158c2ecf20Sopenharmony_ci  devices to the SoC, driving several chip select lines, for e.g. NOR
168c2ecf20Sopenharmony_ci  FLASH, Ethernet and USB.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci  While the BSC is a fairly simple memory-mapped bus, it may be part of a
198c2ecf20Sopenharmony_ci  PM domain, and may have a gateable functional clock.  Before a device
208c2ecf20Sopenharmony_ci  connected to the BSC can be accessed, the PM domain containing the BSC
218c2ecf20Sopenharmony_ci  must be powered on, and the functional clock driving the BSC must be
228c2ecf20Sopenharmony_ci  enabled.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci  The bindings for the BSC extend the bindings for "simple-pm-bus".
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciallOf:
278c2ecf20Sopenharmony_ci  - $ref: simple-pm-bus.yaml#
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciproperties:
308c2ecf20Sopenharmony_ci  compatible:
318c2ecf20Sopenharmony_ci    items:
328c2ecf20Sopenharmony_ci      - enum:
338c2ecf20Sopenharmony_ci          - renesas,bsc-r8a73a4  # R-Mobile APE6 (r8a73a4)
348c2ecf20Sopenharmony_ci          - renesas,bsc-sh73a0   # SH-Mobile AG5 (sh73a0)
358c2ecf20Sopenharmony_ci      - const: renesas,bsc
368c2ecf20Sopenharmony_ci      - {} # simple-pm-bus, but not listed here to avoid false select
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci  reg:
398c2ecf20Sopenharmony_ci    maxItems: 1
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci  interrupts:
428c2ecf20Sopenharmony_ci    maxItems: 1
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_cirequired:
458c2ecf20Sopenharmony_ci  - reg
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciunevaluatedProperties: false
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ciexamples:
508c2ecf20Sopenharmony_ci  - |
518c2ecf20Sopenharmony_ci    #include <dt-bindings/interrupt-controller/irq.h>
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci    bsc: bus@fec10000 {
548c2ecf20Sopenharmony_ci        compatible = "renesas,bsc-sh73a0", "renesas,bsc", "simple-pm-bus";
558c2ecf20Sopenharmony_ci        #address-cells = <1>;
568c2ecf20Sopenharmony_ci        #size-cells = <1>;
578c2ecf20Sopenharmony_ci        ranges = <0 0 0x20000000>;
588c2ecf20Sopenharmony_ci        reg = <0xfec10000 0x400>;
598c2ecf20Sopenharmony_ci        interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;
608c2ecf20Sopenharmony_ci        clocks = <&zb_clk>;
618c2ecf20Sopenharmony_ci        power-domains = <&pd_a4s>;
628c2ecf20Sopenharmony_ci    };
63