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