From patchwork Wed Aug 8 19:13:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10560469 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 4B35D14C0 for ; Wed, 8 Aug 2018 19:25:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37B962B1DD for ; Wed, 8 Aug 2018 19:25:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AD162B1F2; Wed, 8 Aug 2018 19:25:46 +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 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 A0A742B1DD for ; Wed, 8 Aug 2018 19:25:45 +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=WnFDYQ6Scg8whWrQc2x+0DJrXd8GwQ/PA0d9FG4mXsQ=; b=VRf1z0QcMSqNz5 5LqM28rwDcSauLvhO4zGIuiI4a0t0HOKwqAHUAW3OeYJOey/VVK9sWsrTACsnDmsGfnygHr5OUoGh 0NfOZPX3oeBZK1rSrXqfAP8yu+y6SLg8B0eiqH+UvBBa42h5/tbcoYsVQSj4OQctGrABW6M2lM+Lx xzQcjdOJ02wKewq2jkDBJBJ/WATKsYFrSBoWbYUdgQvXGjwR8zNKREESmyF2CpH3/Yu0v84ZIdvRZ /X9Ga1XR+12K0TNc8meMnEMwdsGUmO/kAowckM6Udvv5vjSUH1Z+XYxTVZ9yFpS8/viFsp+sd8+qN MYoKGEarLq60Kb4n5Fug==; 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 1fnU5Y-0005cw-3M; Wed, 08 Aug 2018 19:25:44 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnTua-0006V8-Py for linux-arm-kernel@lists.infradead.org; Wed, 08 Aug 2018 19:14:26 +0000 Received: by mail-pf1-x443.google.com with SMTP id l9-v6so1594573pff.9 for ; Wed, 08 Aug 2018 12:14:14 -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=xBmzx1O6HmlvU/FJnSO+pWnBg/kMbATEjB0Ym+YfopU=; b=UI9QXx9r22dD/TPmhmHPT+weyjCTHgzjjaKC2JOBT9le0rzsbABrLyMA9eZIehJI4C XCtG3NPe03sjpSz+k/f+cFf7YYYH3Nm2v+AgUrzBIwl4tPMW0tNnoZyVC/kdE2xbv68r ckB+gqthzXS6O130xZrCJwNvSbsU9NV+toXtk= 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=xBmzx1O6HmlvU/FJnSO+pWnBg/kMbATEjB0Ym+YfopU=; b=ZNwpT52uGthg9D/A9e6a6SAEws7lTL/hd27e/ZnyIY7B1gDKUEeJRP4qWb27NXw4o/ 1PPR5xTpu6WHleOQD4F61z6xVfQuH/BH8L0uEfE3eN2+97Rn7hyon9VY1TVpqE5I2OCc IT1+oJ1Eoz+t5he0BwFmJAQpFevncAm6/l+OX0oW7Unr29qu38+WGRu3I9q2qAxekooT uChk5N+rhgJ2p3eKY/JUE73ENuDACrPG3AWpRug2CjFZ0Uqqwulf7epQ4tG9EdbgFADg rlLlWl5HDpFh1gAe8wT4pfyL5cHwyJ0mbglDhIecVnflc5ww/vlPxnp4005dKr5FNSTb wc4A== X-Gm-Message-State: AOUpUlFmacppCrR4s6as/JYWL6S/KYpfh/Z+eSrzY+GW09cAKI2v5524 4pER3TB8dUr/DzKSphxd1v82WA== X-Google-Smtp-Source: AA+uWPyotgpIgQNhY7G1ezpVgz5o90v2hPeZF3prg8DhksX6gkugXQEZOYO3+5cRdTA/sR4zlFUF5Q== X-Received: by 2002:a63:68c1:: with SMTP id d184-v6mr3682388pgc.239.1533755654004; Wed, 08 Aug 2018 12:14:14 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id f5-v6sm5431136pga.58.2018.08.08.12.14.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 12:14:13 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon Subject: [PATCH 2/3] arm64: dts: qcom: pm8998: Add adc node Date: Wed, 8 Aug 2018 12:13:38 -0700 Message-Id: <20180808191339.16875-3-mka@chromium.org> X-Mailer: git-send-email 2.18.0.597.ga71716f1ad-goog In-Reply-To: <20180808191339.16875-1-mka@chromium.org> References: <20180808191339.16875-1-mka@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180808_121424_844933_7BF38B64 X-CRM114-Status: GOOD ( 13.07 ) 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, Douglas Anderson , linux-arm-msm@vger.kernel.org, Siddartha Mohanadoss , linux-kernel@vger.kernel.org, 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 --- arch/arm64/boot/dts/qcom/pm8998.dtsi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index 92bed1e7d4bb..f70f6101bceb 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,16 @@ #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>; + io-channel-ranges; + }; + pm8998_gpio: gpios@c000 { compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio"; reg = <0xc000>;