From patchwork Fri Mar 28 15:31:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 14032201 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61C601BEF7E for ; Fri, 28 Mar 2025 15:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743175997; cv=none; b=S40B2GETeLA5JViwgic3dAPftlO1/Slx1jpZDDU7ZHI0Xm1anJgODmf/nExaU6/DyoDKELEqAYA97SFEqpybX/qyFU0RinuMR7phuN7luU2JPZrPZxLbh/ApOuNvHxAnSUISY3XB45yctl3xsFeu/texAiRxykuM2++zC6Fn7ag= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743175997; c=relaxed/simple; bh=MIE9wNI/13LxKW7US9kJqxNDUZG5JEOvFHUfIUiX7mw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DKq52BwIlBxLRPE+4Lt5GITb5UHZ442OXdzt9E/KMTlWScu/jGYsNj/7AoNHqCiCdBfIs7Glym+lrj+wpk7CBK13DGJKfmm/VG0m9GuXkRZZJlb2YNVCPv9WhREG6kaBWE86iah6ul/ksLxPAUxrtnbk83fYiU8U7nvRhxew2l8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=FBLp8wLx; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="FBLp8wLx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=oj5WGSunY1n7r+sNYUGA2xlgGU0mdO1RJmpk0FnS/Sk=; b=FBLp8w Lxwbq2VAnOE4sCCavp48TLS8f9PEa5C3XqlTKUMI6aqdhSnCY8oXxmthn4WY7Xe2 C2IcdB3pB3T4SSaNsmFdmgGMIh/JU8ux+ukx/OIaPPXn1z+R5zD8rqjtC67vE38t Aua4zbCuB5Ss4gI8LlxYEgYvTXNrAYyiUUy1F0PSpVLJuB4yjAjrHp6N5cU2u7kF bOQHWBGO/Hdt5EtSQqTj+D5212PRnLozi875SDL+89LfWVTkx/VCig78kWZHBMkL 7MWlPIWolI+JtVnnye65MY0ssE8aXkoUHP5dwe7qQwY0pEilZmbRIJ45NMLAQhAq mdDHQgVgoZ1ZRm/w== Received: (qmail 299053 invoked from network); 28 Mar 2025 16:33:11 +0100 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 28 Mar 2025 16:33:11 +0100 X-UD-Smtp-Session: l3s3148p1@8ry6yWgx11ZtKjE8 From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Subject: [PATCH 5/5] ARM: dts: renesas: r9a06g032-rzn1d400-db: describe keys Date: Fri, 28 Mar 2025 16:31:38 +0100 Message-ID: <20250328153134.2881-12-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250328153134.2881-7-wsa+renesas@sang-engineering.com> References: <20250328153134.2881-7-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The keys are connected to the I2C GPIO extender which has the interrupt pin not connected. So, we need to poll. Signed-off-by: Wolfram Sang --- .../dts/renesas/r9a06g032-rzn1d400-db.dts | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts index ccd47f0181b4..54be87d387f7 100644 --- a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts +++ b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts @@ -9,6 +9,7 @@ /dts-v1/; #include +#include #include #include @@ -26,6 +27,68 @@ aliases { serial0 = &uart0; }; + keyboard { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + switch-1 { + linux,code = ; + label = "SW1-1"; + debounce-interval = <20>; + gpios = <&pca9698 8 GPIO_ACTIVE_LOW>; + }; + + switch-2 { + linux,code = ; + label = "SW1-2"; + debounce-interval = <20>; + gpios = <&pca9698 9 GPIO_ACTIVE_LOW>; + }; + + switch-3 { + linux,code = ; + label = "SW1-3"; + debounce-interval = <20>; + gpios = <&pca9698 10 GPIO_ACTIVE_LOW>; + }; + + switch-4 { + linux,code = ; + label = "SW1-4"; + debounce-interval = <20>; + gpios = <&pca9698 11 GPIO_ACTIVE_LOW>; + }; + + switch-5 { + linux,code = ; + label = "SW1-5"; + debounce-interval = <20>; + gpios = <&pca9698 12 GPIO_ACTIVE_LOW>; + }; + + switch-6 { + linux,code = ; + label = "SW1-6"; + debounce-interval = <20>; + gpios = <&pca9698 13 GPIO_ACTIVE_LOW>; + }; + + switch-7 { + linux,code = ; + label = "SW1-7"; + debounce-interval = <20>; + gpios = <&pca9698 14 GPIO_ACTIVE_LOW>; + }; + + switch-8 { + linux,code = ; + label = "SW1-8"; + debounce-interval = <20>; + gpios = <&pca9698 15 GPIO_ACTIVE_LOW>; + }; + + }; + leds { compatible = "gpio-leds";