From patchwork Fri Dec 24 13:43:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Nebi Yasak X-Patchwork-Id: 1573046 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=LoCpPapY; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JL7Zv49Gnz9sRR for ; Sat, 25 Dec 2021 00:44:21 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2818E83759; Fri, 24 Dec 2021 14:44:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LoCpPapY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 94649811BB; Fri, 24 Dec 2021 14:44:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6A3E882A65 for ; Fri, 24 Dec 2021 14:44:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x535.google.com with SMTP id j6so33454429edw.12 for ; Fri, 24 Dec 2021 05:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TyiOy2gSgJPqx2SZcQiuHuFOD4hhD+8o97yMCGR4yPQ=; b=LoCpPapYkef/y6ZWWTsrqEylCE5kZL4+JVO+fY4QzdZckoLVRn3yQtjhkGBdsc5Mun pOPJtqhrIuQ2RRJbkA91ZoMzYermiqZQ+0f/ZFPyG+U1D0smlSkKqheLbcoC0Te/D27J 1BxPd8tPC7kuqgbhsLx6eJAtjaYQYummUN3bFmCq3SdRBitOJEJh4clhPJxQcMU4Bkcn ULJPLkDToM69d7PGwzcr0LMBlEW+7OEkHg7PiwfuQJDQPvJunmNFAE6BuBj+19HnqNAm ja159HTzwH49m4tkpg9li6HZ2MstoEuPzAKTlKpA+brDwB2khs4tX2T0QeJytRDcxcVR jyZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TyiOy2gSgJPqx2SZcQiuHuFOD4hhD+8o97yMCGR4yPQ=; b=RQgWeJA5Qhs+Qvh8qWBvvcO/nw0ZYGIYXYAHsXszP0iAyYRtZ9Q31ATR8meSRcF7k8 +WKwS87LE2UryQsYLiRNtat7/Qvs9d9AhO0aomyUZ67zwC8JRFzteRGLuIrPsEU+5jLT LEzbwVen4poV/MLMRsE35O1QKHB7ZMgnpPlsy29jXPQKqfK0bHyixmHj0xg/FO2GJepF KBNM9XX6PGiGtqkvBt1nCoupSsJjxDBbVYorzEj4vs8aibTEeqFYTQytGu4vc/eCJXgE FWsyHUQQwmodNazRgNN0dATZ08NX7LN4wjnJwp1Ht3gzGCkgiIMrhWGO842Uh74NcMfm yYRw== X-Gm-Message-State: AOAM5310vruItjXUdc2pLkVY0KcCrgPJUFkgUToVmtL/8uvIfhss4dXW VgVTeEhV1VFEZBttj7nogFl6mZLa+P8= X-Google-Smtp-Source: ABdhPJzwGuFMd4iGT2a6ZeHfZkm5H34VvRuTaMBU0toSKe9hxD49ma4OF6OsTJZ6datX3QWeWe/hHQ== X-Received: by 2002:a17:906:5208:: with SMTP id g8mr5266140ejm.634.1640353441905; Fri, 24 Dec 2021 05:44:01 -0800 (PST) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id ho9sm2696231ejc.86.2021.12.24.05.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Dec 2021 05:44:01 -0800 (PST) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: "Marty E . Plummer" , Simon Glass , Christian Hewitt , Andre Przywara , Peter Robinson , Kever Yang , Heiko Schocher , Johan Jonker , Tim Harvey , Alexandre Vicenzi , Fabio Estevam , Jagan Teki , Neil Armstrong , Philipp Tomsich , Artem Lapkin , Alper Nebi Yasak Subject: [PATCH v3 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin Date: Fri, 24 Dec 2021 16:43:42 +0300 Message-Id: <20211224134347.41812-1-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean I have recently started testing booting U-Boot from SPI on my gru-kevin (as opposed to chainloading it from vendor coreboot + depthcharge) and brought it to a better working state based on an initial support patch from Marty [1][2] and some follow-up work by Simon [3]. I tried to keep them as the git author when I took things from their work, but squashing other changes into those and rewriting commit messages makes things a bit weird in my opinion, especially for keeping their signoff. Do tell me if there is a better way to that. As the Kevin and Bob boards are very similar, I assumed the config and devicetree changes will be appropriate for Bob as well, and applied them to it first. I do not have a Bob, so could not test on one myself, but Simon did test an earlier version of this and it appears to work [4]. Other useful things for these boards: - Patch to fix a hang when usb controllers exit [5] (or [6]) - Series to support HS400ES mode as HS400 training fails [7] (but faster speeds are kept disabled in this series since v3) - Hack to skip eMMC reinitialization so it keeps working [8] [1] https://patchwork.ozlabs.org/patch/1053386/ [2] https://patchwork.ozlabs.org/comment/2488899/ [3] https://github.com/sjg20/u-boot/commits/kevin [4] https://patchwork.ozlabs.org/comment/2799106/ [5] https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icenowy@aosc.io/ [6] https://patchwork.ozlabs.org/project/uboot/patch/20211224130549.20276-1-alpernebiyasak@gmail.com/ [7] https://patchwork.ozlabs.org/project/uboot/list/?series=269768 [8] https://patchwork.ozlabs.org/comment/2779784/ Changes in v3: - Unset configs MMC_IO_VOLTAGE, MMC_UHS_SUPPORT, MMC_HS400_SUPPORT, MMC_HS400_ES_SUPPORT, MMC_SDHCI_SDMA. - Add tag: "Reviewed-by: Kever Yang " v2: https://patchwork.ozlabs.org/project/uboot/list/?series=276629 Changes in v2: - Drop unnecessary ifdef. - Clarify commit message regarding 'values set in coreboot'. - Rebase on u-boot/next, fixing conflict in board_debug_uart_init() v1: https://patchwork.ozlabs.org/project/uboot/list/?series=273848 Alper Nebi Yasak (2): rockchip: gru: Set up SoC IO domain registers rockchip: bob: Enable more configs Marty E. Plummer (1): rockchip: rk3399: Add support for chromebook_kevin Simon Glass (1): rockchip: gru: Add more devicetree settings arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3399-gru-kevin-u-boot.dtsi | 11 ++ arch/arm/dts/rk3399-gru-u-boot.dtsi | 55 +++++++++ arch/arm/mach-rockchip/rk3399/Kconfig | 11 ++ arch/arm/mach-rockchip/rk3399/rk3399.c | 3 +- arch/arm/mach-rockchip/spl.c | 3 +- board/google/gru/Kconfig | 16 +++ board/google/gru/MAINTAINERS | 8 ++ board/google/gru/gru.c | 54 ++++++++- configs/chromebook_bob_defconfig | 22 +++- configs/chromebook_kevin_defconfig | 111 ++++++++++++++++++ doc/board/rockchip/rockchip.rst | 1 + include/configs/gru.h | 3 + include/dt-bindings/input/linux-event-codes.h | 3 +- 14 files changed, 297 insertions(+), 5 deletions(-) create mode 100644 arch/arm/dts/rk3399-gru-kevin-u-boot.dtsi create mode 100644 configs/chromebook_kevin_defconfig