Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2079656imu; Thu, 24 Jan 2019 06:56:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN4sddqawJwQJi2l8YKdJWbNWZtEljreDyamohMzGsCOXuJjTxh0zuBJuj2pzKiYC6X1RXur X-Received: by 2002:a17:902:9305:: with SMTP id bc5mr6783625plb.86.1548341795908; Thu, 24 Jan 2019 06:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548341795; cv=none; d=google.com; s=arc-20160816; b=LVfGzfbsJYWO6Q3dAg87vUNZVk0k89KcclaP8Eg9wC/2m/n7vu2hJJTgyZa8K3GUbM O3Gnto7a58MI4gm+aUZpo29hYiZQ4BrRrR/M42PrmfKEAzyG44VEmrLMysJHNZdK+326 YeGVE2QRsV6myBkoAN1xNJXXg1kJoDouKEZZ6ehI+yMBzru+xWBUaWFBSLSDf4q3XubW Ua1zijJqKd55+ZZGNLM1SiaJazRFU+PRTPaCuWXeweytS0FhY7Dy5e5JQgalm/IPvDIO Jzj1/hWHtZS6WN0iL5KaMpVdotxgT1ubw07xUz6NaktFQMgMdXpMkx13/DnC0au7GVjB 8oVw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zndVnj3d64tbcPJgxyTchcrUoiXidx1kg7GR71aJ6DM=; b=q5NdPotscOVw3x0h6sf/gJCNw7Nh8CXmSqj5Fz/i2xqlIA1prye/ini/Vb498rwqBb UrUwDvvkBP8T6E1SWVgOZS/mDxIxDjgKaU92is+B4S7blBSatlY+IG7aoF/QuIUvRKAp Ozc/QiDqiOTLQ8upjoVaB/pSp1J6wbRl1yMN6Tpmo3uKVgockIKwW/Zkr8rv7tRuynwQ lrCEcs4KtRKYlTB2ikXSZpQA98Dkc8byEf/pG/Mma+vKV03ZIM7HKr1EfB8KyqS8bcFk KNMFevDeCWqGYerY6VKP8kZdgpb7tFCj1vFomS6wC9eAOxGlJ+YfEsEGxRYnVGn4gcIZ MuXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SglbaEct; 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=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 y7si19856502pga.296.2019.01.24.06.56.19; Thu, 24 Jan 2019 06:56:35 -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=fail header.i=@gmail.com header.s=20161025 header.b=SglbaEct; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728483AbfAXOyB (ORCPT + 99 others); Thu, 24 Jan 2019 09:54:01 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36476 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfAXOx6 (ORCPT ); Thu, 24 Jan 2019 09:53:58 -0500 Received: by mail-wr1-f65.google.com with SMTP id u4so6810205wrp.3; Thu, 24 Jan 2019 06:53:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zndVnj3d64tbcPJgxyTchcrUoiXidx1kg7GR71aJ6DM=; b=SglbaEctxpIdlndix2TOUQ4nZziNklAn14c19B62H3pzftrFsSVSrqXfy8IWek8g1f nXwvajI9LLaoWGSR7ZnFayYa+cn5389kv+e+ug9s5ezO59MPjmP5vxm0KjuOmDdZ7FsI q3JVP03uyPSsIjHbpo+pTzzNU8eOdNxkOzFg4AslQSOR0uhJo17oCgOQ1vFhQMvEXu4L KFFMt4D6ab3ytX4W258VRCbSJywmiRwv55SAPjGp7RUYh/KLYPiwFXbsBffpf+NIeDiI /Px661pajKZPnOzIAQ18ttPYMhTGnN0FpWScE6LJ8YrOMM/JJcpT24S78yNtDyT/oGRM 9p8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=zndVnj3d64tbcPJgxyTchcrUoiXidx1kg7GR71aJ6DM=; b=iXG/3W3NAJQ44zkD2oLFKSKRNWVh4TTBM67TzV96862v0wg1QbG09TZ6v2SjK8f/wt 5sIIMSVd2LPS2CwOo0G4fewQjWbb17LxppeDbTYyAU8IIz3huaVCO8kvi3EVzZ2Gp2+p smZuc8SGLT4LWRAx9JimJeFrkvuA3anPcYDRPsROkPeBwrd/GtYKCyPeGjVzGbqw0YIE +/rF0H73s7eBZNMIOwb0vV4EmI+KrB7Jh0PhoSpVi2UWiF8tm3hsyhVfW/Kcd8C7atCo oAOiIfNr/HV71whmT3PzN4Hs1a4z26Ic+OUHm7jVhCya1x/P851E+OHlfUwscp6v2WxP eNMQ== X-Gm-Message-State: AJcUukdoytSXbMPBRdP3rGOQy458PbTn8/pOeHniRKOKmeEgcW6OlT/p 0MQOwFk7eHSozVUmzHqzFCw= X-Received: by 2002:adf:b608:: with SMTP id f8mr7353432wre.120.1548341636050; Thu, 24 Jan 2019 06:53:56 -0800 (PST) Received: from Sarah.corp.lairdtech.com ([109.174.151.67]) by smtp.gmail.com with ESMTPSA id t63sm53611538wmt.8.2019.01.24.06.53.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 06:53:55 -0800 (PST) From: Ben Whitten X-Google-Original-From: Ben Whitten To: afaerber@suse.de Cc: davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Whitten Subject: [PATCH v3 lora-next 1/4] dt-bindings: lora: sx130x: add basic documentation Date: Thu, 24 Jan 2019 14:53:06 +0000 Message-Id: <20190124145309.21698-2-ben.whitten@lairdtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190124145309.21698-1-ben.whitten@lairdtech.com> References: <20190124145309.21698-1-ben.whitten@lairdtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Whitten Add basic documentation in YAML format for the SX130x series concentrators 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,sx130x.yaml diff --git a/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml 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ä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 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 are + 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 = <1>; + #size-cells = <0>; + + 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: radio@0 { + compatible = "semtech,sx1257"; + reg = <0>; + }; + + radio1: radio@1 { + compatible = "semtech,sx1257"; + reg = <1>; + }; + }; + }; + }; -- 2.17.1