From patchwork Thu Sep 26 10:20:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13813149 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 93E181AB6F0 for ; Thu, 26 Sep 2024 10:20:20 +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=1727346022; cv=none; b=EWnq/H/yRszbdfX7YbI1EXA5FDFFXQwV4lX6cDcAeUDUBGj9N546Nob7nNpD1oE835wry+DIXJ8FTqNB7B23jx9ezaR5j6TBSr/AQQU/LLRNsp0KsihGEfBZWB3fpSfLcyJwUCWlk9U4XhEAyrnmL8zZeC3pwD6luiNiTFe41VQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727346022; c=relaxed/simple; bh=u1Mao6Pt1hD/05TXRxjRStZ7jugPNQNY3310P1oBfYk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iOrBH9iCQjgSUSZgCUWzK9lilWf+lVy1UZdTDE9SFgfsJcdcsH9AikT5e/jerkRKBGIweQSZNIiQwn/2z1Usvg7OOkxZqsHR4w8LXoOBl2L/1rjXvxSY6dsKosb8VB/1d298CVEDQ2GKQaDQLd6y50kas89HEReigJKARGq2RRA= 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=V4byq2ca; 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="V4byq2ca" 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=8maR6u45YPSDoUaReOHVbKQEN6AYER8eFMxpt0e1MMs=; b=V4byq2 cacVyYkUs17EHkxYjX3lzYrY0D/kMTU5sZ7YRdOXrhQaOZhdvhkIgSPPyhljVPhJ HAxWPbZa1tIR129o6F0Mz3KUCgsLNum+3i4Ks9v6gSG+6Kr9W/E0ZO6F4U6aruBr 5i/gDNRY0FYPft5oN3+qc7Dx6kCjSWnMp6XBFR2sRAoCZc+UtEAFvlX2M11ZGESh eoBTG1B6YfKdaNYjb6z9EvQyO3mvssDiNbRW6haiZb5XD74n/rOgAag/ojX9WYCn 55fWNQz6yzp2EFIH4Z0PyH/jgztfR2wv4Ny+PwM6oVIn6iT7rSairu23t3fv7hhA rwFcegd6rjUgDj9g== Received: (qmail 946847 invoked from network); 26 Sep 2024 12:20:18 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 26 Sep 2024 12:20:18 +0200 X-UD-Smtp-Session: l3s3148p1@xVjRFQMjrNQgAwDPXzRXADDuo30Z+IZ9 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/3] ARM: dts: renesas: genmai: enable SDHI0 Date: Thu, 26 Sep 2024 12:20:06 +0200 Message-ID: <20240926102005.15475-6-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240926102005.15475-5-wsa+renesas@sang-engineering.com> References: <20240926102005.15475-5-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 For this to work, User LEDs must be disabled because they share their pins with SD data lines. Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/renesas/r7s72100-genmai.dts | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/renesas/r7s72100-genmai.dts b/arch/arm/boot/dts/renesas/r7s72100-genmai.dts index 2d72daa4fac2..e93f444b2442 100644 --- a/arch/arm/boot/dts/renesas/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/renesas/r7s72100-genmai.dts @@ -76,7 +76,8 @@ key-1 { }; leds { - status = "okay"; + /* Needs SDHI0 to be disabled */ + status = "disabled"; compatible = "gpio-leds"; led1 { @@ -227,6 +228,18 @@ scif2_pins: serial2 { /* P3_0 as TxD2; P3_2 as RxD2 */ pinmux = , ; }; + + sdhi0_pins: sdhi0 { + /* SDHI0: P4_8 up to P4_15 */ + pinmux = , /* SD_CD_0 */ + , /* SD_WP_0 */ + , /* SD_D1_0 */ + , /* SD_D0_0 */ + , /* SD_CLK_0 */ + , /* SD_CMD_0 */ + , /* SD_D3_0 */ + ; /* SD_D2_0 */ + }; }; &rtc_x1_clk { @@ -244,6 +257,14 @@ &scif2 { status = "okay"; }; +&sdhi0 { + pinctrl-names = "default"; + pinctrl-0 = <&sdhi0_pins>; + + bus-width = <4>; + status = "okay"; +}; + &spi4 { status = "okay"; From patchwork Thu Sep 26 10:20:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13813152 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 464481AC439 for ; Thu, 26 Sep 2024 10:20:20 +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=1727346024; cv=none; b=U4AOA9MLl0GrEAgMY/cTr/hVKi3AJ5GH9dS/7UtALRGRWXdZ4BIPDrzpz+HVfREc6fmvAfPb1ABpEi3xFWhiSdXLpykhrWrNaTtn3jBKaXxOxcvzdy66nQzukxFzLbZVDFCF6cvuyzmOh65+E26cVe1lmIvUQkbRaLuK5RtGlio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727346024; c=relaxed/simple; bh=orRNbU3tZidDdR0hgmg1qm2l7ek95p49PWhgax+fBPY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=m6E/o3KaGvtXHcaMk6rnkmZn2P4BuIO88N0g1EOf3vFTlxVYJCkmndkVxXtqiiUaq3w+8sgLNB0pDdeI61adaLZNWnDqMJdk6mHYaYmrl2/Agl0SM9zcHPnMditgG0JDLzfkPQeeP8k6RLZDrpmcTEWhEFQv13ZGlSWWJrSIcBk= 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=QCzwRobH; 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="QCzwRobH" 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=hlQ8IlIEHSPyfsnSp3ZgppOpQO+bFoPji/T2HQBokNk=; b=QCzwRo bHozgmqjJFFBABN4sQzXpHKnp0Y/Um5LE7PY7iZKuCi6Xeg1ntOR+Y++hyw1XpzJ rszn/iyRUJL8qpN4XHJT6ZktN3Ut26BYYU/4rZKxwd6oikqhJ7l1HuMNp2QncJIl bw/81eEbfiI9gNDfmHWq5/3MFfAWd1oujtcMXZui3QLDJOvSgMehGe9FxtGJmt4p bJf2nb8xkwMWRLrAItJRkw1tYweJN2vjZWJdDAsUS6bJI3KyzTur9MAsbjef/cVo muc65dd6WV57E1ni0/4XKd1qGjuMD7CUaU5LuyshUcyGv+TG1A2BWIwlAVIwZesI sTj5gboOBk0f31Kg== Received: (qmail 946889 invoked from network); 26 Sep 2024 12:20:19 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 26 Sep 2024 12:20:19 +0200 X-UD-Smtp-Session: l3s3148p1@+fbcFQMjrtQgAwDPXzRXADDuo30Z+IZ9 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/3] ARM: dts: renesas: r7s72100: 'bus-width' is a board property Date: Thu, 26 Sep 2024 12:20:07 +0200 Message-ID: <20240926102005.15475-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240926102005.15475-5-wsa+renesas@sang-engineering.com> References: <20240926102005.15475-5-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 Do not set 'bus-width' in the SoC-include DTSI. It must be set in the board DTS file. No regressions because MMCIF was not enabled yet for this SoC. Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/renesas/r7s72100.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/renesas/r7s72100.dtsi b/arch/arm/boot/dts/renesas/r7s72100.dtsi index a460a9092c43..27a4121517a7 100644 --- a/arch/arm/boot/dts/renesas/r7s72100.dtsi +++ b/arch/arm/boot/dts/renesas/r7s72100.dtsi @@ -333,7 +333,6 @@ mmcif: mmc@e804c800 { ; clocks = <&mstp8_clks R7S72100_CLK_MMCIF>; power-domains = <&cpg_clocks>; - bus-width = <8>; status = "disabled"; }; From patchwork Thu Sep 26 10:20:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13813151 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 111241AC895 for ; Thu, 26 Sep 2024 10:20:21 +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=1727346024; cv=none; b=lmrxEnG9n+i2SFiX5bnwWc3j9MlRf/QmnXHvBYmAegszQ3hjzwF9/mwfNsEMusSRUTtKuUTH7iHrt0sEKOIP9bQX4Kg08tVIciaAMGbMZh6tMxvQpSistppq4MjwQD4bmLWsXLJ4fQmorwbVjDFgsN4xKgQ2SxIk9Hn7XsCwagg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727346024; c=relaxed/simple; bh=ECrYGmRV1GxtJF5TkxsaZawhiGOpMXSOAEji9zPozvo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SV0XrKp/5tCtH/5kAs7oPvlIcgPp+prHtsnwUvWtb24RhO+ivv9CLJp2LDot8Cb1jZJHQJuAKu31Nrcr/TqxLZimXl8JeXcVyl3jFktq/Co6JqrojW7tET2F9BoKyyRGBtUO7deq+FYITc0WT6dBEP7UsjQVIXxeajYkue+iucg= 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=SJizzV2K; 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="SJizzV2K" 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=mw0ZBmYkud91LpELGHv6PYztlihbUqky9EPbTqU91QE=; b=SJizzV 2K4ZxJ+1b+9rlLOYy5ruVJg881RY6XoJRwCaQ2K+ukL3wF9LNz/zZBFD+WoM4Cn5 2dfQXYDGqLluIjSGvE1TZqPLd3bxaxTB1JUwLgPKHG2AM8uPq2THNuuNkDqmLBTC ybMjHACFMJng2A2I7eeCEe5S0se++1EPu4YGu8hKjVmfg6qo+8YSdq63DZuqCs7S L1rXL829VMhNc+XN8bYAasrl0Q9VSx/OBa3TpagSwv370d+MWYaXMmoinqpiM4yf 5crYg3XKtszTbnXN6pphnlRgHGMsrJxgbyHTSjkvy6ldHkH5YW8p2Bx5Qd5EEv5B kl0RuufjZo5PT4LA== Received: (qmail 946932 invoked from network); 26 Sep 2024 12:20:19 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 26 Sep 2024 12:20:19 +0200 X-UD-Smtp-Session: l3s3148p1@6GjoFQMjttQgAwDPXzRXADDuo30Z+IZ9 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/3] ARM: dts: renesas: genmai: enable MMCIF Date: Thu, 26 Sep 2024 12:20:08 +0200 Message-ID: <20240926102005.15475-8-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240926102005.15475-5-wsa+renesas@sang-engineering.com> References: <20240926102005.15475-5-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 Luckily, I still had an MMC card lying around. Works fine. Signed-off-by: Wolfram Sang --- arch/arm/boot/dts/renesas/r7s72100-genmai.dts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r7s72100-genmai.dts b/arch/arm/boot/dts/renesas/r7s72100-genmai.dts index e93f444b2442..d0b2b4ea1734 100644 --- a/arch/arm/boot/dts/renesas/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/renesas/r7s72100-genmai.dts @@ -88,6 +88,14 @@ led2 { gpios = <&port4 11 GPIO_ACTIVE_LOW>; }; }; + + vcc_mmc: regulator-mmc { + compatible = "regulator-fixed"; + regulator-name = "MMC Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; }; &bsc { @@ -179,6 +187,16 @@ eeprom@50 { }; }; +&mmcif { + pinctrl-0 = <&mmcif_pins>; + pinctrl-names = "default"; + cd-gpios = <&port3 8 GPIO_ACTIVE_LOW>; + + vmmc-supply = <&vcc_mmc>; + bus-width = <8>; + status = "okay"; +}; + &mtu2 { status = "okay"; }; @@ -224,6 +242,20 @@ keyboard_pins: keyboard { pinmux = ; }; + mmcif_pins: mmcif { + /* MMCIF: P3_8 is CD_GPIO, P3_10 up to P3_15, P4_0 up to P4_3 */ + pinmux = , /* MMC_D1 */ + , /* MMC_D0 */ + , /* MMC_CLK */ + , /* MMC_CMD */ + , /* MMC_D3 */ + , /* MMC_D2 */ + , /* MMC_D4 */ + , /* MMC_D5 */ + , /* MMC_D6 */ + ; /* MMC_D7 */ + }; + scif2_pins: serial2 { /* P3_0 as TxD2; P3_2 as RxD2 */ pinmux = , ;