From patchwork Fri Feb 21 15:51:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13985747 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.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 22F691DA612 for ; Fri, 21 Feb 2025 15:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740153129; cv=none; b=LOdDkLjxh522iSXH6lhnf9/lTfHPoWtI60+E1oLYIvVmdYicjK2VPI6s4TFqf/qt+37HIJ9GrNCJgSlgut3GMRMeBzwVG+TIYWU3CtxzAUgcmcRm5WGEmHw+PkCnuAS+l9m0JW5nyeB4KaUexsko7VvKxUEZ3qbJ/3iBW0/eY6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740153129; c=relaxed/simple; bh=JahFK35Qr0Io9347nU+Txx7gAacIFQAoJak3GUjm8gE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=JZpAUzb/3h0OBPasuxi8yG3NZFjLOwBbv6DMSgyELNduWhztvVD46scfa6osCZJMh22HdYc01qZuHYiqfaYJ82Gkq5U+SC1QOUJ/hzksoRZV3xl8MhdKogXjZ6j4N2/HVQC5rq9KGpg22DOEpg4F/zgQgAA0KnMxvTyABNW4KQs= 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=WokrI6x8; arc=none smtp.client-ip=209.85.167.49 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="WokrI6x8" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5452ca02bdbso2126622e87.1 for ; Fri, 21 Feb 2025 07:52:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740153124; x=1740757924; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=2ZtA6gER0t3smsGWjpoDMnkV2uURH+P/8hvhROLXvN8=; b=WokrI6x8tZsFN10C8M9gENzzx3oh3JnWF/JCR3Zy6WmBjprZFB14PwIDWbTtzAdX1l ZdYeoGK+qy0EMKrAGlHL6BXFJMne37IBx2OfRSqp3+0J7lL2biokYoQDnOfMtRZxWLE3 UIN0vEJthwzgl6W/A97ETISA/v8A26ORTqphvkLrgyvJaGlvQiLtrPDPy4GS0urYYZ3q 69ZBOz21fe7j4piWKqdcg8wWEmPmv4tu01jQeiyM/6+V2vsO4q0uHLPu96/mn+GCVOFk o1z4In0voLnT1b0HEFuckdR4jxRlMzsxII/qYAyv9zOZjSAanBlBs+QuxbxEHYci7iJl JPtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740153124; x=1740757924; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2ZtA6gER0t3smsGWjpoDMnkV2uURH+P/8hvhROLXvN8=; b=b6mrA/qGZtkWV1IFHRH4tbUcKGOB2q0Ecd67//DNUb//ORS1REWhk50wDqUpC+KvTb dvh1IJfnz4jklAqki/UojNs7L8vTmB9vOxnMuzqXEgqoqbhSV9oOKqOnsdqQxJzFIdYn qJ1+yvL6sfeX6ee/toQJLUFgx2boqQjHQseBnA9OgafaqIXF87bhNedAGmFj7BoTB8aX KuOPchLmrL6xTlzUOGJa63zDj/q4E42J9kGDuBhPXpvCBV2ZxWVKUxQjrCo0BkVhlCcb +jt3G+QXKr4aGFjo7/c2mYXAF1+758uaVguIijHPOOgPALuAxkxZaboXu6kBeULiz3Mu oZvg== X-Forwarded-Encrypted: i=1; AJvYcCU6WPK7rOsVfjiUenNAjun/JL+gHtDrEQAVUP0b28iEogP3It8HnJkNEFbFSD/p6v+O/W5QSzcygyqKMFeI@vger.kernel.org X-Gm-Message-State: AOJu0Yzfgme7PZr+Ulvg9rIxuXsvZLkbuQAqKgT02C/XkRtLrV6uN0PK VRjqz8rkT3Z3mz5uJwt4lX4HQEfSTwaffVxiR26Kt11kmixHgzGILGy0TUvZ7N4= X-Gm-Gg: ASbGncvwAZjIW1a2955iJEM9V8Le4vyU18LF3OPYevuxGd9riYSZfojkJh++y/Swypq wJuqGYZr4Cx5LxE0VIWfbeUCYNAJEaPvWyNnseNHFh5/qlOGRiKpUKs75Q0q33XQwDphn8aC/Xv 7IlHlM5uxRAPGOnYB6zEno0RmQjvnWAgqhrO0bEw7wXxtzKVjvYPyNzqZsOW4HXIaRcMeldrA4m cGq03DVq/kwCCT8F41jfxylJbFoeeaaVda1eAFZrEgSAi98zPGYslHHvklamFqWn2BrmlGzPwSl rbgHmU5Yj08kUEPVeX3+ESAx+3YIYqTkB52T+uhl/OXHBTf11qD1Fbe9QPZwE/uhWOpApw== X-Google-Smtp-Source: AGHT+IH24nj/+JcB3IdIVoSNCh56OHj1lA8DaTNMuTacAa8nbrWyfCud7p9RZVdo/FpZKbuFg1GvZA== X-Received: by 2002:a05:6512:6cd:b0:545:cc5:be90 with SMTP id 2adb3069b0e04-54838f5b069mr1508800e87.35.1740153124193; Fri, 21 Feb 2025 07:52:04 -0800 (PST) Received: from [127.0.1.1] (2001-14ba-a0c3-3a00--782.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::782]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54816a55851sm287643e87.27.2025.02.21.07.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 07:52:03 -0800 (PST) From: Dmitry Baryshkov Subject: [PATCH v3 0/8] PCI: qcom-ep: add support for using the EP on SAR2130P and SM8450 Date: Fri, 21 Feb 2025 17:51:58 +0200 Message-Id: <20250221-sar2130p-pci-v3-0-61a0fdfb75b4@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAB6huGcC/13MQQ6CMBCF4auQrq2ZDmDBlfcwLkoZYBJDm9Y0G sLdLayU5XvJ/y0iUmCK4losIlDiyG7OozwVwk5mHklyn7dAwEqB0jKagKoEL71l2UBvqKzNRVM jcuIDDfzeufsj74njy4XPrie1vRtUAx6hpCTItuoQyGowqro9eTbBnV0YxSYl/KlRHWrMtbWNr lsYho66v3pd1y/TdxnB5wAAAA== X-Change-ID: 20241017-sar2130p-pci-80dae35a67e8 To: Manivannan Sadhasivam , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Mrinmay Sarkar , Bjorn Andersson , Konrad Dybcio Cc: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1997; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=JahFK35Qr0Io9347nU+Txx7gAacIFQAoJak3GUjm8gE=; b=owEBbQKS/ZANAwAKARTbcu2+gGW4AcsmYgBnuKEfg9XRcaDauK2KK12W62KTWukdFCVlmoefv kSDMvE8QzSJAjMEAAEKAB0WIQRdB85SOKWMgfgVe+4U23LtvoBluAUCZ7ihHwAKCRAU23LtvoBl uDXjD/0aZ67KX/EaGS0bBaOPZQlG7Bv6xwpHwPggPuT8tq5ghFcWqw5wMLnjXSp9vXHNxXQtikQ jAwXoZ/LpI9MttQfxwL3Sn57iayMqc3tdSNLFPpVJHdHK1UX/ytwFd+RGIcjqaR/x14k7QdmEsu eF07m8gvYzKPugGpZoYReovIunZTRrvXWcmyMN/kLchijxK++U2K5988hXieWORxieLBR3/oZ6F INuXFa6gc9HdkQ2I2yddSAZRaHN/eiOmI+C/+pRsJBLvJq7EM5ih9PYJ4+ZyfMF/7TYRiQUnXuO 0tWagzgpVDwtQK4AbkRxY68PfdOJBStWKo0P5yzHbhdRgYhkVYcEX5k6xRWwvZYmI6RPU3Tci8C 17HY29j6EkrjL+mmKAjG29JjlrzomGpLYWznIXYXk2eKHsIfSGQugOIo2TssTLfJsxIXXorkOJV 80aYMeYQmAYaiefMWFFmppguCJ+QbjwPr/LyluNwLoXLsSqd1w8vCxnkdsowYCqgBnZLevhWj6V sQ+hF/QuQpbPqCB5HDtzKSByA8647b46I4k3unaTW8MEqiMaB3Vv7EiAwX76EcAHWUE5406J2CP gRpnO9fTTN89TRO9lZYY+ddUQIkTjhJfg2zBu9XwVq6rYppYI9eKgZ/ueFxS8FXeasEKuk3N8PE O+qL8I0Mz2XD6Bw== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Update the incomplete SM8450 support and bring in SAR2130P support for the PCIe1 controller to be used in EP mode. Signed-off-by: Dmitry Baryshkov --- Changes in v3: - Rephrased commit messages, adding notes regarding ABI breaks (Krzysztof) - Added missing minTems (Krzysztof) - Reworked schema, merging reg/-names and interrupts/-names to a single conditional clause. - Added dma-coherent to the list of allowed properties. - Link to v2: https://lore.kernel.org/r/20250221-sar2130p-pci-v2-0-cc87590ffbeb@linaro.org Changes in v2: - Rephrase IOMMU commit message to stop mentioning eDMA (Mani) - Explain why it is impossible to use fallback compatibles (Mani) - Reformat names to vertical lists (Konrad) - Use ACTIVE_ONLY for cpu-pcie interconnect (Konrad) - Use tags for sm8450 interconnects (Konrad) - Link to v1: https://lore.kernel.org/r/20250217-sar2130p-pci-v1-0-94b20ec70a14@linaro.org --- Dmitry Baryshkov (8): dt-bindings: PCI: qcom-ep: describe optional dma-coherent property dt-bindings: PCI: qcom-ep: describe optional IOMMU dt-bindings: PCI: qcom-ep: enable DMA for SM8450 dt-bindings: PCI: qcom-ep: consolidate DMA vs non-DMA usecases dt-bindings: PCI: qcom-ep: add SAR2130P compatible PCI: dwc: pcie-qcom-ep: enable EP support for SAR2130P arm64: dts: qcom: sar2130p: add PCIe EP device nodes arm64: dts: qcom: sm8450: add PCIe EP device nodes .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 100 +++++++++++++++------ arch/arm64/boot/dts/qcom/sar2130p.dtsi | 61 +++++++++++++ arch/arm64/boot/dts/qcom/sm8450.dtsi | 62 +++++++++++++ drivers/pci/controller/dwc/pcie-qcom-ep.c | 1 + 4 files changed, 198 insertions(+), 26 deletions(-) --- base-commit: 6b063ae40049a93bc662cb0c1653a691424b11a1 change-id: 20241017-sar2130p-pci-80dae35a67e8 Best regards,