Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2091223imu; Thu, 24 Jan 2019 07:06:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN7uClu//qnLgOay8rau39VEsI9kDTvWkY13mKE22/lh+H4slF12cGkt6bkZrnTy6ZpfLI3e X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr6617257plm.249.1548342381036; Thu, 24 Jan 2019 07:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548342380; cv=none; d=google.com; s=arc-20160816; b=rPHHwWeuAyDdQwj7KH2mX0kkCsaHJuM58r5aKDPyp6SRIThVmiIA8eEGA9gwEmyGoo Pv1QELzAwK881dfYws7AFANA4Pw6UXckFPzyH2gi/2j4olWXGnhLVhQxnNAIxMEjUAbK /oxqoYxtkBGbwMUm3UCjKh+vLGXjk3AhJrJ9UaLIvMof+HsB3nGusq8xC4hpKuKlLi3n DJIQ87nwOZ13eeoAbu/aPGH+kcZlqGXfdBtVf4WbPxWO/HzqcNgRkzoEiaVZid/UOnWD 7n02IaXbQIkr3uM0+na/PbFKCTs/XoyxAFdsXtNsQwfbnYiR8I+K8BUfeTwZE7fAo4Bp SesQ== 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=w0clqmzoRBRL9AulfBvfyNgJoEOFlKnN26jUXV6HxCc=; b=zN68ih/g22siiWOt7XXMif6wSHZ5A9NdcOxPwegOrbKhQFr3qjy+F9fCgrH+wGcj67 Yij64Gq55/RwMDCkMWrDVcDjIso41pQZMDFOhQQmLvUZ5Ejf7prDbDhO+/vAiu2tmBfi RgMtH0mjibuUiyRI1q8uQHc+uiLh/RiX6ttGgYT0E454oXOIMm7iMgyJltH7IYsVI7ET DwAc5HcU6wNDDuHe5qN3P0a/BOJV3x/LOczpadTrj1VmOMBo4Fz+DWHNQHPT3Alrzq/7 +eGijhUAnOUyYgfnPIcGOOADnPQFHFxrnHYgBEfO0+5nGsgPdwAfdzkZed1rWK6bVsVG 6LAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L3AtP8Ja; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o89si21348423pfk.223.2019.01.24.07.06.00; Thu, 24 Jan 2019 07:06:20 -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=@gmail.com header.s=20161025 header.b=L3AtP8Ja; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728630AbfAXPEa (ORCPT + 99 others); Thu, 24 Jan 2019 10:04:30 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:38658 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727755AbfAXPEa (ORCPT ); Thu, 24 Jan 2019 10:04:30 -0500 Received: by mail-io1-f66.google.com with SMTP id l14so4959986ioj.5; Thu, 24 Jan 2019 07:04:29 -0800 (PST) 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=w0clqmzoRBRL9AulfBvfyNgJoEOFlKnN26jUXV6HxCc=; b=L3AtP8JaIgmYU8k6DOaKcOGmQXN/R2EOKun/tp+FvWwY8O5FatQXX14kiorKZGev8v rt73IGMlSlYIAN7zFtjEatYUhE+NLJpSwPliE74pKaFgZu/eP3ZHIav9nqIBWaqi2MR7 o8BikuHuEPSNW0By9EJHKDKGiJwpTAjRzdLoUf9P6mfhk88JEGsd5I8+hTd5WHCKCb36 ANeyDxv0Qyi2oNMMTyRvgwsRSQxp3rTHYxnRdTCfp2DlXzXobdvddg/cKkNEcjjRyKiF GA1Olnf6PR2TpfgTiT1r08MNJuRvtCFVqSSC2BKTOcFwNmZMD65UmPvl1URwwxenYy0n FPgA== 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=w0clqmzoRBRL9AulfBvfyNgJoEOFlKnN26jUXV6HxCc=; b=bFijacUWa7HRb1OH4rdnOPg93kwXmiU+h7qU3+qjfbbAWof4FLmGjz97MYPyetqXQj uGszdu6pJldqT6OGSSKxED/YxKoEW4DnE2zUWnSZD03EtCJf5MSOvAhw1V2VrYi8iSqP lzkxTUFy6vlQhu7ibidsDAMV7PFzr18boj3OKf4dalEIrI08e3gq76wN3EYf46ka5Ljf +Zn3+F9JY6LY5Vr+mT3jeCM46wkzb4In7C4us/UcrW8jENGOdMzTGiD7yfZXnxy6yd9T /KcfzFv6CFV9S+jKyKW1/SkHh7UcDsUUTv6bf2PmpBK+KSjLja89KrIBYJb63ZxjjAN8 sUJA== X-Gm-Message-State: AJcUukd2RFDnKowcu98mJRKUpSrxHHCA0D0a/KarhnEEc23z4//4rJHU jQ7+KcJNl6h22GjoE4BU7EnaEJ5sYBQDFagxhGw= X-Received: by 2002:a6b:fa01:: with SMTP id p1mr3761462ioh.271.1548342268977; Thu, 24 Jan 2019 07:04:28 -0800 (PST) MIME-Version: 1.0 References: <20190124145309.21698-1-ben.whitten@lairdtech.com> <20190124145309.21698-5-ben.whitten@lairdtech.com> In-Reply-To: <20190124145309.21698-5-ben.whitten@lairdtech.com> From: Ben Whitten Date: Thu, 24 Jan 2019 15:04:17 +0000 Message-ID: Subject: Re: [PATCH v3 lora-next 4/4] dt-bindings: lora: sx130x: add clock bindings To: =?UTF-8?Q?Andreas_F=C3=A4rber?= Cc: "David S. Miller" , Rob Herring , Mark Rutland , netdev , devicetree@vger.kernel.org, LKML , linux-lpwan@lists.infradead.org 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 Missed linux-lpwan On Thu, 24 Jan 2019 at 14:53, Ben Whitten wrote: > > From: Ben Whitten > > The SX130x family consumes two clocks, a 32 MHz clock provided by a > connected IQ transceiver, and a 133 MHz high speed clock. > It also provides a 32 MHz clock out to the radio in the TX path. > > In the example we connect the concentrator to a fixed clock providing > the 133 MHz high speed clock, and we connect to a connected transceiver > 32 MHz clock. > > A radio in the TX path is also connected to the 32 MHz clock out from the > concentrator. > > The connected radios are both fed from a fixed 32 MHz clock, with only > one being the clock source back to the SX130x concentrator. > > Signed-off-by: Ben Whitten > --- > v2 -> v3: > * Name input clocks specifically > * Add output clock for radio in TX path > v1 -> v2: > * Fixed incorrect usage of clock cells > * Fixed wording in commit and descriptions > --- > .../bindings/net/lora/semtech,sx130x.yaml | 52 ++++++++++++++++++- > 1 file changed, 51 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml b/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml > index 24fad1218735..5d32668d6ca9 100644 > --- a/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml > +++ b/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml > @@ -15,7 +15,9 @@ description: | > demodulating LoRa signals on 8 channels simultaneously. > > It is typically paired with two SX125x IQ radios controlled over an > - SPI directly from the concentrator. > + SPI directly from the concentrator. One of the radios will provide > + a 32 MHz clock back into the concentrator. > + The concentrator also outputs a 32 MHz clock to the radio(s) in the TX chain. > > The concentrator itself is controlled over SPI. > > @@ -37,6 +39,30 @@ properties: > maxItems: 1 > description: A connection of the reset gpio line. > > + clocks: > + maxItems: 2 > + items: > + - description: 32 MHz clock provider (CLK32M) > + - description: 133 MHz high speed clock provider (CLKHS) > + description: The chip requires two clock inputs; A 32MHz clock at CMOS > + level which is provided from a connected radio. > + And a 133MHz high speed clock at CMOS level provided by an oscillator. > + > + clock-names: > + items: > + - const: clk32m > + - const: clkhs > + description: Input clock (CLK32M) name from provider, Input clock (CLKHS) > + name from provider. > + > + clock-output-names: > + items: > + - const: sp_clk_out > + description: Output clock (SP_CLK_OUT) typically connected to the TX radio. > + > + '#clock-cells': > + const: 0 > + > radio-spi: > type: object > description: The concentrator can have two radios connected which are > @@ -73,6 +99,20 @@ examples: > > #include > > + tcxo: dummy32m { > + compatible = "fixed-clock"; > + clock-frequency = <32000000>; > + clock-output-names = "tcxo"; > + #clock-cells = <0>; > + }; > + > + clkhs: dummy133m { > + compatible = "fixed-clock"; > + clock-frequency = <133000000>; > + clock-output-names = "clkhs"; > + #clock-cells = <0>; > + }; > + > spi { > #address-cells = <1>; > #size-cells = <0>; > @@ -82,6 +122,10 @@ examples: > reg = <0>; > reset-gpios = <&pioB 27 GPIO_ACTIVE_HIGH>; > spi-max-frequency = <8000000>; > + clocks = <&radio1>, <&clkhs>; > + clock-names = "clk32m", "clkhs"; > + clock-output-names = "sp_clk_out"; > + #clock-cells = <0>; > > radio-spi { > #address-cells = <1>; > @@ -90,11 +134,17 @@ examples: > radio0: radio@0 { > compatible = "semtech,sx1257"; > reg = <0>; > + clocks = <&tcxo>, <&concentrator0>; > + clock-names = "fxosc", "fclk_in"; > }; > > radio1: radio@1 { > compatible = "semtech,sx1257"; > reg = <1>; > + clocks = <&tcxo>; > + clock-names = "fxosc"; > + clock-output-names = "fclk_out"; > + #clock-cells = <0>; > }; > }; > }; > -- > 2.17.1 >