Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6572444imu; Mon, 21 Jan 2019 11:17:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Loh5XCc012jHvUJQg6AolvBfbM4D5Urf1CW7q0FMg996AvURMFmtDmPQpG1m/SjPmNBR8 X-Received: by 2002:a63:fd53:: with SMTP id m19mr29479652pgj.340.1548098223000; Mon, 21 Jan 2019 11:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548098222; cv=none; d=google.com; s=arc-20160816; b=n1xse1Sw494cyOJBLFg8VCUHwIxOtYBdAIv6+KCtAe0/hOr4ne4BLDWCsSEIuj8XQJ BY1jsdtAmT1ixS1l0+hDs08KaCJnp2oHXtwedftxkqgmcygmnA5dy0ryQOZpQjVriDGw CvBpzpF4vieg6gUZjbgT5O8sQK4OYPeKVaz7CjEzPyOTt3Jq5DN6l863joD9SziVQnow s7a6HLBhdx7yGg49ZInOXxX8hUqF3/orS7RoUqOiIf5zuiggsmHHwxLyTYsLGw0UMaMe os2NdFN5oYo1HoBODcDr0Av+NdvhUnLK2+uscbwe5coW+4EaEyhtvMBsUpVgYvQEbdn7 1Q1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+hMm63c9ntcXS9vFDdWzQZYqYhCh7H/0FXYUZ6ODJwU=; b=zi3xEKZ5RUHeqSTJkUukySW6WVb6CJFUUGfg2/ctCNQPJRIE9w07S76NnUQzaA1Nvi MNclE19eEbSQFkOmp/MEaIm8TK6+0AQguskOTvn6h6i214biDzPM+wDhQP78n12WIfaf D/VvTyF1Us6pJ75biv+D8ZOhuO9zZ+7GsA0Wz/nnhQtGj+jF3KBZzSkz80wMkpxtMQ3h iPJCU4wR7B4/i4285UBdq0Xmdy+0bsSHPgJWrfzmRgs4NZPV5Go6kyUrO7zqsoNFr7pp P+5xVe3esxpOpzxDqa/5llAgwcDU8n7EYOcy89Ky73eTu9EdKCnHmrv1mo6V4cTmdjYZ hVCg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 g8si12827377pgo.166.2019.01.21.11.16.47; Mon, 21 Jan 2019 11:17:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727710AbfAUTOY (ORCPT + 99 others); Mon, 21 Jan 2019 14:14:24 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:44732 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbfAUTOX (ORCPT ); Mon, 21 Jan 2019 14:14:23 -0500 Received: by mail-ot1-f68.google.com with SMTP id f18so21442495otl.11; Mon, 21 Jan 2019 11:14:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=+hMm63c9ntcXS9vFDdWzQZYqYhCh7H/0FXYUZ6ODJwU=; b=dfoFwxPZRrjsw7OoMhnkSf01PAg6IIZpJy7Qz4RXOYL7gT8OkJUEqW2oAwBYlVvZRZ wtxt31ySyIQ7kv4fTaamDDIbgmfSBubcgRgtcRc1USb6z0rX8AR+1hizrBboo86RicX6 c1zsm1v4whlj0STDimTjkkI8S2pKikt+jBBJrtCc0WB/881Gr9wmo9SKpHESkhRrNEER 2Vh01MulaFrYI92+W9tarddTvuLiAi0qf+0Llb9yf66XcNeQT+S8NdWqd5O64YEFtVZ9 zMt75BrQbCkJaVA437KZ0qx6NURpauJc2X5urombntRifT3M/kZE1e+os+Q5ZZtgW2vN TzRQ== X-Gm-Message-State: AJcUukfMSfXmWkx7JQ6B7KYqdQwcGAzMYY8GlrKRTCi8sJfWD0dKLGyO r0nuRjk0QcL4O1tLTl1kDQ== X-Received: by 2002:a9d:3782:: with SMTP id x2mr7461403otb.13.1548098062125; Mon, 21 Jan 2019 11:14:22 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id c23sm5723706otn.21.2019.01.21.11.14.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 11:14:21 -0800 (PST) Date: Mon, 21 Jan 2019 13:14:20 -0600 From: Rob Herring To: Ben Whitten Cc: linux-lpwan@lists.infradead.org, afaerber@suse.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mark Rutland Subject: Re: [PATCH lora-next 1/4] dt-bindings: lora: sx130x: add basic documentation Message-ID: <20190121191420.GA7878@bogus> References: <20190108084132.10214-1-ben.whitten@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190108084132.10214-1-ben.whitten@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 08, 2019 at 05:41:29PM +0900, Ben Whitten wrote: > Add basic documentation in YAML format for the sx130x series concentrators > from Semtech. > Required is; the location on the SPI bus, the reset gpio and the node for > downstream IQ radios, typically sx125x. > > Signed-off-by: Ben Whitten > --- > .../bindings/lora/semtech,sx130x.yaml | 87 +++++++++++++++++++ > 1 file changed, 87 insertions(+) > create mode 100644 Documentation/devicetree/bindings/lora/semtech,sx130x.yaml A schema binding. Yay! > > diff --git a/Documentation/devicetree/bindings/lora/semtech,sx130x.yaml b/Documentation/devicetree/bindings/lora/semtech,sx130x.yaml > new file mode 100644 > index 000000000000..ad263bc4e60d > --- /dev/null > +++ b/Documentation/devicetree/bindings/lora/semtech,sx130x.yaml > @@ -0,0 +1,87 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/lora/semtech,sx130x.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Semtech LoRa concentrator > + > +maintainers: > + - Andreas F?rber > + - 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 it controlled over SPI. s/it/is/ > + > +properties: > + compatible: > + items: > + - enum: > + - semtech,sx1301 > + - semtech,sx1308 > + > + reg: > + maxItems: 1 > + description: The chip select on the SPI bus. > + > + reset-gpios: > + maxItems: 1 > + description: A connection of the reset gpio line. > + > + spi-max-frequency: > + maximum: 10000000 > + default: 8000000 > + description: The frequency of the SPI communication to the concentrator, > + in Hz. Maximum SPI frequency is 10MHz although 8MHz is typically used > + on a number of cards. > + > + radio-spi: child nodes should have 'type: object' > + description: The concentrator has two radios connected which are contained > + within the following node. > + > + properties: > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 You need the grandchildren here too to define 'reg' should be 0-8. You'll need to use 'patternProperties' since there's a unit-address. You could maybe get rid of the radio-spi node. You don't need it unless you wanted to add other types of child nodes. > + > + required: > + - '#address-cells' > + - '#size-cells' > + > +required: > + - compatible > + - reg > + - reset-gpios > + - radio-spi > + > +examples: > + - | > + concentrator0: lora@0 { > + compatible = "semtech,sx1301"; > + reg = <0>; > + reset-gpios = <&pioB 27 GPIO_ACTIVE_HIGH>; > + spi-max-frequency = <8000000>; > + > + radio-spi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + radio0: lora@0 { > + compatible = "semtech,sx1257"; > + reg = <0>; > + }; > + > + radio1: lora@1 { > + compatible = "semtech,sx1257"; > + reg = <1>; > + }; > + }; > + }; > -- > 2.17.1 >