From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5315AFCC05D for ; Fri, 6 Mar 2026 19:02:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=plIji+KO7wHTen0JQlN+ty+3RJPt6U7sNbwGVctA7DI=; b=d765ydW1oQg8fNM9lWxWgzJ6gY bILGX7luGyE14p81zBIMVqw362EZ5hcbMJXV5YpXpZ/LyV37iwsZKtRy9+6oaKpUEwS6g5VSFzRYi hgTgrGkN5iOcJNoeWSEsbplLZS51X4LjeBe6x/rJvRI9pyWmjLnZ97LDrYO1omj5I9kP454AJnAD8 c2TfRmoHdaxPI/SEq4BnkQL0Jklt/rcj3hUHjzWH6OYgHwUdmNv9Ud98pra2AtpEFbRWnYC6fSvtp n+Cm+wKmN8qAMgwwOIi57AG3vpEz3xym15u8bpqhnARMryHFsyeRmrH65/l7cLHB4SoFGY2rbIf6v zdrZ4iRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vyaR9-00000004MeT-0Vlh; Fri, 06 Mar 2026 19:02:11 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vyaR4-00000004McT-0waV for linux-arm-kernel@lists.infradead.org; Fri, 06 Mar 2026 19:02:08 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-439b97a8a8cso5660708f8f.1 for ; Fri, 06 Mar 2026 11:02:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772823724; x=1773428524; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=plIji+KO7wHTen0JQlN+ty+3RJPt6U7sNbwGVctA7DI=; b=J3DeR2ydwyIkH7/idaTn9CS4NWbK/8kM49ZloyOLH2dJzOSj6jgMeYdrtX9RNMeLug TznaQ4FfWkfa3JH/S8441pRxA8F0B3GRr3mDWBed7LcZEpM04NgnT013pdMxZxmcGQy6 AEgez0yBoPGrKy0BKu1ZrHPuDylv6+3QUNwAlw8p1kSeWR4pHop0oRwqFjwSV6wxSzjM ewQeslVXzvXpV0hXlMGWzgvGbWgMGGi7W+3qv4cu7bTwaZySe7BlmixZqeov4075r2Qn +zs1EQmffMwu+hn5oknJonz30gsi+AzbIl6AAmPag9RuQOpiwBPHB8rNDzBCViq/lGVj n0Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772823724; x=1773428524; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=plIji+KO7wHTen0JQlN+ty+3RJPt6U7sNbwGVctA7DI=; b=FUrsdxatZh9jeK7MgQEwQoo99FwRSK63Dslq++uSiWXP8FzwIDDoEwa55NP/SFcad/ EB0DP/s3dwlB2xMZyQ5qmC42QaJ4bWwknN7lpTklbUzkF8uZK4qEIGD9TabQsHQBu4o4 GdObzNjwzKzjx8DASz7zZsZoptwVu7y2wRgjvRRtsG1GcImgDS0mlWrTGVvZT1IV3t7U 0sNPsUMGZOFM+2yt855ZsFILv5J8utDuT2UH4D0lcOSCZfMjTFzjaNYP7SSCjtm/esOv cc+tKaOoRiLLDIIgKImkagFvHkZO2LRIkFcTJ5PAqhWdkOunXMpwh0IRfv9nCM/Yf5yv 1gpA== X-Forwarded-Encrypted: i=1; AJvYcCWNJmyVOFNCLb2oPXuay528NBxPuN7+OFbZqvivSHGobaV8Yo2xEraIrzsaV2GbB6v29VLwoZu9Ez5UoLe/m1Rk@lists.infradead.org X-Gm-Message-State: AOJu0YxO9bEa9QhCCqKgORU+nxYa7PGD4QAOzkwA8S9FcGJviqOQLqtX tWyuoeGd9kgetq91wAIwrty7ZA9FIRAl9VeWbEiTKHVRhCdbuJjs2PW5 X-Gm-Gg: ATEYQzzq8QHL5fXS7teGGePg8+8JdabY8TBcTXLiuIfb5N2LrHgkkRpRxAqh6sgHMEp vCYZHZgubC5goRVz+R0swdw1CtjIVWkaCcR9UFPBMIBEOKNd9cXj0Lt2xbsrIR3FSAe5j/XuV06 FsJ50NpiDASwWjmErDUhyYmmD2zSR6hl3rYsqrc0XuKtzDjArRLL+4Og4fhdQLQVl9EtcMJo7x6 qvjMIImtrIGTdDDfEruJGfcbIPaY6egff0rzgmOsu+nW4IxqiQQ5RqRSlJO1bax3lcOTindETJH XOV+l/Np6lW44X9OjLby3EtbHkW8Ud6pPG2lAQzawVNyLV12/Z9yr/NXFkmlV6rsCneITMKatAY eof6xTQPTOcLHvXu0e0rIinrZc3D2qYsdrumzvP6YMcxFzhqkmJXD0Ow47zWdR24y8niCfprMym aJpeVi6bijZfLvfupefmxPcHYXkurbNThdI+IB0Bok1n3Yx2RaIfzSXr0= X-Received: by 2002:a05:6000:2404:b0:439:c43a:acb6 with SMTP id ffacd0b85a97d-439da654620mr5734587f8f.10.1772823723545; Fri, 06 Mar 2026 11:02:03 -0800 (PST) Received: from Ansuel-XPS24 (93-34-88-122.ip49.fastwebnet.it. [93.34.88.122]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-439dae2ba66sm4743436f8f.20.2026.03.06.11.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 11:02:03 -0800 (PST) From: Christian Marangi To: Christian Marangi , Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/4] airoha: an7581: USB support Date: Fri, 6 Mar 2026 20:01:49 +0100 Message-ID: <20260306190156.22297-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260306_110206_283166_A7E30C5B X-CRM114-Status: GOOD ( 16.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a major rework of the old v2 series. The SoC always support USB 2.0 but for USB 3.0 it needs additional configuration for the Serdes port. Such port can be either configured for USB usage or for PCIe lines or HSGMII and these are configured in the SCU space. The previous implementation of a dedicated SSR driver was too complex and fragile for the simple task of configuring a register hence it was dropped and the handling is entirely in the PHY driver. Everything was reducted to the dt-bindings to describe the Serdes line. Also the property for the PHY are renamed to a more suitable name and everything is now mandatory to simplify the implementation. (the PHY are always present and active on the SoC) Also other unrelated patch are dropped from this series. Changes v6: - Fix kernel test robot (sparse warning) Changes v5: - Add Ack and Review tag from Connor - Implement Ethernet support in the USB driver (testing support for this Serdes on a special reference board) - Use an7581 prefix for USB PHY driver Link: https://lore.kernel.org/all/20251107160251.2307088-1-ansuelsmth@gmail.com/ Changes v4: - Rename PCIe and USB PHY to AN7581 - Drop airoha,scu (handled directly in driver) - Drop dt-bindings for monitor clock in favor of raw values - Better describe the usage of airoha,usb3-serdes - Simplify values of dt-bindings SSR SERDES Link: https://lore.kernel.org/all/20251107160251.2307088-1-ansuelsmth@gmail.com/ Changes v3: - Drop clk changes - Drop SSR driver - Rename property in Documentation - Simplify PHY handling - Move SSR handling inside the PHY driver Link: https://lore.kernel.org/all/20251029173713.7670-1-ansuelsmth@gmail.com/ Changes v2: - Drop changes for simple-mfd - Rework PHY node structure to single node - Drop port-id property in favor of serdes-port and usb2-monitor-clock-sel - Make the SSR driver probe from the clock driver Christian Marangi (4): dt-bindings: soc: Add bindings for Airoha SCU Serdes lines dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY phy: move and rename Airoha PCIe PHY driver to dedicated directory phy: airoha: Add support for Airoha AN7581 USB PHY .../bindings/phy/airoha,an7581-usb-phy.yaml | 71 + MAINTAINERS | 11 +- drivers/phy/Kconfig | 11 +- drivers/phy/Makefile | 4 +- drivers/phy/airoha/Kconfig | 23 + drivers/phy/airoha/Makefile | 4 + drivers/phy/airoha/phy-an7581-pcie-regs.h | 494 +++++++ drivers/phy/airoha/phy-an7581-pcie.c | 1290 +++++++++++++++++ drivers/phy/airoha/phy-an7581-usb.c | 640 ++++++++ include/dt-bindings/soc/airoha,scu-ssr.h | 11 + 10 files changed, 2545 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml create mode 100644 drivers/phy/airoha/Kconfig create mode 100644 drivers/phy/airoha/Makefile create mode 100644 drivers/phy/airoha/phy-an7581-pcie-regs.h create mode 100644 drivers/phy/airoha/phy-an7581-pcie.c create mode 100644 drivers/phy/airoha/phy-an7581-usb.c create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h -- 2.51.0