From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 6FA6425F99B for ; Tue, 24 Feb 2026 07:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771919154; cv=none; b=hWWm0BhCywb/w/6lr+I3+bYkxzYMFcdE2d0uS5JVBPr/EN9UwZ9MfLUR7fCr7YApZn7HBZeAsYuPP2p4fpycWENFdpZAod/kslyLUzBC/FIV5NTtr0r9LaQDO/Omk8r0SwDKhaI2fW6hhmWtj3JnkZ24v0OmDbJwgHhJcRKAXSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771919154; c=relaxed/simple; bh=EgvBwVW3fzHxVZwxqweEzA2aY5ov4rT0plwRdInAfTE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TAfzba+3L/aRRWbmQor/0/PhmggJ9ETTJYOdWNo5Y1LkwwGCYvk2zf4Cc8iSGSJPRu7E1Bk71K7syGf2HaS0WGp9Cu9D8K66bYLffyoxPM7pAJOwowwq+kq4hBPFtjM5HMmS70CwKGOPHdu8rL7MScFglJLQuADt3ZN8P33har0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=czKLtXKl; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="czKLtXKl" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2aaf5d53eaaso34478265ad.0 for ; Mon, 23 Feb 2026 23:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771919151; x=1772523951; 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=Ik0I2eRajzcaY/myt6ewZrh7yPRrQbzFl835dyaF2rk=; b=czKLtXKlFDMh6UUATKMfdR/SO0yS39hkFPtRCQ0g1znfcjQVNSEujq8Qm5uCObIDRb t421XvWa88Mi5Ih1TWKUcIlYBcEQ77cnlTaB0bil0OiHViHkWyrA9M60mVMrwCw6Fjdb LGF0zu9tLr9sjLmaQcsf0DvM7pU/UgT0HQuWFd5Z96/A3ep0QSvr5UjhHNh5UcgvuYML r0CyfSsZrfqxdHhGiO+jDAVOI1YMVCwIShCstCrjlMD30rULNuS6kVwayvZUmVbBG9iN sugAf30e9HKPjepSCzr1g38EltlD3iOIOCKCrDi4Wa3NoRFZw1UPALRb7yJBNVcMvHV7 ffQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771919151; x=1772523951; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ik0I2eRajzcaY/myt6ewZrh7yPRrQbzFl835dyaF2rk=; b=CGE4Z+LLYzR3/pIfJdZ9QdnKmajPVfrN0D0OUFDKm38ZqJrnz7AtTD3uVQ2+p5cXAl JN34GXc/r2syQLB7yXKstavEcCP9GDiWnzycn+rdmOIsurC91eYzSIGjBvfw5dN2rPqs bIEu+9+/7hizGveiVbJpxLV/lYdN7TB5dSsouuvqhHG6sUvmDJ0kkFvpaUA7GTOXR7Iq StXTX29hjHNuYJQIVXkJuzCQ5jmbn/o6A8gDZGnWRtoKLMUf63Ad7C4DkhZkY3XgeU1Z UjflgVhR/d8RETXc6Ye5dORZ/h7yrz/K8MVavNoafKCHWv6xkLy11tvIqx1PmdCOJRjG DS+g== X-Forwarded-Encrypted: i=1; AJvYcCWEiuJcAolRi4b8u0WZirfD3ajgMjz4rBTGdCNGiLhokqIdhRw0EPcDZAyw9B7eoK/DhJ9dGOtAZTSF@vger.kernel.org X-Gm-Message-State: AOJu0YzWUFExW54W3f5/UmLCy42x7ilDXaQEPShMOgfMgi47fHEKgdbb aSFZgaO0E2YkKWawL2dJd5rp6UU/iwAJWjTNLIKMNKk8+grAnWI17Trk X-Gm-Gg: ATEYQzwxUHLGn4FvftF6eUR1j1HVdNjhg57YrOpzJQiamiEK5YGou3DQrQtCE+Oji/6 V8bYda1Jw3MGBeU7LgG/zv5qeD5HURYdNThGPQdXwtcLcJAdBVmvgTq90tsR7UgStnhEsJtWjLe WgMBhwif2Y+un+8BtvPOnuvgi3UjrxhE7qnWNny4FJqrF0kcjcWTJO7Ur0e2EU1+v5xAYaK+EEi PkbGWFWE4lYP0hOVUwAyrlztiOxTDVauLDPFsmLWxC5FoC0b7cFmnlUElukRm7hp+s3qnQWPDYk mmxlNnvzUhN+PWwDzfbJQ6BrorsWPtNlduYZ/5MC2zN3e0aSpvXigW5dCyT1hEv+DNy3rTPwmit xL/GxiMDlsfxWf2E086BJn0yHRrgXFSJl8BX2Ggs/XLjeRKGtnUvRoOAvENhSQxiRHmRTtySBhD y+DlXUFKw8O+41tYrGPx2ox5RiMw== X-Received: by 2002:a17:902:c949:b0:29f:1fad:8e56 with SMTP id d9443c01a7336-2ad744553e2mr103623015ad.6.1771919150755; Mon, 23 Feb 2026 23:45:50 -0800 (PST) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3589d8e3e73sm12537377a91.15.2026.02.23.23.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Feb 2026 23:45:50 -0800 (PST) From: phucduc.bui@gmail.com To: phucduc.bui@gmail.com, geert+renesas@glider.be, magnus.damm@gmail.com Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, krzk+dt@kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, robh@kernel.org Subject: [PATCH v2] arm: dts: renesas: r8a7740-armadillo800eva: Enable SDHI1 Date: Tue, 24 Feb 2026 14:45:32 +0700 Message-ID: <20260224074532.60046-1-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260212073819.41304-1-phucduc.bui@gmail.com> References: <20260212073819.41304-1-phucduc.bui@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc The Armadillo-800EVA board provides an SD card slot and an AWL13 SDIO interface connected to the SDHI1 controller. Routing between these two interfaces is controlled by a mechanical DIP switch and a set of multiplexers. This patch adds: - A fixed 3.3V regulator for SDHI1 power, controlled by PORT16 (G2). - SDHI1 pinmux groups for data, control, and card detection. - A gpio-hog for PORT6 (J5) to control the SDHI1/AWLAN multiplexer. PORT176 (N21) is already configured as output-high in this DTS (via lcd0-mux-hog), routing the SDSLOT2_ENABLE signal to PORT6. Since the hardware includes an external 10k pull-up resistor (R94) on this line, PORT6 is configured as an input to allow the physical DIP switch to determine the routing without SoC interference. Both configurations have been verified: - SD card (CON8): detected as mmcblk1, high-speed SDHC. - SDIO (CON14): detected as mmc1, high-speed SDIO. Signed-off-by: bui duc phuc --- Changes in v2: - Added PORT6 (J5) as a gpio-hog in input mode to preserve physical switch functionality, influenced by the R94 10k pull-up resistor. - Included hardware verification results for both SD card and SDIO modes. - Improved commit description with detailed hardware routing logic. Note: While a specific driver for the AWL13 SDIO module may not be present in the current mainline kernel, the SDHI1 host successfully detects it as a high-speed SDIO device, confirming the hardware description is correct. .../dts/renesas/r8a7740-armadillo800eva.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts b/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts index 04d24b6d8056..e7aae1e32b2e 100644 --- a/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts +++ b/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts @@ -65,6 +65,17 @@ vccq_sdhi0: regulator-vccq-sdhi0 { enable-active-high; }; + vcc_sdhi1: regulator-vcc-sdhi1 { + compatible = "regulator-fixed"; + + regulator-name = "SDHI1 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&pfc 16 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_5p0v: regulator-5p0v { compatible = "regulator-fixed"; regulator-name = "fixed-5.0V"; @@ -285,6 +296,11 @@ sdhi0_pins: sd0 { function = "sdhi0"; }; + sdhi1_pins: sd1 { + groups = "sdhi1_data4", "sdhi1_ctrl", "sdhi1_cd", "sdhi1_wp"; + function = "sdhi1"; + }; + fsia_pins: sounda { groups = "fsia_sclk_in", "fsia_mclk_out", "fsia_data_in_1", "fsia_data_out_0"; @@ -302,6 +318,12 @@ lcd0-mux-hog { gpios = <176 0>; output-high; }; + + sdhi1-select-hog { + gpio-hog; + gpios = <6 0>; + input; + }; }; &tpu { @@ -336,6 +358,15 @@ &sdhi0 { status = "okay"; }; +&sdhi1 { + pinctrl-0 = <&sdhi1_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi1>; + bus-width = <4>; + status = "okay"; +}; + &sh_fsi2 { pinctrl-0 = <&fsia_pins>; pinctrl-names = "default"; -- 2.43.0