From patchwork Sat Jul 7 14:45:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Shields X-Patchwork-Id: 10512871 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DB14360532 for ; Sat, 7 Jul 2018 14:46:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B08C928571 for ; Sat, 7 Jul 2018 14:46:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9203528882; Sat, 7 Jul 2018 14:46: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=-7.9 required=2.0 tests=BAYES_00, 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 32D092886B for ; Sat, 7 Jul 2018 14:46:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753783AbeGGOqg (ORCPT ); Sat, 7 Jul 2018 10:46:36 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36705 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753686AbeGGOqf (ORCPT ); Sat, 7 Jul 2018 10:46:35 -0400 Received: by mail-pf0-f196.google.com with SMTP id u16-v6so10633774pfh.3; Sat, 07 Jul 2018 07:46:35 -0700 (PDT) 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; bh=dNmX4CuaxuOvOpgqDdlEBP6/fnnxDD+ULcuh1wlMBEE=; b=NEQnXM+13N7kUr0nKUuvgkDN5Bf++005b3krJiV805aT9EtP53s8MD1fBmKiD7fIyH VuFp5RalsY0Jb1gm61OUfvUsAI58PjenJNObxIo46RtSid0iFq/ClmNIaZw2Gh0FDrHF UrgpbwUBNp6/89IDacgV40qXGzP5LJMHV4fhnHdvQ3kcZKYYX5Zx36nftz3WBN0SGR0y o7uoju/ndGGZR1Rm6vL24J9hkftLxsPoXPbTs2mCOqL6Wz4+ZWTmNbPzCDl4wUTz6Koj 8TE7vCQiXMBcW/koLVAI7+ZRZoHIMzj3+5Kkg0IZFq+bwuro9VdSDDAAovXpm/5RyBgd QAnA== X-Gm-Message-State: APt69E1uZlfN40SG9uOXwaSzoZqaeOxeU2jycs+KKAbAqp/8dvmVMKwF FrD+u+0gmV5bPdScNee8Z3xZRk/q X-Google-Smtp-Source: AAOMgpff1bzR+GWCJ/sPbTzLuT1JzApEAB1SE2u1R1Mg0k3gDDj81M8YAgctaGXkmWPgC6CcgkCTxw== X-Received: by 2002:a65:5c03:: with SMTP id u3-v6mr12259708pgr.402.1530974794438; Sat, 07 Jul 2018 07:46:34 -0700 (PDT) Received: from forlindon.lan (27-32-42-49.static.tpgi.com.au. [27.32.42.49]) by smtp.gmail.com with ESMTPSA id d65-v6sm21915040pfj.20.2018.07.07.07.46.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jul 2018 07:46:33 -0700 (PDT) From: Simon Shields To: linux-samsung-soc@vger.kernel.org Cc: Simon Shields , Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: exynos: add max77693 irq configuration for midas Date: Sun, 8 Jul 2018 00:45:22 +1000 Message-Id: <20180707144527.6662-1-simon@lineageos.org> X-Mailer: git-send-email 2.18.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently, we assume that the bootloader has correctly configured the interrupt pin for max77693. This might not actually be the case - so it's better to configure it explicitly. Signed-off-by: Simon Shields --- arch/arm/boot/dts/exynos4412-midas.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi index f35176a35a15..30760bf2eb71 100644 --- a/arch/arm/boot/dts/exynos4412-midas.dtsi +++ b/arch/arm/boot/dts/exynos4412-midas.dtsi @@ -156,6 +156,8 @@ compatible = "maxim,max77693"; interrupt-parent = <&gpx1>; interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&max77693_irq>; reg = <0x66>; regulators { @@ -1117,6 +1119,13 @@ samsung,pin-pud = ; }; + max77693_irq: max77693-irq { + samsung,pins = "gpx1-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + sleep1: sleep-states { PIN_SLP(gpk0-0, PREV, NONE); PIN_SLP(gpk0-1, PREV, NONE);