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 D6844CCD1A5 for ; Sun, 26 Oct 2025 13:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fH81+qdeCPwTMJ4qKxMFdZUzbl0Nl+/FxxCUOrPQKxE=; b=ZqJVmKXrM9fGG6 WGXzXTX2jZmb1GzkVjW5/jk8DdA42Y8X3rUFFQ55wsM1OyARI4aJ5j8QNmxkh6l2QqDz3BFa6Ry/R CJjx/qYU5lHQkXPi7oyvdcVLdahJJ0XuKGjcylQc484TtUviyhxT7i2i1harCf/iDV7fJ+XjjUajl 460emqh+6nWtEPa004am8qK9xB+WtvnDBOywG82/QBDY3bzm5kxvsG7VZJFKZrvr5vgkyCQ70XCQO gRnTqXuLBQe3C4PUr9SOssVOUavQeW4BkCsCnzBIFBoTkwB04lEOiRtSzTno2w9YssADCnJscj8rN VxWN6qphT8L/TIgFj0nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vD1AL-0000000CNb0-1CMS; Sun, 26 Oct 2025 13:52:13 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vD1AJ-0000000CNZo-1Y9D; Sun, 26 Oct 2025 13:52:11 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 87E5660347; Sun, 26 Oct 2025 13:52:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 01868C4CEE7; Sun, 26 Oct 2025 13:52:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761486730; bh=Qn6+VQWRGWVLcW0LssIvm+mf9owqObJv5nvDTG7kjhs=; h=From:Subject:Date:To:Cc:From; b=aKxdhNuQdMAqLyJJpBm1CJlbszRqcjpNKtSxr6zksUikCgbt5Gqcdd3feAIzOcdd+ 67NNPc+n8P57QeLa/uAtcPSxUV93nIPJOQxA8N/+W994+hyc5o7Zo4HUTY/+Fc9ZHv sdLlxk3YCeiqIqtPVI5NnXtKtdqtJebXCDZXb3zeuu1OLze9tuy2/WkgYfHpVH0kB2 cUF2yP4ges7dI6Wy7xRg6S3rgQX70rRhZzt8rrBTiWwKIjPRHEuhdh19wmEby1JP3V P/KSDFjrg6SWyCx2zoNGLY0kV1jP5khuX+tEpsw0WgnG7+CQngVdMGLUAEOirrf4RC 0qSn51nTX8FSg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2449CCD193; Sun, 26 Oct 2025 13:52:09 +0000 (UTC) From: Sven Peter Subject: [PATCH 0/3] Apple Silicon Type-C PHY Date: Sun, 26 Oct 2025 13:52:00 +0000 Message-Id: <20251026-b4-atcphy-v1-0-f81b1225f9c6@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAIAn/mgC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI1NDA0Nj3SQT3cSS5IKMSt0Us0TzZEtjyxQTQ3MloPqCotS0zAqwWdGxtbU Ao+uRLFsAAAA= X-Change-ID: 20251013-b4-atcphy-d6a7c939d417 To: Janne Grunau , Neal Gompa , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sven Peter , Alyssa Rosenzweig , Hector Martin X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2495; i=sven@kernel.org; h=from:subject:message-id; bh=Qn6+VQWRGWVLcW0LssIvm+mf9owqObJv5nvDTG7kjhs=; b=owGbwMvMwCHmIlirolUq95LxtFoSQ8Y/9cbCqdWGKQsYCn5d2ifVsPLRfIcvzk98G7jLLzGrz ffxu7mto5SFQYyDQVZMkWX7fnvTJw/fCC7ddOk9zBxWJpAhDFycAjCRxeGMDFue8sr92Bp8TmvR s5BvQt92xoscVm+tFb+Y2ui6Isr0719Ghn1tK9uWvH/mJMu/873vC277Ntm3b1Z3VllJ55ly7n2 Zxw8A X-Developer-Key: i=sven@kernel.org; a=openpgp; fpr=A1E3E34A2B3C820DBC4955E5993B08092F131F93 X-Endpoint-Received: by B4 Relay for sven@kernel.org/default with auth_id=407 X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Hi, As requested in the previous version of the Apple Silicon USB3 support series this one only contains the changes required for the Type-C PHY. The generic tunable support inside driver/soc/apple will also be re-used for Thunderbolt later. I may submit a RFC for that this cycle but I don't expect that to land before the next one so it should be fine to just take that commit through the phy tree as well. Changes since v2 of the combined series: - Link to v2: https://lore.kernel.org/asahi/20250906-atcphy-6-17-v2-0-52c348623ef6@kernel.org/ - atc.c: - Removed a bunch of outdated safety checks from atc.c that were only required in a previous version that did not rely on the dwc3-glue driver - Addressed Philipp's review comments: - Added documentation for struct apple_atcphy (and a bunch of other things while I was at it) - Moved the mutex guard from atcphy_dpphy_configure to atcphy_dp_configure since the first one doesn't touch any shared structures or MMIO - apple,atcphy.yaml: - Added a generic apple,tunable definition that uses uint32-matrix and refer to that one from the individual tunable properties - Adjust the tunable description to make it easier to understand - Limited all lines to 80 chars - Used > for longer descriptions - Fixed some typos - Picked up r-b tags (thanks!) Best, Sven Signed-off-by: Sven Peter --- Sven Peter (3): soc: apple: Add hardware tunable support dt-bindings: phy: Add Apple Type-C PHY phy: apple: Add Apple Type-C PHY .../devicetree/bindings/phy/apple,atcphy.yaml | 222 ++ MAINTAINERS | 2 + drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/apple/Kconfig | 14 + drivers/phy/apple/Makefile | 4 + drivers/phy/apple/atc.c | 2279 ++++++++++++++++++++ drivers/soc/apple/Kconfig | 4 + drivers/soc/apple/Makefile | 3 + drivers/soc/apple/tunable.c | 71 + include/linux/soc/apple/tunable.h | 60 + 11 files changed, 2661 insertions(+) --- base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787 change-id: 20251013-b4-atcphy-d6a7c939d417 Best regards, -- Sven Peter -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy