From patchwork Wed Apr 1 15:05:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ivan T. Ivanov" X-Patchwork-Id: 46625 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ADF58216D1 for ; Wed, 1 Apr 2015 15:06:09 +0000 (UTC) Received: by labtp8 with SMTP id tp8sf11757573lab.2 for ; Wed, 01 Apr 2015 08:06:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=SYaQJctx/mts+g/wCwLt+qtPCi/s+tTHoryB9wOZEx4=; b=R38veH4Na7z8MdzXDcaAu1KRxpDAE+VaOny51k+f7klcKS2Q8j3vCT1+bgZnTIbfIp B4XzYfl2gXhGRB6miZAP1rcjcZ4nZ6p5tYeNyu9lYSGxQJaT9jt5+ma/OCvnDz7A8JWG rExkdXmWrewkfK9UdGti9LcDuX/yd/+zQflnjkgqIz5uVGlckUjO+b38ptiGVmrH7qhI d+n0SW5U/D3OlrCnTYv6cqm+uwv962URsgSjG7AQLEkNhvRtA0A+A0t6/p4OyqHrfqUi 1CMxatn/Q2yo4q9wGJ03IG4fYb7QCQeL4pDt3J3alfDm8SeS8+U46SeRwfriLLBAmXhh 4Ghg== X-Gm-Message-State: ALoCoQkpwX4s7h4dPBkCNd7Ub6+kgoqH2ozdvr00GFcUYFyrem+O+XUJnAiwmzhS/yUttXkzwhFF X-Received: by 10.152.5.168 with SMTP id t8mr2500636lat.3.1427900768684; Wed, 01 Apr 2015 08:06:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.74 with SMTP id r10ls81913lag.55.gmail; Wed, 01 Apr 2015 08:06:08 -0700 (PDT) X-Received: by 10.152.87.162 with SMTP id az2mr19987120lab.58.1427900768477; Wed, 01 Apr 2015 08:06:08 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id r11si1230039lal.55.2015.04.01.08.06.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 08:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbdc10 with SMTP id c10so38367310lbd.2 for ; Wed, 01 Apr 2015 08:06:08 -0700 (PDT) X-Received: by 10.152.29.68 with SMTP id i4mr36445679lah.19.1427900768347; Wed, 01 Apr 2015 08:06:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp723718lbq; Wed, 1 Apr 2015 08:06:07 -0700 (PDT) X-Received: by 10.66.221.193 with SMTP id qg1mr12022952pac.134.1427900766461; Wed, 01 Apr 2015 08:06:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si3281990pdp.187.2015.04.01.08.06.05; Wed, 01 Apr 2015 08:06:06 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753692AbbDAPFl (ORCPT + 27 others); Wed, 1 Apr 2015 11:05:41 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:35149 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753454AbbDAPFe (ORCPT ); Wed, 1 Apr 2015 11:05:34 -0400 Received: by wgdm6 with SMTP id m6so56654600wgd.2 for ; Wed, 01 Apr 2015 08:05:33 -0700 (PDT) X-Received: by 10.194.174.225 with SMTP id bv1mr85375160wjc.101.1427900733589; Wed, 01 Apr 2015 08:05:33 -0700 (PDT) Received: from mms-0439.wifi.mm-sol.com ([37.157.136.206]) by mx.google.com with ESMTPSA id dj5sm3078270wjb.28.2015.04.01.08.05.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 08:05:32 -0700 (PDT) From: "Ivan T. Ivanov" To: Kumar Gala , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell Cc: Russell King , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 3/7] ARM: dts: qcom: Add PMA8084 functions device nodes Date: Wed, 1 Apr 2015 18:05:11 +0300 Message-Id: <1427900715-26273-4-git-send-email-ivan.ivanov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427900715-26273-1-git-send-email-ivan.ivanov@linaro.org> References: <1427900715-26273-1-git-send-email-ivan.ivanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.ivanov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , * GPIO block, with 22 pins * MPP block, with 8 pins * Volatage ADC (VADC), with multiple inputs * Thermal sensor device, which is using on chip VADC channel report PMIC die temperature. * RTC device Signed-off-by: Ivan T. Ivanov --- arch/arm/boot/dts/qcom-pma8084.dtsi | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm/boot/dts/qcom-pma8084.dtsi b/arch/arm/boot/dts/qcom-pma8084.dtsi index a5a4fe6..9092c2e 100644 --- a/arch/arm/boot/dts/qcom-pma8084.dtsi +++ b/arch/arm/boot/dts/qcom-pma8084.dtsi @@ -1,3 +1,5 @@ +#include +#include #include &spmi_bus { @@ -7,6 +9,74 @@ reg = <0x0 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000 0x100>, + <0x6100 0x100>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + }; + + pma8084_gpios: gpios@c000 { + compatible = "qcom,pma8084-gpio"; + reg = <0xc000 0x1600>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0 0xc0 0 0>, <0 0xc1 0 0>, <0 0xc2 0 0>, <0 0xc3 0 0>, + <0 0xc4 0 0>, <0 0xc5 0 0>, <0 0xc6 0 0>, <0 0xc7 0 0>, + <0 0xc8 0 0>, <0 0xc9 0 0>, <0 0xca 0 0>, <0 0xcb 0 0>, + <0 0xcc 0 0>, <0 0xcd 0 0>, <0 0xce 0 0>, <0 0xcf 0 0>, + <0 0xd0 0 0>, <0 0xd1 0 0>, <0 0xd2 0 0>, <0 0xd3 0 0>, + <0 0xd4 0 0>, <0 0xd5 0 0>; + }; + + pma8084_mpps: mpps@a000 { + compatible = "qcom,pma8084-mpp"; + reg = <0xa000 0x800>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0 0xa0 0 0>, <0 0xa1 0 0>, <0 0xa2 0 0>, <0 0xa3 0 0>, + <0 0xa4 0 0>, <0 0xa5 0 0>, <0 0xa6 0 0>, <0 0xa7 0 0>; + }; + + pma8084_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400 0x100>; + interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <0>; + io-channels = <&pma8084_vadc VADC_DIE_TEMP>; + io-channel-names = "thermal"; + }; + + pma8084_vadc: vadc@3100 { + compatible = "qcom,spmi-vadc"; + reg = <0x3100 0x100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + io-channel-ranges; + + die_temp { + reg = ; + }; + ref_625mv { + reg = ; + }; + ref_1250v { + reg = ; + }; + ref_buf_625mv { + reg = ; + }; + ref_gnd { + reg = ; + }; + ref_vdd { + reg = ; + }; + }; }; usid1: pma8084@1 {