Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp114064rdb; Wed, 1 Nov 2023 19:49:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6KIDRlF1XnkiTRAmu3ELuRsUfJH5sdeY6FCXKtSkccPVMhG4Aadnc2SI4iXxSxs1r9T/4 X-Received: by 2002:a05:6a00:2492:b0:6bc:ce7a:6f39 with SMTP id c18-20020a056a00249200b006bcce7a6f39mr16459024pfv.32.1698893388012; Wed, 01 Nov 2023 19:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698893387; cv=none; d=google.com; s=arc-20160816; b=iMid4F3QPLzYTsdwWEay+CqC8ozC5rjw/94PrtbLiLq1ZEq8kYRTm/DqEzgzpXrloh f2b8B8PEf/5W2OJ4o54lOv5TLSMcpTi5uTt4VWAktGyTKen7OIgf5xYER+13aFe70djo 4asDcTsIrShkDFao+zA4euYeZCC1LNnVk9NP7Kbnfhj2Nn9kbFsofyizzLtYWN2WIV+E Y9IAoav1lMOaly1LMoWXhw6dbHhAW+ZzoCdgEFQoKedeJF5vMzjLEgPClS6ZG+qDBi/1 7h1rnGk3psZS3/8Hdy46Wzl9y/3mVTQw1TPmA8a9oUOiwL+9hgVeNeWydno1f7/wZ0k6 mLig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=uSa6NAVY2VMgd1nmwOwphCO64qKVXCiZUmGbVj1XUeM=; fh=vHR8U309XOCZR8G4JUyhb/0ihb0aVduZkDFEUxYc3iE=; b=QThnVJ6LgBJIZNGqE2DtWuqHnzruz7dJkWuogbSws8C8MKGDLWZ5PG2c6veeiVztqy felLYtP0EthC/cCDwyw1WGxPq93xsK862fUNbz9vRLMgwVnKxfab4Ogi3JYLN6xxFlPT nenA0BwIHkQ8NwqWZG0w1qLXPwVCp3kTKI0BVkwLSYwqPSixn4eaZXVNQIRHcqmiE1Mk jNzR96M5txUCifxcMfKC0uTUFrJb25rvXRnaw8evqZwczYDqBzq/I8me2DfVbcReZGU9 3KyTgmFOEBhKPdBFt3uG+GSK6HabQIBMzuqLX9vPoSBcGGRlaso4JGY4qCpMnWeZGR9g Wi0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=LprtyhiG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b005a9b2800a08si1071296pgw.783.2023.11.01.19.49.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 19:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=LprtyhiG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 16E1181B8035; Wed, 1 Nov 2023 19:49:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343500AbjKBCtk (ORCPT + 99 others); Wed, 1 Nov 2023 22:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235512AbjKBCti (ORCPT ); Wed, 1 Nov 2023 22:49:38 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A4E19F for ; Wed, 1 Nov 2023 19:49:24 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1cc0e78ec92so3226245ad.3 for ; Wed, 01 Nov 2023 19:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1698893364; x=1699498164; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uSa6NAVY2VMgd1nmwOwphCO64qKVXCiZUmGbVj1XUeM=; b=LprtyhiGjftwOF8WmFLsGNxTAibLyKujXhR5b6myDxo4Vi83L8d2bJo973kCLRdPFK 7W/31UlCqsALSxvLTNdafqNB3kcW+NFgbx5BhsSD+tj84LYkHDooUJcrm01/VzKIUpKP Jwk5gxvGYqlLenazr2O7lZgonJfdoPAOflPBu9jWlV24Llmrn5NGYwJfk3fFS8GBJgrN dwKTGT2CjLrGodM+3dVU0DXr/sTY9JjXqSLGEj8Ttl7SALrFmrfqiqYardRaSo9K+oon 1b6s5QA74H97lh01kgoCVGUAkgEXw35fl6W2Hm6DWjjRhBPqKsS6Z6iy+z77+lGxmYG9 YGVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698893364; x=1699498164; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uSa6NAVY2VMgd1nmwOwphCO64qKVXCiZUmGbVj1XUeM=; b=TQ+chraYZk/oy2PmddWNpOLKdeDfbwpmHIEDzYGk7wVTHL3aik38U8yJd/XC/WJN/x 6xzMLsfEVoHXtASaPYbG0gvZX+PG0StXVVUpfNBYFrHAKSAj64x/D5R648eM/vXM0fRG QUEp/P/w8HN2frpymx/54hf7yU2fdmMzpOgl4GF7TiNytrUUPRnW90WIrf+10jrUcO0A oLl8kdFbabNY5TUA4R39kWl9WGRZCcvI0w732lEkyhHhI19FIpBFLrPd4td1/yYSj1wf cCG9Rz+CDgiTpnHXxd85LrahosraM/bh8h0hdiEJ+cMVUg3sb3lW8sXrAQNf8ApSKqLd em8w== X-Gm-Message-State: AOJu0YziORSWfof+iTS1Slo2VzL+xZVE7IWdzjgRqMTat0qENjbCdYz8 6HoXKLcnfCHwS9zj0nfubBuCLQ== X-Received: by 2002:a17:903:cd:b0:1cc:5db8:7e92 with SMTP id x13-20020a17090300cd00b001cc5db87e92mr6755183plc.58.1698893363682; Wed, 01 Nov 2023 19:49:23 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1800:f680:7e4c:4d4e:6943:bc0f]) by smtp.gmail.com with ESMTPSA id n4-20020a170902e54400b001b850c9d7b3sm1925787plf.249.2023.11.01.19.49.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 19:49:23 -0700 (PDT) From: Drew Fustini Date: Wed, 01 Nov 2023 19:48:57 -0700 Subject: [PATCH v4 6/7] riscv: dts: thead: Enable BeagleV Ahead eMMC and microSD MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231101-th1520-mmc-v4-6-86e0216b5994@baylibre.com> References: <20231101-th1520-mmc-v4-0-86e0216b5994@baylibre.com> In-Reply-To: <20231101-th1520-mmc-v4-0-86e0216b5994@baylibre.com> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Adrian Hunter , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley Cc: Robert Nelson , Jason Kridner , Xi Ruoyao , Han Gao , Icenowy Zheng , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Drew Fustini X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698893345; l=1108; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=4bgo3aK3cuR26cRWBbMVA6MrvhUqOJ8As8gzvmDCzhs=; b=aA13H2waFkFK8rdICEfWcJcPhFaGSH0ZRd4ROe0tmGrxSg7hrWq8+i/vrM2/4uVwYFqUm7YA2 XG5qUI7lWhuBylW5Vf6NOpK9BxdJC/LQDXKQpfLDXXSAcE3QiPgjyL3 X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 19:49:46 -0700 (PDT) Add mmc0 properties for the eMMC device and add mmc1 properties for the microSD slot. Set the frequency for the sdhci clock. Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index 70e8042c8304..f91d94f95510 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -48,6 +48,10 @@ &apb_clk { clock-frequency = <62500000>; }; +&sdhci_clk { + clock-frequency = <198000000>; +}; + &uart_sclk { clock-frequency = <100000000>; }; @@ -56,6 +60,22 @@ &dmac0 { status = "okay"; }; +&mmc0 { + bus-width = <8>; + max-frequency = <198000000>; + mmc-hs400-1_8v; + non-removable; + no-sdio; + no-sd; + status = "okay"; +}; + +&mmc1 { + max-frequency = <198000000>; + bus-width = <4>; + status = "okay"; +}; + &uart0 { status = "okay"; }; -- 2.34.1