From patchwork Mon Feb 19 22:34:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammed Efe Cetin X-Patchwork-Id: 203324 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp77621dyc; Mon, 19 Feb 2024 14:48:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUEfxl7Zml8AgK8jllofGabScceG2XDnX4RFBP+SHXw9KxzvBEG1x8s5ougltnDZqSFROXMrSJ+au3qqUrtPY9ZbF+2hw== X-Google-Smtp-Source: AGHT+IF8kB6IXSM2ot3UYydwLUF7XoZ4OzcN2805jKf5WQPsc8YlM7VfE1u7EZ92jQnCZ7YFomun X-Received: by 2002:a05:622a:58f:b0:42d:a679:4604 with SMTP id c15-20020a05622a058f00b0042da6794604mr15320467qtb.46.1708382938892; Mon, 19 Feb 2024 14:48:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708382938; cv=pass; d=google.com; s=arc-20160816; b=M9uNp6ow/NovACAW4pPA50eScDuK8QvHh0QqhM+M+IGaJyTRVGW4OCQ5kY0Cp3/T37 WANenqgxc847wjJ1eKMVituz1gYJGmLTL9Ysxr1BfKwS1+2BJMTO0P1RzNopfMeROXG8 OH1JI2eq8KycvKy8GM8ngTjtdjFTXkIW1EfQsa4F/NeCmutWbzOJ63mu5c/igxBYtY/X QWoAJunhQ2zhD3lH72+j+Xp8jIZ8v+1VxWFfudEGEwCOF7ln5ZrG9whsMu8KnSlQ2mPm 8cmLNxzw/+fpkv1k67gwzW7l5xmOxrtTPnCeJoZvDIEcXhGvbUIxs+rmzZN5v696cpGv yQzA== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72110-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ow33-20020a05620a822100b007872453d88bsi7206084qkn.289.2024.02.19.14.48.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 14:48:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72110-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72110-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A2F9E1C21ECA for ; Mon, 19 Feb 2024 22:48:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C81356B8A; Mon, 19 Feb 2024 22:42:51 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791369348714031767 X-GMAIL-MSGID: 1791369348714031767 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>;