From patchwork Thu Sep 6 21:04:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10591065 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 B66D45A4 for ; Thu, 6 Sep 2018 21:07:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F86D2B232 for ; Thu, 6 Sep 2018 21:07:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92BA12B248; Thu, 6 Sep 2018 21:07:22 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3BE8D2B232 for ; Thu, 6 Sep 2018 21:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kwFabY4CVM0EVNzO28sJ9gGVcfFLG6Sfe1xNklmY09o=; b=sV2HOaH9G3xeMW dJurQ3P85e8mIA5Dj9qk5why+Xp/Pp6GflZ2qzBSLpyn9hxb5gYYMVaSkN4y0XJVr4ehQ4r+WntpE PG67bqnWlsfNdJGK1ID3Ioeh4DhRjIFdr53ggWylMpfvd2x8XauKvTdnt69qZFM+GkcD8esgJQg3Y eluNDuxfaQh3RZt6h15XpYguEIlccOzERmKcZ3fhu0JrhimHAgtpD9Uf7ySZNf5imBaX1H/Yoo6Xg m0mnHuj/5nADeA2BI+84TcW2/N9SnomjGCIrS/YvczT+tseL7vy07eVEqqJGGcV+VLox0vA0acstv hx5tU15RGpiaTT6wwd6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fy1Ud-0004iy-OH; Thu, 06 Sep 2018 21:07:11 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fy1TF-00044d-Dn for linux-arm-kernel@lists.infradead.org; Thu, 06 Sep 2018 21:05:46 +0000 Received: by mail-pl1-x642.google.com with SMTP id g2-v6so4577648plo.2 for ; Thu, 06 Sep 2018 14:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NsxEEp1YuaF4+Xx32M6ZV98/mEpGcOtgX+T6zkFwWxs=; b=W0qpNjwpuHXr9j6ogd/zGiLkWy1viJkfbBcBVmzrM4KCDoRemM6X9tBRhtAOrZtOpc QxLGhEJ5vvmMQpkbpi0KNDN/Ro/Fu2Whzmc0h+uA0PwtWl4LwD7hnQOzMf525PEytw6d 3pUIC4CpdF5P9X2dXHVTrh1tZOeuaKCiR8+30= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NsxEEp1YuaF4+Xx32M6ZV98/mEpGcOtgX+T6zkFwWxs=; b=gSVMaJ+ce/hiQSnHHfMrI8l9oW4V5+C+LVsl2bouqNWQGeZVSk5c07d2QSfpEN139f 1B29rrBV2LVzLXllkG3aWabM2zudxOj1Y3yJ6rJ24vTbYlH7KwG2DUeHNgE8bJjDNmaH NuCsUwrhUtvU0CqU9Im58YPDKBB9o9CJ9+86OzCKSv2kXwcYh6ldrLKrz+kAFLS+lviU jweEJMf7A1O3ejInVGLSob0ZtX0h2EYzhGfXeI4clltHsqAsNTLzlIjivH6C2nRDe/rc mfLZZ6sWBwKDscumsGuzrTJi65y8/BlTpT4KvFVmTSHgpukOWuQkw1okuzZrBIVoMbBU v3Mg== X-Gm-Message-State: APzg51Bd6+vpg+ZkWV9/GA0DexXezbwM+1t4HM0IMd3eystpp3r55LPB StGFKn1uQkGZ4xIMEUxasfg65A== X-Google-Smtp-Source: ANB0Vdbvoe/ZfyQVL3cONjbwWKa7iwkpti0ZUm5U1MBJXyKVywvQvC2LjV9W9nnb41Kz0cOyxVt1/g== X-Received: by 2002:a17:902:4601:: with SMTP id o1-v6mr4751820pld.202.1536267934905; Thu, 06 Sep 2018 14:05:34 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id y4-v6sm8271288pfn.123.2018.09.06.14.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 14:05:34 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Subject: [PATCH v2 2/3] arm64: dts: qcom: pm8998: Add adc node Date: Thu, 6 Sep 2018 14:04:53 -0700 Message-Id: <20180906210454.247219-3-mka@chromium.org> X-Mailer: git-send-email 2.19.0.rc2.392.g5ba43deb5a-goog In-Reply-To: <20180906210454.247219-1-mka@chromium.org> References: <20180906210454.247219-1-mka@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180906_140545_485381_99AA4489 X-CRM114-Status: GOOD ( 14.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , Matthias Kaehlcke , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the adc node to pm8998 based on the examples in the bindings. It also fixes the order of the included headers. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v2: - removed io-channel-ranges attribute --- arch/arm64/boot/dts/qcom/pm8998.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index 92bed1e7d4bb..41593ebbea2c 100644 --- a/arch/arm64/boot/dts/qcom/pm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8998.dtsi @@ -1,8 +1,9 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* Copyright 2018 Google LLC. */ -#include +#include #include +#include &spmi_bus { pm8998_lsid0: pmic@0 { @@ -11,6 +12,15 @@ #address-cells = <1>; #size-cells = <0>; + pm8998_adc: adc@3100 { + compatible = "qcom,spmi-adc-rev2"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + }; + pm8998_gpio: gpios@c000 { compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio"; reg = <0xc000>;