From patchwork Mon Sep 10 16:02:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10594481 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 C1EF9921 for ; Mon, 10 Sep 2018 16:03:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B17332891B for ; Mon, 10 Sep 2018 16:03:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5117290F6; Mon, 10 Sep 2018 16:03: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=-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 51AE52891B for ; Mon, 10 Sep 2018 16:03:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728233AbeIJU6a (ORCPT ); Mon, 10 Sep 2018 16:58:30 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45469 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728655AbeIJU63 (ORCPT ); Mon, 10 Sep 2018 16:58:29 -0400 Received: by mail-pf1-f194.google.com with SMTP id i26-v6so10689852pfo.12 for ; Mon, 10 Sep 2018 09:03:43 -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=9v+SdcrhUYluLoY69mPdaMFx4Nogh2CsYFNID8uJf0w=; b=FiNDwDf1JMlDHmHAHYY4azmApZonf5/yelBqI8R8MbocyWc0PdLntJRfCVhyMsevFg kXLHgy4aH1G+GYbxPD+u5OAOHDnBjGu0csCy3NX1IK2x4UUxQcO51RjS73Skj43BRVtw 2y59EITjLfkxJC4UXgybW0+UyToiFCPaNsNDY= 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=9v+SdcrhUYluLoY69mPdaMFx4Nogh2CsYFNID8uJf0w=; b=RBIP8m0RZQv7VIQPBZLLBSZ3AH9taoagYSYpW/FBNvyjSV0IGRwv1d+ZK43lPKERAM NC2nANJnoF2ebnjWq1KBS1DDbGlBl5MPoWZ8CZonLyTvJkpPYBDWtVlzLBaNsDK5mUvU PRDAiITVNls49Lsg63ZDVmwcdCT5knUOLCI4QJFL6oAjkZUMcudWuqDRLmBd3ETQebMp SySUwHu9B0/ZuZgkQfonuYEpg+GpuSTBFE/bAfz/jE6AkYUsbdLKQ1IYtvrFYEtTc2Sx fDqQP1jQmX+3OYh3IBl1yz1GwPN9VknKMjc1xDToF2OG/9J6hMzqKEy4iQDFFWXBvc8u EkYw== X-Gm-Message-State: APzg51A8pu51HxkOmgxSpWOvu+67lkFhW1Lc+nFNZxkj0Mj3M/M6GWCu SsVXMRMsqLW77xeymJkMJgAYsg== X-Google-Smtp-Source: ANB0VdaD2w0McAHIKSY2f5yDV+QWzeLwkcJGErFj1XMHH6eSxDmtg22IjMjTaIJwd5dIQBMVElTjAA== X-Received: by 2002:a62:9992:: with SMTP id t18-v6mr24365650pfk.239.1536595423131; Mon, 10 Sep 2018 09:03:43 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 09:03:42 -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 1/3] dt-bindings: iio: vadc: Fix documentation of 'reg' Date: Mon, 10 Sep 2018 09:02:59 -0700 Message-Id: <20180910160301.237538-2-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 The documentation of Qualcomm's SPMI PMIC voltage ADC claims that the 'reg' property consists of two values, the SPMI address and the length of the controller's registers. However the SPMI bus to which it is added specifies "#size-cells = <0>;". Remove the controller register length from the documentation of the field and the example. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson Reviewed-by: Rob Herring --- Changes in v3: - fixed separator in commit message - removed duplicate 'Signed-off-by' tag Changes in v2: - none --- Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt index 0fb46137f936..d0c188e5c922 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt @@ -13,7 +13,7 @@ VADC node: - reg: Usage: required Value type: - Definition: VADC base address and length in the SPMI PMIC register map. + Definition: VADC base address in the SPMI PMIC register map. - #address-cells: Usage: required @@ -104,7 +104,7 @@ Example: /* VADC node */ pmic_vadc: vadc@3100 { compatible = "qcom,spmi-vadc"; - reg = <0x3100 0x100>; + reg = <0x3100>; interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; #address-cells = <1>; #size-cells = <0>; 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>; From patchwork Mon Sep 10 16:03:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10594489 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 15332921 for ; Mon, 10 Sep 2018 16:03:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0423D2891B for ; Mon, 10 Sep 2018 16:03:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC95A28B52; Mon, 10 Sep 2018 16:03:49 +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 E68EA2891B for ; Mon, 10 Sep 2018 16:03:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728738AbeIJU6c (ORCPT ); Mon, 10 Sep 2018 16:58:32 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39318 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728736AbeIJU6c (ORCPT ); Mon, 10 Sep 2018 16:58:32 -0400 Received: by mail-pg1-f193.google.com with SMTP id i190-v6so10706256pgc.6 for ; Mon, 10 Sep 2018 09:03:46 -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=Pn0YO/ycbcj2ZZfDPJRgtsYZBYJvTqJrPHsXrmqWarY=; b=Ov5okNR3CGie5rIXoOGAvmmQH+euUCIyoe6s9+BwBFaVp1eTWJXjYd3+GcM/wlgu// H/JUGUpXj2z0McqQWqqrxuBHxNH6exYw//l4stS0x96h5IJWzzyf1Uwl8kpDv85kgls/ gXlrmgH7czrPhH2/UA8QbbqxtYo60orrtE/YI= 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=Pn0YO/ycbcj2ZZfDPJRgtsYZBYJvTqJrPHsXrmqWarY=; b=fbGkA5Qy8nW9SU+ciwlMTGhTRXeN4dU7UbBrcpoxGLeTKg7PYX1B0IHs1oYhFhj0+u oQj+fW4sdZpUdpdcbyYMs9C7BlM3cw2znGr4kXtq9/SWCk/3XPBMoyHqaSkeUG5R7Njb QlT133/qa8OroLEAIYANFbJoRoLkjPLZHVynhTAf9OdID9DADqiX5MrWvqBmV7Fjwgkj RApkXBNvyAXgXJhtLQbGc/KezrGapapAlXH5Di1EqX05N85CIpTsYXmZ/2kTA8iah4+9 zTE6yBJVjAxr2uLZL82NhS2+fOy7cYcjy3kZck5Ih8bQ+dqSbQTSDGKXahkdUeO9DlfJ /syg== X-Gm-Message-State: APzg51D4GNCcpDiG0ENFhGd4u52tAHyWQpLoS2j+BybvIoHs7qsqVkMA l8KA8H/OL4kGn7iH6KgLyQ42wQ== X-Google-Smtp-Source: ANB0VdbhfLT0orMwGgdB8llK8YdItQGxlDdjetki6Z+AFQteCBygkglyf29f+shra5QqSbVuWkWWaA== X-Received: by 2002:a63:7058:: with SMTP id a24-v6mr23176159pgn.206.1536595425877; Mon, 10 Sep 2018 09:03:45 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 09:03:45 -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 3/3] arm64: dts: qcom: pm8998: Add die temperature channel node to the ADC Date: Mon, 10 Sep 2018 09:03:01 -0700 Message-Id: <20180910160301.237538-4-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 Add a channel node for the die temperature to the ADC. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v3: - fixed separator in commit message - remove duplicate 'Signed-off-by' tag Changes in v2: - none --- arch/arm64/boot/dts/qcom/pm8998.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index 41593ebbea2c..d18d4f260fbe 100644 --- a/arch/arm64/boot/dts/qcom/pm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8998.dtsi @@ -19,6 +19,11 @@ #address-cells = <1>; #size-cells = <0>; #io-channel-cells = <1>; + + die-temp { + reg = ; + label = "die_temp"; + }; }; pm8998_gpio: gpios@c000 {