From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6ECCCC77B75 for ; Mon, 15 May 2023 16:02:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3B01386603; Mon, 15 May 2023 18:00:59 +0200 (CEST) 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="XbC5O0U1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B03CF865DC; Mon, 15 May 2023 18:00:48 +0200 (CEST) Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (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 33521865B7 for ; Mon, 15 May 2023 18:00:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=macroalpha82@gmail.com Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-55a829411b5so119279047b3.1 for ; Mon, 15 May 2023 09:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684166444; x=1686758444; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RED1ekfeOhlWzcSigbNLqFTKhfuPiqm80o6peHh/S6M=; b=XbC5O0U1gdtlp4TtuFmlJK8D6bthuOyUs34ePy/y3NdRR7z4NRVdM/M+G5qcomcij6 Zb0xPgu0Rt7BZd2WREHUUIsik+fLInQgv9+U77PSjQnbpMW30+0Qkwt7W6SvXJgszuVt 8c6BxTMHFnZk9TlsDbvScL4gv5XqBX1AidoPTtHGxI2tkOwTVF2oa6PVLv86NY/1b+Em W+tIVsdykZK71tB10hS1R1J6H0x4rvKfc/woVhoFu80MiTbC0BbKIXIzbfzBd1JkzxjL SCFUUowX7XTMrw0wbnTRrbZK4FT89lV4X4Njl1L84I7CHIeS8dxjGzvAT5f6JClHtQAZ oHtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684166444; x=1686758444; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RED1ekfeOhlWzcSigbNLqFTKhfuPiqm80o6peHh/S6M=; b=j2YpPQYCu2O3k6aSo87jvDSD40FSyW82l6FSHG0PkfkXPw/B5DyQ80CXtB4wjZjQfi a/kv3h0hMnQJGP+r4lg1MzS6soZutWKf8lv+Kf5h2LJ17IrnCw+8YwHpJwxOagzvfLCp mymk4FbFqw8cptZFk5QPWWe/yO+5HbG6v5Yy9yrIfzEOtm7yDck64DotH2lD6agmCDBt nTR0bb94c+pDa+znmPK0KVWF7vGeuqRHd/4xKuXX+xSEoJn8phU1JHLh6kH4vftgBtmi HOuuCjq1avBIrzUlmoSnbZSmLfbpENem5mfEtfuxSd87Jjhgo5Z6JZpehZ9XE2V1ONPj 79tg== X-Gm-Message-State: AC+VfDwBnA9OpMNYRqkgasiFFnuEqL50EXdRQF2ESv27nHaD+Z73B0pE ALRh+MVkI+o401se8elySeyvx22CM/TIRA== X-Google-Smtp-Source: ACHHUZ7SOBiU0cNqDMyHO8NaQDTndL9PPDY8hY0fQVJAMpuVTcF/MN30MdoMtwfOXWTRczjLyozx2A== X-Received: by 2002:a81:7105:0:b0:55a:470:e957 with SMTP id m5-20020a817105000000b0055a0470e957mr30728068ywc.14.1684166443489; Mon, 15 May 2023 09:00:43 -0700 (PDT) Received: from localhost.localdomain ([75.28.21.198]) by smtp.gmail.com with ESMTPSA id m8-20020a817108000000b0055a2cda24acsm43909ywc.35.2023.05.15.09.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 09:00:43 -0700 (PDT) From: Chris Morgan To: u-boot@lists.denx.de Cc: kever.yang@rock-chips.com, philipp.tomsich@vrull.eu, sjg@chromium.org, Chris Morgan Subject: [PATCH V2 6/6] doc: anbernic: Update RGxx3 Docs for panel detection Date: Mon, 15 May 2023 11:00:32 -0500 Message-Id: <20230515160032.126742-7-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230515160032.126742-1-macroalpha82@gmail.com> References: <20230515160032.126742-1-macroalpha82@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean From: Chris Morgan Update the Anbernic RGxx3 documentation to note that panel detection has been added and how it works. Signed-off-by: Chris Morgan --- doc/board/anbernic/rgxx3.rst | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/doc/board/anbernic/rgxx3.rst b/doc/board/anbernic/rgxx3.rst index afa7538282..5aa676aa1d 100644 --- a/doc/board/anbernic/rgxx3.rst +++ b/doc/board/anbernic/rgxx3.rst @@ -7,27 +7,36 @@ This allows U-Boot to boot the following Anbernic devices: - Anbernic RG353M - Anbernic RG353P + - Anbernic RG353PS - Anbernic RG353V - Anbernic RG353VS - Anbernic RG503 The correct device is detected automatically by comparing ADC values -from ADC channel 1. In the event of an RG353V, an attempt is then made -to probe for an eMMC and if it fails the device is assumed to be an -RG353VS. Based on the detected device, the environment variables -"board", "board_name", and "fdtfile" are set to the correct values -corresponding to the board which can be read by a boot script to boot -with the correct device tree. - -Please note that there are some versions of the RG353 devices with -different panels. Panel auto-detection is planned for a later date. +from ADC channel 1. In the event of an RG353V or RG353P, an attempt +is then made to probe for an eMMC and if it fails the device is assumed +to be an RG353VS or RG353PS. Based on the detected device, the +environment variables "board", "board_name", and "fdtfile" are set to +the correct values corresponding to the board which can be read by a +boot script to boot with the correct device tree. If the board detected +is not of type RG503 (which currently has only 1 panel revision) a +panel detect is then performed by probing a "dummy" display on the DSI +bus and then querying the display ID. The display ID is then compared +to a table to get the known compatible string for use in Linux, and +this string is saved as an environment variable of "panel". + +FDT fixups are performed in the event of an RG353M to change the device +name, or in the event the panel detected does not match the devicetree. +This allows Linux to load the correct panel driver without having to +know exactly which panel is used (as there is no user distingushable +way to tell). Building U-Boot --------------- .. code-block:: bash - $ export CROSS_COMPILE=aarch64-none-elf- + $ export CROSS_COMPILE=aarch64-linux-gnu- $ export BL31=../rkbin/bin/rk35/rk3568_bl31_v1.34.elf $ export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3568_ddr_1056MHz_v1.13.bin $ make anbernic-rgxx3_defconfig @@ -40,7 +49,7 @@ Image installation ------------------ Write the ``u-boot-rockchip.bin`` to an SD card offset 32kb from the -start. +start. Please note that eMMC booting has not been tested at this time. .. code-block:: bash -- 2.34.1