From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 862082FBDF2 for ; Tue, 24 Feb 2026 07:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771919152; cv=none; b=VWaqAEFARuBr7ax7gRJpRHr46zGSy1nfbwJUwg+o5wvL2quLIiG1ZOJkdRdZHBRDDtlhDBlw08IiBqmW6xqWgGc2V0AJkGgZhAJKYG0D82RNU4vXSWZ9Xw+v8A7WKgvrf41bebp+cl9InnV9Zp5XmQbTYhwrkY+Z8sXx2rVzi9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771919152; c=relaxed/simple; bh=EgvBwVW3fzHxVZwxqweEzA2aY5ov4rT0plwRdInAfTE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g8PSwbieBSWnzD/BESM/rtpBrnDJWH7xuxLDhe/XkyvYbitdD4m+O2z9t8wEsdQivkq434ybXZ/VYOWCCPH6x00mjsllirNI+1whIxFp98D4Mr0x7P5IbuOGtumanrMDjmkB/qhtfzEzHW+3EQsJ3FQULtmT/X2vdpa6x07wMsc= 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.174 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-f174.google.com with SMTP id d9443c01a7336-2aaf5d53eaaso34478285ad.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=alafa80IIRF6zmhq+rnwvKmtsmIw4b8bEqZNZqVVrDJmuscehaxL1uJvHjgjH6JHHn 6JCzaRqMRAtY+MfWuCalS3fS1hhPMLWF0vVumygUve7gW7eo2fM+sznNNxaW3w34PU1/ l3x6luuQmQLgtYkp7AwW7NUtO5n4mbQiPcYLQjCOSQnlPcGw+MD7o7l6lQI02sI4n1Kg zxt84JHUPaBLZNm7B64ldo1jEYlxcSBRJ1okiVeX4wGmBhPX/NLHxnv8WDpEZ26e4Fxp HN2sADzxTgo4QLiexjqRwM23AS48PdtnzmH4m3HpqVer61DrHy0mKeB3NJCTpHO2T8HO yAWQ== X-Forwarded-Encrypted: i=1; AJvYcCUIBMjYQYW4oxAjGHvofsTXH18mSs5WZONb1owyZhO6Tn4d8oJKx12c5z1P61FU2M2/dKqoVMnQUuhikrw=@vger.kernel.org X-Gm-Message-State: AOJu0YzgFrzv7fmxdrYvYBJOCoYdVoP4YlzESLwXqdYaPpjtYb4/qpJ8 GJ2AQg+SpDsD8vEIIJGlBofet2NDOmy2xsbzlkRP0sXqpqvz4N+5b++1 X-Gm-Gg: ATEYQzxAN2ODMgcsSvfbE0OLTW6dz2oFNfjBzHeO4a4MVlX/OXnNBVsP7i8Z2nFe/ur dMbzO74AvS3w6OxDYNAk83JPMwAWIZAaGw4/uoarZE5pyyGxm6FOf/sCpQ4ffSLey9uoe9tVG1J cUvXRlNBiI5N9uiYuP702ZGfumD8K7G2V9VAjhAZxaE5fJcVZC2McKpAFIAV2ThnVjufcZbieVv l0Adi+QAe7fZ6Mrqmp8efxDktdP4H6Dz1nXBJYJkzkh/Ed/TPUpI9U4keELfq4n1zlF78oTDGsj NO2NcxZoP5oJ8N4wDJnz7FA77pOPtatbhnbR0EVuVTNiiTIVQC4L2nXpDhbGxjNKOyCSoaatvKB l0iyx8OSNx0wMjZfD+v2gsJlbybuxtnyl0QLta0M9jQS4NrhmO5HxlKUqaaUgS6mLpIjUA+cKa3 2l34kCTtx5wjD4bAMThKhr9NfWCw== 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: linux-kernel@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