From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 CBA2C23BD02 for ; Fri, 3 Jul 2026 02:00:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783044055; cv=none; b=DWpvJ9lxKOLkbECk1gGH3wG5VafoGWrO4KUqP8i43qDDV5DfRRf35i0IIf5LoUsI0sxRLUjgRtPsAXfFNpRJ2JStkyqmc591NVuFjFmOzNCrqATjkkaXjoKNWuC9UK+F1Z6D6IfbxXuMwihz2lBZ15VSg8KAci8FbNH4e2NuiJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783044055; c=relaxed/simple; bh=jxRLXze+30Bd3HWJshR/WJ/vpy4kHy3z4wUO/puyrSc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S1Kyyo8lJm29trQGGbLZKxXvbbfFQz4zxC+3yBuQazIhSDyBg44+CdaiM2wuVml+L+KmlxQ0/gefhtL02nwOrPD4M51g73d2bR04Jq93SFZaokCIRL5dV5S3TTKdvm7YJZ7L1Vu17SVvn2/TaN4L3tW4Pk4ndArc12GTSloQWcs= 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=FHEiQf4Z; arc=none smtp.client-ip=209.85.216.52 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="FHEiQf4Z" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-381216921aaso64448a91.1 for ; Thu, 02 Jul 2026 19:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783044053; x=1783648853; 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; bh=sSnOb5hOxX9yUplIfdpmrusjS/RN2Btqas6tLO5wHZk=; b=FHEiQf4ZFxMay8wPTlXRe35gUHz3Nsz2HVHHhkWlrt6aX/0Yig2twPUyOMFqqL8rqc fwPc0CRznz2Cok1b/Lci5PNwdcJg5DF21G1agHJTvYaBYjq6Hx5yWbRWUeH5XK/Ah2SZ CBJFAH0GG+hiWN1gtBP376bGPjYz4DunqD9dlThPrWav1ybSuJyonYtwOOfctHbPhV1a j0na8HqiU732duR/qPDyABU6LQkb9MKlT8iqREJe3a/OEYnFe8wMH/DCEUgvnMhGq+oH 9WlPfHLXEulwECXAEL1SMNEbYPQytuvrThKGB5tLlA0hsafuemSLU9N4IWnMiP9LOnr7 aJvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783044053; x=1783648853; 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; bh=sSnOb5hOxX9yUplIfdpmrusjS/RN2Btqas6tLO5wHZk=; b=aWnujebKMwIBzlmJe/+UMvBAToLpjmcTH8fnmgNJ780/dzhkIRZXBk7yZEFetwnvGb BxCTHa3HWz3wFmK1Dx8GJuPSPbujI0ZD2qHENFHNVqLYwNTlNRWte31fKdQnFwEX/sBa T2tl7fwgkUu69dbQkBweaj/kbcjEj8ovaqtytoWts7A6TqKDUxI+LIsEjr30TAyqI9C5 DmULPb8dyAxV7BKofuqVVA01K09bHejExEIxxbswMqzIut4TO331lr39tOf4cvidC9XP nQ9dX2OwQSOgwlS+kPZWBVt5ZHviq+LSqx7S9QPPBT5ayEJj4aQpG/PTKQ7LxqYghCsl rhOQ== X-Forwarded-Encrypted: i=1; AHgh+Rq/4NrOs04RtHHTZrlys0nT/lUgABrEqEoFSV4QmHy9PH+eFa6D+1XZOzO0y3NCCW970HRD6aQ49f2JWRQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyUUEPzbgLJ786/Vw0Rl3xkyaigacMA1zMPx3IzVD+aLPOkoS9o kvD3DQamvc+HtrTCFl7f56FCC08rMKPrf04fqiq7unbCn/iy81NvrX+I X-Gm-Gg: AfdE7cmpVKV2Xiowp0iD32tjiyn8SGZslM71e/FgUkbbzaP3dZAfE/tKKqXF6kcxRtt dgru9LFEqpreBu62FcZ9lB0G29PaJNhsXcM2SFJDDuNIX7fEnuqXF/01z+sa8gXrBJk2FadedcI UXrTTbqg9YYYX8ugXSPD5hEcpInpXlwXKpZNON9n94B29Gg7qmfXMKSLAvJEfxSBYr/nbLVBxID j/+cAzQ2SagKjUS7wCjDEdQdqSubqT0R9VQMV2UuEV5zYyP6x8+ESN36nMksoLm18E/yARpk3wc 1o8sfbVzg1F8EDjjORgVbRRMPSd3RZxcSu3S9dryING1fuUbpU4AXcIJx0KfSmytYVuQyda0k89 bM3sggr9WgFdnUeEggr2uYOO3UeuKgDIaeAs9ndQeATZgJa6FHEuZg/0BmaPmzq5qSTa6QBPBPw 0qxRPodgYql+s= X-Received: by 2002:a17:90b:4f4b:b0:35f:b6a1:8d27 with SMTP id 98e67ed59e1d1-380aa184432mr8707455a91.18.1783044052854; Thu, 02 Jul 2026 19:00:52 -0700 (PDT) Received: from localhost ([2001:19f0:8000:3e6e:5400:6ff:fe38:3d01]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38127adeb21sm189517a91.1.2026.07.02.19.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 19:00:52 -0700 (PDT) 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 , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Christian Bruel , Inochi Amaoto , Frank Li , Neil Armstrong , Andy Shevchenko , Sascha Hauer , Xincheng Zhang , Alex Elder , Randolph Lin , Siddharth Vadapalli , Vidya Sagar , 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 v3 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller Date: Fri, 3 Jul 2026 10:00:01 +0800 Message-ID: <20260703020003.485436-6-inochiama@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260703020003.485436-1-inochiama@gmail.com> References: <20260703020003.485436-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 | 46 ++++++++++++++++--- 1 file changed, 39 insertions(+), 7 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..720951b4ba77 100644 --- a/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml +++ b/Documentation/devicetree/bindings/pci/spacemit,k1-pcie-host.yaml @@ -14,26 +14,29 @@ description: > PCIe IP. The controller uses the DesignWare built-in MSI interrupt controller, and supports 256 MSIs. -allOf: - - $ref: /schemas/pci/snps,dw-pcie.yaml# - 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 +69,8 @@ properties: interrupt-names: const: msi + msi-parent: true + spacemit,apmu: $ref: /schemas/types.yaml#/definitions/phandle-array description: @@ -84,7 +89,8 @@ patternProperties: properties: phys: - maxItems: 1 + minItems: 1 + maxItems: 6 vpcie3v3-supply: description: @@ -96,13 +102,39 @@ 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 + 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