Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3097476lqt; Tue, 23 Apr 2024 10:10:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVU14qm2hIrMOiK1IwA/SkRimXokYOYgfQNj9Gfxyq+7xevBA5ngVGjT2v7bcH9T3gjUiKkn8q6dwaFcDCo7dpbUSiqF3lMlGDk/Rfhfw== X-Google-Smtp-Source: AGHT+IFDL2MVNZlPO5eDLpmI1ycgLP5DbRtW5aiBYbsYAWBSKbhDTy5KdYxkcWGU1EwmPIIn43p0 X-Received: by 2002:a05:6a21:3982:b0:1aa:583d:6a72 with SMTP id ad2-20020a056a21398200b001aa583d6a72mr13034001pzc.56.1713892223128; Tue, 23 Apr 2024 10:10:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713892223; cv=pass; d=google.com; s=arc-20160816; b=g/8d5RAdczmmyomt/ybA5fD/0o4U1gejdAdcubmBCJ0jm7LOxtbxHDsIcmh1mrQcf9 z76/PQl869+L4WHr+jtmjG4CW+LCSAFvVYu237s8wXmwMZQDYqgj8QSaqhdi6o12PyYO YImiZRefF1s4281o0u8HLh/5E84j5Wz5P9akkbyreGzc1a4iTZHNerUiRzO/ufl727N6 3Y+L6G5AV37l5SOxZN9YfSpL3Dng4ijTBMSSn743ItJF5cuaZYehQ41PNBBedZldc/hM +6ReTWDAKnjjr5YW99rwR6j6reWWVjnyMPA7ssjNO5iX+tfvaUrKznZ1UgDCV5i7liOT 3g0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=AmVOMAacL5XFgxZMBxM5qRIgA9vpdjsgMSXx5Z5N0AI=; fh=QGhQFRgaYFsYkshsCvyWjDsn+zYIzypUArBqfDjPh0s=; b=wPpkJ7ndIocUw1Lcp2/hVIu2isCLf8b7IT/6ZDQFUfejzdaUrEXkxOrM8h+Vlg3Cv0 yiFILApTeudbhGf+3F2bnb7ujJvBdZHbLafrtlMJ0VYXoQTaGFXZMGhSvAnBtaLFUOVa NZ9fzgX4QjXglc+La7V3m0iZktLxMIggvswcZy72utAE9drrNbop798BKFpFPZuWkqCW XTkT2H0g6Ss9tYj9/GaDZHnvDiFL0k9A+WXPQrBo3AlGQE335w+qhpWKhFYuTXsGkRBV Un2XRIV52xt22tptFtUzm1Wip2Q4QGhjMU2zFZCmYv/BmB78UMj3YzKn/jc6xfwgzxn2 heBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZCriZWAv; 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-155630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155630-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. [139.178.88.99]) by mx.google.com with ESMTPS id k192-20020a633dc9000000b005fd89007e7dsi5145655pga.825.2024.04.23.10.10.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 10:10:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZCriZWAv; 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-155630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155630-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 8D214284A5A for ; Tue, 23 Apr 2024 17:07:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 904B213DDDC; Tue, 23 Apr 2024 17:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZCriZWAv" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 E9B8C13DDBC for ; Tue, 23 Apr 2024 17:06:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891988; cv=none; b=jQ+SIcoyMWSkQif0cdrDr7QVP0gaAA0XQQYmht2vQcsWOHfWN3b+BD2OO8decirvuojJN2z/XEkzMd5x3L/oM7eySiss5HHtoxQyPAsGW+W9weQ85/e2QiU1HRFYIxljRqGgSZFLp3YKCzStLBnuZV6SEIPzebhfwZRhsX4OsHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891988; c=relaxed/simple; bh=+/8QLPiW/Kn3ZLyskL8ldNzf7tquoUxKp1/ZVi+DCsc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fdO3UbzuB9QvL2vksmkgiMw4pt6oQ91RmGXHDp5K3q+t8Iqb9KXS7AedPh+rWZU6nb9PvBT8im3qs/5X88u4VNW55Vi8eXJJ5smS+5WcsV4kJixKEVUeBji1OL0SVsV/k3ppNZ5CiFFKt+u9TvAkkMtAFA4C9QKGk79YH1x/OmU= 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=ZCriZWAv; arc=none smtp.client-ip=209.85.218.52 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-f52.google.com with SMTP id a640c23a62f3a-a52223e004dso569069266b.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=vger.kernel.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=ZCriZWAvTZPhbh/7kg7KWJ7J8qyqaSjbzZ1NK5nAWorVk4TRMPQaLTTqNsHFBPW9qQ A2nrGI7+JnK0Z31EyPDts7Zb63NomtauuN2HaZRgMt5eL7RT/sLnbDDzT+0zY2qR3mcz hM0ITMUS4qTBsguzjnDxm6d7OmbiHKTd+DtTM0B/8C5hx8C5cfZGJfojEbD3NVjQu+Mt BCrMtexuhlUAX5qDSEy36wU77pxsCJQSF6tN9epP+b6yXk+xaSsw5RdSkyRhl9Ljw1w2 akCVRwKMcl/kbhCwsOTgnIOR5hMrv9eGWjNxI978enilHjaIEMjFANOTIhCKes+cx96a LUoA== 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=wxvw7Nd0txA7sx+fP5M/Thj/NbsyoorVGPg5XEZzDMVo7UEu3Yfhvgoc1Tv7PgIP1z 0z8cu4MaZFP3JA4VfFev/aYAjo5ZVyUrB6vFB/gRzlWdrDGd9FkIxxzKazeeVCsRFKw5 1FgSIj7br4MZXYrqg2GHDfcalcA9aa6uYjNRb2zF6frgQ8t6q3POmcxfmSavbYjdAzIs jhkFeO3wZbsjem6m8HCzBLcooGylbxPCMrMc0LcUe+y6cVTeotTSFa4kYk6PTdBC6A9j /VeYikxFaWy/EICjqOg0brqv/SkRDn+X7r89RQ98qTyLOxn9V04TmglIKEiSGx7J9lxz 5oeQ== X-Forwarded-Encrypted: i=1; AJvYcCWrxMyoAblfHQopz/OWHPZvqjwL3+IEQJdABFx/mrHomhipATYV6ODShBfoBMlrfTGDn93PudNopfDLp/J6sZzCWLOyyUUgEwar8PE1 X-Gm-Message-State: AOJu0YxWdxtjiBFwJYP59P7AYQHd7c/CnxC7Eoqb+IP2dA3IM+mmy5Zj C5vpQpcip3cAfe5j5sG+Z9ixw2Qe65+jRyrxD+oqMn4NzbcWW+Yp7RiNgTAxN6E= 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 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 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_Draszik?= X-Mailer: b4 0.12.4 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 -- 2.44.0.769.g3c40516874-goog