xref: /freebsd/sys/contrib/device-tree/Bindings/pci/amazon,al-alpine-v3-pcie.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/pci/amazon,al-alpine-v3-pcie.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Amazon Annapurna Labs Alpine v3 PCIe Host Bridge
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Jonathan Chocron <jonnyc@amazon.com>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotdescription:
13*833e5d42SEmmanuel Vadot  Amazon's Annapurna Labs PCIe Host Controller is based on the Synopsys
14*833e5d42SEmmanuel Vadot  DesignWare PCI controller.
15*833e5d42SEmmanuel Vadot
16*833e5d42SEmmanuel VadotallOf:
17*833e5d42SEmmanuel Vadot  - $ref: snps,dw-pcie.yaml#
18*833e5d42SEmmanuel Vadot
19*833e5d42SEmmanuel Vadotproperties:
20*833e5d42SEmmanuel Vadot  compatible:
21*833e5d42SEmmanuel Vadot    enum:
22*833e5d42SEmmanuel Vadot      - amazon,al-alpine-v2-pcie
23*833e5d42SEmmanuel Vadot      - amazon,al-alpine-v3-pcie
24*833e5d42SEmmanuel Vadot
25*833e5d42SEmmanuel Vadot  reg:
26*833e5d42SEmmanuel Vadot    items:
27*833e5d42SEmmanuel Vadot      - description: PCIe ECAM space
28*833e5d42SEmmanuel Vadot      - description: AL proprietary registers
29*833e5d42SEmmanuel Vadot      - description: Designware PCIe registers
30*833e5d42SEmmanuel Vadot
31*833e5d42SEmmanuel Vadot  reg-names:
32*833e5d42SEmmanuel Vadot    items:
33*833e5d42SEmmanuel Vadot      - const: config
34*833e5d42SEmmanuel Vadot      - const: controller
35*833e5d42SEmmanuel Vadot      - const: dbi
36*833e5d42SEmmanuel Vadot
37*833e5d42SEmmanuel Vadot  interrupts:
38*833e5d42SEmmanuel Vadot    maxItems: 1
39*833e5d42SEmmanuel Vadot
40*833e5d42SEmmanuel VadotunevaluatedProperties: false
41*833e5d42SEmmanuel Vadot
42*833e5d42SEmmanuel Vadotrequired:
43*833e5d42SEmmanuel Vadot  - compatible
44*833e5d42SEmmanuel Vadot  - reg
45*833e5d42SEmmanuel Vadot  - reg-names
46*833e5d42SEmmanuel Vadot
47*833e5d42SEmmanuel Vadotexamples:
48*833e5d42SEmmanuel Vadot  - |
49*833e5d42SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
50*833e5d42SEmmanuel Vadot
51*833e5d42SEmmanuel Vadot    bus {
52*833e5d42SEmmanuel Vadot        #address-cells = <2>;
53*833e5d42SEmmanuel Vadot        #size-cells = <2>;
54*833e5d42SEmmanuel Vadot
55*833e5d42SEmmanuel Vadot        pcie@fb600000 {
56*833e5d42SEmmanuel Vadot            compatible = "amazon,al-alpine-v3-pcie";
57*833e5d42SEmmanuel Vadot            reg = <0x0 0xfb600000 0x0 0x00100000
58*833e5d42SEmmanuel Vadot                  0x0 0xfd800000 0x0 0x00010000
59*833e5d42SEmmanuel Vadot                  0x0 0xfd810000 0x0 0x00001000>;
60*833e5d42SEmmanuel Vadot            reg-names = "config", "controller", "dbi";
61*833e5d42SEmmanuel Vadot            bus-range = <0 255>;
62*833e5d42SEmmanuel Vadot            device_type = "pci";
63*833e5d42SEmmanuel Vadot            #address-cells = <3>;
64*833e5d42SEmmanuel Vadot            #size-cells = <2>;
65*833e5d42SEmmanuel Vadot            #interrupt-cells = <1>;
66*833e5d42SEmmanuel Vadot            interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
67*833e5d42SEmmanuel Vadot            interrupt-map-mask = <0x00 0 0 7>;
68*833e5d42SEmmanuel Vadot            interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; /* INTa */
69*833e5d42SEmmanuel Vadot            ranges = <0x02000000 0x0 0xc0010000 0x0 0xc0010000 0x0 0x07ff0000>;
70*833e5d42SEmmanuel Vadot        };
71*833e5d42SEmmanuel Vadot    };
72