From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 28 Jun 2022 22:41:05 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o6I17-000bMc-Kg for lore@lore.pengutronix.de; Tue, 28 Jun 2022 22:41:05 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6I17-0004K9-TE for lore@pengutronix.de; Tue, 28 Jun 2022 22:41:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pfQG/RW2EzlJqYTKNpwdZGJo1hpTBj8z7eaHGCxMG2U=; b=r0U2TYGTrgxZaFi6MdmYIrwHEZ KDkMUUgzoKYYO13IVg/E97v8CRMGZ3kAQegzmbR/xWi7HPloxXycBXldT9PQFggl3x0T4j22jcjxf 2sDm7EfthX6s4RDINzBlnd/rlzqmnAGSIdBbRo4BOwy/UZ/eYcBkvAZ8RzphDOoGjGqJH5GG5XXww puPwXNDdDqWfcXpLMh6ney1/SPiuExVh2wPGCmY5Fr88kecb+ddV9a7A24BYp/g7UhCl01KJkkT3d 5mveo52nEupzXQ59h1DLAJCibtNHWH7O46kD2tK8g4l8AFysD06XT1bh8cyWRV9NFeC+Gqg0LtpKw aVqxt3MQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Hzq-00850U-1L; Tue, 28 Jun 2022 20:39:42 +0000 Received: from mailrelay3-1.pub.mailoutpod1-cph3.one.com ([46.30.210.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Hza-0084oi-EP for barebox@lists.infradead.org; Tue, 28 Jun 2022 20:39:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=pfQG/RW2EzlJqYTKNpwdZGJo1hpTBj8z7eaHGCxMG2U=; b=VMMge758RcAnCEMy+soC8fBGtonTL4hQzhx9lMK9BKdrF4wWiQv6s6EaD2xTqUvx/cl+8WJFPkHL1 Dk7BeNzVp6PAsMerE3W4LpZ/AFahlTJWTkuv1zax2Edg8chK3bTUzjrELEqstzF0wwQgDSLXFcGMDs enAPylGPrIEDotkWtL0fAhPfcCn+sAKkCmYM9d93oQshlBy5RmSnOQy1ylLnRnYYx5eFhXrDZFcK6N V+nvO3mwGnMMwYNfcm0bezBnuqL6yJYQ81nCh/Q0QygvoK3+pRllDtzAUCSHwNkqDlswsIJ7byLPAr 41w76s/tCgjs2JXU+QigHYf1UHwDUKg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=pfQG/RW2EzlJqYTKNpwdZGJo1hpTBj8z7eaHGCxMG2U=; b=TWebkZRz65sjtMKOwekZTtnoFJEXlLgy2Cc6iJKCahhfI6OHEsKmUxM4Sfq/4qxgDH381TQrN/3kJ 8BKGyUiCw== X-HalOne-Cookie: 89dac033204355cafe7aeec287bb8998da46dfec X-HalOne-ID: 5bd42232-f722-11ec-be7c-d0431ea8bb03 Received: from mailproxy3.cst.dirpod4-cph3.one.com (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 5bd42232-f722-11ec-be7c-d0431ea8bb03; Tue, 28 Jun 2022 20:39:24 +0000 (UTC) From: Sam Ravnborg To: barebox@lists.infradead.org, Ahmad Fatoum Cc: Sam Ravnborg Date: Tue, 28 Jun 2022 22:38:47 +0200 Message-Id: <20220628203849.2785611-10-sam@ravnborg.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628203849.2785611-1-sam@ravnborg.org> References: <20220628203849.2785611-1-sam@ravnborg.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220628_133926_737263_0F395C36 X-CRM114-Status: GOOD ( 21.92 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [WIP PATCH v2 09/11] atmel_lcdfb: add support for updated DT bindings X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) The updated bindings for the display node uses graph nodes to identify the panel. Update the driver to support the new binding: - Add support for the video pipeline (vpl) - Add guard-time to the chip info - Move deprecated display support to own function With this update there is support for specifying a backlight node as part of the panel node. Signed-off-by: Sam Ravnborg --- drivers/video/atmel_lcdfb.c | 6 ++ drivers/video/atmel_lcdfb.h | 4 + drivers/video/atmel_lcdfb_core.c | 125 +++++++++++++++++++++++++------ 3 files changed, 113 insertions(+), 22 deletions(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 38b4b8df3..1087102c4 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -231,26 +231,32 @@ static int atmel_lcdc_probe(struct device_d *dev) static struct atmel_lcdfb_config at91sam9261_config = { .have_hozval = true, .have_intensity_bit = true, + .guard_time = 1, }; static struct atmel_lcdfb_config at91sam9263_config = { .have_intensity_bit = true, + .guard_time = 1, }; static struct atmel_lcdfb_config at91sam9g10_config = { .have_hozval = true, + .guard_time = 1, }; static struct atmel_lcdfb_config at91sam9g45_config = { .have_alt_pixclock = true, + .guard_time = 9, }; static struct atmel_lcdfb_config at91sam9rl_config = { .have_intensity_bit = true, + .guard_time = 1, }; static struct atmel_lcdfb_config at32ap_config = { .have_hozval = true, + .guard_time = 1, }; static __maybe_unused struct of_device_id atmel_lcdfb_compatible[] = { diff --git a/drivers/video/atmel_lcdfb.h b/drivers/video/atmel_lcdfb.h index 110c71bdb..69a27cb23 100644 --- a/drivers/video/atmel_lcdfb.h +++ b/drivers/video/atmel_lcdfb.h @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only #include +#include