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: 439899 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp566287jac; Sun, 16 May 2021 16:06:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu6QLsy5Giyopdf9paEkVczynnnpUz8PmDZy4T80JSfxeK6Gx914XHoC67rTaiJAVsRbFW X-Received: by 2002:a05:6638:3721:: with SMTP id k33mr11416848jav.7.1621206387775; Sun, 16 May 2021 16:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621206387; cv=none; d=google.com; s=arc-20160816; b=OaPiZvA8perXr1bLSNfnDQi/e/GYWB273xhY8DIn04zVvVOpN3U4ix65dbOr17F92k UGQtOAA+8k2hdDp2nBvxeNZ1TnjWY5r/2KHHmN59yLJmnKBU+SmbYGWZf7x7BDS39xh9 4S6nfHEY/Mp+qq9m989PbEh/NzAAHuS4U4xSydyhmokV5Zcm6YVttULMPAoMPKFRxk06 tS4yzecWXl+jGrp/4EtXJCF9sTGwGxVR4JGzthR4lYsrwXltFD+6nM6TbyQReCH3/Nql tBfERxXLm3K6pJZeoJnL2G9dDzwD3ONMpSEBJFcy0eK7CqmK9FVpyWbRlNPBmZR2zUjm rRaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qQ+Cib9jUXIVEERP/CF6JCeQMHSTnWcNOx070MORcpI=; b=TQeKe1lzPtvNuL0wPmbgaCleETIa4vYhtwPq+gzmF/NQkhb3FgfRXxIL8D5Y3TwH6K LEd2tW49lx+kZdwLX7JdnTCnFnyUQU1Vz8n/hrtpwhMS+ZZMnJAf1Z6ANPWBy2CFvBSK aR72QdXwMtSwEkvaq5t+sizRcupM3khsqZMfL5ii+Wg2c+o69fbpdVsd7q5gWuoZX4ZZ lMWt9NiNmN9crYeZBkyUm7aw5A0WPxdrDpTHPTsMYql/R7kn7Tb2BdEM7SBCcUtUQAxk DknE286iTiqTZDSKEiEdbwGP5B9v/+k2pefFSSQls4V/OyXQV3veH9yRNCkafKdciQS/ 5YKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x20si15268428jao.3.2021.05.16.16.06.27; Sun, 16 May 2021 16:06:27 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231770AbhEPXHf (ORCPT + 7 others); Sun, 16 May 2021 19:07:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:43948 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbhEPXHf (ORCPT ); Sun, 16 May 2021 19:07:35 -0400 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 -- 2.31.1