From patchwork Tue Apr 23 17:06:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13640409 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 D8D82C4345F for ; Tue, 23 Apr 2024 17:06:47 +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=qEjyJZlWy7bb/kWuNnxq++VEzsZhlzwjO5MV4kDXI4E=; b=Tfl0jiQdSwkHTt 3+MmGBUsZ7FFWCPGweqtXg7Z7rhKJ2+rUCZ4tnS+n4xTcB/A52rRspIqNIV/9K6HvJ+AJstZU1jC6 F40yQKEYuh+kCKz11JZ5k2aEaHrA+vKSO2S82ZRqR/lRL8zNFqp2ZRIKT4BdJaPvSiWKPecqzxIIe p5GOxIWWmm4CUe2aQASEGtKbf4oABcotFKwPK1FIe4Do4FUgxF5DvlUVM0LxYe6lEB5Q2or2xtRuG TPDr2wr9dLwcNI/D9wHNHfrxxCN07jRyySJETJ8uKMekcjk5Ejqb7IAcfWtgZaLTFvXfFQI3avFYl bnO8H12IfGZJ3d71J6GA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzJbD-00000000sFQ-3HnZ; Tue, 23 Apr 2024 17:06:31 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzJb8-00000000s9U-3uhm for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 17:06:28 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-57225322312so865276a12.1 for ; Tue, 23 Apr 2024 10:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713891985; x=1714496785; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=BF47HR8rwGnW7a+NGpGna006XTjqIwQDe3zUQkmwlF4=; b=tXBGXl9zXAAwjutM88KxXu3vSirgYQQGKrAAmo4+e/TYzdebHnyw/O9RPV5//N0NcA KzKtiBevYZrLwHdfLn7UGLoDgatP8jU6B1+iE4DfDS9Ij9FJBfaYOvIfQcuP1rnU+4Fj /fCL/WQ7fDuei/m6ZRzfYUAcPGjA0KlUuL4/xhaPl/niBFx/4FPkLAUu7DOoOb0ySMgw 1lKB4AgGQSHhquhQ20cttH5W7W4EL4jr9CSWVDsrYia41F+4k9nBFg78UBdBZ7VTImWE z/dkoP4RpprWbUwA7WkD1Yf6xK5GN5pmweXdovDpA2RTsdRs2vZMM/C8yPvaIa+AzjGS 833w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713891985; x=1714496785; 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=BF47HR8rwGnW7a+NGpGna006XTjqIwQDe3zUQkmwlF4=; b=PBeRq2opdz/YH0bJ5h0XqjTs0vFavxgld/ClW5ctQhnkrc40dwONxhzgN5iqfLMapH m9BlZZpz5V5cXgwWeonZEzbw5+U7q7pL4qy5GBsXIwsTWgpZbv7zsLc41d80e65W+V2j ncjsqBlhpMMLWi/fNB5kxPE39RJm/lf6CuuGHYn5tyGMlRIcUZWRtzT4QhbIMrm3o3/V d2PcgFh+Cz6IPp7XyEJxNDY4mjyvUlJDDKw42fuQMrtH4p6DE/SSQQPCEcoVusyhYbGv 4pH6FPQEdl1bo/2//KLSUzmPjQgalnOq9OumlY28tMsJ5/jgxUBBjeCBFZAD2MluYzSQ 9ang== X-Forwarded-Encrypted: i=1; AJvYcCX7SH1C1NotvcmgKUfjArclQ7nsD50b0ZD3H53OJ3g1ON6IxcKZBqzdXKOqWtXCd229ldy+qNNjrHCmC1BvkRvIvHWSCKDhDvA8foCO04CVIvVeM68= X-Gm-Message-State: AOJu0YzPakDLhrfbcMTPW1lxG/pTRQGYJfLOczqSQGgD6s0RtVj1Bqre EIEifXiwFao+7aM5t6QgSRjEK1g+kOnBt7J02FesuwcF35qFsbZ72ir0SIEGHEw= X-Google-Smtp-Source: AGHT+IGsJUTYp6jPj3zCnglMqmn8IdnSJ9732oBBXj4sEuFPOsBM8m9lsAHScdfHBSn55C1oqSfAww== X-Received: by 2002:a17:906:259a:b0:a46:65fd:969d with SMTP id m26-20020a170906259a00b00a4665fd969dmr8177311ejb.71.1713891984836; Tue, 23 Apr 2024 10:06:24 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id t22-20020a1709063e5600b00a5209dc79c1sm7351624eji.146.2024.04.23.10.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 10:06:24 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH 0/7] USB31DRD phy support for Google Tensor gs101 (HS & SS) Date: Tue, 23 Apr 2024 18:06:02 +0100 Message-Id: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHrqJ2YC/x3MMQqAMAxA0atIZgNNLQheRRy0pm2WKg2KIt7d4 viG/x9QLsIKQ/NA4VNUtlxBbQM+zTkyyloN1lhnnO3w0AX3dGNUMoTzEjqm3q7kHdRmLxzk+n/ j9L4fADc1WF8AAAA= To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Marek Szyprowski , Sylwester Nawrocki , Alim Akhtar , Sam Protsenko Cc: Krzysztof Kozlowski , Tudor Ambarus , Will McVicker , Roy Luo , kernel-team@android.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?q?Andr=C3=A9?= =?utf-8?q?_Draszik?= X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_100627_046508_EBC1094C X-CRM114-Status: GOOD ( 10.85 ) 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 patch series add support for the Exynos USB 3.1 DRD combo phy, as found in Exynos 9 SoCs like Google GS101. It supports USB SS, HS and DisplayPort, but DisplayPort is out of scope for this series. In terms of UTMI+, this is very similar to the existing Exynos850 support in this driver. The difference is that it supports both UTMI+ (HS) and PIPE3 (SS). Firstly, there are some preparatory patches to simplify addition, while the bulk of the changes is around the SS part. Signed-off-by: André Draszik --- André Draszik (7): dt-bindings: phy: samsung,usb3-drd-phy: add gs101 compatible phy: exynos5-usbdrd: use exynos_get_pmu_regmap_by_phandle() for PMU regs phy: exynos5-usbdrd: support isolating HS and SS ports independently phy: exynos5-usbdrd: set ref clk freq in exynos850_usbdrd_utmi_init() phy: exynos5-usbdrd: uniform order of register bit macros phy: exynos5-usbdrd: convert to clk_bulk for phy (register) access phy: exynos5-usbdrd: support Exynos USBDRD 3.1 combo phy (HS & SS) .../bindings/phy/samsung,usb3-drd-phy.yaml | 78 ++- drivers/phy/samsung/Kconfig | 1 - drivers/phy/samsung/phy-exynos5-usbdrd.c | 753 +++++++++++++++++++-- include/linux/soc/samsung/exynos-regs-pmu.h | 4 + 4 files changed, 757 insertions(+), 79 deletions(-) --- base-commit: a59668a9397e7245b26e9be85d23f242ff757ae8 change-id: 20240423-usb-phy-gs101-abf3e172d1c4 Best regards,