From patchwork Tue Apr 23 17:06:03 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: 13640402 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 88815C4345F for ; Tue, 23 Apr 2024 17:06:34 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kj+Yjhg6N1SP3rro8nOq/M2qKV/VCyT5ge9skOwTnWk=; b=0HzlCFR0fhxeFe dmoNQ8pR+JMLppVogLePLhz2hRGd791N7yVajOm5CVEzmd3c1MMHEnOu6FGSr5ZiI0LDLxXH2kJqk 4VUwbXk3VJCb9miv8qLH1ln9Y9UvP9St1c1p9Senrsd3DO+L13VMxtxjUA21d8Ti+IZ3JNi24Y3Qv H7Pp6Ezyw/pcgjI8nS6MXIAxbbj1E+bMSQtONMng9d48qKcR+sv4YU+4phyfGy1mjsze5YIC6eRBR BC0zZH37MQbLsuc1d/47yqYmXHk7CspNqNF9omqeVRET7wySOKTN+OIrvQmfQYI4ejlZUOAYccscg JaPez9+IStXDDEPaH2xg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzJbG-00000000sGa-01pV; Tue, 23 Apr 2024 17:06:34 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzJb9-00000000s9Z-14ne for linux-phy@lists.infradead.org; Tue, 23 Apr 2024 17:06:30 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a52223e004dso569069366b.2 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:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=AmVOMAacL5XFgxZMBxM5qRIgA9vpdjsgMSXx5Z5N0AI=; b=DTYqFvE6y78VDrTPGVpzt6GxC1sU3S0paucTrzk+rhFRO5NvfGxI+C9KYxYi3EcZ++ 2rKF1rDidoZCbDyR3mO7yVBGmzHWQhIvGnTwYCnnw18GQ03DP9zBPIEIQCQZ4x/fT+Oy TL6k6/kWGX8l7xBKm6oMtz1gLy63H81vu5IpZUO1Jj2fnBx25JUvoT9xQfh6bRhKVk95 qSW2SUESy9o9wO0o+YVAmcgiORqo/8wknzIi8ac+eQ9wDkd5ea4Gm1mptteC9C5MQHeK EHVuXGNG7OPz2i68lGLX5or1S13dzzmP6nvZF+gzgLFhnLuUFJsEVQ0M8GLa462Ajs0P eNPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713891985; x=1714496785; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AmVOMAacL5XFgxZMBxM5qRIgA9vpdjsgMSXx5Z5N0AI=; b=oGfEQIRqvggu+Wjv8uGEAUBSP4W9XhJ8cM2G+CWDOBh20znIofhe1xyy/ic5OcIIAO FSjCbM4yQVIE7TIc2SuLrRkJF684TruoAy7W6xfPfY/metAnXJz8OkaJfeB+BZzw/IyA FQXEEHckq6mbfT6OqTnCA5oaRA0M+b/4iilOJF/Q+BZEmsM4GXJ5Ks4/2qjsZmTbCfA1 tjNA7GcK0yUz7YH2w2yIrtVWyIpKVTw5bP3HA2/lV3SFFFoz+Z12ifVX9C5gNtVHDF0F LpOg7N82ukg0ud5XPtOATW3LXAdA3HgXWWl984504oxJwijLc5CzJ8gT0YReN9kpJkIj yOqg== X-Forwarded-Encrypted: i=1; AJvYcCWzBqRbU8Ywc/Z0ZpSiJfz8R0KsA1CBhR1Oex1lNYVKLkIeQnUtBm+OAbuqakdJME+MYI2WqPwXzibiod8ZexZiUSCWsVnhuhSS2vHR9g== X-Gm-Message-State: AOJu0Yw3NST69oAhEy3aBOv4UIwVeBemXQIjVq09KJYeYPAEavIgTm+0 tPwAh32QLqlz267tWzhuvZiMUrf3e24fl/SILEuEyJlAKU86bIgn0xt6LmNkmwQ= X-Google-Smtp-Source: AGHT+IHFr6sGyLI+yphYekoqsdNMAx6XjzCJoHMxUHv0NqmcqlAxDCxNlJfyBgFU/lBIG84EZQBqaw== X-Received: by 2002:a17:906:fad4:b0:a52:3492:d168 with SMTP id lu20-20020a170906fad400b00a523492d168mr11332528ejb.50.1713891985270; Tue, 23 Apr 2024 10:06:25 -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?= Date: Tue, 23 Apr 2024 18:06:03 +0100 Subject: [PATCH 1/7] dt-bindings: phy: samsung,usb3-drd-phy: add gs101 compatible MIME-Version: 1.0 Message-Id: <20240423-usb-phy-gs101-v1-1-ebdcb3ac174d@linaro.org> References: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> In-Reply-To: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> 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_449042_53AE9AE2 X-CRM114-Status: UNSURE ( 6.65 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add a dedicated google,gs101-usb31drd-phy compatible for Google Tensor gs101 SoC. It needs additional clocks enabled for register access, and additional memory regions (PCS & PMA) are required for successful configuration. Signed-off-by: André Draszik --- .../bindings/phy/samsung,usb3-drd-phy.yaml | 78 +++++++++++++++++----- 1 file changed, 61 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml index 452e584d9812..db1dc4c60b72 100644 --- a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml @@ -25,6 +25,7 @@ description: | properties: compatible: enum: + - google,gs101-usb31drd-phy - samsung,exynos5250-usbdrd-phy - samsung,exynos5420-usbdrd-phy - samsung,exynos5433-usbdrd-phy @@ -57,7 +58,18 @@ properties: the OF graph bindings specified. reg: - maxItems: 1 + minItems: 1 + items: + - description: PHY register base address. + - description: PCS register base address. + - description: PMA register base address. + + reg-names: + minItems: 1 + items: + - const: phy + - const: pcs + - const: pma samsung,pmu-syscon: $ref: /schemas/types.yaml#/definitions/phandle @@ -85,30 +97,62 @@ allOf: properties: compatible: contains: - enum: - - samsung,exynos5433-usbdrd-phy - - samsung,exynos7-usbdrd-phy + const: google,gs101-usb31drd-phy then: properties: clocks: - minItems: 5 - maxItems: 5 - clock-names: items: - - const: phy - - const: ref - - const: phy_utmi - - const: phy_pipe - - const: itp - else: - properties: - clocks: - minItems: 2 - maxItems: 2 + - description: Gate of main PHY clock + - description: Gate of PHY reference clock + - description: Gate of control interface AXI clock + - description: Gate of control interface APB clock + - description: Gate of SCL APB clock clock-names: items: - const: phy - const: ref + - const: ctrl_aclk + - const: ctrl_pclk + - const: scl_pclk + reg: + minItems: 3 + reg-names: + minItems: 3 + required: + - reg-names + else: + if: + properties: + compatible: + contains: + enum: + - samsung,exynos5433-usbdrd-phy + - samsung,exynos7-usbdrd-phy + then: + properties: + clocks: + minItems: 5 + maxItems: 5 + clock-names: + items: + - const: phy + - const: ref + - const: phy_utmi + - const: phy_pipe + - const: itp + reg: + maxItems: 1 + else: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: phy + - const: ref + reg: + maxItems: 1 additionalProperties: false