Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1307874rwb; Wed, 26 Jul 2023 10:25:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlHnqSnaot67ICTTXYSaLbZweoLM9ocxMatF+2JjWZ5fVqz6UR9vTdQrpYBnbzk1Pr2pQLYo X-Received: by 2002:a05:6402:5144:b0:522:1686:20d5 with SMTP id n4-20020a056402514400b00522168620d5mr1852174edd.40.1690392314394; Wed, 26 Jul 2023 10:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690392314; cv=none; d=google.com; s=arc-20160816; b=rhSybCBzX+X8mRvkxLYey6f4/khSk5CgAdQcClj1AQ2ZWiHRJ5/kVRdJp0JgA4gNP/ cyAl9ydFTsW4+t6pBLkJuByo5ANip2m72XOilrI3g90cGViDGL8GY3iQzTV8j94f5gZu 9M3I2LFblQi1s/Tki9yK8XJt4QvE1759SX/OJpomAGTctapQyRhaqJGvIiQMfZrSvmhF CeDiKxU3Jj84piEfjcLe3EiFwdBjz53PuPjDfb9CN7J5pmQ/vj7OKHBv/j8ixDZzDEaQ aem5auqKVYm/biQvr8DPaU3jjmL/RQb2kE10d9wyRKO73Sbw9RQhhb7YMHkLWVVBcuLZ oL6Q== 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:dkim-signature; bh=usI0TJSFW+N8MF+ZQI2BDYzJ/xht2Se3GsmUVPV5uAk=; fh=39bxXZLhflxKe8/b/gR96VZqw5s5271EVtoxMnWYPC8=; b=1D9ygj5CIb/d64BLS0SMkpCXArwiMyF6b7JotPUpFn23T22SypbbtvTY4SA2F3QlTk MLxZsIkUAUoItKNwDGhAqqDaF7td3HJafeMqiYZcLGmZmmUdJE3zO1f9huud9HZZ1v2y vEHbu82u9vSTnOV+VEM0nZ1dceevzDLFW0rUA81kB7iKsuPOSxG7hXBxWKTj0h643xYw F9LkfoSIcp633iZEuGpstCqltgp0jLRYgheb8zC7UzXhd6/vX305sYV2Fq7mswFI/LBl 9G5w1tjEmvmfejE0lxI0DwsMzeKhkInVue5aKUHcPDnwviZCgq5yaHksYTb/f7YAf5bR hByQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dPdAkVzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a50ed8c000000b005222a0cd29dsi5121609edr.339.2023.07.26.10.24.48; Wed, 26 Jul 2023 10:25:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dPdAkVzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231693AbjGZRFm (ORCPT + 99 others); Wed, 26 Jul 2023 13:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGZRFl (ORCPT ); Wed, 26 Jul 2023 13:05:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294C010EC; Wed, 26 Jul 2023 10:05:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BBD1D61BF3; Wed, 26 Jul 2023 17:05:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A3C5C433C8; Wed, 26 Jul 2023 17:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690391139; bh=1T+xS9yXDltmwI7i44gQg/MaNV4L9JrE8kjtjqY+lhA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dPdAkVzqpd4c6bpl0eY79hMpcvW13A9RkqhO2Ims2UIQioPwOiEP3xTDm674VskRR lPVabjecOi0tz3+sETm9gJJjshM4cERN96QeQlzFy0qbqYolR5NwSWiBklOWdKeBXF MnPtGu3RPjrkbTY9bIPnSwnJ0Y+yNp0P3KqWlsGm8B4smkMsPSFpacNv4bf2xYQQlI +sRIq1V9t8srj0E6FqHP3PMJmsP4MNgFXKXoWvPJb14PMakSt8SW6apgQJu3L05DyP iLotFZ8y3C7Wj5SWhykIejcX+1N3cPnmnwsZGNUaQuyXMQcde36hhaq+xkn38ip0R9 GxZdHitdPL8lg== Received: (nullmailer pid 1591499 invoked by uid 1000); Wed, 26 Jul 2023 17:05:37 -0000 Date: Wed, 26 Jul 2023 11:05:37 -0600 From: Rob Herring To: Swapnil Jakhade Cc: vkoul@kernel.org, kishon@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mparab@cadence.com, rogerq@kernel.org, s-vadapalli@ti.com Subject: Re: [PATCH 1/5] dt-bindings: phy: cadence-torrent: Add second optional input reference clock Message-ID: <20230726170537.GA1587239-robh@kernel.org> References: <20230724150002.5645-1-sjakhade@cadence.com> <20230724150002.5645-2-sjakhade@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724150002.5645-2-sjakhade@cadence.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 24, 2023 at 04:59:58PM +0200, Swapnil Jakhade wrote: > Torrent(SD0801) PHY supports two input reference clocks. Update bindings > to support dual reference clock multilink configurations. > > Signed-off-by: Swapnil Jakhade > --- > .../bindings/phy/phy-cadence-torrent.yaml | 23 +++++++++++++------ > 1 file changed, 16 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml > index dfb31314face..ddb86ee0cebf 100644 > --- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml > +++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml > @@ -33,16 +33,25 @@ properties: > > clocks: > minItems: 1 > - maxItems: 2 > + maxItems: 3 > description: > - PHY reference clock for 1 item. Must contain an entry in clock-names. > - Optional Parent to enable output reference clock. > + PHY input reference clocks (refclk & refclk1). > + Optional Parent to enable output reference clock (phy_en_refclk). > > clock-names: > - minItems: 1 > - items: > - - const: refclk > - - const: phy_en_refclk > + oneOf: > + - items: > + - const: refclk > + - items: > + - const: refclk > + - const: phy_en_refclk > + - items: > + - const: refclk > + - const: refclk1 > + - items: > + - const: refclk > + - const: refclk1 > + - const: phy_en_refclk Can be simplified to: minItems: 1 items: - const: refclk - enum: [ refclk1, phy_en_refclk ] - const: phy_en_refclk *-names already requires each entry to be unique, so you don't have to worry about that case. Rob