From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 2E02A3043C8 for ; Thu, 25 Sep 2025 15:53:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758815626; cv=none; b=KetZF4mVmF2HUQOXN3gxoYi124WNcDMjFrFsEtDUzL/2Bnut9ZHBjF6RNkbyMnxjvyYc/XhVvPCgy47TKCn0arqmEKTEop246aaxOGqCkY/F31f90T7pviDcy1ljOkXnv879w7Rcz7VhGQSQUaCffHulP5nBBw7migjIkhlqlWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758815626; c=relaxed/simple; bh=vqa5P6oczfhyljtf37ARWG4nhCr1jF20jEq+N4qGoAk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qpCBkfUhmzuTh0H3R5SswpaPwJby4Bj4k5yra33Vf1Hb416IbUI+tyI9CkBvWFTbkgCQYrx/F4WLWPJdEL+uQMk76LnzgyM92LJuMRCMhnuUrFL9jUFdq/Dr8pqVjI5wm3reooiLJ/tKPSd7jBbSwig2IIZLvnj0WYvP1D+a2QA= 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=ON6CbBYB; arc=none smtp.client-ip=209.85.128.49 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="ON6CbBYB" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-46cb53c5900so12669315e9.3 for ; Thu, 25 Sep 2025 08:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758815622; x=1759420422; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aJqNYQ4cdfTFLv2z2ldssPg3Z08F+8b/OmsBnqjGcYc=; b=ON6CbBYBY7xb6rmXno9lxNNU8smXMHCG5OeWILtLySOFg3YO5xiwSBbcG4wbbyHM6U L17X7WGwbD8tQR9a9Y41mjivYaPohcQoqaiqXa6hJ5arT8brd6T+pQp+/U3gCtAJ1hmI x0m1Ni+NqgAbXRPVnf7c7M1jerBxgsuLHpdvaI0hazrPO72m7o4A1HLDryubSggB8SOi 8XEqTnHhc3AFUN71CWhFnTi2EtDLHDkssiGDNLL3CQdEOgRTWq3nlJ9zrBPqua4kqAXo qfoFIzRa8hZcOz0gwLe8v6hu+PyOAzRk1Wv1rU2QO9krSCLB5h7fXpv1NIpN982znRnM nsgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758815622; x=1759420422; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aJqNYQ4cdfTFLv2z2ldssPg3Z08F+8b/OmsBnqjGcYc=; b=bGuc65p+ariQBCKFLV7y8txkaJH5JlLbVnbbB1OmE0pJTrwb2TSTAOgq7qtN7aaIYu cF70hSPjwNsakCgWN6PQhDdO7nBAoDu+qQAYRsZM9u44D7So5gG+NxreTrhP0RPT84+g BRbvYehuUR3CKexg/Etk/PJQO0SDEoQjPRVBDFKDunpNtl9u6Zitwwnzi50ICLyyGabg 3lu9zs/YDO2zNLvnquKwKpNrK4mvtt7L5ib5qrV7xUEEJiqL1y84agCKzjcpdButdLT9 adQErZhpGHuZCj4xGMDsR8PN/lONFqeHNUZwEHRVlIr3Xl1wrrKlW6ezW7+U6wZPUcLi 0cBA== X-Forwarded-Encrypted: i=1; AJvYcCXyTDbZe4sbGuKFmEknX6JB092aEu/N7gG04rSj8HubBqSf74ScU6fbFUCEzjSOBuHc26r3LjQIQHNbme0=@vger.kernel.org X-Gm-Message-State: AOJu0YyxwZXFJAcmSWJnnKqb9+0PEv3Hq5zAKtoaQAPYs8XxW5/M+k+e jF50YKl6srnFZLiUk7EE70RqMljQVKgtjt2tdPcYp4Q7y+rJLxb23pkn X-Gm-Gg: ASbGncu2xQTAvtPbZAysz87yDGcsy11rZmY10mZ1YW5k5cm/QNnJ1W+1F428zWBGiWF tzChPOY/Ios77/ALCUIv6HUQXj/iebRohdRFBWNX2JZycPR+eIkB3v9t1tYcE+9Nm+nzwMTaeuN 7iLBwEl4beGW5Ak5EoEJSkYj8CM0ZbRcTgGogVRA7jqbM70o9zAqyMjqcH3yXXeiNH2XwUzk5S1 92+rbfOP6u/kwtUZM6GZTzrlo5a8+dLHcRm7/agwDvJ/bRwxLUhBrighhEIYXCll5yAnB+MkPrJ J4JuM6X5B5dlM0ahZ0aBdm/pIwxn0mNorxtjrEaMaN83iDn3xyFYNd6wIYtibwYwZ3Xj/k6OHEI BwBQCj2tf/c9mPZ18AyINYeOgLLn2Qa+p323k2oE2ulWHyu0B5kR/uAEi/G0aWC3IcEyohNL3Bc aGnbWoFg== X-Google-Smtp-Source: AGHT+IFdx6Jo6h2Zlp0z9KNqZKsNTsBYY7KcgSjHFZWdKQaN+BPd2cWlPTLOF0WlCzxaWRiRR5GgVg== X-Received: by 2002:a05:600c:8b16:b0:45f:2bc1:22d0 with SMTP id 5b1f17b1804b1-46e32aff787mr40556945e9.33.1758815622333; Thu, 25 Sep 2025 08:53:42 -0700 (PDT) Received: from Ansuel-XPS24 (host-95-249-236-54.retail.telecomitalia.it. [95.249.236.54]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-46e2a9ac5basm98449995e9.7.2025.09.25.08.53.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Sep 2025 08:53:41 -0700 (PDT) From: Christian Marangi To: Ryder Lee , Jianjun Wang , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, upstream@airoha.com Cc: Christian Marangi Subject: [PATCH v3 1/2] dt-bindings: PCI: mediatek-gen3: Add support for Airoha AN7583 Date: Thu, 25 Sep 2025 17:53:08 +0200 Message-ID: <20250925155330.6779-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Introduce Airoha AN7583 SoC compatible in mediatek-gen3 PCIe controller binding. This differ from the Airoha EN7581 SoC by the fact that only one Gen3 PCIe controller is present on the SoC. The compatible have -gen3 tag as the Airoha AN7583 SoC have both GEN2 and GEN3 PCIe controller and it's required to differentiate them as different schema are required for the 2 PCIe Controller variant. Signed-off-by: Christian Marangi Reviewed-by: AngeloGioacchino Del Regno --- Changes v3: - Add review tag - Add comments for compatible inconsistency Changes v2: - Fix alphabetical order .../bindings/pci/mediatek-pcie-gen3.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index 0278845701ce..1ca9594a9739 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -58,6 +58,7 @@ properties: - const: mediatek,mt8196-pcie - const: mediatek,mt8192-pcie - const: mediatek,mt8196-pcie + - const: airoha,an7583-pcie-gen3 - const: airoha,en7581-pcie reg: @@ -276,6 +277,26 @@ allOf: mediatek,pbus-csr: false + - if: + properties: + compatible: + const: airoha,an7583-pcie-gen3 + then: + properties: + clocks: + maxItems: 1 + + clock-names: + items: + - const: sys-ck + + resets: + minItems: 1 + + reset-names: + items: + - const: phy-lane0 + - if: properties: compatible: -- 2.51.0