xref: /openbmc/linux/Documentation/devicetree/bindings/pci/hisilicon-histb-pcie.txt (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1bbd11bddSJianguo SunHiSilicon STB PCIe host bridge DT description
2bbd11bddSJianguo Sun
3bbd11bddSJianguo SunThe HiSilicon STB PCIe host controller is based on the DesignWare PCIe core.
4bbd11bddSJianguo SunIt shares common functions with the DesignWare PCIe core driver and inherits
5bbd11bddSJianguo Suncommon properties defined in
6*320e1098SMauro Carvalho ChehabDocumentation/devicetree/bindings/pci/snps,dw-pcie.yaml.
7bbd11bddSJianguo Sun
8bbd11bddSJianguo SunAdditional properties are described here:
9bbd11bddSJianguo Sun
10bbd11bddSJianguo SunRequired properties
11bbd11bddSJianguo Sun- compatible: Should be one of the following strings:
12bbd11bddSJianguo Sun		"hisilicon,hi3798cv200-pcie"
13bbd11bddSJianguo Sun- reg: Should contain sysctl, rc_dbi, config registers location and length.
14bbd11bddSJianguo Sun- reg-names: Must include the following entries:
15bbd11bddSJianguo Sun  "control": control registers of PCIe controller;
16bbd11bddSJianguo Sun  "rc-dbi": configuration space of PCIe controller;
17bbd11bddSJianguo Sun  "config": configuration transaction space of PCIe controller.
18bbd11bddSJianguo Sun- bus-range: PCI bus numbers covered.
19bbd11bddSJianguo Sun- interrupts: MSI interrupt.
20bbd11bddSJianguo Sun- interrupt-names: Must include "msi" entries.
21bbd11bddSJianguo Sun- clocks: List of phandle and clock specifier pairs as listed in clock-names
22bbd11bddSJianguo Sun  property.
23bbd11bddSJianguo Sun- clock-name: Must include the following entries:
24bbd11bddSJianguo Sun  "aux": auxiliary gate clock;
25bbd11bddSJianguo Sun  "pipe": pipe gate clock;
26bbd11bddSJianguo Sun  "sys": sys gate clock;
27bbd11bddSJianguo Sun  "bus": bus gate clock.
28bbd11bddSJianguo Sun- resets: List of phandle and reset specifier pairs as listed in reset-names
29bbd11bddSJianguo Sun  property.
30bbd11bddSJianguo Sun- reset-names: Must include the following entries:
31bbd11bddSJianguo Sun  "soft": soft reset;
32bbd11bddSJianguo Sun  "sys": sys reset;
33bbd11bddSJianguo Sun  "bus": bus reset.
34bbd11bddSJianguo Sun
35bbd11bddSJianguo SunOptional properties:
36bbd11bddSJianguo Sun- reset-gpios: The gpio to generate PCIe PERST# assert and deassert signal.
3758dfb243SShawn Guo- vpcie-supply: The regulator in charge of PCIe port power.
38bbd11bddSJianguo Sun- phys: List of phandle and phy mode specifier, should be 0.
39bbd11bddSJianguo Sun- phy-names: Must be "phy".
40bbd11bddSJianguo Sun
41bbd11bddSJianguo SunExample:
42bbd11bddSJianguo Sun	pcie@f9860000 {
43bbd11bddSJianguo Sun		compatible = "hisilicon,hi3798cv200-pcie";
44bbd11bddSJianguo Sun		reg = <0xf9860000 0x1000>,
45bbd11bddSJianguo Sun		      <0xf0000000 0x2000>,
46bbd11bddSJianguo Sun		      <0xf2000000 0x01000000>;
47bbd11bddSJianguo Sun		reg-names = "control", "rc-dbi", "config";
48bbd11bddSJianguo Sun		#address-cells = <3>;
49bbd11bddSJianguo Sun		#size-cells = <2>;
50bbd11bddSJianguo Sun		device_type = "pci";
51bbd11bddSJianguo Sun		bus-range = <0 15>;
52bbd11bddSJianguo Sun		num-lanes = <1>;
53bbd11bddSJianguo Sun		ranges=<0x81000000 0 0 0xf4000000 0 0x00010000
54bbd11bddSJianguo Sun			0x82000000 0 0xf3000000 0xf3000000 0 0x01000000>;
55bbd11bddSJianguo Sun		interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
56bbd11bddSJianguo Sun		interrupt-names = "msi";
57bbd11bddSJianguo Sun		#interrupt-cells = <1>;
58bbd11bddSJianguo Sun		interrupt-map-mask = <0 0 0 0>;
59bbd11bddSJianguo Sun		interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
60bbd11bddSJianguo Sun		clocks = <&crg PCIE_AUX_CLK>,
61bbd11bddSJianguo Sun			 <&crg PCIE_PIPE_CLK>,
62bbd11bddSJianguo Sun			 <&crg PCIE_SYS_CLK>,
63bbd11bddSJianguo Sun			 <&crg PCIE_BUS_CLK>;
64bbd11bddSJianguo Sun		clock-names = "aux", "pipe", "sys", "bus";
65bbd11bddSJianguo Sun		resets = <&crg 0x18c 6>, <&crg 0x18c 5>, <&crg 0x18c 4>;
66bbd11bddSJianguo Sun		reset-names = "soft", "sys", "bus";
67bbd11bddSJianguo Sun		phys = <&combphy1 PHY_TYPE_PCIE>;
68bbd11bddSJianguo Sun		phy-names = "phy";
69bbd11bddSJianguo Sun	};
70