Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp671528lqd; Wed, 24 Apr 2024 13:18:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlUiM4hBYbPC8rjR6LBICr1Z5ftqLKsTMtknviB5g9E7EUOsb/qdgpD4hnsDrO4lpcSalE2835+E+KoPUMyYNJd4sPFMQajprMIdxd8w== X-Google-Smtp-Source: AGHT+IGTmwuHY0gfKK9kcSxksULsIUxNLTt7LOOXuVYnDb+j6TdT2GLjcWPpzKpcg2KWfG7Zyyjz X-Received: by 2002:a17:902:8641:b0:1e5:4f49:4036 with SMTP id y1-20020a170902864100b001e54f494036mr2952789plt.66.1713989891367; Wed, 24 Apr 2024 13:18:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713989891; cv=pass; d=google.com; s=arc-20160816; b=yzJG2mikX8lYAXE8CNvrZP69X+boTDopIhvsS+hWAqEUy00Nlv6YhAYJwdhe5Me+b6 3MaBKlQ1C77iorR+MxyiH1DFdxokU1MF30GO4NC0kqGeY/zap3kP4mO5vnYNsXhPhXFY JLtwNAAuUyNaZ27wcViugTofwoLrGc87UQkWnMWqQf54MveOsuj/ibPfb3VsvWo8kZB/ 5oeftMzDTIITqVAM+n6tPXndOkx0637M/ENy4FkiLqf8xSh2WeaWR/0PXayc6++CQfYA sOySmeUjvYq57j9KkYuzzToqUYGwtPA6FiNG0fNrY6HHZBCmtFkN+7lSJlP5NPtStua0 85jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WFFhTDv+vRLhV/1o3RyZlK4mTta8oBw6xncGIwqGRCU=; fh=oLFHDtmqH0O3PeZwnKvOdeS99d2qxuEH2Q9oSg/pKsE=; b=QR5Q4HJB0H7QOPf/67hLQvyYmEfHOqS2WQJHOQXx5KwmFWnuMdP2T0VtT2a/W3sbUJ 5NA1tv81CyHJwGz4oRf9iMjxZtczI7ae5vPgVQ+j5YGyD6QU+2oMJ2T60OvZTtlKtZJE k0yLGNuBOJJs1w6dLx37fWiwcnXwVuj0T4BGaK6uw0WrB6buR1FbhLXQmOXHO21kl8wx +OXsyTmkSeFba6J3yj2SBeLgEl2c3XqDUNoaiZBywSSONwtRPsSWuifPwmclCn/cMyPD cjnQZTIRYlCgCJp5/wHcQS1OOXdwdNBbeK17jKXdABMsLuZT9wjTjxhngZh1W1yYucYJ u/Lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XJLpfqld; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b15-20020a170903228f00b001e480e78014si12107384plh.593.2024.04.24.13.18.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 13:18:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XJLpfqld; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5612EB2606C for ; Wed, 24 Apr 2024 19:43:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DB1713AD07; Wed, 24 Apr 2024 19:43:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XJLpfqld" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDAA91772F; Wed, 24 Apr 2024 19:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713987814; cv=none; b=F4NO8jlRbAaERtMN0N1no/BN8f/y2stozWnaboXk8YDSqcKCMMcthjfjcsfk/E7Cu1lBxB8tQdt6WIElavqQX6/zHzSJ2xViQm3m1hQA75X50svOWYMhztw0sh+bPtUT0iA41wHDZiRsOKXa18oXDvHWrbbIud+GpBLewyGbxp4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713987814; c=relaxed/simple; bh=vKFYekx4zyI62STnk+FA6F7HSB3eErVD+QjnOQSj1zo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B+H4CKy808fLGiVJhOVQj2tctgEuSlbrVE44bd55F5bmOGMzFyC2p9+D3RQBt0jWVTfJkYtRNx4Fws/BLkU4m/fnOc8vCJa6pfL7Xdqyj4nTOtNyUxxBN8Rv2INIRnA/pTkx+Z9l99QMQ/GwWX/mZygEldg2TqyUBS1xkrUJyOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XJLpfqld; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14CE8C113CD; Wed, 24 Apr 2024 19:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713987814; bh=vKFYekx4zyI62STnk+FA6F7HSB3eErVD+QjnOQSj1zo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XJLpfqld/3oPnXCMuNWmUg+dzsWu9g5aWo3ExrrsKERD1UuKm7b6qJJwf8r47fTSP TOTA8OFSenxTbjqqCgWrfM6h0yzb4/dm9sEX7FpCf59AS6VTYAY0KSMmeqW7/L/Jsa +oPs17OTG2cWSX8qfdrgu65VGgpP+Vjt7WeMzkgNPstKbbOFzVayCpLCunJla1/n+/ l85xedaTFLhc/r6hZnmlvO5IvPTE4sToreAqtEKPq4eW9qlTPFlenSfvIuv7w5Wt3o ggC33kausbftez9qr1TZX7mnrSsEVFr8U0h6VPteLc0kwF7ItP7lV5DFcuhII31c9c 2yVCBUSJtMT3Q== Date: Wed, 24 Apr 2024 14:43:31 -0500 From: Rob Herring To: =?iso-8859-1?Q?Andr=E9?= Draszik Cc: Vinod Koul , Kishon Vijay Abraham I , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Marek Szyprowski , Sylwester Nawrocki , Alim Akhtar , Sam Protsenko , 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 Subject: Re: [PATCH 1/7] dt-bindings: phy: samsung,usb3-drd-phy: add gs101 compatible Message-ID: <20240424194331.GA352392-robh@kernel.org> References: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> <20240423-usb-phy-gs101-v1-1-ebdcb3ac174d@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240423-usb-phy-gs101-v1-1-ebdcb3ac174d@linaro.org> On Tue, Apr 23, 2024 at 06:06:03PM +0100, Andr? Draszik wrote: > 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: We generally try to avoid having nested else/if like this. Please change the existing 'else' to an 'if' and then add an 'if' for your new compatible. Rob