Skip to content

Commit b8ef623

Browse files
Christian Bruelbjorn-helgaas
authored andcommitted
dt-bindings: PCI: Add STM32MP25 PCIe Endpoint bindings
STM32MP25 PCIe Controller is based on the DesignWare core configured as endpoint mode from the SYSCFG register. Signed-off-by: Christian Bruel <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 63a562b commit b8ef623

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pci/st,stm32-pcie-ep.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: STMicroelectronics STM32MP25 PCIe Endpoint
8+
9+
maintainers:
10+
- Christian Bruel <[email protected]>
11+
12+
description:
13+
PCIe endpoint controller based on the Synopsys DesignWare PCIe core.
14+
15+
allOf:
16+
- $ref: /schemas/pci/snps,dw-pcie-ep.yaml#
17+
- $ref: /schemas/pci/st,stm32-pcie-common.yaml#
18+
19+
properties:
20+
compatible:
21+
const: st,stm32mp25-pcie-ep
22+
23+
reg:
24+
items:
25+
- description: Data Bus Interface (DBI) registers.
26+
- description: Data Bus Interface (DBI) shadow registers.
27+
- description: Internal Address Translation Unit (iATU) registers.
28+
- description: PCIe configuration registers.
29+
30+
reg-names:
31+
items:
32+
- const: dbi
33+
- const: dbi2
34+
- const: atu
35+
- const: addr_space
36+
37+
reset-gpios:
38+
description: GPIO controlled connection to PERST# signal
39+
maxItems: 1
40+
41+
phys:
42+
maxItems: 1
43+
44+
required:
45+
- phys
46+
- reset-gpios
47+
48+
unevaluatedProperties: false
49+
50+
examples:
51+
- |
52+
#include <dt-bindings/clock/st,stm32mp25-rcc.h>
53+
#include <dt-bindings/gpio/gpio.h>
54+
#include <dt-bindings/phy/phy.h>
55+
#include <dt-bindings/reset/st,stm32mp25-rcc.h>
56+
57+
pcie-ep@48400000 {
58+
compatible = "st,stm32mp25-pcie-ep";
59+
reg = <0x48400000 0x400000>,
60+
<0x48500000 0x100000>,
61+
<0x48700000 0x80000>,
62+
<0x10000000 0x10000000>;
63+
reg-names = "dbi", "dbi2", "atu", "addr_space";
64+
clocks = <&rcc CK_BUS_PCIE>;
65+
phys = <&combophy PHY_TYPE_PCIE>;
66+
resets = <&rcc PCIE_R>;
67+
pinctrl-names = "default", "init";
68+
pinctrl-0 = <&pcie_pins_a>;
69+
pinctrl-1 = <&pcie_init_pins_a>;
70+
reset-gpios = <&gpioj 8 GPIO_ACTIVE_LOW>;
71+
access-controllers = <&rifsc 68>;
72+
power-domains = <&CLUSTER_PD>;
73+
};

0 commit comments

Comments
 (0)