Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp346220lqm; Wed, 1 May 2024 02:19:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5r9ngdJWk+uc+xqV4o6LkWmJ3359BVd4Kh+kJgw0adx3R6PvecRdLbrJQHJsPyTckFpeKaocL3Q+zeeP58+zi13BXzctHyyxwkmD19A== X-Google-Smtp-Source: AGHT+IHmtbhtHRshq1PUTc807WxXR/HDaeXpQQjWIU2nsPFeRaUWDW77RGM1fztvRnVVj4VhARU/ X-Received: by 2002:a17:90b:3bc5:b0:2af:4a3f:df62 with SMTP id ph5-20020a17090b3bc500b002af4a3fdf62mr2052456pjb.6.1714555190235; Wed, 01 May 2024 02:19:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714555190; cv=pass; d=google.com; s=arc-20160816; b=EEFvCrMdg7BN7JU4rgIuXCOoAqWut8fJYkRYUHC64Z+/F9H60FO3r4ats3MlyhHAbN TaSQ7mKRrujJwVR9cEglNzFQFQ+uhKgKfVvwI7u/InFcYC0+YMOZqTseT4MJpXxqWhuG Sp0uRYXLJcjwuExtjfsOQskj/aj2H0Hw5H42+oelLtjk13XMjzJ5s9sndE4vRKU0TxA8 b+/iZLdfJqRB2a22f7avMjoexiMO6Qcggrj6cwgOpm73qYBQVMvAPerRk/3gg4Vq24UK A0uuhLSG5YtsRcUchfosLa3Deg0rYPaYIKQ/Idah1XFCQhGdVrfm2OteOHkqscqCZckD xycg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=IU5666ZgVnJUhWYrIKpU1fyu97lInGaK9ybimnvX8Wc=; fh=tFSSxUUJcCMuCOqEFN7j8CY7+cOSIqr5OrU7ypWQMKI=; b=D0xs1rve8CHuvZdu/lumUGIuDupMSeG9xaWYJEKUwHy8Lo9criaOUDDEdUtfeNCL+M sc5G5eUt060TorsKUXe2C5ZdIxoFeBwWHBvVXhCYuwiO8vjMxZxlbhokS7sj2//WNmEV HSCLa4u4RuLaOl7lyzi9qs3yTHGDfJg58JbXE5mReqbO5M+SXhZJgpL5gKzogiCMc4d4 ue76TjQ6cjWwRGLfGhlgkVNsXAicxjXx6HyseSW4+jBXJcPXJ6O2XwXRdqn3QG6IMXoG yTEfc0DBOefw5ZRB7AUZ/w0xwWpsPOfCtDIhGZ20Xp5acHG9zXBsSCao0T2caGmciEnc T1Fw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WDjoYGB9; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-165076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lc3-20020a17090b158300b002a539f46c08si1138095pjb.39.2024.05.01.02.19.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WDjoYGB9; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-165076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D1C57284670 for ; Wed, 1 May 2024 09:19:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D7235102B; Wed, 1 May 2024 09:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WDjoYGB9" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 D8577502A6 for ; Wed, 1 May 2024 09:19:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714555180; cv=none; b=SDnYcsnTtM3/4y4iqjeAhU6ld+1wIODeC6rN4ttv5Q8dW2Xa3i6iTl0eKCUK/4bLm5c5eIIz13kJt9O5UA+75xnAeyVO/1nkCmNQWo3OXDInQCRV28Ray6yTAH+eFUhxIaZC1jhiZi7gknaTShHDw8reNW16cDBcGRIKNgpYd/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714555180; c=relaxed/simple; bh=vOiHeEPDJN5GlmzdRmXiBwTTBEgNxD0YW3MwZ4O0Zuw=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=sCuhyxep2tAyBUuzVfGGGkoj4TiKqBEnnLCM4cezhwwV8NXiBQhGg27iCWROhq7S+r31fmRCE8G/XBEZnaf3qnqV1Ff4Gt4g+fUpTYrZTbZHPg9zqI/V4SybRiMiHWSBR/9Nhp2hkuRnDE+ATy3rqNF10tUUzppylZiYOY9TekE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=WDjoYGB9; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a55b93f5540so895935866b.1 for ; Wed, 01 May 2024 02:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714555177; x=1715159977; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=IU5666ZgVnJUhWYrIKpU1fyu97lInGaK9ybimnvX8Wc=; b=WDjoYGB9xWSwByFJ4M8d3ZoITb4mHcB9toVxy8G0Xoix6yTHcnqO9rrUrEkCpu9xXT otz1kB4MKlo9e92Wa/jOwb28tJKf3TAHWKUg10FUzwnUOIIGlJ0r9uUBjWUfCNP6R31h 0OWT/7Zm54Ng793dXx00dBiOdQWGvG5I3fjsooKZMWfX1NuwdHRa89waIeL84MubpiJL ZQyib9LQGcQBqKvpW+p/UUgOd2mS4WG//uKbHmr6r40uLW1bEPpBuAMG3CaTr431wWtA hxs9H6ZINhDJ9zf85ZjshOO+TrUhsfo8JiVWei0DBUkR6BzEHvwk53Q6jBkIXzRnHe4d MbWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714555177; x=1715159977; 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=IU5666ZgVnJUhWYrIKpU1fyu97lInGaK9ybimnvX8Wc=; b=CrpvyJgVs3rG4GvWDSDLq5TnpYPGXhj81/a6u3vdKaaHG2hVPUX/T1UKZWjjKcg2HP 515mcDaddNFuYnUqjMJRJcJRsRDATjN5rECEtZiP1FDbXXzOmJL3huAfus22F05mFcrg MKBZhWnqyX238AM/3g63qHMh9pnN4LNYE8QBNDYrtRel83KOKR91kTVIC1URvsJELzF5 m7Oz4+Q+bqRFcwxnM0YZyX8pbFAT27E18ABeO11vrYzfxRBUAQzgsgGJ4f/Y0TgLuHKL IMWKYZU/dO0QKIZw1oy2yPr0o2g/MYYaqBLhaTnxl7ixOtrGJpBpa4eNTvebGhBZNREV 0PNQ== X-Forwarded-Encrypted: i=1; AJvYcCU7T5DEZ0V0qdsUrs4p59dmJihLfLBMCdfTqMRES7PBgaHfEf4Gj5PN+GNO0j8KuurlqQaqb6jxsB0/q+Hwx4bDKcYEqWcYc9RRkFVT X-Gm-Message-State: AOJu0Yy+af9s14FffBUUlbdHdOZctvTq8yYLuHvVS6n+CmMRby/P+diY daO4rTGZZEnn3suYjdiweV+N9E5MZlp/UfA2eLK/ez7GfF+oe5iKO/trjU6H29Q= X-Received: by 2002:a17:906:2c16:b0:a51:982e:b3f7 with SMTP id e22-20020a1709062c1600b00a51982eb3f7mr1404669ejh.37.1714555177187; Wed, 01 May 2024 02:19:37 -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 bw13-20020a170906c1cd00b00a58de09fd92sm5425674ejb.27.2024.05.01.02.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:19:36 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH v2 0/7] USB31DRD phy support for Google Tensor gs101 (HS & SS) Date: Wed, 01 May 2024 10:19:35 +0100 Message-Id: <20240501-usb-phy-gs101-v2-0-ed9f14a1bd6d@linaro.org> 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 X-B4-Tracking: v=1; b=H4sIACcJMmYC/3XMywrCMBCF4Vcps3YkkwQKrnwP6SKXaTogTUm0W Erf3di9y//A+XaoXIQr3LodCq9SJc8t9KWDMLk5MUpsDVppq6w2+K4el2nDVEkROj8apl5HChb aZyk8yuf0HkPrSeorl+3kV/qt/6SVUCH7GLxxgXob70+ZXcnXXBIMx3F8Aa6V3tGrAAAA 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 , Arnd Bergmann , lee@kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.12.4 This patch series adds 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. This version doesn't change anything around Krzysztof's comments regarding syscon- vs Exynos-specific PMU APIs, but I wanted to post a version with at least the simple fixes that are necessary as well applied. Signed-off-by: André Draszik --- Changes in v2: - avoid having nested else/if in the DT binding (Rob) - add missing bitfield.h include - Link to v1: https://lore.kernel.org/r/20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org --- 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 | 61 +- drivers/phy/samsung/Kconfig | 1 - drivers/phy/samsung/phy-exynos5-usbdrd.c | 754 +++++++++++++++++++-- include/linux/soc/samsung/exynos-regs-pmu.h | 4 + 4 files changed, 756 insertions(+), 64 deletions(-) --- base-commit: d04466706db5e241ee026f17b5f920e50dee26b5 change-id: 20240423-usb-phy-gs101-abf3e172d1c4 Best regards, -- André Draszik