From patchwork Thu Nov 30 01:48:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 748717 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="dGvaFk2q" Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F337A1A5 for ; Wed, 29 Nov 2023 17:49:17 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1cfd04a6e49so4513505ad.0 for ; Wed, 29 Nov 2023 17:49:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701308957; x=1701913757; 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=k59bvv7KTPcWcR0nU2285Ag1/kbZ0ckoH5XbjyM+11I=; b=dGvaFk2qt8YVjdutA21Vg7xDf3blmg80KWoZK8M61s74CgtEmM7l7UBjuSmpkwleV6 P02YzLIeMNc4C4VwPQBluwSmM4EzkHPPCKXPIUeRs09m8jK+XGqebPB79hhgNkd6fICj MC5X2TZD2KYHRU8p9UgpjmpEZnnLN6IbTA9namEYnorYVQZXe4VeNO4hIElaPGNhGiAz SZBdoVPNytTSTOUUltjV45cWbGT1CJ87H1Ibz8JNEUL9k+NyYFVsGuY5fzW9M9MbkUP1 MwPvYj5URVoA3ySAwPUKlMSyXkUrAQ0cYoQzJUbPrGnHy2JwVxDh3sU1hizNPspf6BDG p+qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701308957; x=1701913757; 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=k59bvv7KTPcWcR0nU2285Ag1/kbZ0ckoH5XbjyM+11I=; b=DOjt3gtIM+4APuER323AytlArSF1tONAcXZprkfbSbScBU4uzhus8vrYYYE/UHyw7L Sm1D2LBl6mPyMBzm4MtPXpDp3yNLehro2XWYAbz5FP2Zmc3YbWJuwnOb0oBejH4J2JSn zXu2CjlBF4mNrCluAnT4NqMa3wvHcPnR3BGHdUzzRZt9NWOLesKCxEDNbSABpOwRHrGE p8mTYUYBkFi54gpHKLbkm8p6Z++4PXYCt4V5NGmfVnggtQcA4v9iLHaIn9qEGs0e0zr2 8xLMHtUJv8uR2h4SAZaYPK7IdF7MhNDSwdmNqLnpUkHxBnCxGAkpnwXFfPsyB4uKySLy z4Lw== X-Gm-Message-State: AOJu0YyU394vQs5oiT1C39OFOqizSOT3jeyfFyaz/B6n5w24vAwVb5oe LsJ6wp1YwhvmXivPTKvtvUR8KA== X-Google-Smtp-Source: AGHT+IFWN+veB1Lo+5WzY9Hv9vg6vdys4LdvUiI0HD+zQd1G2l7aZznMEfaQzC7XjS8ZH8qOxGjBdA== X-Received: by 2002:a17:902:c18b:b0:1cf:b2a9:fc00 with SMTP id d11-20020a170902c18b00b001cfb2a9fc00mr21521734pld.9.1701308957476; Wed, 29 Nov 2023 17:49:17 -0800 (PST) Received: from [127.0.1.1] ([2601:1c2:1800:f680:9707:1e8c:3166:6a23]) by smtp.gmail.com with ESMTPSA id bc3-20020a170902930300b001d00b0bd306sm24455plb.251.2023.11.29.17.49.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 17:49:17 -0800 (PST) From: Drew Fustini Date: Wed, 29 Nov 2023 17:48:50 -0800 Subject: [PATCH v7 4/4] riscv: dts: thead: Enable LicheePi 4A eMMC and microSD Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231129-th1520_mmc_dts-v7-4-c77fc19caa6f@baylibre.com> References: <20231129-th1520_mmc_dts-v7-0-c77fc19caa6f@baylibre.com> In-Reply-To: <20231129-th1520_mmc_dts-v7-0-c77fc19caa6f@baylibre.com> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Guo Ren , Fu Wei , Conor Dooley , Rob Herring , Krzysztof Kozlowski Cc: Jason Kridner , Robert Nelson , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Drew Fustini X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701308949; l=1102; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=FNhPhUUvWwP+QKoj7n3Ul287CfcC/2teVzVQAZNIlgs=; b=dAFvB72xQtzNxvN94yqiVLj81s4pJ66+wqg02OfxeOO3TUhR9uDJUuRgzoq7/QDFIVK5ppXps jq6MzKvmTLKB6BxP95jRZ/iuxxpATqAnJ5doFXEx2wvG5WjZ8euLRfO X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= 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 --- .../boot/dts/thead/th1520-lichee-module-4a.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index a802ab110429..0818bd3c1f84 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -29,6 +29,10 @@ &apb_clk { clock-frequency = <62500000>; }; +&sdhci_clk { + clock-frequency = <198000000>; +}; + &uart_sclk { clock-frequency = <100000000>; }; @@ -36,3 +40,19 @@ &uart_sclk { &dmac0 { status = "okay"; }; + +&mmc0 { + bus-width = <8>; + max-frequency = <198000000>; + mmc-hs400-1_8v; + non-removable; + no-sdio; + no-sd; + status = "okay"; +}; + +&mmc1 { + bus-width = <4>; + max-frequency = <198000000>; + status = "okay"; +};