Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp837261pxj; Fri, 7 May 2021 23:41:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDysdl9+mS9J45g1exjNG7/mgkL91o4Jmrh+jC5aSC2vx1vCM/OvZoIlAoQcKw2VUa+NlY X-Received: by 2002:a63:c6:: with SMTP id 189mr13529428pga.216.1620456103981; Fri, 07 May 2021 23:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620456103; cv=none; d=google.com; s=arc-20160816; b=GZ041MjbfAUmQWflRTD29O/YZWHBkRFetb+ikIyZgFggWIk7SBT5WtkPI0BxYuj34m qmULdaJ1Cn6m0CWBoww86+5oxiBFwKmBmcuXzkcRZ9sJ3lIhLiTdIeDV+qBUypYsGxFz M8F4YWgUY4Z0FY9fqEST4tXR0RWwJhZMbfuqo8+2ku2UroSDtQ/A/5FMC0vzYl8uvDzr FDkHRzR2AwZLrpfSj4c2GlNxN3+0eEI4LPyIj1qHWNhG5DOcG1oKl45MOrXSu9aD8hhi mQa9tHi2WnNQFJXm+X+/6wwX/KHk6gzELimq5oWv7U4qeku07KrHyvoomm/YCIUnLE9p 1sQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xX1is4SChHjrs4j+7h4A1M2iT4Pn7Fk4B4vamTtYWNg=; b=hi/OXz8B2xJUmknHmX4eFIPkvBxMDmwjgyop6duVHBGthoi7jn85vJzSrx2dHF/093 DIojUd8wjBPgb/IF5AvczG8rDNqBOzzzTGrjav0Lnw0kVp9sxyn4hqCgiFKgS94jecZ/ VxPufA/H30QowzIGhq7ebP5tekN1UBjENWtlRo6GcdgP7UJ/q1EbLVxl4CoFEEOKWVUr 4kYTo/MNJqclaz9DdXhec1R+7Gw2x8mbUNff2nF4rK2HXblbR5qhzKt6FN2fTrdoPXVq 2u+7ob78ixQIWEzwZM7JuwWQctLZxXCQDQPgEw+nogTLBYPGpO65jziD0CqFvZajk0OH /gTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Imz8wSLl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si9679623pgp.564.2021.05.07.23.41.30; Fri, 07 May 2021 23:41:43 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Imz8wSLl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbhEHGlz (ORCPT + 99 others); Sat, 8 May 2021 02:41:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbhEHGlz (ORCPT ); Sat, 8 May 2021 02:41:55 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304EAC061574; Fri, 7 May 2021 23:40:53 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id i81so10873317oif.6; Fri, 07 May 2021 23:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xX1is4SChHjrs4j+7h4A1M2iT4Pn7Fk4B4vamTtYWNg=; b=Imz8wSLlAusRO73bwSesFa8LgAzl8kdck2RliwjGaTk0RPj7pTEoOUYeIcdnkzZwOA SjBg9mby8dpHeUC0piMKcKEPha8K3oJ0UWysG7TjOaJFGohLsWmjv6awScr48i60MUxV JwAd8n1Von368QV3ApB+8ocb+i7cMHe1d1dxrzs/0RJqNYa2b/oz7S0p9uT6+tJnm57K ACmd3ZG1A+9Wdk3dt1pRH1imrojRAm2upBFOMsO/0vCPxRW3nHacS6YP8+AkiBPKCdum bGTtAufpQekTCpTS4t1DPYBl8vlfau4YHt+4+GF+Xf6AKOLqkwwNLrosSSRz/4LYlpaG jbuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xX1is4SChHjrs4j+7h4A1M2iT4Pn7Fk4B4vamTtYWNg=; b=krWI/7VTJhq1nhuB2qMs4hn4L7VDdZOcMbQ4boAkvBSU217as9l3QUrs01z8vSQbOp aBRZQbkhjFjAiBUR6RsWsEiWz+rA9u5smmaMQu/9wMSj32RJgSvlKmsdVRNNFrJxn3n/ Co6uh8rFh4nuL6I7Q90INk+xM5X8jdQdUXowhn5gIZHZdmMGgIUNFdxL801s9i4F2Epj RiwcDo8sIDbTlSp0gqPmSeRH04fegXaFvMG7qGiQcNqMGBT9d/nro6SPTkMr7DG0qCC4 IRnMxxlJx4OFJ3BKU/+7oavA/XE8zRE8eCcF00cvIC2iovfIzS5NXZoU7aJCN6zWU+sq Vh+Q== X-Gm-Message-State: AOAM5330OccK+m4gUjLxTnUM1Tx4r0V2OcN7mZYzLrgHIlIzPoUMNLOP BSZTuAiue0fduldcOMHDsDsSVYtMTqrmEBjofVg= X-Received: by 2002:aca:2813:: with SMTP id 19mr18254142oix.23.1620456052653; Fri, 07 May 2021 23:40:52 -0700 (PDT) MIME-Version: 1.0 References: <20210506111531.21978-1-sergio.paracuellos@gmail.com> <20210506111531.21978-3-sergio.paracuellos@gmail.com> <20210507221200.GA2984128@robh.at.kernel.org> In-Reply-To: <20210507221200.GA2984128@robh.at.kernel.org> From: Sergio Paracuellos Date: Sat, 8 May 2021 08:40:41 +0200 Message-ID: Subject: Re: [PATCH 2/5] dt-bindings: phy: mediatek,mt7621-pci-phy: add clock entries To: Rob Herring Cc: Vinod Koul , linux-phy@lists.infradead.org, Kishon Vijay Abraham I , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , linux-staging@lists.linux.dev, Greg KH , NeilBrown , Ilya Lipnitskiy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Sat, May 8, 2021 at 12:12 AM Rob Herring wrote: > > On Thu, May 06, 2021 at 01:15:28PM +0200, Sergio Paracuellos wrote: > > MT7621 SoC clock driver has already mainlined in > > 'commit 48df7a26f470 ("clk: ralink: add clock driver for mt7621 SoC")' > > Hence update schema with the add of the entries related to > > clock. > > > > Signed-off-by: Sergio Paracuellos > > --- > > .../bindings/phy/mediatek,mt7621-pci-phy.yaml | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.yaml b/Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.yaml > > index 0ccaded3f245..d8614ef8995c 100644 > > --- a/Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.yaml > > +++ b/Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.yaml > > @@ -16,6 +16,14 @@ properties: > > reg: > > maxItems: 1 > > > > + clocks: > > + maxItems: 1 > > + description: > > + PHY reference clock. Must contain an entry in clock-names. > > + > > + clock-names: > > + const: sys_clk > > You don't really need -names when there is only 1. Ok, I will drop this property then and > > > + > > "#phy-cells": > > const: 1 > > description: selects if the phy is dual-ported > > @@ -23,6 +31,8 @@ properties: > > required: > > - compatible > > - reg > > + - clocks > > + - clock-names > > Technically, you can't add new properties and make them required as that > breaks the ABI. If that's okay here, explain it in the commit message. So until now no clock driver existed and things were not properly being done in driver code directly accessing registers to get the clock frequency to properly configure the phy. Since the new clock driver enters into the scene, make this mandatory force to update both driver and dtb, which is something pretty normal when upgrading the kind of devices using this SoC. So I think it should be finde to make this a requirement. > > > - "#phy-cells" > > > > additionalProperties: false > > @@ -32,5 +42,7 @@ examples: > > pcie0_phy: pcie-phy@1e149000 { > > compatible = "mediatek,mt7621-pci-phy"; > > reg = <0x1e149000 0x0700>; > > + clocks = <&sysc 0>; > > + clock-names = "sys_clk"; > > #phy-cells = <1>; > > }; > > -- > > 2.25.1 > > Best regards, Sergio Paracuellos