From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 857F034A78F for ; Thu, 9 Jul 2026 04:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783569695; cv=none; b=RZ3MPgssSqXlRQ4dPR34t+1MELSXoralGZ0hcpnpAMRX29pdFQ0jGkrF5zqwepDPHkQGxyY1XLDhqgZoOyXN8wM50CiZqc1MHaEj1mgHtnN36a/JYnVQntFD10SDYHNJ9gkPMFSs+ButkoxInXB4epfmZOiUaC6ySTFjMgehCiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783569695; c=relaxed/simple; bh=tT7VHBhWW/0ENtiLY3CsIjS6UXJSVBBo9toNQ+Sp3xU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iNr81CR0IH9rsBD2sdlyD9OFPpd3zTYfFkkDFnVXKTspS1hsOJsJ0gEszjpU+QIAd7NEh/xa81ypsC8tTKyQLMcrSDnj5FKt54qehybHcGBlEzJSvsm7x187tyaofhnjkLwbIYnvKEQwWPssGczLET3j6YJl+aUewhtZ+3Yk1S0= 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=Q3PV5qLl; arc=none smtp.client-ip=209.85.210.173 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="Q3PV5qLl" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-846970f0acaso469831b3a.3 for ; Wed, 08 Jul 2026 21:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783569693; x=1784174493; 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=z4ITEkWMTQ7J+Xoqp3nk8zHPj5XC/FSGr4Xf18I5rrE=; b=Q3PV5qLlQCCXe1uDAeEROAMtPIPEDYalnKbgOeGFHQaxDIL16jbDswageX2fI4LWmz tPIxrbR69QOSofhkLwRiyOGSyPuZiC0FcV9uhae19jalwPO/6tLF9Bct0xWvzPIg5xer je/qoGQ4sAzb16/7ZKSXxMMCC9Thy9G7cVL14AQQvyiCratUYndCMkje5GPaR1XDnG3r qWYWBFr7NcB194GuOEQJbzEo/OGBJsTfR7ArNy1/txJsGqZjFMB+8/TeApt0LJhDTJ9c vmUV55Q1pxPO/xRmSqQYgHEzahpOWqoXJQGTXmJ2PLAh0+/ocG3tgwo8/hD8KBCoyRet eR0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783569693; x=1784174493; 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=z4ITEkWMTQ7J+Xoqp3nk8zHPj5XC/FSGr4Xf18I5rrE=; b=Ot44/AQebpCC8mFBk2I4tpeq0K0eFMiuSDBDXGwb8X2UfeQSc0yLoF1umpAjozrDNh FztTKsQwSQsMmEmbjwIHsz5JeZoPLQf5s2eEnyZa+aM6QWq0IHDJETWLrDocI0siiiHY ncB/LvhyuJYED9+VYIrSswtCY2vgerraOZf1cDeWcmpsByaO40emI0L4GI4rAvnqJgqA GMScpJJr4xF0CgpQQjp8h+Vd/mc9Ma8P0D9YQpH62hJo07g6jgYNeBV6Am/nMmcA/6kj t1KLTyHf/c9j7nJ8qVLyuhSjQHoMU5OtFRqdevuqDJtZnV+pa9VnAqITvQD6Ssi4Np0X 6GKw== X-Forwarded-Encrypted: i=1; AHgh+Rry4w3mTDj9IIhlbpA3GVd4cYQhwPwctcafRq7m4MY077g/ef2gomZfw/0hrx4BShgSPV3PPZcOJ31C@vger.kernel.org X-Gm-Message-State: AOJu0YwRDeWFcyF+mTt23UpAiOpieDmpH31WYteamolizqJafGHjvk5i UJxaEw3yxQADKwW/J8xJKnPRPN0/NfKNyAyY7SoOXW95gBxHFFMr8Dmo X-Gm-Gg: AfdE7cnFloDAvLC3Do0RFtF0cB82QCdOiK0C7GzdYjIzNbeNhpkGUDDQCy3ST/amknf VBQLC6Zd8r6WE3QnFbL5GrKqL/+WeF0h5+8gjZmx1W2Gc1kSq/AWXR0rmQSi/s6desBu55ReJi9 m+AuuDW/vLA0ABqddJDuW2/q/i1OIsx6uCizZf69nCMGzNszjBJxWHx4NKaFsnOyX7g9wOx3p9g lOpLLMwkPn8I4h5WHMC8cH2uo/W3PNOI2Lcn8TfA0biKfdV0ECxJZLlUn4GKUrh+N5BvCvOCwf+ vDODXK4lQMg9o0gh50MBQ6W3lyaaNAxRKGY1RYrD8pOv4X3rIMNNjcsH/GG9xROloXxMnpO3y8f l8st50lC0/mYVBGVaHSf3ME9Wfl1GYq7qvb2DdlMsBccum0DAob/jMRXe2BU8aaAb X-Received: by 2002:a05:6a00:9493:b0:848:4754:28e5 with SMTP id d2e1a72fcca58-84847542dbbmr4333053b3a.16.1783569692809; Wed, 08 Jul 2026 21:01:32 -0700 (PDT) Received: from localhost ([2001:da8:7001:11::cb]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847f6b6057dsm8064705b3a.7.2026.07.08.21.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 21:01:32 -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 , Nam Cao , Qiang Yu , Krishna Chaitanya Chundru , Xincheng Zhang , Alex Elder , Siddharth Vadapalli , Andy Shevchenko , Vidya Sagar , Neil Armstrong , 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 v4 5/6] dt-bindings: PCI: spacemit: Introduce Spacemit K3 PCIe host controller Date: Thu, 9 Jul 2026 12:00:25 +0800 Message-ID: <20260709040027.958400-6-inochiama@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260709040027.958400-1-inochiama@gmail.com> References: <20260709040027.958400-1-inochiama@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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 | 50 ++++++++++++++++--- 1 file changed, 43 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..54817d6fd9af 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,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