Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2375380rdd; Fri, 12 Jan 2024 07:38:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGN8nVy0/iFQPM7I7NBMu5Ba74Zo+KqBfvpsBGYv8ci7lhTXWDiXx4ESMfhO49qL7iCNx+U X-Received: by 2002:a05:6a00:9388:b0:6d9:83b2:1ebd with SMTP id ka8-20020a056a00938800b006d983b21ebdmr1299348pfb.50.1705073936733; Fri, 12 Jan 2024 07:38:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705073936; cv=none; d=google.com; s=arc-20160816; b=tGvCn6Ztnb+qbgy5hngO0Nql2XKLYZ/qq4J0SpJIN2J7evFGzkDNosBAu44HxDUNYl yhmc2vcMOnuggPEiKAXny0a44nQEUHrAK1QvMFueSZ1l5P+DPbvQ3aI+SZXifdsUFGPE Puqi6hBIWrEyqghEeOE9IkBwqJ25x4VIhVONl7dF0PB1duywzvXJ4kX2wVX6xhAlGvda NHklTOKmYJbPSmieuiqAvYjxuzaAOmYyVoPSJ9ct9PctELw3PEy0oPDCZ8IPx3RdPSmA uPGEyo4lb49Ww4+e0pT3wLwbEjnqTRQfuXD0j5kB74bb1yT4Tq0M4Xji6YaYjDd7HKWm PZDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rcF2XsVN5qfBcTnWBw/ZNq4CN89fzFSDAjr71tltvUY=; fh=6nrORVYLK/HGdgsny8RNXhBBdD1z5A0LFMzyx+BLPwY=; b=RpdNtMOvK0ONRsYChIGEDZiw8iOOOKPvWvtv9vJu373YvquWDvT+qUm9Rr7MO84m/b FTLAsTPw0m1BfvRvE0RVaYjaP6nhUkNV24xxkR9BpnNTkQp8Za2MPfURzdwi7J70pbYl EWuGVey4xeEAyGflcTWHjl+QD7RAb1yIcofCPAqBIImOWwp2q6p8yKCJpscqz7P+HBoZ 6CGXrITAqTJ/z90ge35AKw+m9Ta8wi060vsqGJSVd00vjxF9qmzxkYtnBbJA8s5IQd/n +bnXn0Q6iQIeWoPeVf+Y1krb/PcDdKRj89AJ4IGbUOrOqeK9BIq83ENo0rZNzr3dSftt LkRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=NquVzITc; spf=pass (google.com: domain of linux-kernel+bounces-24814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24814-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k186-20020a6284c3000000b006d9a4f9c742si3335646pfd.82.2024.01.12.07.38.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 07:38:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24814-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=NquVzITc; spf=pass (google.com: domain of linux-kernel+bounces-24814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24814-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 67A2028264C for ; Fri, 12 Jan 2024 15:38:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B20F26EB5E; Fri, 12 Jan 2024 15:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="NquVzITc" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 4347D67E95 for ; Fri, 12 Jan 2024 15:38:47 +0000 (UTC) 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-wr1-f50.google.com with SMTP id ffacd0b85a97d-3367601a301so5550163f8f.2 for ; Fri, 12 Jan 2024 07:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1705073925; x=1705678725; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rcF2XsVN5qfBcTnWBw/ZNq4CN89fzFSDAjr71tltvUY=; b=NquVzITc9CUNEHvFsBIGQNJLEO9tlGBF/7BB1idU8AGYFwUavhGWbKTZT/yqBIUk+U QUfUyyrecNUgLoSm37k8i8sRXiJoLHnNNghtmhjS6VgYLkLjA33UkxFakVLaHDw7bZrN l4SFxtvlrRojdIVZTFD0DXvh1fuHwoI3vk/t/hWHpt9eTwRI2rPXpA76azObRyG8acAl ZZLcEddSsdbxwim7gGF2AUrplwHwDC5tsRzMZuK9ssLgxLJTTdJH59Okydltv2q0zgv4 HzqVuvRql7wTL46/VJY80CQ4KYW6LthHIw++jtSDx6Tg/weUSALg/eWu3A5WkAHdZCw4 HvkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705073925; x=1705678725; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rcF2XsVN5qfBcTnWBw/ZNq4CN89fzFSDAjr71tltvUY=; b=Cx3DkslOVZiUm2XV7zx4S8fzbmq0mth3tl1Upd1d0/eYXIbLtommpXMA3aJUxXhLIh +6xyNN0/LjwyiJHA5LdqNZLFq64rT3VfQWBYcma4ui4QzeFFSXaMtFiFrPWepV/Z7Qwt QUEoASAYUO0NG672PX3OgwLqlRjcwTt8TNC1SsfmuDDtzG4dQgLi+wpP/p1BroqmZuTk Zf9G2x/nAGGVdW+mUHxkTLDzWCI+CYMHO8KkZIBCeFgbDBg9DBlfF2sZkXfQjKSjjSkl HjLFgj+A2QpAg3k3IYB37KzofLXmHVk1zKtQlNZRIeVYsSvUsYZls31ddYGl6/mhRxcT DqqA== X-Gm-Message-State: AOJu0Yzcc6UeBOMTjzn8CinYZHOXUbZJrGPKHv7vxZEZ8AzPjW8tdJXU c2gFpxwpn9956UKn5vdKOjbej20tqy68EQ== X-Received: by 2002:a05:600c:4795:b0:40e:470a:d867 with SMTP id k21-20020a05600c479500b0040e470ad867mr560082wmo.222.1705073925366; Fri, 12 Jan 2024 07:38:45 -0800 (PST) Received: from [192.168.50.4] ([82.78.167.5]) by smtp.gmail.com with ESMTPSA id m6-20020adffa06000000b00336c6b77584sm4192623wrr.91.2024.01.12.07.38.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jan 2024 07:38:45 -0800 (PST) Message-ID: <30608a28-b1e3-4ad3-aad5-1033eb8adc6f@tuxon.dev> Date: Fri, 12 Jan 2024 17:38:43 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: renesas: rzg3s-smarc: Add gpio keys To: Geert Uytterhoeven Cc: geert+renesas@glider.be, magnus.damm@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea References: <20231227130810.2744550-1-claudiu.beznea.uj@bp.renesas.com> From: claudiu beznea Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Geert, On 12.01.2024 15:55, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Wed, Dec 27, 2023 at 2:08 PM Claudiu wrote: >> From: Claudiu Beznea >> >> RZ SMARC Carrier II board has 3 user buttons called USER_SW1, USER_SW2, >> USER_SW3. Add a DT node in device tree to propertly instantiate the >> gpio-keys driver for these buttons. >> >> Signed-off-by: Claudiu Beznea > > Thanks for your patch! > >> --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi >> +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi >> @@ -6,6 +6,7 @@ >> */ >> >> #include >> +#include >> #include >> >> / { >> @@ -14,6 +15,37 @@ aliases { >> mmc1 = &sdhi1; >> }; >> >> + keys { > > Do you mind if I s/keys/keypad/ while applying? ... Is not actually a keypad... there are 3 buttons in a corner of the board... I see only 2 entries in arm64 and arm DTS directory following this pattern for gpio-keys compatible node: arch/arm/boot/dts/renesas/r8a7779-marzen.dts arch/arm/boot/dts/renesas/r8a7779-marzen.dts But if you prefer it like this, I have nothing against. Just asking, do you have a particular reason for naming it like this? > >> + compatible = "gpio-keys"; >> + >> + key-1 { >> + interrupts = ; > > Oh, the horror of interrupt controllers that don't support generating > interrupts on both edges... Yes. > >> + interrupt-parent = <&pinctrl>; > > ... and move these one level up, to avoid duplication? Moving it just near compatible will make the schema validation to fail with this (driver is working, though): arch/arm64/boot/dts/renesas/r9a08g045s33-smarc.dtb: keys: 'interrupt-parent' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$', 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/input/gpio-keys.yaml# Thank you, Claudiu Beznea > >> + linux,code = ; >> + label = "USER_SW1"; >> + wakeup-source; >> + debounce-interval = <20>; >> + }; >> + >> + key-2 { >> + interrupts = ; >> + interrupt-parent = <&pinctrl>; >> + linux,code = ; >> + label = "USER_SW2"; >> + wakeup-source; >> + debounce-interval = <20>; >> + }; >> + >> + key-3 { >> + interrupts = ; >> + interrupt-parent = <&pinctrl>; >> + linux,code = ; >> + label = "USER_SW3"; >> + wakeup-source; >> + debounce-interval = <20>; >> + }; >> + }; >> + >> vcc_sdhi1: regulator-vcc-sdhi1 { >> compatible = "regulator-fixed"; >> regulator-name = "SDHI1 Vcc"; > > Reviewed-by: Geert Uytterhoeven > i.e. will queue in renesas-devel for v6.9, with the above fixed. > > Gr{oetje,eeting}s, > > Geert >