Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp339678pxb; Fri, 8 Jan 2021 06:26:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVMRB+KYAusqGU1+zHZj2e3a0cG0UXGH6aazDtFLLyPfMAEdTq75VVO1A5OYSqj9dxDewf X-Received: by 2002:a05:6402:19b0:: with SMTP id o16mr5490985edz.270.1610115991145; Fri, 08 Jan 2021 06:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610115991; cv=none; d=google.com; s=arc-20160816; b=nb58L/+AZpo5rnXK15hMtmXC2K1FSTknj/avqFzf5qt4ON7EjPiiFCUoynlvy0uaSn xwUfgWu85L7nO5zNLZZKM9j5SgJ4glq29GCfzscxSMWJborPtRi5sNeTOkscJBROnle2 7PvXK8AgRXPAaR0LFSPDniCEbQ7URdNLLM50OY1x6eyO5p/e2C56RvnTkHTUbrYgTMcZ LmN5ixEkeq5fAgGEjFEcJegcZ8Rlt5wcphWuGZ46m9jPGk3WogXpxPxKsko711Tdo8x8 QMDrNMoLweHorAWhTLpqyjM9M9Dw9vV/I/FhXKKzPWBEI/UMwp8T0qD5xOmGSeQ3DQBo yVPQ== 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; bh=KFwxo3qan4g6V4pQIK/kieZfz/hWqfOwQh2ghP5HzG4=; b=L9LY82luJx2VQWG+IOEgMROVPRHPgty90gMt9yV+1Rd/NyuKAbkclB8/Jvx5OnAMxm cWox0nC7f5rvWCbQ/ciVxnC2eGqyO0O9rSwBaD6uow6OGvDjOn6soHxOKXEtLKkN6+7D 73Nojvnp4dYyOZQ0AIi5tI84k91vpVlLI8tx9AININCBLFpHF98Rt4RiOL/9SipH7wuQ R4QcgjVoo5im5+kujQ6cfhLFJvR0PNigsiQbshtJ3LSmnHshTwKHF/hSeGNmX9MBzYGW ZplsLAx2H75BXJMGw5m+8ow4AKPfivSZngW0tvyA6PwI6uzjUwVw0KuHPAShzOEO2LQJ m79g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f21si3581805eds.396.2021.01.08.06.26.07; Fri, 08 Jan 2021 06:26:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727363AbhAHOY4 (ORCPT + 99 others); Fri, 8 Jan 2021 09:24:56 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:44232 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbhAHOYz (ORCPT ); Fri, 8 Jan 2021 09:24:55 -0500 Received: by mail-ot1-f54.google.com with SMTP id r9so9725988otk.11; Fri, 08 Jan 2021 06:24:39 -0800 (PST) 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=KFwxo3qan4g6V4pQIK/kieZfz/hWqfOwQh2ghP5HzG4=; b=RXHNwUlePxFPFEMSloIqi/vSTB3yKqZkNwYj09ZUDPKhiCdErCOmUVxMVY3YXgAKXX oTCWkZ/V1xHndaELfrI+DYgJ4DKCp39nBV6lCeh/3UXtz1os6YGiqy1LxVI2/kj43Eik 4ZB2R0ZhCtz2KqchFa2qSaOcIS0tQrt/Sxo3LmexMEA9wUmUjIKPAP7AmaT0QSeyWdm3 Y+t3GdLOBZ+tH5JNJem/2NKhmg9zSvXz7hGaU9D1s3ymYnmW6dDWwbqjejMybII02s8e AXEKWUh4F7fVwKbGyWVyjTtQEpVtso7qcoM1QCTO/6XMcXMzDwxJZVWHoZgTVO+UrnfL 9J0Q== X-Gm-Message-State: AOAM530Be+MYj2YmSWnztjG8fWERhVd+WFFTp6MsVfWSb4jQ7JUaSd+k hbtCh7qFQX/2eHiw/do/gYmfeBczhRzPIc46IDc= X-Received: by 2002:a05:6830:210a:: with SMTP id i10mr2750225otc.145.1610115854549; Fri, 08 Jan 2021 06:24:14 -0800 (PST) MIME-Version: 1.0 References: <20201228213121.2331449-1-aford173@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 8 Jan 2021 15:24:03 +0100 Message-ID: Subject: Re: [PATCH 1/4] dt-bindings: net: renesas,etheravb: Add additional clocks To: Adam Ford Cc: Linux-Renesas , Adam Ford-BE , Sergei Shtylyov , "David S. Miller" , Jakub Kicinski , Rob Herring , Magnus Damm , netdev , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On Fri, Jan 8, 2021 at 3:11 PM Geert Uytterhoeven wrote: > On Mon, Dec 28, 2020 at 10:32 PM Adam Ford wrote: > > The AVB driver assumes there is an external clock, but it could > > be driven by an external clock. In order to enable a programmable > > clock, it needs to be added to the clocks list and enabled in the > > driver. Since there currently only one clock, there is no > > clock-names list either. > > > > Update bindings to add the additional optional clock, and explicitly > > name both of them. > > > > Signed-off-by: Adam Ford > > Reviewed-by: Geert Uytterhoeven Upon second look... >> --- a/Documentation/devicetree/bindings/net/renesas,etheravb.yaml >> +++ b/Documentation/devicetree/bindings/net/renesas,etheravb.yaml >> @@ -49,7 +49,16 @@ properties: >> interrupt-names: true >> >> clocks: >> - maxItems: 1 >> + minItems: 1 >> + maxItems: 2 >> + items: >> + - description: AVB functional clock >> + - description: Optional TXC reference clock >> + >> + clock-names: >> + items: >> + - const: fck >> + - const: txc_refclk On R-Car Gen3 and RZ/G2, RGMII is used, and this clock is called "txcrefclk", i.e. without underscore. On R-Car Gen2, GMII is used, and this clock is called "gtxrefclk". Perhaps it should just be called "refclk"? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds