Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp523920pxb; Tue, 19 Oct 2021 07:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ+KiZn+U1z+FhGk6Et/ltjGkL+3hWKQ7M1VCt+/Wmt7E8ue33hSVURHhJr5cdCPKD9DW6 X-Received: by 2002:a17:90b:388a:: with SMTP id mu10mr289131pjb.0.1634654646696; Tue, 19 Oct 2021 07:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634654646; cv=none; d=google.com; s=arc-20160816; b=whYl27rbQgU9o6wrQbed9Rp5WZ08+r9hgpJd5zZ/tFe+AxF61JlSS9LfyRRfqbp/yh Z72VtjO/NYXGf3nfjOQh3uQeUJ3/GkJ2DMfUQCNAgRuzP2S3rbeu/nsA87y0Oy836InS VhpKxNQgBeyjLlCmVDJlYE2KzCfX0YQohaxG3WkRhLqgT/h6yCP6LdIVAdi/o3fG91kX 4QapthYmKeZug6M61qYarCSStf1g6je3iCd4p+KDf+s/4ySPNca5lFn9Rb1lBIwlYWuw XvQauCWIqDBaDxo4OLyPjlYAEwuQvZv5AzzxDDNkmkygrzjp4XNgUEFpkQlLPdmvBm4L OiDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=qGL5gdSfHTSjjm7emjc/n5WA9mOX316UcV6BN8YvEYg=; b=rR+DIwKJeMBcy+Rc0inKj7gX3f0tNej2x/4fYPU1Acq0c6nyNFQElG+1CYVTfLgyk/ uZlfQ25mbsUqHoUGJiKlV7WxMmW5TW/NGNYm8wKCY/hwN7Uihg/MsMwYzFnUux7q5sFE WZjq3zd8jBNBkFvWZXfWZ4Zb77x4MIQX91D5chQQRYa5Xqjs1RFI+oqCUussU2P/5aUB o6KPY+S+pd9JifwNFTBldnQ+bE9J5iTaOau/9TjKWZq7afF/FliMkVYhjd0JK8gCYDGK ZmrdESJ7z5rGl+zkLWKoiNbA1084Y7KeaSAVkfRkf7U/g/AQ4KMR1/TJAnozXS/3p8O7 4oCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KCo5atH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l185si1369939pgd.558.2021.10.19.07.43.53; Tue, 19 Oct 2021 07:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KCo5atH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbhJSOou (ORCPT + 99 others); Tue, 19 Oct 2021 10:44:50 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:35988 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbhJSOot (ORCPT ); Tue, 19 Oct 2021 10:44:49 -0400 Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8606012A; Tue, 19 Oct 2021 16:42:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1634654555; bh=rxp6PMBsDJjGA2wH/eGe+dqU2991TJOOwj2FEZEGGiU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=KCo5atH4zp/Z5y88JzcnrVAd8Gs2RAhpmhcgdx462FrtLgCxAFWPGI1rek2yxj0LG XtL2l8nDkYucsGEJAhqyiZ4NgF1gezbU/Ie8LxTWKW8CqA5dot5WmR3qo8tXbmVJc6 EiJEeZOuaPuiMBab4231e7OtuIbizKtNsiEDUPyQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211019090020.11724-1-Meng.Li@windriver.com> References: <20211019090020.11724-1-Meng.Li@windriver.com> Subject: Re: [PATCH] arch: arm64: dts: Set gpio5-pin9 as input by default From: Kieran Bingham Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, meng.li@windriver.com To: Meng Li , geert+renesas@glider.be, magnus.damm@gmail.com, robh+dt@kernel.org Date: Tue, 19 Oct 2021 15:42:33 +0100 Message-ID: <163465455377.2083150.11106861856940757460@Monstersaurus> User-Agent: alot/0.9.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Meng Li (2021-10-19 10:00:20) > The gpio5-pin9 is used as the interrupt pin of i2c external > gpio chip, so set this pin as input by default. Is a GPIO hog the right way to do this? Shouldn't the other GPIO chip be modelled in DT and reference the gpio interrupt line from there in its interrupt property? I assume by 'external gpio chip' you mean one which is permanantly attached to the ULCB Kingfisher board, and not a custom addition? -- Regards Kieran >=20 > Signed-off-by: Meng Li > --- > arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi b/arch/arm64/boot/d= ts/renesas/ulcb-kf.dtsi > index 202177706cde..8986a7e6e099 100644 > --- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi > +++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi > @@ -205,6 +205,15 @@ > }; > }; > =20 > +&gpio5 { > + gpio_exp_77_int { > + gpio-hog; > + gpios =3D <9 0>; > + input; > + line-name =3D "gpio-exp-77-int"; > + }; > +}; > + > &i2c4 { > i2cswitch4: i2c-switch@71 { > compatible =3D "nxp,pca9548"; > --=20 > 2.17.1 >