From patchwork Wed May 1 09:19:36 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: 13650366 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 1CE99C19F53 for ; Wed, 1 May 2024 09:19:49 +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=znTnUCuxJQFBMZa5u4lTJrDjkH/n4D/UVLqrB3i42Ks=; b=RyLELWQzQbK2Ow Y4DYF9+atbm+BVRld0oYhedBXPc6U1WPkasOIzDCvRAztDiMD0arVzPyHPjm8ujRHWY81XriZ3ktQ 2evItfh1nn2k027dQOT+f9Wb7FRLzKePPrF0JydMdD6o5hIkAB+TSfq3hjMkrelFfCAowdtGiJ9Ga lIthdgzNxmyLlLBe9GmaoqBcjEktVqtqVOQaxrFx3AS7pnmxi2xsNu5FGsfl82+AdyWElNm7AUQbN Iy88cEVBSzWFXyi6psvB59HYbYLkWpGlA2BH2W8A4BNouQ2bDM/RjlKW3tDiB754IsbjYLHQGK0IC VbEgbICLzSaIqkAAh9lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s267w-00000008wmk-1tF7; Wed, 01 May 2024 09:19:48 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s267s-00000008wiX-0Q2D for linux-phy@lists.infradead.org; Wed, 01 May 2024 09:19:46 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a58a36008ceso774263866b.0 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=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=HjC0thOUO3AI+wU5orw4JxlnIQvZns1Xrbd8AZdvPQo=; b=hRHWtm4he7otm9dpJnkznOsD1p3MBhcRInmTwfdZgxLWp1NG0brCRfDQWW5MfR9Tap q+5veCpwsjfeZuKY+VwXw8SmpFXfRkQNR6Xu6zHmD5PfX2fvPUZNEhlDfgydF8sjZSUx wamj/GUKUzzhiq2t8orMz689vQ/qdJChcx6grtdOjeqfo5hi1Qmj3CO6Pw2CwncPP/TY 0b0EOdUZNg0/5atWAI4YSif8k0hHdLxcgn3ZvrbhzLkGDgDY+6kCAu25NgGlhMYcQzYy aspTmH3hMvy8h7lyfT0lwdz8qg9mxi20vO8KMzrjlrVuXAvqV0LW+IrdJ8jSmDgxkZKy N75g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714555177; x=1715159977; 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=HjC0thOUO3AI+wU5orw4JxlnIQvZns1Xrbd8AZdvPQo=; b=G6t4ViYsMAQVActAF7+gaSh7Y4GyV/9jY+WOWXUb+WFL1dec95dXMuLhM5zlxZ+hzo qu6Vfe6gRy7+uq85IYtDQCJZ9SUCkq4Qhh2s6+pCFAaawijqmzwJjMl8HvZg2Ts4Ol/n pORHvnhoCA9SWGwSlausf5g0N7nGIJdE7ngrNqx6dmUMtHgEH3wOB7TSn0uK+DkX6OyU 5srw6PJJdxWgFZ8hhmUvYn+GpkmfVYZWw7HZWFEqBJtuG5lbESV0PKXGyDGT80NaW/jM SVj3B8kO4Y7a45lIicNCXsbARuDXpMQV4JJe/kKI+RXkv+4GT1U5mTKgD/WITgbijkiG Fb4Q== X-Forwarded-Encrypted: i=1; AJvYcCWPb8S+fCpFwKPTq8Z5YZxMEhmEs1hz+igY2glGyLalbhuv8M/OXSXeTX9odqmn0sE4akLB1POd30+t7OlO1sEbBL15MbFEtdTSxVPOwQ== X-Gm-Message-State: AOJu0Yw4FiiANH+wUdNu6Dxz5SPB2Nb5UdowFjaOFG4IOtam7wJYjwVD 7ZshJY8OJPsRIolX1W+y8k2udPSHyrJJMqfoNWGyYdEyJjsO8zefsANMT79qmAA= X-Google-Smtp-Source: AGHT+IHZcl/NwEeZn+eEz03CLh9cMSeWZJA/2KYO9UAu5/Lo5NKkHlI5Bg8SHMlhBa7fThQtTrER9w== X-Received: by 2002:a17:906:e2ce:b0:a52:19ea:8df0 with SMTP id gr14-20020a170906e2ce00b00a5219ea8df0mr1534908ejb.66.1714555177641; 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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:19:37 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 01 May 2024 10:19:36 +0100 Subject: [PATCH v2 1/7] dt-bindings: phy: samsung,usb3-drd-phy: add gs101 compatible MIME-Version: 1.0 Message-Id: <20240501-usb-phy-gs101-v2-1-ed9f14a1bd6d@linaro.org> References: <20240501-usb-phy-gs101-v2-0-ed9f14a1bd6d@linaro.org> In-Reply-To: <20240501-usb-phy-gs101-v2-0-ed9f14a1bd6d@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 , Arnd Bergmann , lee@kernel.org, =?utf-8?q?Andr=C3=A9_Draszi?= =?utf-8?q?k?= X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240501_021944_260262_BB425DC5 X-CRM114-Status: UNSURE ( 8.79 ) 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 --- v2: avoid having nested else/if, and instead change the existing 'else' to explicitly state the platforms using 'if' --- .../bindings/phy/samsung,usb3-drd-phy.yaml | 61 +++++++++++++++++++++- 1 file changed, 59 insertions(+), 2 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..f99f055ec704 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 @@ -81,6 +93,34 @@ required: - samsung,pmu-syscon allOf: + - if: + properties: + compatible: + contains: + const: google,gs101-usb31drd-phy + then: + properties: + clocks: + items: + - 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 + - if: properties: compatible: @@ -100,7 +140,20 @@ allOf: - const: phy_utmi - const: phy_pipe - const: itp - else: + reg: + maxItems: 1 + reg-names: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos5250-usbdrd-phy + - samsung,exynos5420-usbdrd-phy + - samsung,exynos850-usbdrd-phy + then: properties: clocks: minItems: 2 @@ -109,6 +162,10 @@ allOf: items: - const: phy - const: ref + reg: + maxItems: 1 + reg-names: + maxItems: 1 additionalProperties: false