From patchwork Thu Sep 6 21:04:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10591057 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 F40DD14BD for ; Thu, 6 Sep 2018 21:05:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E02742B236 for ; Thu, 6 Sep 2018 21:05:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3CA22B248; Thu, 6 Sep 2018 21:05:55 +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 8089F2B236 for ; Thu, 6 Sep 2018 21:05:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730197AbeIGBmu (ORCPT ); Thu, 6 Sep 2018 21:42:50 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43736 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728085AbeIGBmt (ORCPT ); Thu, 6 Sep 2018 21:42:49 -0400 Received: by mail-pg1-f194.google.com with SMTP id v66-v6so5825374pgb.10 for ; Thu, 06 Sep 2018 14:05:34 -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=vFlxfVRSjS2EsnlOC/4qKCm1oe1/j2za0S0N4a70Cyw=; b=Td6541f15RDc0tm8IvwY1Dyk5K4GHRuOSEilQDqW7MPXyGayHmch6wmkX68/1T+pMj XOKi4LvLLXQSJJu1sxpmc3kosdwdpF0VrBkB+k1BTqb/SEB3PN2X55XWDYx1I+qwa0MY GKHO0taF9SkU8ZhC6SBq1uCoXQeqXSv6BYJg4= 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=vFlxfVRSjS2EsnlOC/4qKCm1oe1/j2za0S0N4a70Cyw=; b=TGu8XqMKDPlkGblYDqfBrW4dwbccxwUWe9R3drryQGENAOJbOqf+8aTfeAnCBO57K9 uNZxxS42z9l/6YMp4siNHVgb8zBca9Ua3RqI/9BRqY4DHrLwFffzPu2M7EZ0lKLgU4vf UkZE2k9d17ZlYCCf8TI1Vfoo7GGlWsKSlybLyWNc/3m59u1Q7rAN1PNl81Ge83p6Qvi2 enbn47beWUJO6o04UyrjHLWotjMELUsfIsqQvyFj35756aTEhkxVO88EMyOQVDxXbYn8 JjrgisoS5oAtR1qRZCKHBnO3tWQskBaLwpUfVW/fapXnqiCxmKyAJgHVyHh0U55EQfmR 1LzQ== X-Gm-Message-State: APzg51AgFKKoAkDAhGlCFCWQsKtvlftt66MQvydbJUKVMuOtlmaImBvz P37btij84iEIX4ixEov9IY3qiA== X-Google-Smtp-Source: ANB0VdYZKxiklFX2ndnobTS1L3ol8LfyaOtW4VPfKlrbS1vHX8BMQZYuT4x17Q4nKDyq80FB6Bv/EQ== X-Received: by 2002:a62:d44a:: with SMTP id u10-v6mr5005730pfl.144.1536267933882; Thu, 06 Sep 2018 14:05:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 14:05:33 -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 v2 1/3] dt-bindings: iio: vadc: Fix documentation of 'reg' Date: Thu, 6 Sep 2018 14:04:52 -0700 Message-Id: <20180906210454.247219-2-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 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 Signed-off-by: Matthias Kaehlcke --- 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 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: 10591047 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 3F83514BD for ; Thu, 6 Sep 2018 21:05:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B4122B1D5 for ; Thu, 6 Sep 2018 21:05:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EDF52B236; Thu, 6 Sep 2018 21:05:38 +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 B9E4A2B1D5 for ; Thu, 6 Sep 2018 21:05:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730184AbeIGBmv (ORCPT ); Thu, 6 Sep 2018 21:42:51 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36994 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730194AbeIGBmu (ORCPT ); Thu, 6 Sep 2018 21:42:50 -0400 Received: by mail-pl1-f196.google.com with SMTP id f1-v6so5536397plt.4 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=GdW+C4HlcyIj3yOhPUX5jcFd4P26bFADlJHIvTuUR78qnngFtAXsMdo02ut2yqC022 KVGBhPbv70IFdfB9CxT3Lyqrj5CTPON8fCmJg3ePLpoWQMfYOIJbV/qd0Qgmq7QvaTdg A0PCk9utZWrr0jP54z3hyuOnZtizdZCE/SHUxvc0LwWuOuUYwsfpfHuh9wOtbuDBWgTW 8LF2nctzrMrjsn5tIRhuexRDKaq5JfOylGdTphGG6yFnovTgOj+LqTHSwTaIoj0m3SwU iSINhaVXbTACfb0fO+5vaLx5J1zukBclHdYiKDnjeaAoMIC4xFZSfgs30iw/xq045OGq B4hw== X-Gm-Message-State: APzg51AquRv1iq37Axrey6yVZ5/g5gscx0wuO1KiIiJvPIAuIUvuuKwR h3bXKx10qoaD6Kkb7yH2HrFXdg== 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 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 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 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 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 Thu Sep 6 21:04:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10591051 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 1B0A75A4 for ; Thu, 6 Sep 2018 21:05:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09A942B1D5 for ; Thu, 6 Sep 2018 21:05:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0F412B236; Thu, 6 Sep 2018 21:05:41 +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=unavailable 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 A21832B232 for ; Thu, 6 Sep 2018 21:05:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728232AbeIGBmz (ORCPT ); Thu, 6 Sep 2018 21:42:55 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46123 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730241AbeIGBmw (ORCPT ); Thu, 6 Sep 2018 21:42:52 -0400 Received: by mail-pl1-f193.google.com with SMTP id t19-v6so5529080ply.13 for ; Thu, 06 Sep 2018 14:05:36 -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=AJIPFG6/l55uECh0YdRmKoWJkw+DIM5LFfi5ltyGq7E=; b=cixBin4VnOD7UYhjMKSdjDnGaat+AfVeaqHbcJC2eCI/SqnuXHYuz9KipK/3SwufbI q3DuOk6iJ1BPYQ9KjG62oKbIp2sPfxc0yd9yw95/USOKmksGi+eopU9oAcYmrT3yBnZB GDjpDy45EYAE2x6mv/xV0zAgLZ5myZgt7Cc7c= 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=AJIPFG6/l55uECh0YdRmKoWJkw+DIM5LFfi5ltyGq7E=; b=UR3rl7I2S8VJOsF+or0pTp9l0tV5tPWFLI1UchTOZNMpEUSxbr2/UZhfMAJeVlilwE AQp3FqTWY7V4kmhwOEsZ2QqofFw0OvUvP0MzHQ2ua/s61xny3KVf3nUzlVHvNBgtbc3E zluFYGPMnhHzPlyWm2sWXYLWSqg9wS1zURLVnBTgsjD2lFew6hXs0uQvqTGRQ5LNrvAp mmCLXgYqAvILP9wlQzz915P3I7upLGAw+Uh9TSy/1g72uHZloX+5BTkFKHXMG6KogIBb cRtQcwayYOPp67AaHR251tZ26bwbSVu4SVx6mkWdr8S/9obdAtQR4lA+ylkHKJpcX3Nt lFvw== X-Gm-Message-State: APzg51DyH9MtRpBd3Xqs/PIzIikDyK71CTRJfs3SNcGO0WVCBV7SHH9T mFqQAGy8qx/lnjAfbxV6yi5Ejg== X-Google-Smtp-Source: ANB0VdZF93uhZxGe6rIzBbOEgFEPheFjldqp6luHmn8Du55gU58j2rHmupKykeruz1HlPNH43KKlKw== X-Received: by 2002:a17:902:31a4:: with SMTP id x33-v6mr4653459plb.218.1536267935841; Thu, 06 Sep 2018 14:05:35 -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.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 14:05:35 -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 v2 3/3] arm64: dts: qcom: pm8998: Add die temperature channel node to the ADC Date: Thu, 6 Sep 2018 14:04:54 -0700 Message-Id: <20180906210454.247219-4-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 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 Signed-off-by: Matthias Kaehlcke Signed-off-by: M.. Reviewed-by: .. Signed-off-by: M.. Signed-off-by: J.... --- 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 {