Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3233511imm; Fri, 24 Aug 2018 13:04:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbNms916D/eHMw0R6Qd7ohMGLfaH4rWmyEnxYV5zLSHk2JrGh+yor9blLBBGErm35RZeUxV X-Received: by 2002:a62:808c:: with SMTP id j134-v6mr3381903pfd.120.1535141044748; Fri, 24 Aug 2018 13:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535141044; cv=none; d=google.com; s=arc-20160816; b=l9C2HRW+hbYFLyqPBAdTVkYqZzirkjfA0YNNnixzWvzJ6KCy33e6uB4pzmE8ZXGgEn RF+dsbrzYbd0IrzeS0dgHHh5DGwZGluyFim4TzWKBqaHj3Q/eKMYfXHsVuq2XJUurVB0 OryGARIaPcSkyGmy4urvD+qjFEJV5joJnsxJMoMslo7qvXmd4aceI13veYS93EtqG264 L86qrd4ynjoOeatZYEaRR8GSqrjLmJSO4Dva4YSCB2PEXiqHwKcI7310J4GxcAFDa6n8 8bHTBP33RPcayUroI4AoXE5/bz0IcJou3/xZFRao3dgGqkoULX1PXRIDi+MsJkkhfLk5 Jvqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=XtP0zHtVr0XtdqFc/1OcosAMo46GVpMFCClvt96jLVM=; b=EEcrGjyBAbFZtnwQxFqtmefDdLGgRVRBl+ki6lK/U6M4nriS0eTK6IZEDrmI51J0UP QdLdkoMaeAs5aiK8EzxqIDpCpZP0rdysRVHuaz2GYT/dhKM2ptaP7T/T4ju5goX+iWzq iD2NQOV2C7iTBGwJespwnZfcFaUjbuc4i0i+p8Hko76gFg3EoyeZDd45K2N4zgjd0Biu jHc/FKDe+RUMdu3STrBA8baoHLfJG/VoplDzyNsUc4n3iuDkZ+3RO/d1keweV57mkMli w9Kv56EQLbJX+GWsrqKtpZGfl+WiUerMniTixqR8sJekYBHVzaJjEArLc/lA8AWC67Qk S1QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fFHaw2Cg; dkim=pass header.i=@codeaurora.org header.s=default header.b=fFHaw2Cg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si6021297pgn.464.2018.08.24.13.03.49; Fri, 24 Aug 2018 13:04:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fFHaw2Cg; dkim=pass header.i=@codeaurora.org header.s=default header.b=fFHaw2Cg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbeHXXia (ORCPT + 99 others); Fri, 24 Aug 2018 19:38:30 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49534 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726989AbeHXXi3 (ORCPT ); Fri, 24 Aug 2018 19:38:29 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DEDE4604BE; Fri, 24 Aug 2018 20:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535140944; bh=IOlpyNDVhqTigHq264rg37LX/z4cmS2A8yYTWebqILY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fFHaw2CgglQ9/ZAEq7FrcLO+1PzV87QnIytf0jG9I/Bl4hsIOZzKfF+h7GKcXnvWi NSgg0Wtikj6RyqwzgS9GbGis+5qRGhPx5fvNlqZ1yfB169UFfeSAcCHyW62Tfh2n7N m/awrG8JssWs92xdQcYd+ql6Ns+QOlAqmNkCVtIM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D1179604BE; Fri, 24 Aug 2018 20:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535140944; bh=IOlpyNDVhqTigHq264rg37LX/z4cmS2A8yYTWebqILY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fFHaw2CgglQ9/ZAEq7FrcLO+1PzV87QnIytf0jG9I/Bl4hsIOZzKfF+h7GKcXnvWi NSgg0Wtikj6RyqwzgS9GbGis+5qRGhPx5fvNlqZ1yfB169UFfeSAcCHyW62Tfh2n7N m/awrG8JssWs92xdQcYd+ql6Ns+QOlAqmNkCVtIM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D1179604BE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org From: Lina Iyer To: marc.zyngier@arm.com, bjorn.andersson@linaro.org, sboyd@kernel.org, evgreen@chromium.org, linus.walleij@linaro.org Cc: rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org, andy.gross@linaro.org, dianders@chromium.org, Lina Iyer Subject: [PATCH v2 2/5] dt-bindings: pinctrl: add wakeup capable GPIOs for SDM845 Date: Fri, 24 Aug 2018 14:01:54 -0600 Message-Id: <20180824200157.9993-3-ilina@codeaurora.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180824200157.9993-1-ilina@codeaurora.org> References: <20180824200157.9993-1-ilina@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the documentation to use interrupts-extended format for specifying the TLMM summary IRQ line that is requested from GIC and the PDC interrupts corresponding to the wakeup capable GPIOs. Update the example to show PDC interrupts for the wakeup capable GPIOs for SDM845. Cc: devicetree@vger.kernel.org Signed-off-by: Lina Iyer --- Changes in v2: - Fix PDC IRQ number in example - Describe IRQ trigger type in example --- .../bindings/pinctrl/qcom,sdm845-pinctrl.txt | 104 +++++++++++++++++- 1 file changed, 101 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt index 665aadb5ea28..c96417b291d1 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt @@ -13,10 +13,21 @@ SDM845 platform. Value type: Definition: the base address and size of the TLMM register space. -- interrupts: +- interrupts-extended: Usage: required Value type: - Definition: should specify the TLMM summary IRQ. + Definition: should specify the TLMM summary IRQ as the first + interrupt. Optionally, wake up capable GPIOs may list + their corresponding PDC interrupts here. + +- interrupt-names: + Usage: required + Value type: + Definition: the names matching the interrupt definition in the + interrupts-extended property. The first interrupt name + must be "summary-irq" for the TLMM summary IRQ. PDC + interrupts must be described by "gpioN", where N is the + GPIO line corresponding to the PDC IRQ. - interrupt-controller: Usage: required @@ -155,11 +166,98 @@ Example: tlmm: pinctrl@3400000 { compatible = "qcom,sdm845-pinctrl"; reg = <0x03400000 0xc00000>; - interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; + interrupts-extended = + <&intc GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 30 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 31 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 32 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 33 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 34 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 35 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 36 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 37 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 38 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 39 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 41 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 42 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 43 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 44 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 45 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 46 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 47 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 49 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 50 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 51 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 52 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 54 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 55 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 56 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 57 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 58 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 59 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 60 IRQ_TY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E_LEVEL_HIGH>, + <&pdc 100 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 102 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 103 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 104 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 105 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 106 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 107 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 108 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "summary-irq", + "gpio1", "gpio3", "gpio5", "gpio10", "gpio11", + "gpio20", "gpio22", "gpio24", "gpio26", "gpio30", + "gpio32", "gpio34", "gpio36", "gpio37", "gpio38", + "gpio39", "gpio40", "gpio43", "gpio44", "gpio46", + "gpio48", "gpio52", "gpio53", "gpio54", "gpio56", + "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", + "gpio62", "gpio63", "gpio64", "gpio66", "gpio68", + "gpio71", "gpio73", "gpio77", "gpio78", "gpio79", + "gpio80", "gpio84", "gpio85", "gpio86", "gpio88", + "gpio91", "gpio92", "gpio95", "gpio96", "gpio97", + "gpio101", "gpio103", "gpio104", "gpio115", "gpio116", + "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", + "gpio122", "gpio123", "gpio124", "gpio125", "gpio127", + "gpio128", "gpio129", "gpio130", "gpio132", "gpio133", + "gpio145", "gpio41", "gpio89", "gpio31", "gpio49", + "gpio41", "gpio89", "gpio31", "gpio49"; qup9_active: qup9-active { mux { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project