From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f40.google.com (mail-pj2-f40.google.com [74.125.227.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D7C7483814 for ; Tue, 29 Sep 2026 08:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.168 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790671103; cv=none; b=V17ADRbXES29Rfns7t6ygpogrhvlqX5O1jhW/DZNB50lOQiwOQQHW+HGVX/hhybcQw8OvJ4pcU/Shzuyqh67Aai9SQcfL6ytScDg0iCVvpfOe9fFkMC1cDhFiZrBt3yzQcrv/VcaybSf5GSjEWRUfGytBEW5NLuIjhEj0eOGKMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790671103; c=relaxed/simple; bh=K3MvCrFWzEsIrhBWqxeXc3gdx6o84wogtYscdysHXgY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V4CBazEhdpsRUCJ7PmP3/4KXBTOQnSwSE3hAlZso2vpJMHrxrCxKnjY8jL46fySLR+slIQKvCJAydLvjTuuijvxskrZi+dMkCSwdr0zCCj34iXTPr3vwYlRT7tkZ2V0K2PS9r/1roUHCAHfpOZWU5tcxMcpQ7V50Z1IFI+RWMyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nGQg65Ay; arc=none smtp.client-ip=74.125.227.168 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.b="nGQg65Ay" Received: by mail-pj2-f40.google.com with SMTP id d9443c01a7336-2e22e123350so10625225ad.1 for ; Tue, 29 Sep 2026 01:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790671101; x=1791275901; 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=dcDcKCilMboIAKoprvjC5MEiUMCPSH4NgyIgQJv6TvI=; b=nGQg65AyuobhevuMHzwXsnFs5qSjLgL/SMKFiRLqkn5HbwApKD1PFOgTfbk2D9rAAN /PwEd7rZAbZV+za9AKfzee5S960k9F9wOiq0yL5bOAYrkHky7IdOM/wV5Xt8ASeFErv1 fjs9JRwFSmh7vc5I1u90+VKe+vX2FXQkeqH33peS4mgwbU0wVu11EV5rx5CPr2eHT/Rx GcERUxtPVI49/NvGycvMEFlH+SDe2wA66aRzKWbFQe8pJQgVhVMOYxBFyy44bfYjMXt7 rv4b61/32R4n8Da7tMooWqKVDvHlFW4UCGkektdBbbPHVtfT21MHpCfBMpmYcuoaR90O nZpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790671101; x=1791275901; 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=dcDcKCilMboIAKoprvjC5MEiUMCPSH4NgyIgQJv6TvI=; b=XZr4aQoiRKo9cc0VYhlamn1RkvYfs2JWnnvZgctnwGposL5kh+MRk1zfi4AW+Ny/rd YUqF4XLbjzMbvfs2kYERX92Jb4BmRAzhEIvKFibZKOLz7L8wvPYMAvT3a6Yxe7ib48w5 XS0FD8AkdUOH8+TNucuuhwYvqsv4r1nflZz6KkQo0FJb+27Vr5W9rBgslXwt91FoySje SokYYM7sTQAZ3EvAZPE6tVK2saH4MeAmHP0SkUzCqESZFHGqXvbcXZmPNYIbs2lNRu9k RgoJ5OZ2fF6R1p2ek+Z9xtdU5z9ErSumIvAQmfXO+7hJvhG7HvrdJUE/AvmWBSUO3ebV Eu+A== X-Forwarded-Encrypted: i=1; AKwUvByHDc92kRDxi5c7JamV7hLwBoVnHNQ4OAVxQYsCU1D0jeC9Q+fadS+lGRq78H6mRmG2ar+wbQtxu55FgZw=@vger.kernel.org X-Gm-Message-State: AFq9FYJTK1vVwbP4cQEz8p3TH0lUU3cBntlDZB1awRmAxoULWAv+bXj3 D4xIZMGyHRZ+RaFltK/0f2l1QFiMs7zZ0ALarjljP9e+DzzE++se1AHW X-Gm-Gg: AYBFou2PYaQPKjEdJEe1hal919Uv7b2jSq/eAgxeaDIuK3xPWVxpK7tw790zg99iG7S GHKpr4SuieqCHPoikKSVjecInLGnOBXbAFH8iJz3z7ApErmoFcmX0dOY7H48LTI83PHpw67TslF HhA7kiHTmQNvJSOe1Y59gl/8oS89SVTKyBkupWwHAbqHFfx1t8DGTpclbu1SZZ9LB9w4sgkyr0j DYPSLguLEggzasP4oCosaeJEWM7no1B+bOfhblwf8E4KdAj0vHivS0jdqM7hNEIfYq9k1wvH3/K 5ym8m/JIWg8TAB9oxmn+RgZCyzPo+ao/JZ7QPL2NyPyYKRamQeQUAz8z5HT2nivVosdVrCB01IG n5fd8aOckjPuqetwEdtsJU7KWHwZku6vT3N4Nywhjxxy1IWoUm6+mjXgDS8YbHTTt/vwYBmG6Zf u7e+aZx7P2VCkuwoafpoX+YceeblIStMmiVwVMesjGDSLrvFjN+VXhwAhqdFXGhnjKTMlQ X-Received: by 2002:a17:902:d4c8:b0:2dd:c100:80ba with SMTP id d9443c01a7336-2df7e669010mr123382255ad.53.1790671100775; Tue, 29 Sep 2026 01:38:20 -0700 (PDT) Received: from localhost ([2001:19f0:8000:3e6e:5400:6ff:fe38:3d01]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2df9142b002sm51326225ad.50.2026.09.29.01.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 01:38:20 -0700 (PDT) From: Inochi Amaoto To: Jingoo Han , Manivannan Sadhasivam , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Frank Li , Arnd Bergmann , Niklas Cassel , Christian Bruel , Senchuan Zhang , Vincent Guittot , Randolph Lin , Xincheng Zhang , Alex Elder , Siddharth Vadapalli , Andy Shevchenko , Marek Vasut , Inochi Amaoto , Vidya Sagar , Pengpeng Hou , Anirudh Srinivasan , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= , Gustavo Pimentel 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 v7 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller Date: Tue, 29 Sep 2026 16:37:51 +0800 Message-ID: <20260929083755.458238-6-inochiama@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260929083755.458238-1-inochiama@gmail.com> References: <20260929083755.458238-1-inochiama@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 --- .../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.55.0