dt-bindings: PCI: Convert HiSilicon STB PCI host to DT schema
Subsystems (5)
Rob Herring (Arm)
maintainerPATCH 1/1 dt-bindings: PCI: Convert HiSilicon STB PCI host to DT schema
Convert the HiSilicon STB PCI host to DT schema format.
As this binding uses additional vendor specific resource names, the common dw-pcie schema has to be updated with the additions. It's not exactly clear what the clock and reset names match up to, so it's a best guess.
Signed-off-by Rob Herring (Arm) <[email protected]>
--- .../pci/hisilicon,hi3798cv200-pcie.yaml | 134 ++++++++++++++++++ .../bindings/pci/hisilicon-histb-pcie.txt | 69 --------- .../bindings/pci/snps,dw-pcie-common.yaml | 10 +- .../devicetree/bindings/pci/snps,dw-pcie.yaml | 6 +- MAINTAINERS | 2 +- 5 files changed, 145 insertions(+), 76 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/hisilicon,hi3798cv200-pcie.yaml delete mode 100644 Documentation/devicetree/bindings/pci/hisilicon-histb-pcie.txt
Documentation/devicetree/bindings/pci/hisilicon,hi3798cv200-pcie.yaml new file +134 -0
@@ -0,0 +1,134 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/hisilicon,hi3798cv200-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon STB PCIe host bridge + +maintainers: + - Shawn Guo <[email protected]> + +description: + The HiSilicon STB PCIe host controller is based on the DesignWare PCIe core. + +properties: + compatible: + items: + - const: hisilicon,hi3798cv200-pcie + + reg: + items: + - description: sysctl registers + - description: rc_dbi registers + - description: configuration transaction registers + + reg-names: + items: + - const: control + - const: rc-dbi + - const: config + + clocks: + items: + - description: auxiliary gate clock + - description: pipe gate clock + - description: system gate clock + - description: bus gate clock + + clock-names: + items: + - const: aux + - const: pipe + - const: sys + - const: bus + + interrupts: + items: + - description: MSI interrupt specifier + + interrupt-names: + items: + - const: msi + + phys: + maxItems: 1 + + phy-names: + items: + - const: phy + + reset-gpios: + description: GPIOs to generate PCIe PERST# assert and deassert signal + maxItems: 1 + + resets: + items: + - description: soft reset + - description: system reset + - description: bus reset + + reset-names: + items: + - const: soft + - const: sys + - const: bus + + vpcie-supply: + description: Regulator for PCIe port power + +required: + - bus-range + - clock-names + - clocks + - compatible + - interrupt-names + - interrupts + - phys + - phy-names + - reg + - reg-names + - resets + - reset-names + +allOf: + - $ref: /schemas/pci/snps,dw-pcie.yaml# + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/clock/histb-clock.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/interrupt-controller/irq.h> + #include <dt-bindings/phy/phy.h> + + pcie@f9860000 { + compatible = "hisilicon,hi3798cv200-pcie"; + reg = <0xf9860000 0x1000>, + <0xf0000000 0x2000>, + <0xf2000000 0x01000000>; + reg-names = "control", "rc-dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0 15>; + num-lanes = <1>; + ranges = <0x81000000 0 0 0xf4000000 0 0x00010000>, + <0x82000000 0 0xf3000000 0xf3000000 0 0x01000000>; + interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&crg 0>, + <&crg 1>, + <&crg 2>, + <&crg 3>; + clock-names = "aux", "pipe", "sys", "bus"; + resets = <&crg 0x18c 6>, <&crg 0x18c 5>, <&crg 0x18c 4>; + reset-names = "soft", "sys", "bus"; + phys = <&combphy1 PHY_TYPE_PCIE>; + phy-names = "phy"; + reset-gpios = <&gpio 5 0>; + };
Documentation/devicetree/bindings/pci/hisilicon-histb-pcie.txt deleted +0 -69
69 lines not on this page · raw message
Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml +7 -3
@@ -123,15 +123,17 @@ properties: - description: See native 'dbi' clock for details enum: [ pcie, pcie_apb_sys, aclk_dbi, reg, port ] - description: See native 'mstr/slv' clock for details - enum: [ pcie_bus, pcie_inbound_axi, pcie_aclk, aclk_mst, aclk_slv ] + enum: [ bus, pcie_bus, pcie_inbound_axi, pcie_aclk, aclk_mst, aclk_slv ] - description: See native 'pipe' clock for details enum: [ pcie_phy, pcie_phy_ref, link, general ] - description: See native 'aux' clock for details enum: [ pcie_aux ] - description: See native 'ref' clock for details. enum: [ gio ] - - description: See nativs 'phy_reg' clock for details + - description: See native 'phy_reg' clock for details enum: [ pcie_apb_phy, pclk ] + - description: See native 'core' clock for details + enum: [ sys ] resets: description:
@@ -178,7 +180,7 @@ properties: above for new bindings. oneOf: - description: See native 'app' reset for details - enum: [ apps, gio, apb ] + enum: [ apps, gio, apb, soft, sys, bus ] - description: See native 'phy' reset for details enum: [ pciephy, link ] - description: See native 'pwr' reset for details
@@ -208,6 +210,8 @@ properties: - pattern: '^pcie(-?phy[0-9]*)?$' - pattern: '^p2u-[0-7]$' - pattern: '^cp[01]-pcie[0-2]-x[124](-lane[0-3])?-phy$' # marvell,armada8k-pcie + - const: phy + deprecated: true reset-gpio: deprecated: true
Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml +3 -3
@@ -106,20 +106,20 @@ properties: for new bindings. oneOf: - description: See native 'dbi' CSR region for details. - enum: [ ctrl ] + enum: [ ctrl, rc-dbi ] - description: See native 'elbi/app' CSR region for details. enum: [ apb, mgmt, link, ulreg, appl, controller ] - description: See native 'atu' CSR region for details. enum: [ atu_dma ] - description: Syscon-related CSR regions. - enum: [ smu, mpu ] + enum: [ smu, mpu, control ] - description: Tegra234 aperture enum: [ ecam ] - description: AMD MDB PCIe SLCR region const: slcr allOf: - contains: - enum: [ dbi, ctrl ] + enum: [ dbi, ctrl, rc-dbi ] - contains: const: config
MAINTAINERS +1 -1
@@ -21846,7 +21846,7 @@ PCIE DRIVER FOR HISILICON STB M: Shawn Guo <[email protected]> L: [email protected] S: Maintained -F: Documentation/devicetree/bindings/pci/hisilicon-histb-pcie.txt +F: Documentation/devicetree/bindings/pci/hisilicon,hi3798cv200-pcie.yaml F: drivers/pci/controller/dwc/pcie-histb.c PCIE DRIVER FOR INTEL KEEM BAY
Signature · 1 line
2.53.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 8 lines
Convert the HiSilicon STB PCI host to DT schema format.
As this binding uses additional vendor specific resource names, the common dw-pcie schema has to be updated with the additions. It's not exactly clear what the clock and reset names match up to, so it's a best guess.
Signed-off-by Rob Herring (Arm) <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1