From patchwork Mon Sep 10 16:03:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10594485 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 96A0414BD for ; Mon, 10 Sep 2018 16:03:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 864DA2891B for ; Mon, 10 Sep 2018 16:03:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A895290F6; Mon, 10 Sep 2018 16:03:47 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 2A1992891B for ; Mon, 10 Sep 2018 16:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728744AbeIJU6c (ORCPT ); Mon, 10 Sep 2018 16:58:32 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41139 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728655AbeIJU6b (ORCPT ); Mon, 10 Sep 2018 16:58:31 -0400 Received: by mail-pf1-f195.google.com with SMTP id h79-v6so10692577pfk.8 for ; Mon, 10 Sep 2018 09:03:45 -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=nCTI6zUgI1gXw+J5bYAFkLhTXruI8Pq5CKHSMb95CuA=; b=jldr7OQVxg2Q8xWnIvJtqyCKsb74pG5bDBinbgszhiaXd/FCECaaLDfLs2vT37Mw6K HLXIXggTBV36zp0m6LW6pR77xwntGjdCPDuL2dT15VMSj2HnRWYMWkvt2N4R++h2jEyj Dk+lsWOzjSNM+t/6w3KFCob5oxngu+u5FqRsw= 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=nCTI6zUgI1gXw+J5bYAFkLhTXruI8Pq5CKHSMb95CuA=; b=Ym4blhdP/Rb22sb5kU8w+3q4EprGX9QDGaOmNUGJDLJN/6lS0JjjtVec0LJrn+epsz a3qATmCBXbfHa7eKm5g5l2asOPk2Rg7wOm3KehpL82gdlawPI1sjhbxh/7HJJob2h17j PRV4yF/lHTCzpb6FssqB8BwZwoGEpYx5/IrXcp2gYjH8MFhWsX4Zn6rFWceA/rWZli7S i1MG4m1y9nrGU+sVbMCUbl0fxTdbu+DBdsQjzul3MBxwjRWOrhDu1S5rlEqx9MhFvXKl 6zzXb2O68n+c+b/elMhRA7qDq6bdGTmRpFqBRJM70Pjo7+PnSx85FBCqsjyquJaw4CU5 VIVw== X-Gm-Message-State: APzg51B8QNodObJNN/Z56+QJK4DHdLozurz6wAqZ20BzKfe8EcPhZwV+ gEKHv71uMVTX46qIGhDCZVx1wA== X-Google-Smtp-Source: ANB0VdYhXN4l/F9KglBcwnq+fyZi7iEb8q9wawY2TvMj3r+RwigA8upV5LfST/nw0nT72lTOzBXc3w== X-Received: by 2002:a63:28c7:: with SMTP id o190-v6mr23450675pgo.84.1536595424687; Mon, 10 Sep 2018 09:03:44 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id b3-v6sm33893517pgm.74.2018.09.10.09.03.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 09:03:44 -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 Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Douglas Anderson , Matthias Kaehlcke Subject: [PATCH v3 2/3] arm64: dts: qcom: pm8998: Add adc node Date: Mon, 10 Sep 2018 09:03:00 -0700 Message-Id: <20180910160301.237538-3-mka@chromium.org> X-Mailer: git-send-email 2.19.0.rc2.392.g5ba43deb5a-goog In-Reply-To: <20180910160301.237538-1-mka@chromium.org> References: <20180910160301.237538-1-mka@chromium.org> MIME-Version: 1.0 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 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 v3: - fixed separator in commit message - added 'Reviewed-by: Douglas Anderson ' tag 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>;