From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f43.google.com (mail-pj2-f43.google.com [74.125.227.171]) (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 AB17B368D66 for ; Wed, 23 Sep 2026 01:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790128287; cv=none; b=OAu/0X2ok90kUJOuvKgGtMI8pE3vWGlG2O0fmTbjg9BW4gsmVflzxd8tHr0oJY1KtVQES/HUpGB2+qoQejdS81TzMy08ldm17wJxtA7fFiN68QtBnrN7GShAe1pCUgtmIWK12vfuHLeADcu/U897aIArJzbn+IPmAaxWP/2Tq9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790128287; c=relaxed/simple; bh=K3MvCrFWzEsIrhBWqxeXc3gdx6o84wogtYscdysHXgY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FseqwALLtRVuWs1HS9nsWfwJKKxbCPhPdA4oRq3RVceDvbdp0CCFfhfcAl7m8SEvXyuQ9DYgrxhoiz+GXDt5s20G+0zZILM5h3muVKHJL+ZccnzoYVtgj3rFIL18iYwPero/53fQ1Lo+vqUwa+btoAVsp3OWpEIz4F2+UaeM/OI= 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=IYy+jVNO; arc=none smtp.client-ip=74.125.227.171 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="IYy+jVNO" Received: by mail-pj2-f43.google.com with SMTP id 98e67ed59e1d1-39b9184fa80so318706a91.2 for ; Tue, 22 Sep 2026 18:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790128285; x=1790733085; 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=IYy+jVNO8gGai7oroWThR4rrgPBs6JPxtafEtpevXzFIrf7NqyAwomdY7knJX6eeHd ZL3BTDmzishepDYD1iUhSUj60WZulSePYMpGiqYSITxxKZzKZ9LovpcWgj4vpvKd0Jl9 4b8H3FFnyhNw4sJXNqYI7AROYNkJ4qDCpv/lAwkfCVFsaugzoRUR7iVjgFRtIkv2OaJf TmbXdU6o1jr88bv+NQbgWnbrt5XsF64vNlqfUZVYrAZf5v8Fd3TlraTHPhbRaJ+QmAsN YvJsTS2f4e2axs2fUtbl2ypyQp5B5QCK7p+GtR+KuY+VeKzPoqkQ39bpFmAHvbUSVwOk HA6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790128285; x=1790733085; 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=Qpo4hT5VgtQupfsPVGVJJjxFBvsnPgeu/dcbMSL3y+IjdAl9W5m23WIQ8lk04W1THh HuMM/I6jIYigQLMQ+I6Hc5ON2UbyzeJdbnvt91e6fQNE8gPOjUeNE1fvJJsbLslIt5me KrBp3Sc2DDeMfq6t2jP7DokcWQ9lp9lxCg3F8qj4GDMrz577jMGtmy6Nf3657u0TZAT7 tgi3u1ubGoYe5w3AvYtrxCvf2YDeQ79OTH2rvi9uujV+Me3KFZTb1tohh1d6t8ggDVvn 7gmY7i8La/LBQarlrg+KUSzglp0ziBKIa0zWgRNN+jjxpD+yMTObXNAXp0Xtnphb1tOT 47jg== X-Forwarded-Encrypted: i=1; AKwUvByuLrFBQ919iM9SVyddZWVgYu8CrFflPyetxvV++aVZFz4ptozCBapJymy+M2Zz3QAiNhMYFpfN7jb2cNA=@vger.kernel.org X-Gm-Message-State: AFuF++l1VVeZR9r7h2z6KJcrlKyDMsLLIA7QKcWMNWP7P3JC80TlTTig 85g801f+BQf00hV0g9+HndmQivuVwFarmg6riB63uGHCNW/Zh3Gl/kzM X-Gm-Gg: AYBFou1gBS1uMq9yW8DNbg/TtQkF1JvSz0SIKdvk+sebXKp55+E3Ivgz+PXwgh0tX0M /GYZmchRkbqqtFbXKEXqrAAznUGCi5FTPv+xzoIoA+dThy18wv0qt6BHkSN95+qH9bosUPaanI6 otnCIgns1nr11fBi1ZdPw6rNdxL9/oFlO7Hehztb/xiJgr1Q0rwBuuSMc1bZPZ8q8PAzsPtzFvT W5j4roedyTDAJXuH2YNtSZZefDEbrghMv1SyWB9ma++FUX4xXqQUrH91j+giXrJkzME9Z9Qh1hz XgwepJpWhtlvb8rj889Tz07UPIAeuDZYXW49cQ4XX5BFWbOmACopsPqCedYqjn8qPFznC9Fqn0R q6gtoq+CPaDbNkgDM0WqLoRsuE9Xwc4z86Vfo6IhHgz7hrWgTBWwXxRhX9y5j4Rm+wkPFGryEtv 5gLbg+3uQhpdG+yrSDhKlGzoEkPCwhTkRcLPCj3b3Sbqec9q483/0f1F15zQ== X-Received: by 2002:a17:90b:5646:b0:398:a486:81ec with SMTP id 98e67ed59e1d1-3a07e54a847mr1105625a91.11.1790128285046; Tue, 22 Sep 2026 18:51:25 -0700 (PDT) Received: from localhost ([2001:da8:7001:11::cb]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a07dc01df8sm1881084a91.10.2026.09.22.18.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 18:51:24 -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 , Niklas Cassel , Sherry Sun , Arnd Bergmann , Christian Bruel , Sascha Hauer , Vidya Sagar , Xincheng Zhang , Alex Elder , Siddharth Vadapalli , Randolph Lin , Andy Shevchenko , Neil Armstrong , Marek Vasut , Inochi Amaoto , Pengpeng Hou , Ping-Ke Shih , 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 v6 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller Date: Wed, 23 Sep 2026 09:50:14 +0800 Message-ID: <20260923015016.64069-6-inochiama@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923015016.64069-1-inochiama@gmail.com> References: <20260923015016.64069-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