From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795580150; b=y8W3xn9DtF0Y2DEdhWJ9/S3WJbt+aag1lOj55QV38GF0J4TTLPxH0rnpPKfNTsDyN11H UjaScIJlPN31XVSBzFOxZYRgKhk86OfqJq2hSo1tu/EgHQbDquOypOnxIOmsBe6BC74XY tM7aBlN8ViAp189N358FffscSd9J46pPH1T43gf2ZGzP0c5RBdF21fc2GdKwcq6JB5IXz 3dtpMvzgdkEBNcY4szP/4SuYvo9oriWpEYz5h4URjrIV021MX7YxeKQKx1v9bldNS8lpN MTryVlpBXOY+XQcMoV33lvDr90Z1Fj14ER3zb1BGj5d9i2Bl8JHw+s0odMinka5UWJw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795580150; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=/RsxGu9Qo+d5h2F4SHHbDEzcGRL3TV6KceFfHx6kJUw=; b=eewgRbZNW6E9jN7uGKWhkbhDdP4/UmzWRCUyz6uZT3lsqLIyh2NUwYqGrLlN7FkmEwiR +TtjN6T5eXnj963N3jAznvW/sPKt1E/AGEZdAmBj+C9mKnrHVtIONNyMpUKMlKwmmkhMD xEhVOnk8k3MvzwvuIOQMBPM/E7sPbTxxtT7uN4PvPBopbhvmHC5Mphpe66dGsoGa/PkjA W7EUjorszOVEFWh6oDQnQM6Wy/Y4WDWQWPIHgDucD/FxcZzQLr0bYBgKHiQjwOdQE4fHI 6xKzQpYR/hsFVD1bFACI7veJ3cOON/En9fzlS4vP0QleYCNH/FdGNB1Wi/PYyS2OBtw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Cxkz6Iq8; arc=none smtp.remote-ip=209.85.210.174 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE431606A326 for ; Wed, 25 Nov 2026 04:15:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DE431606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Cxkz6Iq8 Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-8cf79c02fb8so295397b3a.3 for ; Tue, 24 Nov 2026 20:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795580149; x=1796184949; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/RsxGu9Qo+d5h2F4SHHbDEzcGRL3TV6KceFfHx6kJUw=; b=Cxkz6Iq8TOzSh/DEeWv/n+zLEBKaBJLzuILtoqeZxIPxfx1q0BDaVF9Opc43yNGB0P IF8fQKuHP6ujy17EFfwQr1r8s2FYmGmu44EYSYHRGxAKlLAfMpeG1YjDXKRfv/QbEjGk LvoObMpRzIpVpfHFBEPTw1klZwCLV88mnevVkKlbhLHjVw/rhF3haZla30WbPKUBOZQf KYlWJAbv07yQ9p3lqN3M9Lr5V3DpCC3NF4jyu6w3ZCbiwf/eNh6ptVZFpB90o9Vvtk3L S4/BDeJa1cdUVV7ZJnYKUoFxnD4n/mXcPiDjmMaQLc4rd4UABwqODlryoOZBNYB+tU+y IP4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795580149; x=1796184949; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=/RsxGu9Qo+d5h2F4SHHbDEzcGRL3TV6KceFfHx6kJUw=; b=swe2mKXBxmeNyY/j77mjhyi20DMUUoy4E3QHMjI9cJeZgS3GoecQd1oLeT3qzv7VV8 rr7exaB0CjVPfgaY9axtANeDJWYvHxyx/0IKq9dw2yCvw7OGGlfo32muxLMIWoCx1W7d 9flSC8L31gQRgBsidgV6YwiguVK6JT45diYTJjAWUyNrItDkQonsyPsRUrVaqfCGe5im LQGWSYco2IOlihaUeSb7tqGxdHHbg1rJIzeTOSEUHiANrPpjK3ZO6MmQJLcbehmzB7Nn eUIkV8qTuJHgU7PC2wVisoWaA8TblEQgpByldlT9jsZbJ67GRB2Zgbma+WLNR1+nf4Nw pA/A== X-Gm-Message-State: APuU4Z874eYDxhomuQ3iYArsHME00XCFoOlEO/tvduwWvFR9UW1+w4wu wZGvdocX5lcFCHFiaCJ6zqa2pJmhichmzb9Rrhba0mqgeUOR8EgQtVGu X-Gm-Gg: AZFdTZe7T0PlVess4CdDrrdI2Rm1QhrcxgUN5lZcnywgNVnUB0VBa4knD/3CnaNNTxm eenQryFyiCHt21+F9rI11Ne+tn2HLNsXaVPjA6w8aSZwE9Nea1mLqzo9MVO4lWshA3E9XTFfb/x Qp9iWBM/OkNtHQ/PobQFoe2S/vfobqq6shaPyWPRuYgwUQ16/N5xYM4X7UgPMdbUTq31FyV7MB5 jtFPm/HJxsHaeW4CVZFA9z+xE+FYOTipSHm2Ys8kE6foAvvDVgriHZAPVD1exlHAJFa45zSuUqB u+P6FMyuu7iq3GGCZAKpYVOkG0qHRplBmYs1eD/tUyCa6DvxYC5EBlcJyRMz9dDMOZyyaYNTqFw pZtYZaxtM6w0A7TS1n94PbATByGFbl3fDSWNy1BzvUmPJYI1kRqI/PnlH3PeASylcNLgkZWfXsm +RpWjGBsmTmmb4UT76SSZMNqs36BwHWY+lOzKFyYswSLv38X4a+X9cOOIg7kPjINX+rNrZ8tjHO wAiaaGNfT2KETR2nTq9a0pOQ8UJ9fYRwt6HLp51QSE32xLR0qSSDXh3xr0op3tRktj+wCD1R3If NKr0Zg5I1vq0besHCU2DlEscusM= X-Received: by 2002:a05:6a00:1f14:b0:89e:9c7e:fd49 with SMTP id d2e1a72fcca58-8c87b9cf695mr14659779b3a.20.1795580149082; Tue, 24 Nov 2026 20:15:49 -0800 (PST) Received: from localhost ([2001:19f0:8000:4ce8:5400:7ff:fe0e:e6b2]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c873b25bfasm8204660b3a.46.2026.11.24.20.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 20:15:48 -0800 (PST) From: Inochi Amaoto To: Jingoo Han , Manivannan Sadhasivam , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Troy Mitchell , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Frank Li , Sherry Sun , Niklas Cassel , Arnd Bergmann , Marek Vasut , Andy Shevchenko , LECOINTRE Philippe , Neil Armstrong , Xincheng Zhang , Randolph Lin , Senchuan Zhang , Vincent Guittot , Inochi Amaoto , Vladimir Oltean , Anirudh Srinivasan , Pengpeng Hou , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= , Gustavo Pimentel , Alex Elder Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Yixun Lan , Longbin Li Subject: [PATCH v8 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller Date: Wed, 25 Nov 2026 12:15:19 +0800 Message-ID: <20261125041523.242588-6-inochiama@gmail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125041523.242588-1-inochiama@gmail.com> References: <20261125041523.242588-1-inochiama@gmail.com> X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add binding support for the PCIe controller on the SpacemiT K3 SoC. This controller is almost a standard Synopsys DesignWare PCIe IP, with some extra link and reset state control. Signed-off-by: Inochi Amaoto Reviewed-by: Rob Herring (Arm) Signed-off-by: Inochi Amaoto --- .../bindings/pci/spacemit,k1-pcie-host.yaml | 55 ++++++++++++++++--- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml b/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml index c4c00b5fcdc0..af32e427c0c5 100644 --- a/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml +++ b/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/pci/spacemit,k1-pcie-host.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: SpacemiT K1 PCI Express Host Controller +title: SpacemiT K1/K3 PCI Express Host Controller maintainers: - Alex Elder @@ -12,28 +12,32 @@ maintainers: description: > The SpacemiT K1 SoC PCIe host controller is based on the Synopsys DesignWare PCIe IP. The controller uses the DesignWare built-in MSI interrupt - controller, and supports 256 MSIs. - -allOf: - - $ref: /schemas/pci/snps,dw-pcie.yaml# + controller, and supports 256 MSIs. The K3 controller uses an + external MSI interrupt controller and may use multiple PHYs. properties: compatible: - const: spacemit,k1-pcie + enum: + - spacemit,k1-pcie + - spacemit,k3-pcie reg: + minItems: 4 items: - description: DesignWare PCIe registers - description: ATU address space - description: PCIe configuration space - description: Link control registers + - description: Data Bus Interface (DBI) shadow registers. reg-names: + minItems: 4 items: - const: dbi - const: atu - const: config - const: link + - const: dbi2 clocks: items: @@ -66,6 +70,8 @@ properties: interrupt-names: const: msi + msi-parent: true + spacemit,apmu: $ref: /schemas/types.yaml#/definitions/phandle-array description: @@ -84,7 +90,8 @@ patternProperties: properties: phys: - maxItems: 1 + minItems: 1 + maxItems: 6 vpcie3v3-supply: description: @@ -96,13 +103,43 @@ patternProperties: unevaluatedProperties: false +allOf: + - $ref: /schemas/pci/snps,dw-pcie.yaml# + - if: + properties: + compatible: + contains: + const: spacemit,k1-pcie + then: + properties: + reg: + maxItems: 4 + + reg-names: + maxItems: 4 + + patternProperties: + '^pcie@': + properties: + phys: + maxItems: 1 + + required: + - interrupts + - interrupt-names + else: + properties: + reg: + minItems: 5 + + reg-names: + minItems: 5 + required: - clocks - clock-names - resets - reset-names - - interrupts - - interrupt-names - spacemit,apmu unevaluatedProperties: false -- 2.56.1