Renesas AHB to PCI bridge

Schema identifier ($id): "http://devicetree.org/schemas/pci/renesas,pci-rcar-gen2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marek Vasut <marek.vasut+renesas@gmail.com>", "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"

This is the bridge used internally to connect the USB controllers to the AHB. There is one bridge instance per USB port connected to the internal OHCI and EHCI controllers.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,pci-r8a7742", "renesas,pci-r8a7743", "renesas,pci-r8a7744", "renesas,pci-r8a7745", "renesas,pci-r8a7790", "renesas,pci-r8a7791", "renesas,pci-r8a7793", "renesas,pci-r8a7794"

Item 2

Exact value (const): "renesas,pci-rcar-gen2"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,pci-r9a06g032"

Item 2

Exact value (const): "renesas,pci-rzn1"

reg — required here #

Array item rules (items) #

Item 1

Operational registers for the OHCI/EHCI controllers.

Item 2

Bridge configuration and control registers.

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

resets — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

bus-range — required here #

The PCI bus number range; as this is a single bus, the range should be specified as the same value twice.

dma-ranges — not listed as required here #

A single range for the inbound memory region. If not supplied, defaults to 1GiB at 0x40000000. Note there are hardware restrictions on the allowed combinations of address and size.

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^usb@[0-1],0$ — name matches this regular expression #

Value type (type): "object"

This a USB controller PCI device

Properties and child nodes (properties) #

reg — required here

Identify the correct bus, device and function number in the form <bdf 0 0 0 0>.

Array item rules (items)

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

phys — required here

Reference to the USB phy

Maximum number of items (maxItems): 1

phy-names — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg", "phys", "phy-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-map", "interrupt-map-mask", "clocks", "power-domains", "bus-range", "#address-cells", "#size-cells", "#interrupt-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/pci/pci-host-bridge.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,pci-rzn1"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Internal bus clock (AHB) for HOST

Item 2

Internal bus clock (AHB) Power Management

Item 3

PCI clock for USB subsystem

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "hclkh"

Item 2

Exact value (const): "hclkpm"

Item 3

Exact value (const): "pciclk"

Required in this object (required): "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Device clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pclk"

Required in this object (required): "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/power/r8a7790-sysc.h>

pci@ee090000  {
    compatible = "renesas,pci-r8a7790", "renesas,pci-rcar-gen2";
    device_type = "pci";
    reg = <0xee090000 0xc00>,
          <0xee080000 0x1100>;
    clocks = <&cpg CPG_MOD 703>;
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 703>;
    interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;

    bus-range = <0 0>;
    #address-cells = <3>;
    #size-cells = <2>;
    #interrupt-cells = <1>;
    ranges = <0x02000000 0 0xee080000 0xee080000 0 0x00010000>;
    dma-ranges = <0x42000000 0 0x40000000 0x40000000 0 0x40000000>;
    interrupt-map-mask = <0xf800 0 0 0x7>;
    interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
                    <0x0800 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
                    <0x1000 0 0 2 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;

    usb@1,0 {
        reg = <0x800 0 0 0 0>;
        phys = <&usb0 0>;
        phy-names = "usb";
    };

    usb@2,0 {
        reg = <0x1000 0 0 0 0>;
        phys = <&usb0 0>;
        phy-names = "usb";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 23: RZ/G1H

Line 24: RZ/G1M

Line 25: RZ/G1N

Line 26: RZ/G1E

Line 27: R-Car H2

Line 28: R-Car M2-W

Line 29: R-Car M2-N

Line 30: R-Car E2

Line 31: R-Car Gen2 and RZ/G1

Line 34: RZ/N1D

Line 35: RZ/N1

Edit this page