Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1486340rdb; Sat, 10 Feb 2024 04:24:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTN18qPQm7KU+mew4VgmJbsKiIiWjRx0JpS0s6oD9YjaB2hkJy/9qY7rqKo6k867itidsCrZHqxOFun2ov41gWxP/lx39h05UeiGw7bQ== X-Google-Smtp-Source: AGHT+IHGgX3jxGdTUHTOkS4P3+jruSr0k26yngY886H5lpNZ/+FJ0ZfZ/Je2uYhnV2v9CJU9E6Dp X-Received: by 2002:a92:db45:0:b0:363:e59f:73ba with SMTP id w5-20020a92db45000000b00363e59f73bamr2209552ilq.19.1707567866854; Sat, 10 Feb 2024 04:24:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707567866; cv=pass; d=google.com; s=arc-20160816; b=CyTiQSID9SQSC1cSJExWsd9DpsI3h1FvUW8U3fvCzXBUfD0gOxEX2SMuCshW/I1xlb K2wnlytv9BSwWm0ztHV7ji1TJ4CvTg9EeiiISEHCRxF9gMz4kVyunZjNIE1ZbGmOnoNZ hTd0ykavePNxWaXyo+7zDvVYIlGz8TZAyHztSMqt3cNlfPidbzSxcw7kYT76f09pO+kC QCxXhdgJXzkJ45q9afWpMVgInYPT0OYsMYvWxRBVbglz1uDA6YbqUA+XLGVRMB1a50iy f97YnqlxQoMZcfs6GpGbjTtbhmlNZvIaTgeNPQr4JhfoC8VPN2GzrEPVKjpoFvL8xWEL SNhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=McJKLtshO3D7dPz7Uw3van7kyM1Ng7QWriaUI03VR+Q=; fh=Rx9tGYGKvTaL1xNc1ZMVQRBIGG+5fEwnK2qRjDyD0rE=; b=03nvHIbGy9bhTVOULfcYgvjA57whrIZ4S5ieLDitzcmmhXmzQUVE1SfUmrAw2Zh/wn WI5qE/btYwXbh0ixZnWfH7iPc0C8e+OnobhfJY/RKgsYE0zRgKcnUqTyubQDQfB5Aorr ibDWXPLEgjMcaVyxkV37Jo/EoKLR3XvouNENkDgP2qiuePPlu+thjXXavp7cAHi1UCu/ cIPynHUqXcXLPqMlwPa51LiLnwfAj7qFKdPWzIeV2DkN+UsdlsWaCiO9CAlHgZ6uubIi M7jq/e+HnC7VFzm636k0WH1aAhOENOSFzM4mlyF/gOoEdGk9gj83IX57ob4QoEgnsyFU 5G5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=hyYCBCdm; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58084-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWJsiAT7KlItj4HKLf8cdJvEruDWTdLZKHa2iiIDKYMzvN4P1z07d6GISUG4YaaPcR5pSApsrTzi+KnVR+vkvypd4+et9QHPPL2r8FAuA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d28-20020a63735c000000b005cecd95b6besi3466982pgn.685.2024.02.10.04.24.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 04:24:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=hyYCBCdm; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58084-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2C5A728C424 for ; Thu, 8 Feb 2024 12:47:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDE177D3EC; Thu, 8 Feb 2024 12:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="hyYCBCdm" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81CAD7CF23 for ; Thu, 8 Feb 2024 12:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396253; cv=none; b=XHVQlyU4V9V02uf38WCHfc9V7t9GesVjR5kTHuduQ/AqtmuqwxwwTz4p3tDDcn/QF3vx4JMS0Pw3CYCmpTAc8U+BPk7OClB/dB+rfZjR9KEKsVbeGAuq6YJmHpoiK9byhsqhgYO2r9/p8GaMgeN/y9i/a51HWZvduXcMuWJdZCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396253; c=relaxed/simple; bh=QBxy2EnAA/OjW6Ak9KJdT0nTXRdbFAC1gRDLVJJpqB4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Kq3Svm7IID4slTRa7N4qkhgQsjGRbV33UPlPK3sL0BBirn0KER7KpubnGW8X+sg+xgiS5/IhwTjioo3l33+1hISSOjODJglWUfAc9xpKNdI3VRxIK/6Ko97TBj6AdWJUobljln5IqTGCu05+7GVzhnMUxdCYgL6GoyeprmW846g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=hyYCBCdm; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-41001c6e19aso5066255e9.1 for ; Thu, 08 Feb 2024 04:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396250; x=1708001050; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=McJKLtshO3D7dPz7Uw3van7kyM1Ng7QWriaUI03VR+Q=; b=hyYCBCdmsa2I4lWTk9r2SoZhnPhq5SGI9AXm7VHuHd/Am5yraxgoP2RYRMyauFTRdd yfRtHtubYyx+nAu0Z1cABEtgcGRDKHTFp+5YI//u9qNi2DOOjrEi0NqGVevy7hIz6d3I DZq6Nt/h9yCwuIXWy6SqbigtwuyECsh/7z5Kzqs4je/2MnDKGBSFit+Ua/X4OlCTD39Z GMMT88KzIMSUOhVyR3Cq2KLFjycEC3CIFSD4V0efv6AhposoWoZyL4fFCuK81q0N6wWK /hfXho6pALGnIANXRPy3efBwm+JrQzyBJ+6yAB3y37zWUzZKvtT0BsYev5vGria1uC6K HqwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396250; x=1708001050; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=McJKLtshO3D7dPz7Uw3van7kyM1Ng7QWriaUI03VR+Q=; b=W6f4p5nnlt0BQyxM6fZVv4bxErj4JXZ14sHK9lfAbEEr0OwjQZEOe7AUOmHnV+ODSU 6e7mraKe0HjlKhd8u7Nj994W/nkk+oLqlBo2EbVGEnaVMLnCvVBezET+VeE41gUafY8L EkUhTB/0TMYclpnRH/M1H9SS2LRdGoyjWpWULriMm0sjwSBUjOnbHalA6l+Ntg0e+xQJ 6edAZRnnqYCqHwWPxkqReUN73/WVvx/CFankZdR5552ne3u/ISnSaCyPPn6lyYNjk28/ C5fnVZNWJg3P9YCBaQep9Krp8bC/W+yTQw9C4MbmI0tS6ATM3xLQ/xDnCZ1BWXG0uMbl zX1w== X-Forwarded-Encrypted: i=1; AJvYcCUq/WS3n5A2883mQuxeTUtLpxCnuKnnJJ1k5x1RT3MUBVZk9DE0zA1NQ4sJhAipLxtFbpPndy5ZGllZub0/vcl6ZPLpqSjaTVVZVT+H X-Gm-Message-State: AOJu0Yys1slAYuQ4+AgmA0qNR/P+tsuGjMdjt+VGSK7MhF6NXg2L9B2t +3SEVwN9//zuyimOm7NI/YEorjexhksEUB1idwi7T+bDryskDpO9Kw2U2ttR9qA= X-Received: by 2002:a05:600c:1c17:b0:410:2975:cb05 with SMTP id j23-20020a05600c1c1700b004102975cb05mr1958906wms.19.1707396249979; Thu, 08 Feb 2024 04:44:09 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUoiCqTbyl47pwC14HtcXzPMz44Gm6yb/nEUCELzy+BV/Axcoq9C92rydDNjm6ZJsUwtFYlNkf6Dnd9fDwpYkBn3RXEY9MMkTat3u7c/KTe+75xd0PnWSpVYuNP/BbCKoqGpK70xWYtHQr9rfUJbSb43myzOqXNMrY/H7zkSNHPpRz9nqQIyEwLWP9pErkSTaUUTQNLxnlUz9irTs9BCe9Si/OZWdth8LChjZb61VKx23+BaXVtWOgz4AAzS6LSt+cIkYKdNBr1WDvtmNSXqkrzuVInHcE3zRWzSMxTHV3AL/3Mh3hxBIsT2ANfP32/3HOd29eLSQdUsD6eF5+d2tlfGxAHG5a4CKXoDDBX7TdC9QiirOuPswZGyRUUXMtDqGgcXZOzlx6mBHElPMfmHZ559p60MHpfTytFDAhtjVvEuE5zstw+VsoHpvFJYq1NVTVHw8lK3AAZwj3W2Z8QJlg3vM1ZyDr0kSXq8pl8gL8r6E2cslkR9iehDygOM9YEfoQ4+87Z5aCE/qXoUFjDRZd7aSfPS4g0VIFfKRi/AQSgrg053XLXW1SPXRqEQgGsMHE= Received: from claudiu-X670E-Pro-RS.. ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id o13-20020a05600c4fcd00b0041047382b76sm790244wmq.37.2024.02.08.04.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:09 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, magnus.damm@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH 12/17] arm64: dts: renesas: rzg3s-smarc-som: Guard the ethernet IRQ GPIOs with proper flags Date: Thu, 8 Feb 2024 14:42:55 +0200 Message-Id: <20240208124300.2740313-13-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208124300.2740313-1-claudiu.beznea.uj@bp.renesas.com> References: <20240208124300.2740313-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Claudiu Beznea Ethernet IRQ GPIOs are marked as gpio-hog. Thus, these GPIOs are requested at probe w/o considering if there are other peripherals that needs them. The Ethernet IRQ GPIOs are shared w/ SDHI2. Selection b/w Ethernet and SDHI2 is done through a hardware switch. To avoid scenarios where one wants to boot with SDHI2 support and some SDHI pins are not propertly configured because of gpio-hog guard Ethernet IRQ GPIO with proper build flag. Fixes: 932ff0c802c6 ("arm64: dts: renesas: rzg3s-smarc-som: Enable the Ethernet interfaces") Signed-off-by: Claudiu Beznea --- arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi index 2b7fa5817d58..acac4666ae59 100644 --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi @@ -193,12 +193,14 @@ &sdhi2 { #endif &pinctrl { +#if SW_CONFIG3 == SW_ON eth0-phy-irq-hog { gpio-hog; gpios = ; input; line-name = "eth0-phy-irq"; }; +#endif eth0_pins: eth0 { txc { @@ -234,12 +236,14 @@ mux { }; }; +#if SW_CONFIG3 == SW_ON eth1-phy-irq-hog { gpio-hog; gpios = ; input; line-name = "eth1-phy-irq"; }; +#endif eth1_pins: eth1 { txc { -- 2.39.2