From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 B90613815D2 for ; Tue, 24 Feb 2026 12:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771935598; cv=none; b=mUW3HpLm4TVWsgfxAC42nNg/xmX4VPJPS7D1EaoUDinONxPuIrK5pxVPtvT6C8CpFmLxFb5t/iXg18v662qu1ASs2RlYIpfkt9cxwkjgiNW5q0bSx1fmJ0vy7ERusxOwdrKhAai9u2c9o4cex82YvVQ0CAjY3Z66el2qBQsDm1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771935598; c=relaxed/simple; bh=a15gvvp+Y5fZlu/XEV0GqfIuDaHqBSVDDZ/1cfRlK54=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DgFrgb8ypukl6Akb9gzK6w7UAzOWVC8J8VzTPRnKLRnnUwD7ZdZH6+1i+KFbW8+6mygW3UWHJQT6TP9UQqazClSAiqbUwij/AghfcRFoXU/NPkluPLT7c2ul1K7ORWs43ykeJGf2IQrjJlLRRMiqe4jgnZO5DrYKevnC5BxO2GM= 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=FNELsXrj; arc=none smtp.client-ip=209.85.210.182 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="FNELsXrj" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-824adc96ad2so5461952b3a.3 for ; Tue, 24 Feb 2026 04:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771935597; x=1772540397; 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=RVGEkSHpVszbSEuz8gxEX8sx0htTMLCK4ylQEIc8lKU=; b=FNELsXrjstFMRvTp8mDk5aEjKSoUczQGjiAwssYlllLRxIroPMDdw706CPQoM3+fRS fy5HS30nE0oxEb9Nbndw36s1EIfc2rpJ8jIuCYZDnUV1xTErcRZEOLGUZds50GmXG2OE JV3e5vRY5tC0mAXNUrkMQjWk8w4R6Qwe1vVpCewFv5Zp2eyaKq6k7DegVbnLGaLuvD9k ts4bYIQHDGpuxpGx/Uwo2Rt2sOezkGG5V8XNnY5RR5WJcQR7UOekNhdbRWA0wXJ/o84o 0l0bR/W1VIqwH1wFfPxagyUgz5jUl5UflMW8kS9Uq+53Lb/Ns5s6v54MLfqplVGrJk8a BHjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771935597; x=1772540397; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RVGEkSHpVszbSEuz8gxEX8sx0htTMLCK4ylQEIc8lKU=; b=TcMFl6wgFMs9MhAjgOCr6i+NW1vrYKfElmVNR0beZeSY1eDM1hclJE/jmyaudU0aLU AhLvK9Vt7vqxAHg+kO+nRui8qvi8y0ElmuUSNCnTs+4at88pMlnLx1re+tvQWhGhK/A7 iBoLo0xrtOrtvJTMxvKjJ3d/ot8tZuhIHYlFUIR3ww9L2557FoFQhtva6ivsiWzTsXB1 GcySK05fJU2QfOLkduZ019R7oPjw02czxok52TFJMEynVCexQlmhbcoXkdNLCz21x+tY skChaBCIVa0z5nuLu8Eca00HafT78OpBT7u0IcIf6AlUwDMYbdodtbNpAnP9LlS7RrUG 6vSg== X-Forwarded-Encrypted: i=1; AJvYcCWtMW7uoa5D8uzrnMUKEDHKUfwib+h9YyNFqwbHn6y39YhSR3On9sYzQZuFr8yJbma4iOiyGPR/3xrn@vger.kernel.org X-Gm-Message-State: AOJu0Yyi33GfbF2hXfSAWlq2WiN8j92yn7awzT5amwCLBDddF6+Gh43y JRUCZZcjI9mTBUwSV7uyKTruGxIIAsdBfy8zG5tMQH/DBnxGO90Lac+o X-Gm-Gg: AZuq6aLp5P1gAtJTkeulWHF8ozWTol6/dUrQQc8iunz/qbXMgTu1NIr6JDgZjzBn5/2 +V4QrxF+FZQvQyH8zLm2EYDjUkurJ5F5ZpgLoK0Pygu3Ne6570hwf7gZYb3t2wRrDZiRCHn5vDi lG9o9jRr6Jw4WV7aOoglbUyij/s8QCaOKC7TIHc0pJRUDRjcCvOaEsuGeP+7tjlLXPcyelrYeIV CJQ04XF8enjaMEvtIF94P1+nxBjkNcmIucTMgb1yhpCf5FI7i1oV6RE8HQjWqgb5ytCqK6sAY8/ Omudi1et+J+xaOF4E+9KhQdYIX4u8BeqQ4x5wT5lQltu7OQUoIKkDQ3eyX+bZQuoh2Iy0o1ZKrO q+LGU2e4Mi83xLpeTwuEebl56F5Gh+V+H2O64e3ZkEkF42ZKsY2UJOlK4vP5lTA0K4YZieDE4Km pGo+nXQ4Oc0FrXReA56Ak= X-Received: by 2002:a05:6a00:440f:b0:824:93e4:2ddf with SMTP id d2e1a72fcca58-826da8c0f3emr9998493b3a.13.1771935597103; Tue, 24 Feb 2026 04:19:57 -0800 (PST) Received: from rockpi-5b ([45.112.0.78]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-826dd8ba11bsm10613950b3a.50.2026.02.24.04.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Feb 2026 04:19:55 -0800 (PST) From: Anand Moon To: Thierry Reding , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Hunter , Aaron Kling , linux-tegra@vger.kernel.org (open list:PCI DRIVER FOR NVIDIA TEGRA), linux-pci@vger.kernel.org (open list:PCI DRIVER FOR NVIDIA TEGRA), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: Anand Moon Subject: [PATCH v3 0/5] PCI: tegra: A couple of cleanups Date: Tue, 24 Feb 2026 17:48:56 +0530 Message-ID: <20260224121948.25218-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi All, This small series provides two cleanup patches for the Tegra PCIe driver. The overall goal is to replace custom, open-coded logic with standard kernel helper functions. These changes improve the driver's readability and maintainability by everaging modern, well-tested APIs for clock management and register polling. v3: Fix the DT binding for nvidia,tegra-pcie.yaml tried to address issue for Krzysztof and Jon. Added missing regulator and new patch to fix the device tree check. Added missing entry in MAINTAINERS. v2: Fix the DT binding for nvidia,tegra-pcie.yaml switch back to devm_clk_bulk_get_all to get all the clocks improve the commit message. v1 Added new devicetree binding nvidia,tegra-pcie.yaml file. Switch from devm_clk_bulk_get_all() -> devm_clk_bulk_get() api. Fixed checkpatch warnings. Tested on Jetson Nano 4 GB ram. jetson-nano:~$ lspci -tvv -[0000:00]-+-01.0-[01]----00.0 Intel Corporation Wireless 8265 / 8275 \-02.0-[02]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller v2: https://lore.kernel.org/linux-tegra/20251215141603.6749-1-linux.amoon@gmail.com/ v1: https://lore.kernel.org/linux-tegra/20250926072905.126737-1-linux.amoon@gmail.com/ RFC : https://lore.kernel.org/linux-tegra/20250831190055.7952-2-linux.amoon@gmail.com/ Thanks -Anand Anand Moon (5): dt-bindings: PCI: Convert nvidia,tegra-pcie to DT schema arm64: dts: tegra: tegra186-p2771: Fix invalid PCIe nvidia,num-lanes PCI: tegra: Simplify clock handling by using clk_bulk*() functions PCI: tegra: Use readl_poll_timeout() for link status polling PCI: tegra: Use BIT() and GENMASK() macros for register definitions .../bindings/pci/nvidia,tegra-pcie.yaml | 528 ++++++++++++++ .../bindings/pci/nvidia,tegra20-pcie.txt | 670 ------------------ MAINTAINERS | 2 +- .../boot/dts/nvidia/tegra186-p2771-0000.dts | 2 +- drivers/pci/controller/pci-tegra.c | 237 +++---- 5 files changed, 621 insertions(+), 818 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/nvidia,tegra-pcie.yaml delete mode 100644 Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f -- 2.50.1