Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2411995rdg; Mon, 16 Oct 2023 03:54:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZJd9cY0V3zGM8lfb4ioJmvEvlblMbSB3WL8iq/2QmA1kXpQj0kKhN+jIeiLSjR6geGEY1 X-Received: by 2002:a05:6a00:189a:b0:68e:3616:604a with SMTP id x26-20020a056a00189a00b0068e3616604amr11726645pfh.8.1697453674008; Mon, 16 Oct 2023 03:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697453673; cv=none; d=google.com; s=arc-20160816; b=DTEW1tNBCAjvjHAMpv+74ssn4OsycTXZDSm0iK78Xrd1YrUJE4SNZrmgJllx2z0VVE 8hR+RMJJPQ7p4zn5Eo0hzfXyO5HhTmnDm/8+NuNZZVinYqoP0foGgcjWiGeD4DDplMLZ ewuIQCaDqKss42kdZazyo7CMoyYvgQm5xGiL7LmFGzV5RDqDQkum3cBxQpKJqWWes+Xt 6rzawv4X2G5IIfmVJHD5tmlbljJFr07RBt3NWn7cU/uByk2TjWEDoYItlgIzW5PSzzwW zxsg7mPD5kIy76jinW2ko44o+fA0rlNXivRGOfc/bFh3PEnaNxNizpvn9t+jlF1+DHwQ Dxyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LwYnEVWbvuqB6MXp+cQtdDUOxrrKVsKddWrqllszA1o=; fh=TIzQPZEPC/xVc/4kEImzd2AxlPEWW0R91ogxVmUckdg=; b=YdxEaI0B9bhIDjR+hlvg+Gl68LOKdMXTgPzPLUcvibSKMSdcV5HMN6zVe4TjXNM57V mVdHi+SbKTFC718b6aLS7glfCDHBAE4uKIb1UKYqkOJiKJVDJu5ZoRgY6LMe/fiYU/6E vfMnQrFbgkUdro4/vdKdQTNoucUaubHXHDEB0WxIBT/+kwsyZWb1S394TbwgyB+RHgDA htUIsbeqOAFY1d/8f76iDauTlOjHWqHIj3VU5cFhpS+Q+EX95BPo8lI9C90AQPk19nck mG8uTKxnGZfzb7XLn9hgEeiwpXO7huhz6X0rs+cVAs+nQJjAokyCIWrc5NIfmvqWkoT8 pX8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b="eXl5/yyC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v10-20020a65460a000000b005859e224624si10432510pgq.823.2023.10.16.03.54.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 03:54:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b="eXl5/yyC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 65FA2804B3AD; Mon, 16 Oct 2023 03:54:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232939AbjJPKyI (ORCPT + 99 others); Mon, 16 Oct 2023 06:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232240AbjJPKyD (ORCPT ); Mon, 16 Oct 2023 06:54:03 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7D2AC for ; Mon, 16 Oct 2023 03:54:01 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9adca291f99so674726666b.2 for ; Mon, 16 Oct 2023 03:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1697453640; x=1698058440; 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=LwYnEVWbvuqB6MXp+cQtdDUOxrrKVsKddWrqllszA1o=; b=eXl5/yyCvdQlK5UouywXTfhnTiT9KYVW4ya6G5yPlrHgx25QXsj2Le9bZ4+Vs0H/oA lWbrDE6ABNdvuSFOaPVTQENoP0eWFBRoQlXSH+jkAshUZ7qPP0+Zqd/DidjJu0+Hx0dU CzLc6VGXzZ81gm8y9V+7XtsB5dcGDOPc9bPkc7rsZpCJ4CGjzEzabpva5wfms87Fl71B 98WTdGEBZNcaaWpSILRlgB8l90VB/q8w7o13tnbU4/kUC2YzNuwnF3OsmFhPdqUaqazb 8Wku2PGkoJ8mClF/H+R4V4rbwTqPZLJZhkoEvjnkKn8KCIHpnXJxETLmDuWm8z1W6C6R KdrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697453640; x=1698058440; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LwYnEVWbvuqB6MXp+cQtdDUOxrrKVsKddWrqllszA1o=; b=fGolT3XJFHVSblZ3sOvcajk/jVkTreRHugMeAR4FTk4MGKQOVh4kgT+FD+i/JE/pvn PJZSAS/y8CTDGqXHmxPXd0walyDqf3OIGr85LfGYS9w3JZt5m+vLfP52J3F/Qd8nZfUQ HimyJSlZ3ORndWDAun8gy+zu4/MuyJpSid8zhwxKCFNSI3QQD94DMSM1WCUW9jiVlwGg TzDQBNKl2tglSjlJbXVnYm1HlFoVmqdqmOlqorm25axKaNX2+4d25W9RxDn2tUf/b0nc WHlY6NiQmWaH+H+Sxxh3sw2fM0MMigsEytG4FkfoNsOAOqsYYCFDbfk66l7WasoXUBJx dADw== X-Gm-Message-State: AOJu0YxTZKLqeuCotW2Q8td08fnOawf4RYNFicMF4h57iZtDRiXp6RVW EQK6j/QOxb0KD0vQjDR58vQW1w== X-Received: by 2002:a17:907:7711:b0:9ae:82b4:e309 with SMTP id kw17-20020a170907771100b009ae82b4e309mr29378148ejc.0.1697453639868; Mon, 16 Oct 2023 03:53:59 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.103]) by smtp.gmail.com with ESMTPSA id v2-20020a17090651c200b009a5f7fb51dcsm3818126ejk.42.2023.10.16.03.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 03:53:59 -0700 (PDT) From: Claudiu X-Google-Original-From: Claudiu To: geert+renesas@glider.be, magnus.damm@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH v2 2/2] arm64: dts: renesas: rzg3s-smarc: Enable SDHI1 Date: Mon, 16 Oct 2023 13:53:44 +0300 Message-Id: <20231016105344.294096-3-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231016105344.294096-1-claudiu.beznea.uj@bp.renesas.com> References: <20231016105344.294096-1-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 16 Oct 2023 03:54:30 -0700 (PDT) From: Claudiu Beznea Add SDHI1 to RZ/G3S Smarc Carrier-II board. This is connected to a uSD interface. Although Vccq doesn't cross the boundary of SoM it has been added to RZ/G3S Smarc Carrier-II dtsi to have all the bits related to SDHI1 in a single place. At the moment SoM is used only with RZ/G3S Smarc Carrier-II board. Signed-off-by: Claudiu Beznea --- Changes in v2: - change regulators' names to regulator-vcc-sdhi1 and regulator-vccq-sdhi1 arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi | 65 ++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi index e7073a09ed2e..214520137230 100644 --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi @@ -11,6 +11,26 @@ / { aliases { serial0 = &scif0; + mmc1 = &sdhi1; + }; + + vcc_sdhi1: regulator-vcc-sdhi1 { + compatible = "regulator-fixed"; + regulator-name = "SDHI1 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpios = <&pinctrl RZG2L_GPIO(2, 3) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vccq_sdhi1: regulator-vccq-sdhi1 { + compatible = "regulator-gpio"; + regulator-name = "SDHI1 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + gpios = <&pinctrl RZG2L_GPIO(4, 2) GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 1>, <1800000 0>; }; }; @@ -19,6 +39,38 @@ scif0_pins: scif0 { pinmux = , /* RXD */ ; /* TXD */ }; + + sdhi1_pins: sd1 { + data { + pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3"; + power-source = <3300>; + }; + + ctrl { + pins = "SD1_CLK", "SD1_CMD"; + power-source = <3300>; + }; + + cd { + pinmux = ; /* SD1_CD */ + }; + }; + + sdhi1_pins_uhs: sd1-uhs { + data { + pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3"; + power-source = <1800>; + }; + + ctrl { + pins = "SD1_CLK", "SD1_CMD"; + power-source = <1800>; + }; + + cd { + pinmux = ; /* SD1_CD */ + }; + }; }; &scif0 { @@ -26,3 +78,16 @@ &scif0 { pinctrl-0 = <&scif0_pins>; status = "okay"; }; + +&sdhi1 { + pinctrl-0 = <&sdhi1_pins>; + pinctrl-1 = <&sdhi1_pins_uhs>; + pinctrl-names = "default", "state_uhs"; + vmmc-supply = <&vcc_sdhi1>; + vqmmc-supply = <&vccq_sdhi1>; + bus-width = <4>; + sd-uhs-sdr50; + sd-uhs-sdr104; + max-frequency = <125000000>; + status = "okay"; +}; -- 2.39.2