From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 8989F346A18 for ; Sat, 23 May 2026 08:30:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779525039; cv=none; b=JHQTxYsQ3sHMfLmmIeuLu6hG6TuuA+pBNhKfgrnT1gJeheGvkz7fp9EAjDWSKbNpbDHUgbYaibE0JZ7GCCs6sEAl1Gv7+UhdiIfMiq+q4M/n1AQ6jrRMKunFqOGSltrYw8p16RWHySSyBhLdtMnuxR0ZeeMXj2QdZyb4VdEj4pc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779525039; c=relaxed/simple; bh=fEm494wmzT4RCYgvTiN2RENvJG88iZmHcUw+ah91irA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=X8Z0z2vciJ+FlcCfzabw281VLMvmndF9MR3DtjoYbqYk3EE1uXKAqOBcV4R/DE73D/B/+oNyslWi1x8nIsDTuBaOhWHYEQkkC5XA/GgSeMtnvmoKHPM6oU2mojiLi5dMm77pNX+pXC/hVc0FoMJzr+Eo1Snmw5+MB/Onlycj75E= 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=M7c9W00v; arc=none smtp.client-ip=209.85.208.45 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="M7c9W00v" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-676a89de629so13272875a12.1 for ; Sat, 23 May 2026 01:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779525035; x=1780129835; 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=By6RxEVxkPMqf6JEO4j7N7w8dmHsRgJCqXPPkFDGEcI=; b=M7c9W00vYOZfjhS80p9r+xQ6/II83qBp3ghEm4PXDN1BIw9kr/jAL/3BtzV4iXN2yl cLrg8Tkzggkc6lgpnA0WoAlGu+tawJXBmLeqlTTACw4mD3X4CU7d/x9hQZ1DeNE2rYSq J/0VQ+v3LpsDyvXG9ZJA32dPNeeOgyjuIDh61fL3SnHWFVYNM2z73NRI1+biW92B2PjF /CT+IJgqD6OANK2n/QtxXVY1NppOzuBA4xapXZU2o2rEh742Wx69GFhPdra645i+jNuI i8z3y6V0qJbLHcjqPmHGW5j+7mcR2fGqNmlEmpqw4pPMVK/cf6XR75dDAXtphEXR6k8A YiwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779525035; x=1780129835; 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=By6RxEVxkPMqf6JEO4j7N7w8dmHsRgJCqXPPkFDGEcI=; b=Tbzg33MvwFaq4+rAwPM4RAuG0YPTC9XDCML2GJa/UTl0hRLfn3XclRGl0Mk8SKcQZG 6n4CXLFKqhS9skopJDcoFHi93/qoeNMCNqphLyUCYRhIFHROCdQ7Uvxi9w9OMhA8VSvi 5wF+IYxLxrDTfuQtq87ShzwcZXWJ36eIBiJOeQUACRuQZMwqIQzPoy89VgpUEcww4TNJ YEmPDXgFjqc0SjS4TRYtU23f1zHuNdGbKl8EBRVCnJVP7hjoBvUSLmXtVZCmwFkixugK NTi3l7oDx52cBOIvB6AO19pQzpbyUbWPib7djQO6/4VEPYBK1j8ERLFcjr2+kYTgKsS6 ppjw== X-Forwarded-Encrypted: i=1; AFNElJ8DsZOz1+0iF/9VlqPWIw+fWDF5D6wsun/lWFWHU6MXTISlpsbvGve+UyIqAXOe03ErgoVlynGSmJbt078=@vger.kernel.org X-Gm-Message-State: AOJu0YwIPHT00WiMmMYDrzrIgQ7PbjEYv5rPgCCIdZGTe/Xz9VAmFZQv Wlo+iw20+k3t3QW95jH9bZnYH5NPq3IYrAklEo1djP+rsIyGgbkCkjmA X-Gm-Gg: Acq92OGenGWLUu9yaYnCfYz43GYcL4bVoBliRtKqx8ENNKHCw67kC9G1UvpCxxoX62G AjcMGHpwUeKFCv2wagaJWu8BrjfbeELyiGU66KNe/YfLSqT/BJbPUn3OkMqMF9Hz5/zJjHDb5gw 6ighjhB3vZFBXgt0y30lxHMiBkibjkqXkDlLuIZi2ukhxRjQt3qSO++R1oUnwfBxSsUPagiD2o2 esOY5txqLfC4SZOBaSP2GDrE69Xq0ENmKXI8V5buHpVZqSKy6FnqWiwRc39ntYp5ujW0jziX6xp DKIRBxriVl0dkJyQn6o4n53QSTEWGf0iKFFriAtlFhnQU5WhrNfbp5oAl+go4u8RAdypFKK+9LI XQfMh/j8DpiCUXls2eKDDKDskPyu3o9EY4+Jsz/ZzuzWoFZJEIP5QcK1Elx9EeZyahb6KLBGrU6 NNezEgXp9GCsXX X-Received: by 2002:a05:6402:4015:b0:672:64b:c97b with SMTP id 4fb4d7f45d1cf-6889c94e8d8mr3738190a12.26.1779525034751; Sat, 23 May 2026 01:30:34 -0700 (PDT) Received: from xeon ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-688bb62b6dfsm1651856a12.30.2026.05.23.01.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2026 01:30:33 -0700 (PDT) From: Svyatoslav Ryhel To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Peter Chen , Svyatoslav Ryhel , Xu Yang , Peng Fan Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] usb: chipidea: tegra: Add external control option Date: Sat, 23 May 2026 11:30:08 +0300 Message-ID: <20260523083013.46372-1-clamor95@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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patchset adjusts the Tegra-specific portion of the Chipidea USB controller to allow for the disabling of automatic PHY and USB controller registration. This is achieved by adding the nvidia,external-control property/flag. It does not affect any existing configurations, but it allows the USB line to be registered or deregistered by an external device — in this case, the modem. Since Tegra USB PHY holds clock gating for controller PHY cannot be handled by code Chipidea mechanism. This patchset is a part of larger series aiming to bring XMM6260 modem support for Tegra devices: https://lore.kernel.org/lkml/20260511135703.62470-1-clamor95@gmail.com/ --- Changes in v2: - separated Tegra USB into its own schema - tegra_usb structure moved into tegra_usb_phy.h --- Svyatoslav Ryhel (4): dt-bindings: usb: Move Tegra-specific Chipidea USB properties into a dedicated schema dt-bindings: usb: chipidea,usb2-tegra: Document nvidia,external-control property usb: chipidea: tegra: Avoid controller/PHY init if bus is externally controlled usb: chipidea: tegra: Expose tegra_usb structure .../bindings/usb/chipidea,usb2-tegra.yaml | 95 +++++++++++++++++++ .../devicetree/bindings/usb/ci-hdrc-usb2.yaml | 22 ----- drivers/usb/chipidea/ci_hdrc_tegra.c | 43 ++++----- include/linux/usb/tegra_usb_phy.h | 15 +++ 4 files changed, 131 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/chipidea,usb2-tegra.yaml -- 2.51.0