Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1404743rdb; Mon, 19 Feb 2024 14:48:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUV3GB1+c+6oZeQSJVnAClu7F0YguL4aocGSRq2+RDWq86iUK7NH4h/AjsCzHA1/z8j65rYY/mW3gQkzvvubBpBbkvLOkPYokjCIzNBHA== X-Google-Smtp-Source: AGHT+IHXzqNgS1iZ1/1yBRh2CD6TbkIbD57mW5eysnQz0V7YIqEVYcl9WDZps8OhzaoEx6s8GJ/G X-Received: by 2002:a05:6870:e986:b0:219:9f7f:be98 with SMTP id r6-20020a056870e98600b002199f7fbe98mr13421115oao.2.1708382924359; Mon, 19 Feb 2024 14:48:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708382924; cv=pass; d=google.com; s=arc-20160816; b=iByVMd7CogFBwc9T/GOgGCekjM6lzKgSBneWw9zXR2OmwyExhgOJkH+RnPoR1R0lis 74HM4XE+15fkz1naNOLqyGWEEZDCfhFIE5MC722d0RbOL4ZxXwKPBvKNnlMUCqzjLIE1 hN0IWW8xqfHt1csvJ8nl6TtOGbCf41HXZP9Zyu1h91Act1Jsolwlbq+ko/30sMQDTAzo ExGyyFhUgJz6pKB5DUG0EZbYH0xFa9wPxGVlARQqsDUiUERHO3DuOpQIkVGL1oX54i4j fh6vxdtBY3OnqWYy0UcUjDyM1GhP/7CvrcnHeJII3RwMw/0X2PcpuzQ8LM4ERElLA1Fx FCCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Dg3NPhdWCbF/J6QGjt5jZEuBRyHuuRdGYC0aO9zVBSI=; fh=V8Ef4H2uJkQZDuPIgc3s0n5U+QDYdOIQgtOD60pTxX4=; b=ihfX2CY6g57t8lZ4VTsAXFhpDMj+AxPBAulMmgn0bWOvOoCTuwTEIausahSrB0Bu3I a0j9S/AEa4hrkx0nfDuq5aUwkKpmTG7N4tkEuKtgCvQAdhxQSV4aMjDmLRqfUXnpQF+j t4syW/XuedI90U1zE4g3hTsiNVfTV4y5mt8BKP/F9tCcfOL6ORFDyYBUhsg9pMAau2JG 2D95NaYPCqawF2P6QselBDg6xWwwBDNn8h+5ExHmWzwSpUKrlZCl8khZvYycyTjIwB8u /6a9UygcLIp2j+2qTfNU7U7I3v2+0RiVtlHKU/MQWvD2gZJQNrISoRHU/BjA/iKos3Se +t8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@6tel.net header.s=mail header.b=ZS72suhl; arc=pass (i=1 spf=pass spfdomain=6tel.net dkim=pass dkdomain=6tel.net); spf=pass (google.com: domain of linux-kernel+bounces-72110-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72110-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l26-20020a63ba5a000000b005dbcf1044c0si5196121pgu.57.2024.02.19.14.48.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 14:48:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72110-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@6tel.net header.s=mail header.b=ZS72suhl; arc=pass (i=1 spf=pass spfdomain=6tel.net dkim=pass dkdomain=6tel.net); spf=pass (google.com: domain of linux-kernel+bounces-72110-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72110-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F02A28A48D for ; Mon, 19 Feb 2024 22:48:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9050B56774; Mon, 19 Feb 2024 22:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=6tel.net header.i=@6tel.net header.b="ZS72suhl" Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [178.154.239.210]) (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 75148535AA; Mon, 19 Feb 2024 22:42:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.210 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708382568; cv=none; b=qyn03tyuY1hJD51EJLd6iRViNYMX9RyCQnu1tG400NkqKyCoqPsbqRgmDCkFlqj8qdIAkoYGv8TLE4ZqaSOGEeB2NG90Lkaw10LBJjpMkC+Ax43r5SwmjsKEO+DClRyGPkQDZz9qwPQeHFDJSNN/UtWKYQBIip/CBfTCR9h6FdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708382568; c=relaxed/simple; bh=oMQA44Y6F77Ip9mAVFhASMJopR8qMzTCKB8bdczGf3k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=llKAhP6hGNXDXUmo2oGQNmUb0aKTyxUxmyGz7YTU47e8S1FSl4c6Dg2rKNhT7RUcOwqMMCE64Zg+eJI2a2Nakv6uwF9V7lWKJhSM3Ckun3HHy5vHP5m586MduFjSlEhT1rOkJrpYXVVjuk3axC+jFFCfgwlZGyFq8K97pK9ECQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=6tel.net; spf=pass smtp.mailfrom=6tel.net; dkim=pass (1024-bit key) header.d=6tel.net header.i=@6tel.net header.b=ZS72suhl; arc=none smtp.client-ip=178.154.239.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=6tel.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=6tel.net Received: from mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:3285:0:640:fd1e:0]) by forward502c.mail.yandex.net (Yandex) with ESMTPS id 8B2E260A71; Tue, 20 Feb 2024 01:35:15 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id bYZIDNh7RSw0-4wsHJwlL; Tue, 20 Feb 2024 01:35:14 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6tel.net; s=mail; t=1708382114; bh=Dg3NPhdWCbF/J6QGjt5jZEuBRyHuuRdGYC0aO9zVBSI=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=ZS72suhl3hi7aFvyMzx4PYGPr7oc678dPqa8EFaacR/t0cOF2CYOlTlUcisPxtejT bDRkX6JIbVT6RHMx3VLzNmEw66AfZO+hYV30zm1lHqJrP6C7LcOWAoWr5VyQcyIRhx BKW5KXIBEpZewTHKjS8gGf02uqyM0p6CakTEwNxc= Authentication-Results: mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net; dkim=pass header.i=@6tel.net From: efectn@6tel.net To: linux-rockchip@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heiko@sntech.de, sebastian.reichel@collabora.com, Muhammed Efe Cetin Subject: [PATCH 3/9] arm64: dts: rockchip: Add TF card to Khadas Edge 2 Date: Tue, 20 Feb 2024 01:34:19 +0300 Message-ID: <6e9062feb40bbad304f2e5bb300601034e805081.1708381247.git.efectn@protonmail.com> X-Mailer: git-send-email 2.43.1 In-Reply-To: <5a7bd2cd8703e51382abfc11242de59d45286477.1708381247.git.efectn@protonmail.com> References: <5a7bd2cd8703e51382abfc11242de59d45286477.1708381247.git.efectn@protonmail.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: Muhammed Efe Cetin Add TF card support to Khadas Edge 2. The board exposes sdmmc pins via EXTIO. TF card can be used with IO module. Signed-off-by: Muhammed Efe Cetin --- .../dts/rockchip/rk3588s-khadas-edge2.dts | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index b99d2b82c787..856ce4f869a2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -12,6 +12,7 @@ / { aliases { mmc0 = &sdhci; + mmc1 = &sdmmc; }; chosen { @@ -36,6 +37,19 @@ vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator { regulator-max-microvolt = <1100000>; vin-supply = <&vcc5v0_sys>; }; + + vdd_3v3_sd: vdd-3v3-sd-regulator { + compatible = "regulator-fixed"; + regulator-name = "vdd_3v3_sd"; + gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + enable-active-high; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3_s3>; + pinctrl-names = "default"; + pinctrl-0 = <&vdd_sd_en>; + }; }; &cpu_b0 { @@ -110,6 +124,14 @@ regulator-state-mem { }; }; +&pinctrl { + vdd_sd { + vdd_sd_en: vdd-sd-en { + rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; +}; + &sdhci { bus-width = <8>; no-sdio; @@ -120,6 +142,18 @@ &sdhci { status = "okay"; }; +&sdmmc { + bus-width = <4>; + cap-sd-highspeed; + disable-wp; + no-mmc; + no-sdio; + sd-uhs-sdr104; + vmmc-supply = <&vdd_3v3_sd>; + vqmmc-supply = <&vccio_sd_s0>; + status = "okay"; +}; + &spi2 { status = "okay"; assigned-clocks = <&cru CLK_SPI2>; -- 2.43.1