From patchwork Wed Oct 18 04:24:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 116185 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5636699qgn; Tue, 17 Oct 2017 21:25:51 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBGk37HshIpxXy5+yhZ8NOruYQBbZJfi4JaLwIwTJADAEeqzYRI6wmMmo83Wsg0n+kysHX9 X-Received: by 10.98.158.211 with SMTP id f80mr13743640pfk.156.1508300751701; Tue, 17 Oct 2017 21:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508300751; cv=none; d=google.com; s=arc-20160816; b=LOATJisEkbyDbW/xY1qwWNEwhEbYZwQqcG7GxTR61RC6JnTkSm9+STT21HbQJxZyWx jngc/nWN5EHR0uffgREJLC6lewlyBzG8BGf5+n/6HhUUf89G39axUW3kXL/tMHbuf+gq LyTZ6E8TfoaqF6A3wmwodcbViyJKjfvYSFi9aFnVSsU735ttjdH/jcHgtMAPdRxOyyt9 r3NQ3qi6h8KKl/i0jOGxb55zQHD0stfq5rEohg+FXFVA1omC1ztRa23zOOYzPUMasoUR eo7h8gaI4K5ZQ3Lu9rGLRoPVqavlRbI5sLm8Wx3raeu4hVFqG4yh4HworU8uiF7rupwM 86RQ== 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:dkim-signature:dkim-filter :arc-authentication-results; bh=KN4KNn9d4IBeRdlJrruDhY8ljJbjfk/c0bKr0Y5pGSI=; b=OkI3ghhCyVfowXIMIv4/GWo5CG4LyXdU0vl05BSEr0KRFRE/Bg/p2lyG6RJ4ks7b1U RD2PfWNbhYwf5+B59TLDfUCn7WGXlAk5hQA5l2VHW/jwdHi6z8LRyyQYlDexX2ahAAdp trbVSixC8XjezIRfczrrYx0SqC4F6z+ynCwmCgZjO7gQpdrHjn6v9r867HNFDur3MeCu vmmipBYJxN1lbTgo0V8xI6ySQVgM0GUH45ay12x0785CNgaAobmEVWCeaAsBpTv4H2yf OoXm2gFtYuMopMTb1dwt5sXV+uST9pHrvuQx8iOYkZ2SP1q1Q12sa0fdEdwMXS2FMNli 3asA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2OtRxkX2; 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 e7si657966pfb.298.2017.10.17.21.25.51; Tue, 17 Oct 2017 21:25:51 -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=@nifty.com header.s=dec2015msa header.b=2OtRxkX2; 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 S935095AbdJREZr (ORCPT + 27 others); Wed, 18 Oct 2017 00:25:47 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:30292 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932432AbdJREZn (ORCPT ); Wed, 18 Oct 2017 00:25:43 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v9I4OgxO020843; Wed, 18 Oct 2017 13:24:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v9I4OgxO020843 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1508300686; bh=KN4KNn9d4IBeRdlJrruDhY8ljJbjfk/c0bKr0Y5pGSI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2OtRxkX2hB7hHkXmVBJDEp4bxyNXYt6Qw26mDiI8utz/gUKc5K4nHMJto+f07f1Dh jA59YVALJ3/BS6W/t/LUDUqlBNICCVrD3CSSFatCUbnCO3KJZoz1tkrJtbzDXnZhUB vF2ytJs5boij3tFlXwgo2wRJae2sVI4gJ/zTdUOrRUJ4CN8dP48oSzl3a0j3rx+DEG WYHsDjDFP28VNWwYoYGi/6eq4gS0OHiat3w+9MFhfayJFuK+kkYPXMOQByzn4zWSNo bXCn5+/FzmFYN0OrYo3c9wdpkb7miQQzShSHs3Y9tfcEQs6qVrAOIRcqVd872dsaej kuy7SS9HbNy8g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Will Deacon , Mark Rutland , Catalin Marinas Subject: [PATCH 4/6] arm64: dts: uniphier: route on-board device IRQ to GPIO controller Date: Wed, 18 Oct 2017 13:24:35 +0900 Message-Id: <1508300677-23190-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508300677-23190-1-git-send-email-yamada.masahiro@socionext.com> References: <1508300677-23190-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Interrupt lines from on-board devices are connected to the GPIO controller. Handle this correctly. Signed-off-by: Masahiro Yamada --- arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts | 3 ++- arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts index ffb473a..77f50fd 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts @@ -40,7 +40,8 @@ }; ðsc { - interrupts = <0 48 4>; + interrupt-parent = <&gpio>; + interrupts = <0 8>; }; &serial0 { diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts index 1ca0c86..1f55fe1 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts @@ -40,7 +40,8 @@ }; ðsc { - interrupts = <0 48 4>; + interrupt-parent = <&gpio>; + interrupts = <0 8>; }; &serial0 { From patchwork Wed Oct 18 04:24:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 116189 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5637225qgn; Tue, 17 Oct 2017 21:26:38 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDyn0WEYbMo533aPAig+1kCKhTD0H/NGW5+j2YmvLdnenRdKFoxsR/6yARtnss+vqyzitkb X-Received: by 10.99.127.89 with SMTP id p25mr12639867pgn.196.1508300798874; Tue, 17 Oct 2017 21:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508300798; cv=none; d=google.com; s=arc-20160816; b=cYWyL5dIpLeiYvvprNRdr/T3u8ObjUxNzepmewJXWXAevMPyE9SYToqrFydUTIpIj+ WX8JIDQ18rdP9YSq85qs4j6WzMYEa1z2bO51fZQ1ZD9HQ4FaY4ZqxXZUxKit7K4xfUwM Dj2JNj+PdIN0fVxLjB+0bEMU5O31epYiO3PCIj3LiI9He4yJ+PBYG4E+sqZxJNCVq6bm Vfkq7vG3jSKkgeAKFDPEW2FDesxXkp9pRX5SOuXCHS8bIa0WiTrTKf3V++32WOTs5MUO 5FP9lp2bYaILLy0pdafhWPBGZ4KbVUYVVPri+KiHxJov7dmjZK0S6DgT1DsACaDvi+/F sDsQ== 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:dkim-signature:dkim-filter :arc-authentication-results; bh=wPu99syoQkNlr6Q8o3LYHKctCjXvhF2uqowDf4mmm/A=; b=g0y9MibLWRWwjLPdMmd9yiK2obLnmKw/dvbgNZgEzRRKf8ueKKJFQhkkjl0BYdeCWs ELgUqiG1sV0MP/bw0CMavh9r3MWLOzEVgVMSkhcJ/Vckt3WYGQPfEzpK7J5mdHwCxd/o PnuVN32LDE2RUwmcqm55mbuh7+HpozHsN+pc0f+gR8DPvNOMm2wEyVGwv8l+JrR7xdTE mETWzcgMtifyjenpKspuPsBj9FUUn8Zv8wa8ckHEXeeMWfrDdDdfj9VPAaoLLHHgP2Hr z5qnSVrn1MRTif+3IdYsRD953gZLMxDFxz6Cs/+bZUp2dJ4Ols0EXUOx1k3HKaeWO9kO 8UyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=F45NMy7W; 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 a33si7042618pld.662.2017.10.17.21.26.38; Tue, 17 Oct 2017 21:26:38 -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=@nifty.com header.s=dec2015msa header.b=F45NMy7W; 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 S964791AbdJRE0X (ORCPT + 27 others); Wed, 18 Oct 2017 00:26:23 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:31385 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932494AbdJRE0S (ORCPT ); Wed, 18 Oct 2017 00:26:18 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v9I4OgxP020843; Wed, 18 Oct 2017 13:24:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v9I4OgxP020843 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1508300687; bh=wPu99syoQkNlr6Q8o3LYHKctCjXvhF2uqowDf4mmm/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F45NMy7Wl1PsIAi7V1fMiTOdvWjmyzgVih7LkcqGZ1WGwyad3yOEi4/pOy2On+T9b 2ABVidlOuiuODbImhKIwW7fn/j5HaUf8Tub7XmVaBUM6aRF1sZPFRVBdjR67PXpnLt fh3jfJvyFBNyB0HMYuja6Fq8FxaDw/DDDKhmMhZJbhgarPbEONkyTop9+4uDe4uBmM TYydDtl+3NzdVHT+mIgF3AbsZSQ0vFq41mg+57n44Emvtn1SfuUFb+frz02vpNgQWF 6Yq8jIHDCXttd+9+5F/c4btz88LZG+NhpJxMkrsrwZgClAZPhriE2WStZTVMURQpkb ZjERM6H8WMFYQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Russell King Subject: [PATCH 5/6] ARM: dts: uniphier: add GPIO hog definition Date: Wed, 18 Oct 2017 13:24:36 +0900 Message-Id: <1508300677-23190-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508300677-23190-1-git-send-email-yamada.masahiro@socionext.com> References: <1508300677-23190-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Interrupt lines from on-board devices are connected to the GPIO controller. Add GPIO hogging so that the corresponding GPIO line is automatically requested. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-ld4-ref.dts | 8 ++++++++ arch/arm/boot/dts/uniphier-ld6b-ref.dts | 8 ++++++++ arch/arm/boot/dts/uniphier-pro4-ref.dts | 8 ++++++++ arch/arm/boot/dts/uniphier-sld8-ref.dts | 8 ++++++++ 4 files changed, 32 insertions(+) -- 2.7.4 diff --git a/arch/arm/boot/dts/uniphier-ld4-ref.dts b/arch/arm/boot/dts/uniphier-ld4-ref.dts index 148e7bb..0056852 100644 --- a/arch/arm/boot/dts/uniphier-ld4-ref.dts +++ b/arch/arm/boot/dts/uniphier-ld4-ref.dts @@ -53,6 +53,14 @@ status = "okay"; }; +&gpio { + xirq1 { + gpio-hog; + gpios = <121 0>; + input; + }; +}; + &i2c0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/uniphier-ld6b-ref.dts b/arch/arm/boot/dts/uniphier-ld6b-ref.dts index ec2a098..0e510a7 100644 --- a/arch/arm/boot/dts/uniphier-ld6b-ref.dts +++ b/arch/arm/boot/dts/uniphier-ld6b-ref.dts @@ -55,6 +55,14 @@ status = "okay"; }; +&gpio { + xirq4 { + gpio-hog; + gpios = <124 0>; + input; + }; +}; + &i2c0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/uniphier-pro4-ref.dts b/arch/arm/boot/dts/uniphier-pro4-ref.dts index 7316cc6..be99467 100644 --- a/arch/arm/boot/dts/uniphier-pro4-ref.dts +++ b/arch/arm/boot/dts/uniphier-pro4-ref.dts @@ -55,6 +55,14 @@ status = "okay"; }; +&gpio { + xirq2 { + gpio-hog; + gpios = <122 0>; + input; + }; +}; + &i2c0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/uniphier-sld8-ref.dts b/arch/arm/boot/dts/uniphier-sld8-ref.dts index 4ec48a1..1c0e707 100644 --- a/arch/arm/boot/dts/uniphier-sld8-ref.dts +++ b/arch/arm/boot/dts/uniphier-sld8-ref.dts @@ -53,6 +53,14 @@ status = "okay"; }; +&gpio { + xirq0 { + gpio-hog; + gpios = <120 0>; + input; + }; +}; + &i2c0 { status = "okay"; };