Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7820677imu; Tue, 22 Jan 2019 12:14:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN6kZKc3g2lvNHIu9aU+L14oCWegFW2ZkCvIsXDkG59Cv6/cR/LRoF31BbLPbEdIcfsDmrRN X-Received: by 2002:a65:6148:: with SMTP id o8mr33349997pgv.451.1548188067919; Tue, 22 Jan 2019 12:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548188067; cv=none; d=google.com; s=arc-20160816; b=KDnfYEJrTPB+5HyxFhxWe0zjPdA86Ekc5tsZEU2EdfBt9sWDn/Nc0ImkPrBHDAi0Ox m0J95Ug3hinXdL9EVLxtnzKu21f6VLlUcFvDKY1CPHUS5sVt6EPpzAdMWu9SPoaPbKCY nhoFgh3m3mGxJBLLoFBF0q4UbRISNRnRJ5BI9szeBxjaeJTmrEtO0wP5a/YRLb/mK6+T 1wq7UsoVx/uB8WHPGlZkhV43B5XWf4oSUSJuRk8pwFIdwkDRO/NGt299arttkMzRuSjg SkRiGkqsUU4P0cwyDOVdaQALZPrSFnIO627/WLha6DNY1OURs3DFG5WrpBBQ2ttKJN0c OnGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vFARUIx+VpICQw5ajiMTwBskBNqFm2iNxFLtFzEwEBc=; b=NsX+pe/TAFWBQGCKs0LRjVaT9la1WE0dson0hzBP0ugH9Avini3SUmAbE3KDDbzVNR N8VLL52dBBc1tPkxLNDGgSFo7bZPep2/qC1lMbMqjbOLA2Ef/vHNaCplUAgHO2aiBpif SavKRy+WUcS/PLs30dsOY04aAdG69zZbd5gfnsH5vljNr8/+Tc1J8IQKqJ3zd3YW8Rew FLpiAtyJEs/Yi3Z8QnLlte3jpEpH5ZytiUFe+JZka0QDPaLTtkx/VT3pOkOXB9zhmtUX ic5jLJo8MaMbIpOVtOhZNcCM6wUqk4ZybV/OAc0KaZxr51Ob3v27W/eE0SK2JqVTieIx AqQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V1LNpTqN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 191si16988393pgf.41.2019.01.22.12.14.12; Tue, 22 Jan 2019 12:14:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V1LNpTqN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726914AbfAVUMl (ORCPT + 99 others); Tue, 22 Jan 2019 15:12:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:40440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726059AbfAVUMl (ORCPT ); Tue, 22 Jan 2019 15:12:41 -0500 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CED8821841; Tue, 22 Jan 2019 20:12:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548187960; bh=9akGmmtaOdopjNkPcQSBQ9Qnp9/7y4w/jQA3+Olur48=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=V1LNpTqNN+UOaqLCkAE9cmgivjzvHfqrjwbIsTgBTQ0RfE5gbLyEy2kx3JVRCAgII 8/Mstcra0RK/iPsPc7kXClOqT7ypTSbbGq4JvsMwE5RAUKUDRNrr7swhREfacDNWRR C3JC9A3hg5v0ou4DcZnt3zjGORoI7WGA0ZHeJwhI= Received: by mail-qt1-f169.google.com with SMTP id p17so29155465qtl.5; Tue, 22 Jan 2019 12:12:39 -0800 (PST) X-Gm-Message-State: AJcUukdG/wFuhyZEE/ClRaZ6Igimpkv4YhB9WA9pRA+UWF1jUPEhLV8Z kJ09qvZmPzYQFEiRxjIXtgy1ptf3J1w3f1le4g== X-Received: by 2002:a0c:f212:: with SMTP id h18mr31281478qvk.106.1548187959020; Tue, 22 Jan 2019 12:12:39 -0800 (PST) MIME-Version: 1.0 References: <20190122180729.1834-1-ben.whitten@lairdtech.com> <20190122180729.1834-4-ben.whitten@lairdtech.com> In-Reply-To: <20190122180729.1834-4-ben.whitten@lairdtech.com> From: Rob Herring Date: Tue, 22 Jan 2019 14:12:27 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 lora-next 3/4] dt-bindings: lora: sx125x: add clock bindings To: Ben Whitten Cc: =?UTF-8?Q?Andreas_F=C3=A4rber?= , netdev , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, Mark Rutland , linux-lpwan@lists.infradead.org, "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 22, 2019 at 12:07 PM Ben Whitten wrote: > > From: Ben Whitten > > The SX125x consumes a clock (FXOSC) ranging from 32 to 36 MHz. > If the radio is coupled with an SX130x the radio is therefor operating in > master mode and it may also provide a gated version of this clock for the > concentrator. In this case the concentrator is expecting a 32 MHz input > clock. > > In the example we connect to the "txco" clock source, represented by a > fixed clock. The radio also provides a clock output named "clk32m" for > consumption by the SX130x concentrator. You can squash the clock patches into the 1st 2 patches if you want. > Signed-off-by: Ben Whitten > --- > v1 -> v2: > * Fixed incorrect usage of clock cells > * Fixed wording in commit and descriptions > * Dropped enforced clock names > --- > .../bindings/net/lora/semtech,sx125x.yaml | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml b/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml > index 4a51a251d97f..8287472fd545 100644 > --- a/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml > +++ b/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml > @@ -27,12 +27,36 @@ properties: > description: The chip select on the SPI bus or radio number in concentrator > , with radio A = 0 and radio B = 1. > > + clocks: > + maxItems: 1 > + description: Input clock (FXOSC) provider with output ranging from 32 MHz > + to 36 MHz. > + > + clock-names: > + maxItems: 1 This needs to say what the names are: items: - const: txco With that, you can drop maxItems as that is implied if we list the items. Just to be clear, this name should be what the clock input is called, not what drives the input. Seems like that would be 'fxosc'? > + description: Input clock (FXOSC) name from provider. > + > + clock-output-names: > + maxItems: 1 This too should list the actual names. > + description: Output clock (CLK_OUT) name, clock is gated version of the > + input (FXOSC). Used in master mode operation. > + > + '#clock-cells': > + const: 0 > + > required: > - compatible > - reg > > examples: > - | > + tcxo: dummy32m { > + compatible = "fixed-clock"; > + clock-frequency = <32000000>; > + clock-output-names = "tcxo"; > + #clock-cells = <0>; > + }; > + > spi { > #address-cells = <1>; > #size-cells = <0>; > @@ -40,5 +64,9 @@ examples: > radio0: lora@0 { > compatible = "semtech,sx1257"; > reg = <0>; > + clocks = <&tcxo>; > + clock-names = "tcxo"; > + clock-output-names = "clk32m"; > + #clock-cells = <0>; > }; > }; > -- > 2.17.1 >