Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2088787imu; Thu, 24 Jan 2019 07:04:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN5czI28iLrJkJK05ic/yKUWoO8u6PLvmFSk9pTk3Suqo57RajuNFPKdOqFsnsL51fUSsgb/ X-Received: by 2002:a63:2849:: with SMTP id o70mr6136146pgo.155.1548342263708; Thu, 24 Jan 2019 07:04:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548342263; cv=none; d=google.com; s=arc-20160816; b=q4I/Kzv/g+OFmMa8rq0onIJQAnvyw3qt81wQmfP4/i/9+3gbz5lGAh3ndFytlPhE4K 8Obs+KUJK6nAhRrAkZtSFiIjN/L6KfJ7xFxfO2c9/XXMksr0Nc3ogQigSQBYdyrlMuWq x8yzKpuMwbyaiEEaKiuba7Ple33SAiWmbWIakqP869P7HkIcGA8jknNPKPmT86QAoNsg yX7HA9LRMReWryktc56IWwJpDQB6g3vgPiaOjbSnjysuot0lnK5RJeLwakWzsNvyKsPH N6OSG3Q36mJMzeo5F+htp89XM4m+Oct/Y2fyjIYTRM/WZUG5HkvcZFoMrxuMKIN2duRF LiTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=O22bUm5jDHn7PG91NSWCT+/PGgDa8Sd/8pbGVjGcmuA=; b=uojx3Ak/ml2wxFJhZuaovCasGrFvEAhJU3v/n7qj+v3y2AIPeK+7cyodM8YHxnU4bo iJ7b1CQAcP7LcMjbdJCGG0mHdsPPVPKOyHcqUqCvfz00Sqj33AoDUL0TMJFuUTNV0QHZ USP61SfhtkZN7vIjuDd+k/aQNWHokaJn4QfeO5xJpdDnyVg7z8IhwO2+Jyforn2beRul 66X483JFpMcRyVM+dtF9HV6920acqKCLLCMNcKiXxHrTuSBkNN036LVm1UFii3ctHtPB 5eRcZWJgJA2py0gvlx86f0BP5GZYxSFQChr7RTQzaHtUQYeXWfrUP3Y40Z9vHXtyKkPA N8wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KawMuRX9; 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 y126si16569137pgb.165.2019.01.24.07.04.05; Thu, 24 Jan 2019 07:04:23 -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=KawMuRX9; 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 S1728558AbfAXPDi (ORCPT + 99 others); Thu, 24 Jan 2019 10:03:38 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36847 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727755AbfAXPDi (ORCPT ); Thu, 24 Jan 2019 10:03:38 -0500 Received: by mail-lj1-f196.google.com with SMTP id g11-v6so5526989ljk.3; Thu, 24 Jan 2019 07:03:36 -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:content-transfer-encoding; bh=O22bUm5jDHn7PG91NSWCT+/PGgDa8Sd/8pbGVjGcmuA=; b=KawMuRX9TD+ftxNlFMz+HRr+WvRmiT0tNe/zSVmWOL/38pKUQmuOsusSeChdC1Sy+H PPsiVOuUraVAX6mEPbC5RToOq2Yg+0fZeBPapUGb8sVkO4CP7c2XlJh/nPN4srt6cPT1 Lzi9QK7afI9QUKYYsGW0y7aCDrqKIPsSO7s4F6Q/qUb8ntWb1Z/fpCNIDkrcbX/fUAKx 0kU2GYoxo7FDaD9BJtDTfqf1hQ2UxAyCy63FpiARQ0oxBkW30P5+kypD7xw22ilQZ/zR K4oMtPPlxNn8dwDKaqu2rLmgb/wtCvVaDf3S3Xm8J6GKBoaRrjhD0RU44fU9ExRzx5rV s6xA== 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:content-transfer-encoding; bh=O22bUm5jDHn7PG91NSWCT+/PGgDa8Sd/8pbGVjGcmuA=; b=sAmRksFeRUEVRfptnbOnMviO2m3TtQnt7nfVhakv8u7lhdKCAx4cEFq5mgo4dY7ndo LS3aJI5c9gITgoOaMITSZFEXfyDLmIhNTpMbLSoFhYxuH0eaDlRFXui8ABbwkDCUIHDd eNK3LzaS1JFx0mFyPhpe0Uk/onXvNsh0Tmv1OsKVeWFLrNBgmH44BjUy0NlRIAS336NN xNXpEw8VvDMXmCYKkujHNmb+4OlkDIr9py7lgPaXgfxEv4QogSwY4IVmjFR2p+WeLvIg 9dhT/eiKf7oSqpIdHWqqxkB/rykhL1b+yNmOdEqYe1uPVvQ9AUtslzEeXiEcRVMM9a1f 4cBg== X-Gm-Message-State: AJcUukeDR+QFuRJa9AP6S/s9e3LZItNHbzCeCRrI9m/4DpfVyTmqNfgh vL9PCiDCjCuB9vJ+4XzZZsjXx8pyjY873u0tV/w= X-Received: by 2002:a2e:908b:: with SMTP id l11-v6mr5793210ljg.150.1548342215461; Thu, 24 Jan 2019 07:03:35 -0800 (PST) MIME-Version: 1.0 References: <20190124145309.21698-1-ben.whitten@lairdtech.com> <20190124145309.21698-2-ben.whitten@lairdtech.com> In-Reply-To: <20190124145309.21698-2-ben.whitten@lairdtech.com> From: Ben Whitten Date: Thu, 24 Jan 2019 15:03:24 +0000 Message-ID: Subject: Re: [PATCH v3 lora-next 1/4] dt-bindings: lora: sx130x: add basic documentation To: =?UTF-8?Q?Andreas_F=C3=A4rber?= Cc: "David S. Miller" , Rob Herring , Mark Rutland , netdev , devicetree@vger.kernel.org, linux-lpwan@lists.infradead.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 > > Add basic documentation in YAML format for the SX130x series concentrator= s > from Semtech. > Required is; the location on the SPI bus and the compatible string. > > Signed-off-by: Ben Whitten > --- > v2 -> v3: > * Corrected fallback notation > * Limited radio node names from anything to 'radio@' > v1 -> v2: > * Dropped reset-gpios, radio-spi from required. > * Dropped spi-max-frequency from binding. > * Changed compatible to allow fallback from SX1308 to SX1301. > * Wording changes in commit and descriptions. > * Dual licence > * Incorperate Robs comments on child node and spi wrapper > --- > .../bindings/net/lora/semtech,sx130x.yaml | 101 ++++++++++++++++++ > 1 file changed, 101 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/lora/semtech,sx= 130x.yaml > > diff --git a/Documentation/devicetree/bindings/net/lora/semtech,sx130x.ya= ml b/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml > new file mode 100644 > index 000000000000..24fad1218735 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml > @@ -0,0 +1,101 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/lora/semtech,sx130x.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Semtech LoRa concentrator > + > +maintainers: > + - Andreas F=C3=A4rber > + - Ben Whitten > + > +description: | > + Semtech LoRa concentrator SX130x digital baseband chip is capable of > + demodulating LoRa signals on 8 channels simultaneously. > + > + It is typically paired with two SX125x IQ radios controlled over an > + SPI directly from the concentrator. > + > + The concentrator itself is controlled over SPI. > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - semtech,sx1308 > + - const: semtech,sx1301 > + - items: > + - const: semtech,sx1301 > + > + reg: > + maxItems: 1 > + description: The chip select on the SPI bus. > + > + reset-gpios: > + maxItems: 1 > + description: A connection of the reset gpio line. > + > + radio-spi: > + type: object > + description: The concentrator can have two radios connected which ar= e > + contained within the following node. > + > + properties: > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + patternProperties: > + "^radio@[0-1]$": > + type: object > + properties: > + reg: > + maxItems: 1 > + minimum: 0 > + maximum: 1 > + required: > + - reg > + > + required: > + - '#address-cells' > + - '#size-cells' > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + > + #include > + > + spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + concentrator0: lora@0 { > + compatible =3D "semtech,sx1301"; > + reg =3D <0>; > + reset-gpios =3D <&pioB 27 GPIO_ACTIVE_HIGH>; > + spi-max-frequency =3D <8000000>; > + > + radio-spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + radio0: radio@0 { > + compatible =3D "semtech,sx1257"; > + reg =3D <0>; > + }; > + > + radio1: radio@1 { > + compatible =3D "semtech,sx1257"; > + reg =3D <1>; > + }; > + }; > + }; > + }; > -- > 2.17.1 >