From patchwork Fri Mar 28 15:31:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 14032198 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 40FC3185920 for ; Fri, 28 Mar 2025 15:33:08 +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=1743175992; cv=none; b=sm+AwRdyxZ/5MlWMN9yeZaRae9rtE5HNpUWBp8ELXoGDrdPou4ffwrUEkWa2NnlEa9yTG0j9JoHh8HLymK/DFQyDebbHjE0Khe7lU6xSGV5KPV5rz7NpSKRay3AcKq3xUSnNJTqK7tM2R/m54tJNskcDo6KjmyOJKp2aglwd/LY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743175992; c=relaxed/simple; bh=txj0p9AOlMW/GD07JcHDECQ9iN7suXyi54aj8eqK5aU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P1QQlOThfrqr569aXc4VG5OmX83VHIYdO9AqeTvgc4Gn5BEuSDC0Xv/gBC5J6VkPsdRD7DAsdwaPf4p+PWOgDJuGHQk3Poklvhftqc69123lA7XcI8zrumPD3xSJ3q79rsAvMoDxpObsLEtk+9YGr8mavUY4W7ueTYL944cAb2k= 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=dKV48Hcn; 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="dKV48Hcn" 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=6Xtktnminp1FRXV+Q9GFRCgQSDN9oUcIg0LS7BvR3MU=; b=dKV48H cnVoiMxpvp6o0pmMM2Ma1NGHgVpDb9vJ2kngH0z6STym6wwVl/rfOz6uD4d7TUXW cWjDnbCXb4RUbm1g8hiKz0h3XLkL9gRml5X9vFLMFz/k+CFVW9DlSMV3M+EXwog/ 9ljOZKEUeSiIa1Og9gZYeBbPRYq0MmYjMQqWN6MU6TVOfLh4TCFpdwWRYIDefSUi G6OdhAB/IkYNbd4Jc7dT3M5SA7UC3BOwYQ8xOlMflLSpoxzszKkojceEa2iHnDch Ct1Xb+MpDLJJlD3RtpowXOjH5bDl/K2qokQrIQwFKdKFA//pGmTmBwvr72N0J1sf VzDRmSk6Bfjgt9kQ== Received: (qmail 298903 invoked from network); 28 Mar 2025 16:33:06 +0100 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 28 Mar 2025 16:33:06 +0100 X-UD-Smtp-Session: l3s3148p1@GOZvyWgxBl1tKjE8 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 1/5] ARM: dts: renesas: r9a06g032: Describe I2C controllers Date: Fri, 28 Mar 2025 16:31:34 +0100 Message-ID: <20250328153134.2881-8-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 To match the documentation and schematics, they are numbered from 1 and not from 0. Signed-off-by: Wolfram Sang --- arch/arm/boot/dts/renesas/r9a06g032.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r9a06g032.dtsi b/arch/arm/boot/dts/renesas/r9a06g032.dtsi index 87e03446fb4d..5889d391b653 100644 --- a/arch/arm/boot/dts/renesas/r9a06g032.dtsi +++ b/arch/arm/boot/dts/renesas/r9a06g032.dtsi @@ -268,6 +268,28 @@ uart7: serial@50004000 { status = "disabled"; }; + i2c1: i2c@40063000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,r9a06g032-i2c", "renesas,rzn1-i2c", "snps,designware-i2c"; + reg = <0x40063000 0x100>; + interrupts = ; + clocks = <&sysctrl R9A06G032_HCLK_I2C0>, <&sysctrl R9A06G032_CLK_I2C0>; + clock-names = "ref", "pclk"; + status = "disabled"; + }; + + i2c2: i2c@40064000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,r9a06g032-i2c", "renesas,rzn1-i2c", "snps,designware-i2c"; + reg = <0x40064000 0x100>; + interrupts = ; + clocks = <&sysctrl R9A06G032_HCLK_I2C1>, <&sysctrl R9A06G032_CLK_I2C1>; + clock-names = "ref", "pclk"; + status = "disabled"; + }; + pinctrl: pinctrl@40067000 { compatible = "renesas,r9a06g032-pinctrl", "renesas,rzn1-pinctrl"; reg = <0x40067000 0x1000>, <0x51000000 0x480>; From patchwork Fri Mar 28 15:31:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 14032197 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 1A39A1A0BF1 for ; Fri, 28 Mar 2025 15:33:09 +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=1743175992; cv=none; b=R6Tu1Vx88PRZTqlBcNl273rSxxVsXIMEyWqHtBR4rusUHhjgP93DMfxdWUOSzSFcQjuwisHHxXA9TWMsCMrnYabjnunGk9ySTLmggqoaVa3dHSXPipZOsZ7q+ucx9BaLv1sWzWPq29N505GssaNvKNNzJIYCT1mkRqDZtDkt2Kw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743175992; c=relaxed/simple; bh=D3LsNOB0pXcrNPWazU5BAzrFvHL7lD46hnhAuY5uZX0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q3i7UMH/Ze3Yc5DopJK2iLbnefLNtaU/fhE7AJ0IZ78/8EQuws/pziO6avrH5OuV8GmOte49XODHHTe309JEqFTx0ZpFa3FLHaz/sgyavu9FOn0YEGopVESXnfMBYdtnkQbPYDG7JKc8kssbM3KLC7RXBxEjlJcjmKs5iWk0wqw= 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=FyyjuU44; 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="FyyjuU44" 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=oChmzxKxLjZEK/kZPcsn/jDIGGWyUlkc6XPmpbYrMOc=; b=FyyjuU 44TKS1ty5J7r8q+uyKm9zWY/CCGu5ZmbIKBbosHj8t4vB4v9zob7//MdSVU+aQ21 Bdq1tFtGiLDh0/h9WZhvDKPK+V9U11K1jor9WMmyyktyhpbszLt7nfize4NdVSx7 9fJq3r5ipgSI5skcTjMhWhzVZuJHYpV3cyN/XK2VRqpaFZ/Z+PRPohV/XH4hn9Wf ZHHqlRcAvgmmco1fcXpx+j9ENQQtBmxBWIhJJ2vZl5ysRwcLgKoOfTpyG4ov42Xn +qU4ThsTOwxE0RuPipA4k2XlwoepsIyfWYopztewUK3gD+fBGbZ2p7cNFdztTvdh bT8OJIc7zQZYAAUQ== Received: (qmail 298947 invoked from network); 28 Mar 2025 16:33:07 +0100 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 28 Mar 2025 16:33:07 +0100 X-UD-Smtp-Session: l3s3148p1@eX+DyWgx8GxtKjE8 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 2/5] ARM: dts: renesas: r9a06g032-rzn1d400-db: describe I2C bus Date: Fri, 28 Mar 2025 16:31:35 +0100 Message-ID: <20250328153134.2881-9-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 Schematics mention a 24cs64 on the bus, but I definitely have only a 24c64. So, it is only mentioned as a comment. Signed-off-by: Wolfram Sang --- .../dts/renesas/r9a06g032-rzn1d400-db.dts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts index 31cdca3e623c..d50a1d91e968 100644 --- a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts +++ b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts @@ -57,6 +57,44 @@ fixed-link { }; }; +&i2c2 { + pinctrl-0 = <&pins_i2c2>; + pinctrl-names = "default"; + status = "okay"; + clock-frequency = <400000>; + + pca9698: gpio@20 { + compatible = "nxp,pca9698"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + + /* configure the analog switch to let i2c2 access the eeprom */ + max4662-in1-hog { + gpio-hog; + gpios = <16 0>; + output-high; + }; + max4662-in2-hog { + gpio-hog; + gpios = <17 0>; + output-low; + }; + max4662-in3-hog { + gpio-hog; + gpios = <18 0>; + output-low; + }; + }; + + /* Some revisions may have a 24cs64 at address 0x58 */ + eeprom@50 { + compatible = "atmel,24c64"; + pagesize = <32>; + reg = <0x50>; + }; +}; + &mii_conv4 { renesas,miic-input = ; status = "okay"; @@ -114,6 +152,12 @@ pins_eth4: pins_eth4 { bias-disable; }; + pins_i2c2: pins_i2c2 { + pinmux = , + ; + drive-strength = <12>; + }; + pins_mdio1: pins_mdio1 { pinmux = , ; From patchwork Fri Mar 28 15:31:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 14032199 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 84BC71B0F32 for ; Fri, 28 Mar 2025 15:33:10 +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=1743175994; cv=none; b=LP2MpOh8pxLkI94guVeQEe6z220tteupqIr8v0VF3qTHLjzQAMry5xOLPpCtFEEgFDSqGtS5Oi9lFDGpg9UPjc+fKnaCw1ZkIo203xVZ/dAZvCXnmndPsRc82dR0jqsJALmCeBhYyn4es0eSSh9nO2M3DVl6ka5grxAe5nWns80= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743175994; c=relaxed/simple; bh=gAfSTmt6C9wVmBCIgiPdQ30mpD7ytGP+lPJARTBZUG4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P8jeL5A6j36MRfXp6lcKaTWxRkWSOEocWsYNuslzx3TRc4s0/8aNQxWbVDUoygYhixPDRnzmB8MuMemwK9HknH6dKqW4kXS/BCKekuoaVqU+GoT0pa/wvm2lvASjT55Ovm8f4RimKYLPvRprS1cmJnfgvWNINvZoZOGL95r4k7s= 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=KBNtGK7G; 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="KBNtGK7G" 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=eRounbwEII1Mji3E5hvnFfPeOe9F5TF+yC1aFeQ/G7c=; b=KBNtGK 7G33cAdYYUfIkCVRGbMBRfK5K1h9yrAeKTxDEure3Cc5qNCcp8FiDBimhgl2WHox y80K2v2Bwf17DQsFZy/lfsE2c08YeLKawqwBHObBgV2m+3LS1OZD4rc/VV/Xbd0p ob8W3jWLsJ4eqQ4blJEIqtDoSZZr8nCshYExEXqNdZTzkqqroj0S6LolN24HeDde H6bQ0Wkzn+ihoSeC7AIxnBUnc7bvtFli22aitJpV/z/X/+YxvSyt3rnnyztlTKef J9iJ5YBrxgmvuDPw+7Nm817cW7noluIku294rCAevVrb297o5y6MTH2rDO1s6xYK EVyjTZEoiEkMDadw== Received: (qmail 298991 invoked from network); 28 Mar 2025 16:33:09 +0100 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 28 Mar 2025 16:33:09 +0100 X-UD-Smtp-Session: l3s3148p1@3oWXyWgxiBJtKjE8 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 3/5] ARM: dts: renesas: r9a06g032-rzn1d400-eb: describe I2C bus Date: Fri, 28 Mar 2025 16:31:36 +0100 Message-ID: <20250328153134.2881-10-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 actual sensor might differ, but all known are LM75B compatible. Signed-off-by: Wolfram Sang --- arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts index 1aac06b0e423..56da1d5fd5f4 100644 --- a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts +++ b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts @@ -14,6 +14,14 @@ / { "renesas,r9a06g032"; }; +&i2c2 { + /* Sensors are different across revisions. All are LM75B compatible */ + sensor@49 { + compatible = "national,lm75b"; + reg = <0x49>; + }; +}; + &mii_conv2 { renesas,miic-input = ; status = "okay"; From patchwork Fri Mar 28 15:31:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 14032200 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 29D3E3594A for ; Fri, 28 Mar 2025 15:33:13 +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=kw+k+9ZYCw+UI+RGrWtY0iUzfUah2/dC0Ndd572rBAwzjn9BgoJNF4kUnPJjemWuYqYQL6+R1wDHLAsV9gi+zt9RuygFc3oLXZdJqaRAWqMJcNNl2gPFH9Tx00l7TxIODfDvER94cFL7pvAw2nG+yXlWDWQkeSN3yIjjNBEqUDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743175997; c=relaxed/simple; bh=WJCZMRqoTmctobBD9on9p0tjY+lofVd+8Nqsfi/woyc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NaoUrRm37jdZUrg2WaqQ+h2rCrqsm+MpdinJsrOQ2JAxOpUXbUGkVBTxt62CK3osk47Sw4KgUnjeayudBkgnFILhlSfrrT7D32akPQLxxoAryvHOZhH436t8prmonRVgYhewcMjWR4Hgq3IS1SxKaYxdjdLnUo86IZiTpcYQ/hE= 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=KNJK1+8N; 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="KNJK1+8N" 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=1dfAcsDJ9FoXmMqtKsWAH8cCQ6eMQYaN5wYHw/2xWiY=; b=KNJK1+ 8NAuu4N6oCsOK7BSmkTSAphzVGiWZFv9YvLg4OAQMo6xgqL5WD5V2+USzzTDDGyx 06OoCgxI5zArZbKLy3eQ3cd2tmppztxsMwhcl1RRvYMaGFsoiVJh6cqWVilurx4T 0yW5XdZKnPpykRJHZ2Ohu1qGleovAC7ETnlwnxPRspoh1q2OZgZfNEQOxV4sg/yZ HqDcHRxMPW/f/CAdiJkffLXTd8RZikksF6Ukb41U14dMDqhKIUy2Ebgqq3J5FIjU 4qI/LH6rB2aYBN2oC7EYsmuqsbvewWc7O4AZcbYFSN1zkg2afVChG+/Cyb07ylil VO/MgDhCM7uNnjsA== Received: (qmail 299040 invoked from network); 28 Mar 2025 16:33:10 +0100 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 28 Mar 2025 16:33:10 +0100 X-UD-Smtp-Session: l3s3148p1@MyGpyWgx505tKjE8 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 4/5] ARM: dts: renesas: r9a06g032-rzn1d400-db: describe LEDs Date: Fri, 28 Mar 2025 16:31:37 +0100 Message-ID: <20250328153134.2881-11-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 Signed-off-by: Wolfram Sang --- .../dts/renesas/r9a06g032-rzn1d400-db.dts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts index d50a1d91e968..ccd47f0181b4 100644 --- a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts +++ b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts @@ -8,6 +8,7 @@ /dts-v1/; +#include #include #include @@ -24,6 +25,42 @@ chosen { aliases { serial0 = &uart0; }; + + leds { + compatible = "gpio-leds"; + + led-pca0 { + gpios = <&pca9698 0 GPIO_ACTIVE_HIGH>; + }; + + led-pca1 { + gpios = <&pca9698 1 GPIO_ACTIVE_HIGH>; + }; + + led-pca2 { + gpios = <&pca9698 2 GPIO_ACTIVE_HIGH>; + }; + + led-pca3 { + gpios = <&pca9698 3 GPIO_ACTIVE_HIGH>; + }; + + led-pca4 { + gpios = <&pca9698 4 GPIO_ACTIVE_HIGH>; + }; + + led-pca5 { + gpios = <&pca9698 5 GPIO_ACTIVE_HIGH>; + }; + + led-pca6 { + gpios = <&pca9698 6 GPIO_ACTIVE_HIGH>; + }; + + led-pca7 { + gpios = <&pca9698 7 GPIO_ACTIVE_HIGH>; + }; + }; }; &can0 { 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";