From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 24FB636B05F for ; Tue, 18 Nov 2025 16:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763481777; cv=none; b=mcQB43p0u8azbDZoQES6GvsExrhuZ2QNH0i1eYTNJ/zWbE3aFmT9rLqujddbZEFdS2ZnOML+sZ4hlX8o+sGP4pflWaBGSoG01KYA9HRvYnkLJt+mWkdwmnqXCs6rrrvQwDZtPUZD4tYKpjjrw7gfyruWN1/0hhqVNsbLZktDMQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763481777; c=relaxed/simple; bh=jYvQElvsgNDRjssWl/7N9i2M5c/4dLl+Leh5yhSj/xI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OAy2XRBt0ul6d3eH2Ws2gCR6Sa4c4sF2yyPXmCsNIh7X73fxC7s88ffJfXoxciNwOGGZYr0MXJeY+m7O3vxbMbhghaEf5HR2xmU6zAiIHe1SQ4sBoiOn+qlkHJuugrxT4NoZ+kaTQIGq+INaecHEcyQodUr1eOWLqKUTjCM7w8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zWX4zB/1; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zWX4zB/1" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-47755de027eso39363475e9.0 for ; Tue, 18 Nov 2025 08:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763481772; x=1764086572; 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=p8rPc1Q7Ab5RULv9WRwCkjVSvPd0FRyIZ5xigzgSXKw=; b=zWX4zB/19qQsKEhqkeFCGIYdBncr9/SAgOQnlopgGEatBAo+rG+EBepfwQD1yMDLLE EUmtNkSUVEPRrhqCW68ufSn3zRWK19aX9cI1kQWuNOVqESKCJysEBLpkJcseFwCilD5f Cw4qjyyWiJWeC+7l1NGLQhKclQuzupVAJXPIsa+a400QFAzkL9iYHeX/R/FHBNh4jFV1 txXvVoxieQhXSj3nUvPLS7Jy2U6hJZLwC0T0qHtJZxDq/NdiHxKmrnhMsH+yfXxM9B0C oC7C354Yj+XGWYuV9ejBJyTFSQfY8+7ks3sd22pI7nD/fai6liiAyhWLOhKdSU/ziHwO LhvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763481772; x=1764086572; 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=p8rPc1Q7Ab5RULv9WRwCkjVSvPd0FRyIZ5xigzgSXKw=; b=F2JtNpl8JyvrulfEq0KqDPoT7B8/4eWHhSqnn3ie2jaESFht6LJ7KYV2cGWjC1mpT9 XjcyVzV1ga05Z4j15mtU7+05gNnvgGL482i6qMd3gPYM+fyDq6RCrdPPA1ZcgdCF36FY Jy6wTuXEXwGwoDoiTPJd9sSTx38zqBJgkUjjSLsj/WPz8CvZuD5DTHicMqHrQngPwvct Dbzh6cd9AEtxFR7IrfPseRCqOcYrZHjT9QPFwFglqwpFEeFvL856qG1I2qqPGU6raJjc /FSP3P1+VnvizcymR0uiMWpChgQivAMztsQOCOKbnIauP3gnu0dyBiZZrmvSfK++ip+A IFog== X-Forwarded-Encrypted: i=1; AJvYcCXT6j7Ny7WupvweVmi7EfodkjDD2cN9xnyuAees2SbuHKseSdh6hdX82EqPlGORb97NMtXd7w9wBbWA@vger.kernel.org X-Gm-Message-State: AOJu0YyQStS7VNIw2gIE6veDIWlfU4b7i8LBZy99WIMe5LoetUt5jTGG V5y6IS7/PWpNsy3HwbEOMV+MN/KeauHMmXFjGlQu/2KMP8IpTMy0rJnuz2ab4wLpWqk= X-Gm-Gg: ASbGncumjed/ellNQ7VJzMkUcWt1rI4VJLw+puVADMffmgYlVct5h5SI2tSonVnQ1/t UENFA4hS7hB/cnrafGmzju9/mnqYlsKPfHpiLQgYddONlcAtADpSQhc8+UZgnrO3EFtypgzRNlX NET2WnRwovR0x1AEfnKYS2EXvYY/DDdpp+o1eI2510Rz8xJfz3mtX51B/SqzAkfCADUneJm0p+9 vgqM+2D4nOTXmBmdc2XxUUPERFNGeB+ro0/wM3zpX3ACBEG6TQPmieFHA7F5X9XORe7Pu1oo5lb equ/O3GuIoa5v4nAfCuZPwZP32be7FfYCktEBYREURzUuSjK1bni27lp4oVEXgRVJFbMNm3LXsk rZ1Fpxe1C+iD40N18724dc93FG4HmEEJe6REZ/60N5giDmntm5goMA4ZGOaZRakCd7F6H/8Idwc GAVfRfL8wHiDqjd/gkZPV2pABWh6sVtw== X-Google-Smtp-Source: AGHT+IGyFoEL3zw1qZUaHUanPoDmy73Ha3AJCkV4FBXZ7E2g6BEcYZMSw2TPVNtzaY+tvbRM02dGsQ== X-Received: by 2002:a05:600c:3593:b0:477:557b:6917 with SMTP id 5b1f17b1804b1-4778fe4fdecmr170047065e9.18.1763481772373; Tue, 18 Nov 2025 08:02:52 -0800 (PST) Received: from vingu-cube.. ([2a01:e0a:f:6020:76db:cf5c:2806:ec0b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4779fc42f25sm171954575e9.6.2025.11.18.08.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Nov 2025 08:02:48 -0800 (PST) From: Vincent Guittot To: chester62515@gmail.com, mbrugger@suse.com, ghennadi.procopciuc@oss.nxp.com, s32@nxp.com, bhelgaas@google.com, jingoohan1@gmail.com, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, Ionut.Vicovan@nxp.com, larisa.grigore@nxp.com, Ghennadi.Procopciuc@nxp.com, ciprianmarian.costea@nxp.com, bogdan.hamciuc@nxp.com, Frank.li@nxp.com, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Cc: cassel@kernel.org Subject: [PATCH 1/4 v5] dt-bindings: PCI: s32g: Add NXP PCIe controller Date: Tue, 18 Nov 2025 17:02:35 +0100 Message-ID: <20251118160238.26265-2-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251118160238.26265-1-vincent.guittot@linaro.org> References: <20251118160238.26265-1-vincent.guittot@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Describe the PCIe host controller available on the S32G platforms. Co-developed-by: Ionut Vicovan Signed-off-by: Ionut Vicovan Co-developed-by: Bogdan-Gabriel Roman Signed-off-by: Bogdan-Gabriel Roman Co-developed-by: Larisa Grigore Signed-off-by: Larisa Grigore Co-developed-by: Ghennadi Procopciuc Signed-off-by: Ghennadi Procopciuc Co-developed-by: Ciprian Marian Costea Signed-off-by: Ciprian Marian Costea Co-developed-by: Bogdan Hamciuc Signed-off-by: Bogdan Hamciuc Signed-off-by: Vincent Guittot --- .../bindings/pci/nxp,s32g-pcie.yaml | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/nxp,s32g-pcie.yaml diff --git a/Documentation/devicetree/bindings/pci/nxp,s32g-pcie.yaml b/Documentation/devicetree/bindings/pci/nxp,s32g-pcie.yaml new file mode 100644 index 000000000000..da3106dfcf58 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/nxp,s32g-pcie.yaml @@ -0,0 +1,130 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/nxp,s32g-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP S32G2xxx/S32G3xxx PCIe Root Complex controller + +maintainers: + - Bogdan Hamciuc + - Ionut Vicovan + +description: + This PCIe controller is based on the Synopsys DesignWare PCIe IP. + The S32G SoC family has two PCIe controllers, which can be configured as + either Root Complex or Endpoint. + +properties: + compatible: + oneOf: + - enum: + - nxp,s32g2-pcie + - items: + - const: nxp,s32g3-pcie + - const: nxp,s32g2-pcie + + reg: + maxItems: 6 + + reg-names: + items: + - const: dbi + - const: dbi2 + - const: atu + - const: dma + - const: ctrl + - const: config + + interrupts: + minItems: 1 + maxItems: 2 + + interrupt-names: + items: + - const: msi + - const: dma + minItems: 1 + + pcie@0: + description: + Describe the S32G Root Port. + type: object + $ref: /schemas/pci/pci-pci-bridge.yaml# + + properties: + reg: + maxItems: 1 + + phys: + maxItems: 1 + + required: + - reg + - phys + + unevaluatedProperties: false + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-names + - ranges + - pcie@0 + +allOf: + - $ref: /schemas/pci/snps,dw-pcie.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + + pcie@40400000 { + compatible = "nxp,s32g3-pcie", "nxp,s32g2-pcie"; + reg = <0x00 0x40400000 0x0 0x00001000>, /* dbi registers */ + <0x00 0x40420000 0x0 0x00001000>, /* dbi2 registers */ + <0x00 0x40460000 0x0 0x00001000>, /* atu registers */ + <0x00 0x40470000 0x0 0x00001000>, /* dma registers */ + <0x00 0x40481000 0x0 0x000000f8>, /* ctrl registers */ + <0x5f 0xffffe000 0x0 0x00002000>; /* config space */ + reg-names = "dbi", "dbi2", "atu", "dma", "ctrl", "config"; + dma-coherent; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = + <0x81000000 0x0 0x00000000 0x5f 0xfffe0000 0x0 0x00010000>, + <0x82000000 0x0 0x00000000 0x58 0x00000000 0x0 0x80000000>, + <0x82000000 0x1 0x00000000 0x59 0x00000000 0x6 0xfffe0000>; + + bus-range = <0x0 0xff>; + interrupts = , + ; + interrupt-names = "msi", "dma"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic 0 0 GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic 0 0 GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic 0 0 GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic 0 0 GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; + + pcie@0 { + reg = <0x0 0x0 0x0 0x0 0x0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + + device_type = "pci"; + phys = <&serdes0 PHY_TYPE_PCIE 0 0>; + }; + }; + }; -- 2.43.0