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 2C762C636CC for ; Mon, 20 Feb 2023 09:54:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3649885835; Mon, 20 Feb 2023 10:54:56 +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="OvfLRoj9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2A6F8858D6; Mon, 20 Feb 2023 10:54:52 +0100 (CET) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 8D92D85769 for ; Mon, 20 Feb 2023 10:54:47 +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-ed1-x536.google.com with SMTP id b12so2268608edd.4 for ; Mon, 20 Feb 2023 01:54:47 -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=XTpi65tSi60kaeRg14d/t29gk6mj723FCnUb8PHF+SU=; b=OvfLRoj9W+xW93biM81bcEcoYvRVqYqKM5WG9NlTNYAaRCNhnmL37kSrR3zVa3mQSx R5ihe/cJP8XKWLeJ4onnWSNe79nG1duDOKeNENbedXOi/9lO+68gL8buB1xX+s/4wTcG 6GmOXwV+faUtyK2NMR12KDORzifQWnpI4moekohODPbtP7iETk/ereS1Z5IN4bLrs6rO Y0q7GyLfp0Gkzu28r7H535KJG7AxxpZQnHRs1/idh+h3qr/M3HyTy94JRBvBeVwABqO9 kAlVXB/hE/GEJzJS149bNyfw8NLu96+lODCGzmk4i4EqCzdDbRIwk+WqgcO4iIP8R6lo nX8w== 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=XTpi65tSi60kaeRg14d/t29gk6mj723FCnUb8PHF+SU=; b=NPOsHsKmS/UmznR7joFcUnEoG4MLArEd2eRHMaYfAtss1NgIA4e9sfAVBW30vBZJ/4 xXvhtYZi8OnECgo53+Oza8g5+kUxpfFbGew33ME2CxSH3uMYfQ5ZC6cQ6UZCNIEM2xd2 10Bo0eNSVAlwuO2vzhT6nnZUJ5Bdj2Et1GJqQEQ5/bfOIHrFJgqy7O0P5N/7a1NnsTGe OOu3WL9aS8ajxUJpMs8LkRFD82GmN7UDjZwx/yQSP/eZfZxKWRfpjna8B06I27Y1dUNj 0Cw5HNd6LwB8kEKxq96jBTmeGO+oppSIpPmmOJpYfg+16kGml8aeCZNvRRWcjEqYAZ0c S8bA== X-Gm-Message-State: AO0yUKXSSoZBpJR4zQHZfUUmuLB8N/jH5d+9ZsG89hwaxZ6ielAtVhcJ 2HVpLi872krw3bKZcWUAnDs= X-Google-Smtp-Source: AK7set9gt5/y/DvDAioFVtUuXCYnTChphX/ZcG4CNMwEylWYspnwP7pFlDniXnplNwqjkEUx9dno2A== X-Received: by 2002:a17:906:374d:b0:878:7189:a457 with SMTP id e13-20020a170906374d00b008787189a457mr9235180ejc.51.1676886886998; Mon, 20 Feb 2023 01:54:46 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id bk7-20020a170906b0c700b008cd37aff603sm1636536ejb.164.2023.02.20.01.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 01:54:46 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Anatolij Gustschin , Simon Glass , Svyatoslav Ryhel , Marcel Ziswiler , Thierry Reding , Maxim Schwalm , Dmitry Osipenko Cc: u-boot@lists.denx.de Subject: [PATCH v1 00/11] Tegra DC improvements Date: Mon, 20 Feb 2023 11:54:14 +0200 Message-Id: <20230220095425.6198-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) 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 | 197 +++++ 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/dsi.h | 126 +++ 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 | 769 ++++++++++++++++++ 15 files changed, 1487 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/dsi.h 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