Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58F08C54EED for ; Mon, 30 Jan 2023 15:26:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5A5DF85A03; Mon, 30 Jan 2023 16:21:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=edgeble-ai.20210112.gappssmtp.com header.i=@edgeble-ai.20210112.gappssmtp.com header.b="wKjXgrCo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6FD2185623; Mon, 30 Jan 2023 16:10:44 +0100 (CET) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BF6C2857A2 for ; Mon, 30 Jan 2023 16:00:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jagan@edgeble.ai Received: by mail-pl1-x62d.google.com with SMTP id jm10so11847394plb.13 for ; Mon, 30 Jan 2023 07:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20210112.gappssmtp.com; s=20210112; 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=zQ5+hy6W5by3ddLRD9f/N0a7WqtpbdouhRrXQ/2d7cs=; b=wKjXgrCo5fAjNPFe3LJyDYoUDLQplEb+nVD9lxrJSM3a8Onabr+RYl2CCoROj/lSFI cy4iRXQfYXsXX0eRs1L2qE4/2B7u7+rAE6dlNKTIz9Hy7kyNqpvpQb7e83nFQPn+3fUi wChMxzLCaFzkjarKcG81vh+gJnWkb4i67f8u4fPx+/rALnLfWUngfU8DiSuzFf+/4jFs ojM9ZSpMvEMBCw8YpBPEfWQ4B8xWypu06SDgrh/JezJzsJbM++jYEjdTsP9x4zOCOyR7 OMLWL95U1tqBc3JcNV9dpS8es0RG7szZwkxW0BIjP1oenkXd+0V836UlDk9VjPI09C4m yxsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=zQ5+hy6W5by3ddLRD9f/N0a7WqtpbdouhRrXQ/2d7cs=; b=xqBNs0qlx5Ch0cQNymWbOUtpMklCSJNZeHGOHQSyYEDxqb9XXo48+3bINPUKyumGen wd0rOAxpsZMIa3sNjTAU8CLhvL/wFZEdWiQY5sTBRlWezGTAgUvHDNjnARjI3n2NvKfo U1RyMU1jaPPoTZrcnKTvfN08SWxdWIGRlm60El7mGf4o5KXx11k57cxvJp21NGRH7Juk hCe2i9//+v643i7KTKiALsarRUHR+JF4Uy9fM4+SGyLpo6IdzyMCRWsSUQnqcG4sMesp HUtHIu5vAAYKSDGlztclxJAAaz4KVgONttdS4bHB0AzyXxdQ+efsu+cs0rmXzD4uGYHC V3Zg== X-Gm-Message-State: AO0yUKVm9eAga99JW3dKUh61ACbL6av1PBNIlecj/WMS73Omir5mgvwA DOAp7KaTXZLLXlT6WZBvbyYAzg== X-Google-Smtp-Source: AK7set/UCU1D78MxAH+9THb0giIt07m8y0lrMbDF1v+Jes4oLl/2g8snaMx3b4ssjU7+i+Q8QRFaCg== X-Received: by 2002:a05:6a20:7d8b:b0:a9:e225:6f7b with SMTP id v11-20020a056a207d8b00b000a9e2256f7bmr13146444pzj.0.1675090734217; Mon, 30 Jan 2023 06:58:54 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a238:7d50:367e:d8d1:8afd]) by smtp.gmail.com with ESMTPSA id q19-20020a656853000000b004d09bbd023csm6916127pgt.88.2023.01.30.06.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 06:58:53 -0800 (PST) From: Jagan Teki To: Kever Yang , Jonas Karlman , Simon Glass , Philipp Tomsich , fatorangecat@189.cn Cc: u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v1 16/18] ARM: dts: rockchip: rk3588s-u-boot: Add sdmmc node Date: Mon, 30 Jan 2023 20:27:47 +0530 Message-Id: <20230130145749.177515-17-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230130145749.177515-1-jagan@edgeble.ai> References: <20230130145749.177515-1-jagan@edgeble.ai> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Booting from SDMMC is one of the fast and easy booting methods for initial support of any SoC to upstream more features.  This patch is trying to add the sdmmc node for rk3588 and added as u-boot specific node in -u-boot.dtsi as upstream Linux is not supporting yet. As soon as Linux supports it, a sync of the Linux device tree would eventually drop this node.  Clock properties as added according to the rockchip mmc driver but the actual definition might add scmi clocks into 0 and 1 indexes. This is due to scmi clock are not supporting in upstream U-Boot. Properly addition of scmi clock would eventually follow sdmmc clock definition of Linux once they upstreamed. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3588s-u-boot.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi index cfcbef2fc2..58123489f3 100644 --- a/arch/arm/dts/rk3588s-u-boot.dtsi +++ b/arch/arm/dts/rk3588s-u-boot.dtsi @@ -17,6 +17,20 @@ compatible = "rockchip,rk3588-pmu1-grf", "syscon"; reg = <0x0 0xfd58a000 0x0 0x2000>; }; + + sdmmc: mmc@fe2c0000 { + compatible = "rockchip,rk3588-dw-mshc", "rockchip,rk3288-dw-mshc"; + reg = <0x0 0xfe2c0000 0x0 0x4000>; + interrupts = ; + clocks = <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>, + <&scmi_clk SCMI_HCLK_SD>, <&scmi_clk SCMI_CCLK_SD>; + clock-names = "ciu-drive", "ciu-sample", "biu", "ciu"; + fifo-depth = <0x100>; + max-frequency = <200000000>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>; + status = "disabled"; + }; }; &xin24m { -- 2.25.1