Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3688654imu; Mon, 28 Jan 2019 09:05:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN7URHjiisva9qS5H/g9WkPYq7MAFzmhNGVJNzSiM1jwxJlD8xqrvXcTnMT0PyVsOlMBI1FO X-Received: by 2002:a63:4c4e:: with SMTP id m14mr20759923pgl.173.1548695130871; Mon, 28 Jan 2019 09:05:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548695130; cv=none; d=google.com; s=arc-20160816; b=triRiyfrYIG5Bk/HgquFER25vuhyydM+BHQGbDH7ok8Nw2SgppBtHvur5An71qphJP WYP5Sbe6Obp25e8WRa3t7q36Rr3L/P9/mQDm12LKMHfkxoM6s7TKrlGIiSRZVu63ig0b PBRwU5B5RlJW1vwL3U3o2Q9wfGhH1Mh7LHnODFuqN8XGdz6YvJZGHRWHbcrqDJkxP3wv jUzmsCWe8tTVIgkHDMklABeq+I2MWPGHq2/OUM007WB3qDRnPl2FiQKlr8Pdz2swTS4I Qjelr387k/LzXjwz9jjSlowxSwC5vHn2RNMoABbHwxnU/v55IOHhNVz60mRrNLJgomHk NYMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2+sJQfhRPX6mgylgaohdp6BE3uFottGVMdhI97In/E4=; b=z6e3pEJSIL+/JQfbpueRtUYXUi+oGGE5amgNY+CI/4vzfNkBVuE/oqlRD4hwX+zdLj 9RF8XpvAnlWQpfmCgnCC0LXMAJq/zFgL1pAYAbZkCOlypFJaO2RaKPWwNVcPriVWMdk1 E9FJhcQnmJIrm66ehHKDKQDY9U40tMQviFW/6naFqXrcHKPrai3qId8DGwzdNw7VyZx6 Um+dEEg4Yqo3VnbAg513ZQBnoK6pQO0fuZJ/TcAqGZsEJ1G8fkQP+MxrtUj0K5TH8+16 AQ2vdNhMmILPhNcKUw0Zgt8hHhQyvXnLEFjcEDVcLiDJPLxzQ/qXdk8Jc40oXRe0Ku8D m2Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=azGyiivK; 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 l17si32846121pfd.236.2019.01.28.09.05.09; Mon, 28 Jan 2019 09:05:30 -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=azGyiivK; 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 S2388023AbfA1RFF (ORCPT + 99 others); Mon, 28 Jan 2019 12:05:05 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45673 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731037AbfA1QNs (ORCPT ); Mon, 28 Jan 2019 11:13:48 -0500 Received: by mail-wr1-f66.google.com with SMTP id t6so18654318wrr.12; Mon, 28 Jan 2019 08:13:47 -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; bh=2+sJQfhRPX6mgylgaohdp6BE3uFottGVMdhI97In/E4=; b=azGyiivKbCzx3Bvy+KIIjB2yZfo2+rITf8W3lChR2G2ZxvIivU9DclhzliIDCRkNfB 3djqkW/od2EwAeDq9yMKepogcPGIWr1DaxqWrI4Pv9yQ+ko1njFBmzzy5L4wgUQjVoAm JHFDXHCJl/5Hkc1OMgCyL+wOT/1YX7h1yV945cZIeTeRfd0ZHOcTzzNKHNwzSnWhBvrj mF/M6vmE1ZpZC0sLSOnNFDQGKvvkDVQJkXzj5M6jSXejrq7wGKDnDe9gApJUm3OThOcv OKR1+e0PCq3M/dC7ylXRN3bZJ1VY3ZpVM/Zy/knYQRDxSnw/gp62yZ23FC1Bcb7prF7s 6AWw== 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; bh=2+sJQfhRPX6mgylgaohdp6BE3uFottGVMdhI97In/E4=; b=DlegejmrDMIsqJAEsdQJU8MrFUXHmVaWIIB8aGbrQqpkvUauaLwOjFS43q10BohhVU KRUbYrXHFp8I8ZRnYIE/pL0IvkiY0MzCOLKxjaO0s5kV0XAWHywQm8iscS1yluf84ktI spIdletnmbUE9wv9ejVJyNXSjP6uVQabjWHNpVTBtLv/9u1fdX9u/jPTeeNQhn65iwpM V/RZfBiK/PWNrIyqvAdAYH5J2QHkRHuJwROhYxhx7cd4T8a/5BLX08HbpyLk1z21m7/1 g5KE24Ny+5i5QgZ6SB89hqWpB4TVKxkllYwZWIsjqkJSQkX/W5Y7YchMDfpSHSjkogCR zZOw== X-Gm-Message-State: AJcUukdc4nGmtsmzOAQGDW5zjOj1ZeTSajERI1FH2PtS3hbtlP1JJxKo KO4D5c92ffqbzH8c7cDpbkQ= X-Received: by 2002:adf:900f:: with SMTP id h15mr22393334wrh.18.1548692026370; Mon, 28 Jan 2019 08:13:46 -0800 (PST) Received: from Sarah.corp.lairdtech.com ([109.174.151.67]) by smtp.gmail.com with ESMTPSA id l20sm246445944wrb.93.2019.01.28.08.13.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 08:13:45 -0800 (PST) From: Ben Whitten X-Google-Original-From: Ben Whitten To: afaerber@suse.de Cc: linux-lpwan@lists.infradead.org, Ben Whitten , "David S. Miller" , Rob Herring , Mark Rutland , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH lora-next 01/11] dt-bindings: net: lora: sx130x: add power lut binding Date: Mon, 28 Jan 2019 16:12:55 +0000 Message-Id: <20190128161306.27805-2-ben.whitten@lairdtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190128161306.27805-1-ben.whitten@lairdtech.com> References: <20190128161306.27805-1-ben.whitten@lairdtech.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Whitten Adding power lookup table for the concentrator specified in DT. These values are calibrated for the hardware and are unique to hardware designs and certifications. First byte is signed power in dBm measured at the rf connector. Second byte is unsigned value for DIGITAL gain. Third byte is unsigned value for PA gain, 2 bits only. Fourth byte is unsigned value for DAC gain, 2 bits only. Fifth byte is unsigned value for MIXER gain, 4 bits only. Signed-off-by: Ben Whitten --- .../bindings/net/lora/semtech,sx130x.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml b/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml index 24fad1218735..187fa2090a0b 100644 --- a/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml +++ b/Documentation/devicetree/bindings/net/lora/semtech,sx130x.yaml @@ -37,6 +37,15 @@ properties: maxItems: 1 description: A connection of the reset gpio line. + power-lut: + description: Power lookup table for the concentrator. + Consisting of maximum 16 entries, each entry having the following format; + First byte is signed power in dBm measured at the rf connector. + Second byte is unsigned value for DIGITAL gain. + Third byte is unsigned value for PA gain, 2 bits only. + Fourth byte is unsigned value for DAC gain, 2 bits only. + Fifth byte is unsigned value for MIXER gain, 4 bits only. + radio-spi: type: object description: The concentrator can have two radios connected which are @@ -83,6 +92,10 @@ examples: reset-gpios = <&pioB 27 GPIO_ACTIVE_HIGH>; spi-max-frequency = <8000000>; + power-lut = [ 00 00 00 03 09 + 03 00 00 03 0C + 04 00 00 03 0D ]; + radio-spi { #address-cells = <1>; #size-cells = <0>; -- 2.17.1