Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1940900pxb; Mon, 8 Mar 2021 09:54:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwG/Pj7D6pOwZsVj5FVpWqyY5T94FaIutgM6EZ11M2+iPJrJACk4c1ARSZlUKR0buaHZ3K3 X-Received: by 2002:a17:906:73d5:: with SMTP id n21mr16579600ejl.8.1615226053590; Mon, 08 Mar 2021 09:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615226053; cv=none; d=google.com; s=arc-20160816; b=Y3U0EYnUBE2BsCGhSPCVjMM1Y+z0qucNIQ/lh7DKaW98/nd3Wvry7XB46ZLWuiEjR9 PKGDbzSbMR8V/4F8B0+S2hCxwVqc9YjSqxTZjub6lXwOtwA7kGP0fKPFLSpovuNLuWPn JPnShNex3KQDGk8dI3L3Rald4CeqSOIAdIKD5bu4fRLHuaYAatrRGUyx+EnjCTh0kj3k kETTg5Q/3NNwDZ57iHDczcbyCpxnI+y/DAbzc0nIvJNgQ1OjZTA8rjovpLggOD0n4tPL vxrFZsraPKdVstiS8Mo6XjT47P9g1jwHFWu9Jfh/UQO8Tqh3Ck708b+J3PzqPOWT+R/h gdqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=cqG62A6ECHx1ErMIyW9dOku1I1WJGyJu3tFPOBlLGpU=; b=AxTdH3+Ke0xa5Dv8n7lNuNNYlSbCyk547nHrt6QvtN3ksrkJGyZM/H2vQLUf8kgjTL VcHOWRo+WC9+Dwqhx01Ik8eL6bfeWLtU9t/fbTO7K6h5htOYRivtKjKe+AN8NiuLFkxh T01PDtczbwdcFRFSk8+k7yUn69lV2NdYtlK0X9YSO5L5q1sTZb7FPSW3tm7rP0fxrW7z eQ1wnknGtbfa1FgMtTxbNpyuaRoM0yYMtRT9OnFcg3KfOZ/NFt9NJp8gZD8RQaJA2tEb M1P/PODzO7yGYluRWjH4ClF7C5yd6IZi0o4VMzpgcH+8+vmxzXYF9kjoBwSyJ0lU1E5+ MxNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si7404106ejw.723.2021.03.08.09.53.48; Mon, 08 Mar 2021 09:54:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbhCHRu1 (ORCPT + 99 others); Mon, 8 Mar 2021 12:50:27 -0500 Received: from mail-io1-f54.google.com ([209.85.166.54]:46682 "EHLO mail-io1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbhCHRuD (ORCPT ); Mon, 8 Mar 2021 12:50:03 -0500 Received: by mail-io1-f54.google.com with SMTP id u8so10820216ior.13; Mon, 08 Mar 2021 09:50:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cqG62A6ECHx1ErMIyW9dOku1I1WJGyJu3tFPOBlLGpU=; b=ErIMYsJlxtO6/Q+EQlJMycfXACdZ3mKiDXVXjuCMzJpdYIHfw45mDfjome8+vKWhHm brqS0yDH1ppfdpNCiU8kjqm8D0LTTMk3hGQP3Prm9bnTS/TdVaeBuXZREqa84q3dzXZ4 ktUxjaiMkScrbaz6FMk8FcNOkllKfQHI+KoWjHMXRyK7tGdyVq0ker7/2Cyz/7VCfVRr bA2Wp2URD51lU31Q6IZGLdOnGHtPOZwLhwJDoIuEInN3ET+PNUK6XNl63M+vy9DYeuYi x2wCRKs2bzYho2G/Or7N9sPvF9YicXBLvbyn1T0jEBhVLzx0SprZi68M1Z+7U5O+DEKb j43g== X-Gm-Message-State: AOAM533GUT/soun83SxVTv5ivtpoCUvyVJ3+rknQT/13h9pbjUtdv2YE RYtSF42aKCPfNqyhS2IAGQ== X-Received: by 2002:a05:6638:329e:: with SMTP id f30mr7582086jav.121.1615225803214; Mon, 08 Mar 2021 09:50:03 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id c18sm6681876ild.37.2021.03.08.09.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 09:50:02 -0800 (PST) Received: (nullmailer pid 2696494 invoked by uid 1000); Mon, 08 Mar 2021 17:50:00 -0000 Date: Mon, 8 Mar 2021 10:50:00 -0700 From: Rob Herring To: Kishon Vijay Abraham I Cc: Vinod Koul , Peter Rosin , Swapnil Jakhade , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH v2 1/9] dt-bindings: phy: ti,phy-j721e-wiz: Add bindings for AM64 SERDES Wrapper Message-ID: <20210308175000.GA2693969@robh.at.kernel.org> References: <20210222112314.10772-1-kishon@ti.com> <20210222112314.10772-2-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210222112314.10772-2-kishon@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 04:53:06PM +0530, Kishon Vijay Abraham I wrote: > Add bindings for AM64 SERDES Wrapper. > > Signed-off-by: Kishon Vijay Abraham I > --- > .../bindings/phy/ti,phy-j721e-wiz.yaml | 10 ++++++--- > include/dt-bindings/phy/phy-ti.h | 21 +++++++++++++++++++ > 2 files changed, 28 insertions(+), 3 deletions(-) > create mode 100644 include/dt-bindings/phy/phy-ti.h > > diff --git a/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml b/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml > index c33e9bc79521..bf431f98e6ea 100644 > --- a/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml > +++ b/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml > @@ -12,9 +12,10 @@ maintainers: > > properties: > compatible: > - enum: > - - ti,j721e-wiz-16g > - - ti,j721e-wiz-10g > + oneOf: > + - const: ti,j721e-wiz-16g > + - const: ti,j721e-wiz-10g > + - const: ti,am64-wiz-10g Why do you need to change this from an enum? > > power-domains: > maxItems: 1 > @@ -42,6 +43,9 @@ properties: > "#reset-cells": > const: 1 > > + "#clock-cells": > + const: 1 > + > ranges: true > > assigned-clocks: > diff --git a/include/dt-bindings/phy/phy-ti.h b/include/dt-bindings/phy/phy-ti.h > new file mode 100644 > index 000000000000..ad955d3a56b4 > --- /dev/null > +++ b/include/dt-bindings/phy/phy-ti.h > @@ -0,0 +1,21 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * This header provides constants for TI SERDES. > + */ > + > +#ifndef _DT_BINDINGS_TI_SERDES > +#define _DT_BINDINGS_TI_SERDES > + > +/* Clock index for output clocks from WIZ */ > + > +/* MUX Clocks */ > +#define TI_WIZ_PLL0_REFCLK 0 > +#define TI_WIZ_PLL1_REFCLK 1 > +#define TI_WIZ_REFCLK_DIG 2 > + > +/* Reserve index here for future additions */ > + > +/* MISC Clocks */ > +#define TI_WIZ_PHY_EN_REFCLK 16 > + > +#endif /* _DT_BINDINGS_TI_SERDES */ > -- > 2.17.1 >