From patchwork Thu May 19 05:00:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Gross X-Patchwork-Id: 9124251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CAC39BF440 for ; Thu, 19 May 2016 05:03:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0675820222 for ; Thu, 19 May 2016 05:03:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ECA6F20218 for ; Thu, 19 May 2016 05:02:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3G5Y-00022K-S9; Thu, 19 May 2016 05:01:36 +0000 Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3G52-0000yL-Gy for linux-arm-kernel@lists.infradead.org; Thu, 19 May 2016 05:01:05 +0000 Received: by mail-oi0-x22f.google.com with SMTP id k142so111566352oib.1 for ; Wed, 18 May 2016 22:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Mut2aN1MTnuoMZy8Z9/oh+mGPIOhH+UtaaT8GjT3rj4=; b=fUlDyJ+5vTgCnb23oX/LCHMc+3qw7NfawdaC8gWeqc+q0STtZmnyVcf4MRf2ibeepF 7zhXRN5vKZmHeQA2bZwDaChXkc6FLCjhDXnoFc6a2elbcp/EEo6XB1KHuX5hURnXvjz5 Q0wsL6riQB45z2HWf+zYEL4nXhKIpB9Ykje+4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Mut2aN1MTnuoMZy8Z9/oh+mGPIOhH+UtaaT8GjT3rj4=; b=C+3doCc8bZnFXZcNd1lF00CHTeqQu7Ca6piEDiKOWwqPBZH3J6BzWDMsk176uoihHQ snARiyCWYaIoQzhoTmABSmlDiv0GkK1+MQrrv7ZyXVnEstoElQjk+BUNU92oYD4K1MKL HCD8fta5bcEtIynO1iMjeEDJNTs5jnmExo88M3iLf6s8K9l4kg1UJLW/SGZWjMWhYxuZ BPBWSQ2Fw04dr0fXkqMCetGDheillxv1Sro0EAKglnsQQ+F2eKmv78nny4Yy9PEx/NnQ bNY+QbK88soTOxrAvpgau8Hcbe7pFpmmo0qnAyv5p/CUKSC6EWhzNQk6jU1pOZpWJHZH qf6w== X-Gm-Message-State: AOPr4FXkBbUZmBwGx5kpLpbuKPQcZM0cAu0R/iojR5SYABONbQRlVIIsMa6aUwE+YEvIFIOd X-Received: by 10.157.13.227 with SMTP id 90mr7147478ots.79.1463634043554; Wed, 18 May 2016 22:00:43 -0700 (PDT) Received: from localhost ([2602:306:c558:19b0:a405:4675:28db:e07c]) by smtp.gmail.com with ESMTPSA id cn4sm3406967obb.21.2016.05.18.22.00.43 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 18 May 2016 22:00:43 -0700 (PDT) From: Andy Gross To: linux-pm@vger.kernel.org Subject: [PATCH 4/5] ARM: dts: qcom: Remove size elements from pmic reg Date: Thu, 19 May 2016 00:00:19 -0500 Message-Id: <1463634020-17252-5-git-send-email-andy.gross@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463634020-17252-1-git-send-email-andy.gross@linaro.org> References: <1463634020-17252-1-git-send-email-andy.gross@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160518_220104_726141_811F0F55 X-CRM114-Status: GOOD ( 11.57 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andy Gross , linux-arm-msm@vger.kernel.org, stanimir.varbanov@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The #size-cells for the pmics are 0, but we specify a size in the reg property so that MPP and GPIO modules can figure out how many pins there are. Now that we've done that by counting irqs, we can remove the size elements in the reg properties and be DT compliant. Signed-off-by: Andy Gross Reviewed-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-pma8084.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/qcom-pma8084.dtsi b/arch/arm/boot/dts/qcom-pma8084.dtsi index 4e9bd3f..ea7fce3 100644 --- a/arch/arm/boot/dts/qcom-pma8084.dtsi +++ b/arch/arm/boot/dts/qcom-pma8084.dtsi @@ -12,15 +12,15 @@ rtc@6000 { compatible = "qcom,pm8941-rtc"; - reg = <0x6000 0x100>, - <0x6100 0x100>; + reg = <0x6000>, + <0x6100>; reg-names = "rtc", "alarm"; interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; }; pma8084_gpios: gpios@c000 { compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio"; - reg = <0xc000 0x1600>; + reg = <0xc000>; gpio-controller; #gpio-cells = <2>; interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, @@ -49,7 +49,7 @@ pma8084_mpps: mpps@a000 { compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp"; - reg = <0xa000 0x800>; + reg = <0xa000>; gpio-controller; #gpio-cells = <2>; interrupts = <0 0xa0 0 IRQ_TYPE_NONE>, @@ -64,7 +64,7 @@ pma8084_temp: temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; - reg = <0x2400 0x100>; + reg = <0x2400>; interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; #thermal-sensor-cells = <0>; io-channels = <&pma8084_vadc VADC_DIE_TEMP>; @@ -73,7 +73,7 @@ pma8084_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>;