Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: PCI: Convert amazon,al-alpine-v[23]-pcie to DT schema

Convert the Amazon Alpine PCIe binding to DT schema format. It's a
straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250710180825.2971248-1-robh@kernel.org

authored by

Rob Herring (Arm) and committed by
Bjorn Helgaas
bf9d32f2 9e71c414

+73 -48
+71
Documentation/devicetree/bindings/pci/amazon,al-alpine-v3-pcie.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/pci/amazon,al-alpine-v3-pcie.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amazon Annapurna Labs Alpine v3 PCIe Host Bridge 8 + 9 + maintainers: 10 + - Jonathan Chocron <jonnyc@amazon.com> 11 + 12 + description: 13 + Amazon's Annapurna Labs PCIe Host Controller is based on the Synopsys 14 + DesignWare PCI controller. 15 + 16 + allOf: 17 + - $ref: snps,dw-pcie.yaml# 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - amazon,al-alpine-v2-pcie 23 + - amazon,al-alpine-v3-pcie 24 + 25 + reg: 26 + items: 27 + - description: PCIe ECAM space 28 + - description: AL proprietary registers 29 + - description: Designware PCIe registers 30 + 31 + reg-names: 32 + items: 33 + - const: config 34 + - const: controller 35 + - const: dbi 36 + 37 + interrupts: 38 + maxItems: 1 39 + 40 + unevaluatedProperties: false 41 + 42 + required: 43 + - compatible 44 + - reg 45 + - reg-names 46 + 47 + examples: 48 + - | 49 + #include <dt-bindings/interrupt-controller/arm-gic.h> 50 + 51 + bus { 52 + #address-cells = <2>; 53 + #size-cells = <2>; 54 + 55 + pcie@fb600000 { 56 + compatible = "amazon,al-alpine-v3-pcie"; 57 + reg = <0x0 0xfb600000 0x0 0x00100000 58 + 0x0 0xfd800000 0x0 0x00010000 59 + 0x0 0xfd810000 0x0 0x00001000>; 60 + reg-names = "config", "controller", "dbi"; 61 + bus-range = <0 255>; 62 + device_type = "pci"; 63 + #address-cells = <3>; 64 + #size-cells = <2>; 65 + #interrupt-cells = <1>; 66 + interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 67 + interrupt-map-mask = <0x00 0 0 7>; 68 + interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; /* INTa */ 69 + ranges = <0x02000000 0x0 0xc0010000 0x0 0xc0010000 0x0 0x07ff0000>; 70 + }; 71 + };
-46
Documentation/devicetree/bindings/pci/pcie-al.txt
··· 1 - * Amazon Annapurna Labs PCIe host bridge 2 - 3 - Amazon's Annapurna Labs PCIe Host Controller is based on the Synopsys DesignWare 4 - PCI core. It inherits common properties defined in 5 - Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml. 6 - 7 - Properties of the host controller node that differ from it are: 8 - 9 - - compatible: 10 - Usage: required 11 - Value type: <stringlist> 12 - Definition: Value should contain 13 - - "amazon,al-alpine-v2-pcie" for alpine_v2 14 - - "amazon,al-alpine-v3-pcie" for alpine_v3 15 - 16 - - reg: 17 - Usage: required 18 - Value type: <prop-encoded-array> 19 - Definition: Register ranges as listed in the reg-names property 20 - 21 - - reg-names: 22 - Usage: required 23 - Value type: <stringlist> 24 - Definition: Must include the following entries 25 - - "config" PCIe ECAM space 26 - - "controller" AL proprietary registers 27 - - "dbi" Designware PCIe registers 28 - 29 - Example: 30 - 31 - pcie-external0: pcie@fb600000 { 32 - compatible = "amazon,al-alpine-v3-pcie"; 33 - reg = <0x0 0xfb600000 0x0 0x00100000 34 - 0x0 0xfd800000 0x0 0x00010000 35 - 0x0 0xfd810000 0x0 0x00001000>; 36 - reg-names = "config", "controller", "dbi"; 37 - bus-range = <0 255>; 38 - device_type = "pci"; 39 - #address-cells = <3>; 40 - #size-cells = <2>; 41 - #interrupt-cells = <1>; 42 - interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 43 - interrupt-map-mask = <0x00 0 0 7>; 44 - interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; /* INTa */ 45 - ranges = <0x02000000 0x0 0xc0010000 0x0 0xc0010000 0x0 0x07ff0000>; 46 - };
+1 -1
Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml
··· 108 108 - description: See native 'dbi' CSR region for details. 109 109 enum: [ ctrl ] 110 110 - description: See native 'elbi/app' CSR region for details. 111 - enum: [ apb, mgmt, link, ulreg, appl ] 111 + enum: [ apb, mgmt, link, ulreg, appl, controller ] 112 112 - description: See native 'atu' CSR region for details. 113 113 enum: [ atu_dma ] 114 114 - description: Syscon-related CSR regions.
+1 -1
MAINTAINERS
··· 19232 19232 M: Jonathan Chocron <jonnyc@amazon.com> 19233 19233 L: linux-pci@vger.kernel.org 19234 19234 S: Maintained 19235 - F: Documentation/devicetree/bindings/pci/pcie-al.txt 19235 + F: Documentation/devicetree/bindings/pci/amazon,al-alpine-v3-pcie.yaml 19236 19236 F: drivers/pci/controller/dwc/pcie-al.c 19237 19237 19238 19238 PCIE DRIVER FOR AMLOGIC MESON