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 7D2BFC6FA8E for ; Sun, 26 Feb 2023 18:20:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AE33585982; Sun, 26 Feb 2023 19:20:34 +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="aGNJ+9II"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9C1418595C; Sun, 26 Feb 2023 19:20:32 +0100 (CET) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 432DB8567B for ; Sun, 26 Feb 2023 19:20:30 +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=clamor95@gmail.com Received: by mail-lf1-x12b.google.com with SMTP id i9so5696887lfc.6 for ; Sun, 26 Feb 2023 10:20:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nRGoqwC1rLg6etI8kFXMmUtKSOEynjWyMJhCX5psf1c=; b=aGNJ+9II6q0tN4omS/8gTO6rCwl8TdAVBxX/NuUL+FsUndZG5b54jjj+ccYYM1NvUw Qn2mLCUIDwqYyOqm8giz5XEvh+17uT1J89HRovO8bNB7n0Mo6cjqOxCJV1+F1uRToLR8 19xZ9EVh6EpwMiyh+jVluKp+90bo3GOnpWW84ktHIQZg5Xrm1PiX3hFhIW4ujvABrmb1 ZcZ+iHJGWEmgNLAxn99kU6+tsDrnkJl7OPCjl0anmw6aWYFsGlTpenEh24thv5/RSEP7 pA+RRyqTSON8gmAiUHQZ6FJd00couovuFa4Bsuk//tV8M4RaiCY30cX2ouujsBzcIudD jL8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nRGoqwC1rLg6etI8kFXMmUtKSOEynjWyMJhCX5psf1c=; b=dDTXUbIUw2WZyXPqWkHLzCgHkP/r2AtH4w7zZ0y99GlCs2UFbprMd4vtUFCsGQmOGM r0Qw6PMBbJN2vNLJFG88xCyZK+eKUeViv3QCwqttYTc1iyYP2qGozMm4mFDL20FN5s3v 2lJSHzz3a70UMhkXABH0iIjgiV3ACptkWzhacr8nqf6jhR5kRN4J2GoJ7w58VH6mPOKm HxLRblZAir8uV1lzgzufsmXhAKBZzVGeYDd5QLJWVFc+ynViRGzMcNVJpjsDTPgKMidb MsldO4sYPE/zw8T0ixnFuJrHubrGcCldbxv8bXYsRwY+wvfwEDZI23ZxqH9HjrbggEUX D4Lw== X-Gm-Message-State: AO0yUKXpR6Bu7E8MSZTk7QGlT2qpu3A+awFI1yoQBRbHkKITVOr3m2Al Z219pzB6tm9prQoOGQBOwh8= X-Google-Smtp-Source: AK7set+2TNmB2593SRbG9KwYVJjHQ8bxuVsDnhPbicaVIsIc4FEOGzRx2oHJm7enSpHM9dD8Nlf63g== X-Received: by 2002:ac2:528c:0:b0:4db:86f:86dd with SMTP id q12-20020ac2528c000000b004db086f86ddmr7297580lfm.31.1677435629354; Sun, 26 Feb 2023 10:20:29 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id x25-20020ac259d9000000b004dc4d984911sm619421lfn.271.2023.02.26.10.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 10:20:28 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Anatolij Gustschin , Simon Glass , Svyatoslav Ryhel , Marcel Ziswiler , Thierry Reding , Maxim Schwalm , Dmitry Osipenko , Nicolas Chauvet Cc: u-boot@lists.denx.de Subject: [PATCH v2 00/11] Tegra DC improvements Date: Sun, 26 Feb 2023 20:19:54 +0200 Message-Id: <20230226182005.27291-1-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.6 at phobos.denx.de X-Virus-Status: Clean This patch set is dedicated to improvement of video support on T20 and T30 devices. It contains: - DC driver improvements (T30 support was added into existing T20 DC driver, it was moved into own folder, added support of reading clocks from dts, improved work with panel ops and implemented native 180 degree panel rotation support) - DSI driver bring up (driver is based on mainline Linux one with minor adjustments, only T30 tested) - Simple panel driver tweaks (added get_display_timing ops and implemented simple MIPI DSI panels support) Patches were successfully tested on Paz00 board with unmodified state and on TF101 (Ventana board T20) with old binding and with updated binding. All work without any regressions. --- Changes from v1: - DSI driver headers were optimized - Tested on Paz00 board --- Marcel Ziswiler (1): tegra: lcd: video: integrate display driver for t30 Svyatoslav Ryhel (10): video: move tegra dc driver into own folder video: tegra-dc: get clocks from device tree video: tegra-dc: request timings from panel driver first video: tegra-dc: assign regmap directly video: tegra-dc: add 180 degree panel rotation video: tegra-dc: add panel_set_backlight call video: tegra-dc: pass DC regmap to internal devices video: tegra20: add DSI controller driver simple_panel: add support for get_display_timing simple_panel: support simple MIPI DSI panels arch/arm/dts/tegra30-u-boot.dtsi | 9 + arch/arm/include/asm/arch-tegra/dc.h | 8 + arch/arm/include/asm/arch-tegra30/display.h | 28 + arch/arm/include/asm/arch-tegra30/dsi.h | 217 +++++ arch/arm/include/asm/arch-tegra30/pwm.h | 13 + drivers/video/Kconfig | 11 +- drivers/video/Makefile | 2 +- drivers/video/simple_panel.c | 47 +- drivers/video/tegra20/Kconfig | 17 + drivers/video/tegra20/Makefile | 4 + drivers/video/tegra20/mipi-phy.c | 134 +++ drivers/video/tegra20/mipi-phy.h | 48 + drivers/video/{tegra.c => tegra20/tegra-dc.c} | 123 ++- drivers/video/tegra20/tegra-dsi.c | 864 ++++++++++++++++++ 14 files changed, 1476 insertions(+), 49 deletions(-) create mode 100644 arch/arm/include/asm/arch-tegra30/display.h create mode 100644 arch/arm/include/asm/arch-tegra30/dsi.h create mode 100644 arch/arm/include/asm/arch-tegra30/pwm.h create mode 100644 drivers/video/tegra20/Kconfig create mode 100644 drivers/video/tegra20/Makefile create mode 100644 drivers/video/tegra20/mipi-phy.c create mode 100644 drivers/video/tegra20/mipi-phy.h rename drivers/video/{tegra.c => tegra20/tegra-dc.c} (82%) create mode 100644 drivers/video/tegra20/tegra-dsi.c -- 2.37.2