From patchwork Thu Dec 13 14:44:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Brauchli X-Patchwork-Id: 10728797 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AED3E112E for ; Thu, 13 Dec 2018 14:44:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CFFF2C237 for ; Thu, 13 Dec 2018 14:44:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90DAD2C2DF; Thu, 13 Dec 2018 14:44:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42BDB2C237 for ; Thu, 13 Dec 2018 14:44:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728033AbeLMOoZ (ORCPT ); Thu, 13 Dec 2018 09:44:25 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42348 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729031AbeLMOoZ (ORCPT ); Thu, 13 Dec 2018 09:44:25 -0500 Received: by mail-ed1-f68.google.com with SMTP id j6so2210629edp.9 for ; Thu, 13 Dec 2018 06:44:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elementarea-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=sk7VSPsVfgFjKWt+SwLUYCsEgXBvRweH1J/0uUlmL+g=; b=i7jNemsKibDCPkzcm1wYCpQOuvYbN6U7EaeERh0gqlZQOJZlotvNV4ey7Bd9lQ3u1m QyxSvLcnkKCuVtaDy75JjC67h1uoEU4qtHsjozNOwM08LpzCaEGNw3hapF8H5B/u36WB KnkK3c1N7g2VSTf4lDEmh0Tukco4Qjc9VSbOyl65MZDL1w73iqSSM/sgvQirpBCzx4gL sIjy1lLtjsGUg9CeSejLXaIVo0lULeJ0yWa6i6U0dW/roqgk+T4VYn5z8a9P7kaqKbpP J3khK/1l/NfrE+8xtKaIW36swNLHznCwdK4eAx1kLe7uqgnG3y7vevBT+1Ph+A0VBROk n+rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sk7VSPsVfgFjKWt+SwLUYCsEgXBvRweH1J/0uUlmL+g=; b=lpAVg/SEKBeDEfiqHUSZR9JKMxTY9LdaV7GYyIumi/g4DGlTeHMqd+IV7HYxAWSor9 qI+8uet5rc2VYGkeJ52TS3F8jjGKq2ZyPorKjNt/ftRcHVLh8Qrih5KUxkcmeci7ocFO yFyYelKdlNgz4qPZf7Fh5nBB95wDhsRTx1qKcw/98eyAzUa/+SbbpfSc80sQ76COpLlK mlArdTEbTehLV8hXPAGE9dBwI+Ua19iBNzRhzUQuauet9ukBlIDCXB9C1KVqtihsoQ2a 2zC0+jMErFXS6grtQI55G+SKojFwSeFgQ+ST4HcMwz/ezM8414dkqJFYWIpbDknBISfz wClQ== X-Gm-Message-State: AA+aEWZF532dLtxo5g6gIg7AMJAUQf0vZQf9y7rg0SZafeI2agYy/Mov d+9DFockGs4s/CQz1E4oVwTitg== X-Google-Smtp-Source: AFSGD/UBorbcbCXzDdCylHLZJJQEYPVz0+FXfIFnK0a+34sYScFFvoz+a8t6Jbd92fV0GwipvDqEIQ== X-Received: by 2002:a50:d797:: with SMTP id w23mr23531264edi.19.1544712263833; Thu, 13 Dec 2018 06:44:23 -0800 (PST) Received: from ch-sta-l-li0012.sensirion.lokal ([209.206.26.1]) by smtp.gmail.com with ESMTPSA id p36sm674842edc.78.2018.12.13.06.44.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Dec 2018 06:44:23 -0800 (PST) From: Andreas Brauchli X-Google-Original-From: Andreas Brauchli To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Brauchli Subject: [PATCH v3 3/3] iio: chemical: sgp30: add device tree support Date: Thu, 13 Dec 2018 15:44:18 +0100 Message-Id: <20181213144418.24965-1-andreas.brauchli@sensirion.com> X-Mailer: git-send-email 2.17.1 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add device tree support for Sensirion SGP30/SGPC3 gas sensors. Signed-off-by: Andreas Brauchli Reviewed-by: Rob Herring --- .../bindings/iio/chemical/sensirion,sgp30.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt b/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt new file mode 100644 index 000000000000..5844ed58173c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt @@ -0,0 +1,15 @@ +* Sensirion SGP30/SGPC3 multi-pixel Gas Sensor + +Required properties: + + - compatible: must be one of + "sensirion,sgp30" + "sensirion,sgpc3" + - reg: the I2C address of the sensor + +Example: + +gas@58 { + compatible = "sensirion,sgp30"; + reg = <0x58>; +};