From patchwork Sun May 16 23:05:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 12260683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4A56C433B4 for ; Sun, 16 May 2021 23:09:14 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9C8C761073 for ; Sun, 16 May 2021 23:09:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C8C761073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zEsoZknBJi1xA1YjHmSv/tb+ZOfNHpR2l8A/Wm9Gh04=; b=U4gNXmw7VJx0FpG+HQvYPyRaR xL5jHn2YiaccK8bguVHW3zQfAHGGp2DiMUFEkdqrA19wqW+ejyUraL8t1ui/MPkX/lVLzp/0eAqqe ASnmHIDs3JVw8pENzP1cyN8CUhlFuU8eaJgcZxl/ZpMSQKU/nqXi+YZz9XS1kQiix9Zvuhkb7DzDp OhGnmUPgIM55h7aNGCwOieWEL3kim53hGbRrQbcvdmnFxwdvqvMJOmKrdJDx9F8ZMf86bSQU9AVke DvNJGR28tjKyNuuKC5ehHxZMlPA69ZEa6eZHqvWvVgeQTiLJE+Hns9rbYltM7u5VFZAImLb+LKbAt ri6O1LlFw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPsh-00D8ky-AX; Sun, 16 May 2021 23:09:07 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq8-00D7oR-J4; Sun, 16 May 2021 23:06:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=WQx1Oa1O3JtHSEcF1yaSjpRPxL48ZQOEiymgFVcdGf8=; b=CpT6RAJgWo3NCM79mXHqicuWbZ 6TFDG2Xla1t+Z3kYfUHFXeQDVeC1cGVpTrBs0q3JDHzh3269DTuLfEWARLgd/eBFz/bHBqPZ5L46l Q5W78FohbEZsxfQq2ilrDBCXJxtO8bnNpguf+BzespQCbCx/zL2HwjP/qfrIm/Mdsa5vbvWmrcCfc nfVFwvSfWVO2Qy2/GXgb1CT4K1t1STRmkGUg2DJScFLFQQW6Vl1bXUpl//kG2D/R5Ajeo7ZzVsIm0 7VzTvrEPeH7Bj6OSb4/yG/yjfYEL064tuEJLqQobpn3BVjDEmRmZP3NveRn9kTALON5TS9MZXEO/X Fk+ySDCw==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq6-00DKeD-2R; Sun, 16 May 2021 23:06:27 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B014DB1F0; Sun, 16 May 2021 23:06:21 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Heiko Stuebner , devicetree@vger.kernel.org Subject: [PATCH 8/9] arm64: dts: rockchip: rk1808k-toybrick-m0: Enable eMMC Date: Mon, 17 May 2021 01:05:50 +0200 Message-Id: <20210516230551.12469-9-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210516230551.12469-1-afaerber@suse.de> References: <20210516230551.12469-1-afaerber@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160626_277258_CB7361BF X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add fake clocks (based on downstream kernel's debugfs clk_summary) and enable eMMC. Signed-off-by: Andreas Färber --- .../boot/dts/rockchip/rk1808k-toybrick-m0.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts index 15293a8576c6..aabe7a7034b2 100644 --- a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts +++ b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts @@ -38,6 +38,34 @@ vdd_cpu: vdd-cpu { regulator-max-microvolt = <850000>; vin-supply = <&vcc3v3_pcie>; }; + + hclk_emmc: hclk-emmc { + compatible = "fixed-clock"; + clock-frequency = <198000000>; + #clock-cells = <0>; + clock-output-names = "hclk_emmc"; + }; + + sclk_emmc: sclk-emmc { + compatible = "fixed-clock"; + clock-frequency = <297000000>; + #clock-cells = <0>; + clock-output-names = "sclk_emmc"; + }; + + sclk_emmc_drv: sclk-emmc-drv { + compatible = "fixed-clock"; + clock-frequency = <148500000>; + #clock-cells = <0>; + clock-output-names = "sclk_emmc_drv"; + }; + + sclk_emmc_sample: sclk-emmc-sample { + compatible = "fixed-clock"; + clock-frequency = <148500000>; + #clock-cells = <0>; + clock-output-names = "sclk_emmc_sample"; + }; }; &cpu0 { @@ -48,6 +76,16 @@ &cpu1 { cpu-supply = <&vdd_cpu>; }; +&emmc { + status = "okay"; + clocks = <&hclk_emmc>, <&sclk_emmc>, <&sclk_emmc_drv>, <&sclk_emmc_sample>; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; + cap-mmc-highspeed; + mmc-hs200-1_2v; + non-removable; + bus-width = <8>; +}; + &gic { /delete-property/ interrupts; };