From patchwork Sun May 16 23:05:42 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: 12260689 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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 C0F66C433B4 for ; Sun, 16 May 2021 23:08:20 +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 4D6A56100A for ; Sun, 16 May 2021 23:08:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D6A56100A 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-arm-kernel-bounces+linux-arm-kernel=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: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:In-Reply-To:References:List-Owner; bh=tusJPGPZHWfK9/A9usPJLG7ji+lEQwwL5V3eYylkQG8=; b=EC/Xl3GENkmC3y9lP5cEurbqSl nRc5/no6M6yLr7Jan30Z6qhLoJdWbmVwIsx0TwljM3cVsV2sT3Q2Lhh74gOM9VaSKug9wfXY37pN6 vj/50vXyex25mBXLNKX0KyEBuCyWKzTEKjoKKvXgLK832GrNuW4S+vSMKnhL3cTLdZJAkUcJ9NNGR qSJ7R2g2ds+rViCXJl8xSVdxdcEQEW2PwVocGkvihQwOEeSfjo7QgVhPgnRkFG0q1d0K9/OFBYMx8 /sPqioA3pV1T0c8m8BFqOmYFWS2U+q4bd+QYOecuZT78ToqiJwVS0Ml3ptFiMIpMCtVLeORQhrL4p ehQO7zVA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liPqN-00D7rB-QO; Sun, 16 May 2021 23:06:45 +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 1liPq6-00D7nt-1U; Sun, 16 May 2021 23:06:26 +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:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=qQ+Cib9jUXIVEERP/CF6JCeQMHSTnWcNOx070MORcpI=; b=xjVsrYPfrmSFayhWI19C0AhUi3 yNHhdBYHBOddEu4CPGC5efubc4BRC/+btS2/dKttnKRHqx7SrIbr0G3tvh4rHrSElIr+gvLpb1LXr /Se4NTUr3TzCXGrHLI9RTJ8yhjFBKGQx9r5OS4WzcaTER4O2jlIjfNQefHG2omd6nIztPYVMbRS5I 8mBlfwIWdr9Kkyj5xmkrc83toy8Got/OQpp3WqU7ugAm1eDjqgKpDDe0E6HZJd5NrBs90dowVjZS4 ARzJzsG+8FSMyWhOinw0UAv8bMAPH9MFEWD04Qs+IcwTV74Dz/JW0g2byeBuu4gd9QeWo5+8s7Hjs Pr2f6gow==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liPq2-00DKcc-Rx; Sun, 16 May 2021 23:06:24 +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 040CCAF28; Sun, 16 May 2021 23:06:19 +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?= , devicetree@vger.kernel.org, Rob Herring , Marc Zyngier Subject: [PATCH 0/9] arm64: dts: rockchip: Initial Toybrick TB-RK1808M0 support Date: Mon, 17 May 2021 01:05:42 +0200 Message-Id: <20210516230551.12469-1-afaerber@suse.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_160623_085286_9305EF58 X-CRM114-Status: GOOD ( 14.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello Heiko et al., It seems linux-rockchip list only saw two RK1808 patches for ASoC in 2019. Following up on a SUSE Hackweek 20 project of mine, here's some patches that allow me to start booting into the TB-RK1808M0 mPCIe card's eMMC. Tested using its USB adapter, which allows to connect a serial cable and a USB storage device that I load kernel+dtb from. It has a reset button, and Ctrl+C allows to enter a U-Boot prompt (without EBBR/UEFI support though). Patches are based on the shipping toybrick.dtb file. http://t.rock-chips.com/en/wiki.php?mod=view&id=110 gives instructions for compiling sources, but no source download or link is actually provided. I encountered a hang: earlycon revealed it being related to KVM and vGIC. Disabling KVM in Kconfig works around it, as does removing the vGIC irq in DT. I've already tried low and high for the vGIC interrupt, so no clue what might cause it. On an mPCIe card with 1 GiB of RAM I figured KVM is not going to be a major use case, so if we find no other solution, we could just delete the interrupts property in its .dts, as demonstrated here. The TB-96AIoT 96Boards SoM would be another RK1808 platform someone might test these patches on. For the TB-RK1808S0 USB stick there's at least no documented way to access a serial console. Have a lot of fun! Cheers, Andreas Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: Marc Zyngier Andreas Färber (9): dt-bindings: arm: rockchip: Add Rockchip RK1808 and TB-RK1808M0 dt-bindings: serial: snps-dw-apb-uart: Add Rockchip RK1808 arm64: dts: rockchip: Prepare Rockchip RK1808 arm64: dts: rockchip: Add Rockchip TB-RK1808M0 arm64: dts: rockchip: rk1808k-toybrick-m0: Suppress vGIC interrupt dt-bindings: mmc: rockchip-dw-mshc: Add Rockchip RK1808 arm64: dts: rockchip: rk1808: Prepare eMMC node arm64: dts: rockchip: rk1808k-toybrick-m0: Enable eMMC arm64: dts: rockchip: rk1808: Add CPU operating points .../devicetree/bindings/arm/rockchip.yaml | 5 + .../bindings/mmc/rockchip-dw-mshc.yaml | 1 + .../bindings/serial/snps-dw-apb-uart.yaml | 1 + arch/arm64/boot/dts/rockchip/Makefile | 1 + arch/arm64/boot/dts/rockchip/rk1808.dtsi | 276 ++++++++++++++++++ .../boot/dts/rockchip/rk1808k-toybrick-m0.dts | 97 ++++++ 6 files changed, 381 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk1808.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts