[PATCH 3/5] dt-bindings: PCI: allwinner,sun60i-a733-pcie: Add binding
Alastair D'Silva
alastair at d-silva.org
Tue Nov 24 22:29:46 PST 2026
Add Devicetree binding for the Allwinner A733 (sun60i) DesignWare PCIe
Root Complex controller.
Assisted-by: LLM
Signed-off-by: Alastair D'Silva <alastair at d-silva.org>
---
.../pci/allwinner,sun60i-a733-pcie.yaml | 187 ++++++++++++++++++
1 file changed, 187 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pci/allwinner,sun60i-a733-pcie.yaml
diff --git a/Documentation/devicetree/bindings/pci/allwinner,sun60i-a733-pcie.yaml b/Documentation/devicetree/bindings/pci/allwinner,sun60i-a733-pcie.yaml
new file mode 100644
index 0000000000000..71ff657d15c59
--- /dev/null
+++ b/Documentation/devicetree/bindings/pci/allwinner,sun60i-a733-pcie.yaml
@@ -0,0 +1,187 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pci/allwinner,sun60i-a733-pcie.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Allwinner A733 (sun60i) DesignWare PCIe Root Complex controller
+
+maintainers:
+ - Alastair D'Silva <alastair at d-silva.org>
+ - Chen-Yu Tsai <wens at kernel.org>
+ - Jernej Skrabec <jernej.skrabec at gmail.com>
+
+description: |
+ The Allwinner A733 (sun60i) PCIe Root Complex controller is based on the
+ Synopsys DesignWare PCIe IP and inherits all common properties defined in
+ snps,dw-pcie.yaml.
+
+allOf:
+ - $ref: /schemas/pci/snps,dw-pcie.yaml#
+
+properties:
+ compatible:
+ const: allwinner,sun60i-a733-pcie
+
+ reg:
+ items:
+ - description: Data Bus Interface (DBI) registers
+ - description: iATU registers
+ - description: Allwinner application registers
+ - description: PCIe configuration space
+
+ reg-names:
+ items:
+ - const: dbi
+ - const: atu
+ - const: app
+ - const: config
+
+ clocks:
+ items:
+ - description: PCIe auxiliary clock
+ - description: PCIe AXI slave clock
+ - description: PCIe ITS/master AXI bridge clock
+
+ clock-names:
+ items:
+ - const: aux
+ - const: slv
+ - const: mstr
+
+ resets:
+ items:
+ - description: PCIe controller reset
+ - description: PCIe power-up reset
+ - description: PCIe ITS/master AXI bridge reset
+
+ reset-names:
+ items:
+ - const: core
+ - const: pwr
+ - const: mstr
+
+ interrupts:
+ minItems: 1
+ items:
+ - description: Application / SII legacy interrupt
+ - description: MSI interrupt (when msi-map is not used)
+
+ interrupt-names:
+ minItems: 1
+ items:
+ - const: app
+ - const: msi
+
+ allwinner,serdes-syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: Phandle to the Allwinner A733 SerDes subsystem syscon
+
+ phys:
+ maxItems: 1
+
+ phy-names:
+ const: pcie0
+
+ power-domains:
+ maxItems: 1
+
+ vpcie3v3-supply:
+ description: 3.3V PCIe slot or M.2 power supply
+
+ ranges:
+ minItems: 2
+ maxItems: 3
+
+ dma-ranges:
+ maxItems: 1
+
+ legacy-interrupt-controller:
+ description: Interrupt controller node for handling legacy PCI INTx interrupts.
+ type: object
+ additionalProperties: false
+ properties:
+ "#address-cells":
+ const: 0
+
+ "#interrupt-cells":
+ const: 1
+
+ interrupt-controller: true
+
+ required:
+ - "#address-cells"
+ - "#interrupt-cells"
+ - interrupt-controller
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+ - interrupts
+ - interrupt-names
+ - phys
+ - phy-names
+ - power-domains
+ - ranges
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/phy/phy.h>
+ #include <dt-bindings/power/allwinner,sun60i-a733-pck-600.h>
+
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ pcie at 6000000 {
+ compatible = "allwinner,sun60i-a733-pcie";
+ reg = <0x0 0x06000000 0x0 0x00010000>,
+ <0x0 0x06300000 0x0 0x00100000>,
+ <0x0 0x06400000 0x0 0x00080000>,
+ <0x0 0x20000000 0x0 0x01000000>;
+ reg-names = "dbi", "atu", "app", "config";
+ #address-cells = <3>;
+ #size-cells = <2>;
+ bus-range = <0x00 0xff>;
+ device_type = "pci";
+ ranges = <0x81000000 0x0 0x21000000 0x0 0x21000000 0x0 0x00010000>,
+ <0x82000000 0x0 0x22000000 0x0 0x22000000 0x0 0x06000000>;
+ dma-ranges = <0x03000000 0x0 0x40000000 0x0 0x40000000 0x3 0xc0000000>;
+ clocks = <&ccu 224>, <&ccu 225>, <&ccu 49>;
+ clock-names = "aux", "slv", "mstr";
+ resets = <&ccu 91>, <&ccu 90>, <&ccu 0>;
+ reset-names = "core", "pwr", "mstr";
+ interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH 0>;
+ interrupt-names = "app", "msi";
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0 0 0 7>;
+ interrupt-map = <0 0 0 1 &pcie_intc 0>,
+ <0 0 0 2 &pcie_intc 1>,
+ <0 0 0 3 &pcie_intc 2>,
+ <0 0 0 4 &pcie_intc 3>;
+ max-link-speed = <3>;
+ num-lanes = <1>;
+ phys = <&combophy1 PHY_TYPE_PCIE>;
+ phy-names = "pcie0";
+ power-domains = <&pck600 PD_PCIE>;
+ allwinner,serdes-syscon = <&serdes>;
+ reset-gpios = <&pio 3 22 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_vcc_3v3>;
+
+ pcie_intc: legacy-interrupt-controller {
+ interrupt-controller;
+ #address-cells = <0>;
+ #interrupt-cells = <1>;
+ };
+ };
+ };
--
2.53.0
More information about the linux-phy
mailing list