From patchwork Thu Jan 4 07:23:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 18700 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5462509dyb; Wed, 3 Jan 2024 23:24:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEh2q14sRwnzYQ0HEw2vq6suSd+R4VFyark9aBotgVTisvAUIi4CnAmnPmcRk3yhjkiEOuH X-Received: by 2002:a05:6512:1094:b0:50e:6885:a6e8 with SMTP id j20-20020a056512109400b0050e6885a6e8mr75220lfg.103.1704353084694; Wed, 03 Jan 2024 23:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704353084; cv=none; d=google.com; s=arc-20160816; b=ZIloIojYoW1R7UDRrFbEtSAt+YVKDLXR4GAX6vCQcvQ8AYLmhJ+0NoKywubHZaGeKs 1NkliWginLa+nSb65DSAmDnG+wS9D2uGPXxqwJUaHzWYL51rzu9+Kekl6YANr4F6pp5x TRnXevYDyv96ugCAUfrSpQP8hm8suCt6ixEJfgkiB3IH5vqBa930Ml8mBCAMvjA57O+K utTmb5gytLTHDk4wmAZ6SKzMWLWzJgsCv1rD1twRUm34DrJdYkqVw8xSqdFQVIyBGqxn RrlJLQzDyRlcnOa5Bg7rlyoLTeXkFfdc8rx+5nNtRocdjOjQVRB3hS79PxLtBoQn+r03 acGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=PUgVC7JEO7GhUBsHaMMn2sIj/0Ni7LYX/30T12HJpq8=; fh=hCSGCiDQS8CldoCd7LISFTM9VS30ijmpmNRFCdT1tsk=; b=rvUr2anTdqH/nCQP1XhYBKcTZETJpbHZ+HR+UkzP07QVi1mIViwr4O18aReHKOZko1 bC2CyCfUYxXS/gZ3nMEJMOHKmCbyCkOTkur6BnTtsCwaGFKDmbbFiqc1Dc1DtywUHTm+ rYyjRWtSFaVvehD4v/3EO9c7aiEv5wOzoZh7BN4ab/uWZK9SgIaJohB6nH/FZ8ZzlGfZ QBXoowj8PbMLhvjkBBcGPzvuCQF+TpOfnJtsIh/jRq4ytxowYhg6URZshKjcLfJE9v+8 /xMz8aLLRAvUNEUe8ZV4hAmM+W/S1miVts4aKZfDabQW0r5z6KD9dFoM2EZiaRpB3OQm UfTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SlwhB+be; spf=pass (google.com: domain of linux-kernel+bounces-16310-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16310-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u14-20020a50c04e000000b00553af6a2bf5si12908012edd.312.2024.01.03.23.24.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:24:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16310-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SlwhB+be; spf=pass (google.com: domain of linux-kernel+bounces-16310-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16310-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4CC5D1F2668D for ; Thu, 4 Jan 2024 07:24:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D24C200C4; Thu, 4 Jan 2024 07:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="SlwhB+be" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 656FE1EB2B for ; Thu, 4 Jan 2024 07:24:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-556c3f0d6c5so256638a12.2 for ; Wed, 03 Jan 2024 23:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704353053; x=1704957853; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PUgVC7JEO7GhUBsHaMMn2sIj/0Ni7LYX/30T12HJpq8=; b=SlwhB+be1QpO69j6BrhGe7OeGBEbdk3Vii29Ry1ymEEwlIzAk11iWAhu7j5UxlX/Ja DE9imVo0Y3z4DrCIitAZ2n2y3pRmuKE/Gfzns0KOGUInjtPmr8MfDI556DBksb6FITRf a0oRITGn3QBeh0Z8zbvWE2VBvWapImXYCQO2Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704353053; x=1704957853; 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=PUgVC7JEO7GhUBsHaMMn2sIj/0Ni7LYX/30T12HJpq8=; b=NEVRQS6/jAxauUbSLxJ4yy12ykXHclqZfeHlk6Q5CBPtSIl5DcKK4CM5uNb2MnANbu iR4uSZ2CaEyP/mH/eZf3qLUM2wPjhrsgecnngIDJUeaEkAvNteYoNfxJz4xaWASySAVc c+ak1qpmmBZaybyF9Gi+seMRQ4Utj3t02YMAAjsYa2V+yuyV7QdhmejXS3MasK3L/2gJ Wwq4a8quwHTCKAPascxrh/mzzL9jxT8Lv038sXjVObbDY9ODYknIr+SNvXs1JBfCnWd+ jAeO0MDsg8ZEy1baGVTmjroCEdagO5BJxspQ/MpIsytzUNwCU5tWFHz4/gNV9OYHaKq1 qeug== X-Gm-Message-State: AOJu0YylqZm0glLXqcE07UiZuv9a2AKjmPJIM3LbmtoI+fDHUnUUsHkA Wi/ER7CETwzDYbLlXQWNLEiK0zFgle2lDIMLtsPbmcuAgCI= X-Received: by 2002:a50:8e49:0:b0:553:ad79:b7d7 with SMTP id 9-20020a508e49000000b00553ad79b7d7mr54053edx.93.1704353052879; Wed, 03 Jan 2024 23:24:12 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (net-93-150-255-34.cust.vodafonedsl.it. [93.150.255.34]) by smtp.gmail.com with ESMTPSA id d3-20020a056402000300b00553772c2968sm18530735edu.82.2024.01.03.23.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:24:12 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Dario Binacchi , Andre Przywara , Conor Dooley , Daniel Vetter , David Airlie , Enric Balletbo i Serra , Geert Uytterhoeven , Jessica Zhang , Krzysztof Kozlowski , Lee Jones , =?utf-8?q?Leonard_G=C3=B6hrs?= , Linus Walleij , Maarten Lankhorst , Maxime Coquelin , Maxime Ripard , Neil Armstrong , Patrice Chotard , Rob Herring , Sam Ravnborg , Sean Nyekjaer , Thomas Zimmermann , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 0/8] Add display support for stm32f769-disco board Date: Thu, 4 Jan 2024 08:23:36 +0100 Message-ID: <20240104072407.41290-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787143740308895809 X-GMAIL-MSGID: 1787143740308895809 The series adds display support for the stm32f769-disco board. It has been tested on hardware revisions MB1225-B03 and MB1166-A09. This required modifications to the nt35510 driver. As I do not have the Hydis HVA40WV1 display, it would be better if someone tested the driver in that configuration. Changes in v3: - Use "enum" to have less code changed Changes in v2: - Add Acked-by tag of Conor Dooley - Add a dash in front of each "items:" - Change the status of panel_backlight node to "disabled" - Delete backlight property from panel0 node. - Re-write the patch [7/8] "drm/panel: nt35510: refactor panel initialization" in the same style as the original driver in order to maintain the same structure. - Re-write the patch [8/8] "drm/panel: nt35510: support FRIDA FRD400B25025-A-CTK" in the same style as the original driver. Dario Binacchi (8): dt-bindings: mfd: stm32f7: Add binding definition for DSI ARM: dts: stm32: add DSI support on stm32f769 ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f769-disco ARM: dts: stm32: add display support on stm32f769-disco dt-bindings: nt35510: add compatible for FRIDA FRD400B25025-A-CTK ARM: dts: add stm32f769-disco-mb1225-revb03-mb1166-reva09 drm/panel: nt35510: move hardwired parameters to configuration drm/panel: nt35510: support FRIDA FRD400B25025-A-CTK .../display/panel/novatek,nt35510.yaml | 4 +- arch/arm/boot/dts/st/Makefile | 1 + ...f769-disco-mb1225-revb03-mb1166-reva09.dts | 18 + arch/arm/boot/dts/st/stm32f769-disco.dts | 78 +++- arch/arm/boot/dts/st/stm32f769.dtsi | 21 + drivers/gpu/drm/panel/panel-novatek-nt35510.c | 422 +++++++++++++++--- include/dt-bindings/mfd/stm32f7-rcc.h | 1 + 7 files changed, 484 insertions(+), 61 deletions(-) create mode 100644 arch/arm/boot/dts/st/stm32f769-disco-mb1225-revb03-mb1166-reva09.dts create mode 100644 arch/arm/boot/dts/st/stm32f769.dtsi