From patchwork Mon Oct 28 10:25:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13853260 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 67CFF18C939 for ; Mon, 28 Oct 2024 10:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730111173; cv=none; b=QX00/yxblCh1vB6fxrQ9rgCmhzBBd/QPnVi8vk+NGYaM72mYRzYcNuWCSiQm150rgPgr4EldRGgsgfZZjeXutKKix16EAa71YuCgZUFPKzXnbDaH+/PKPN3fSpcm8em/rBe8LfykL+zYFwpWKIfv6D43Duizo4UQLrUBbWcqs84= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730111173; c=relaxed/simple; bh=Je0XRsrSlkfhC1gNXF4h9w/Pw1MLL8ees5oNHb91sd8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fgUZvozJ+oRyoOJMxOqhKv8p7L1xvBR/3lf4m+YhfVNVQCywSoHRUXCttgVjmi/C62njD9f3e7tglaIE0Sm5DiBMwSqqn+xrlPzXam2MvaJI/dHVCyXYc46s26/kVawbc07pCF/CBwsRw0ByBoq0agbjAzXs+A64kOsoyCFiYvk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b=LMf0ijjC; arc=none smtp.client-ip=209.85.218.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="LMf0ijjC" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a9a26a5d6bfso635017966b.1 for ; Mon, 28 Oct 2024 03:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1730111170; x=1730715970; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Tjf17nGxadGEosYCdQe1mRaeFLEYOHfj3xwJxxS9C4Y=; b=LMf0ijjCB1bcLIb7O+CtyUWW5MdHhKqJeFRH6DPuXQCZ5h1HPK0x2yilTj2f4/VzN9 w2Q00eok5yfayGFpbZ3O7OIgkwIgF2R1DjT1xvdFnpF2phure7VNtBDWOpHwcf9WZuTf lsSl6rhZRyu2UwuA4i1d16SrIJW/Yl3BQwwqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730111170; x=1730715970; 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=Tjf17nGxadGEosYCdQe1mRaeFLEYOHfj3xwJxxS9C4Y=; b=HjPGmJ/gQb0jjs8GyRZxcptYaAZL0ID+wLM+A/5GRLWm9BlE63gVA7LaiIcHo+7mzf BKAzUMvYsOXE2EwW9aZxlwIQNAaCKoRAdM+DeFN/duo2PZGWUUWzAyq9SiTWIuZdz/0j U9TYOLL7PH6JMKC1jjfa95lOywxH9TFRWDoS43d1U4zIEEHTY4KQRBRo4w8THae0GR3N Gmf59WexlJ00TiCg7OUx/MPBjtG9ZY0ktCFXcrdhInXLEyGinmVhsQ7YU2chscqWzVsh mOiyIdXhVFFCa09z/X0H1sU3KhyS8OP0tNs/m54FEWaN1hnI4cxAL9m1BeNB0O3BCQSx 689w== X-Forwarded-Encrypted: i=1; AJvYcCUmmtwbVT1uxdmRBPq+nhh0AvXB20EOyxZz+VvwPKWaZgpFsbC5wKDn/cKl5ueSIxN5qjU=@lists.linux.dev X-Gm-Message-State: AOJu0YwvNxuC0A1NnpvC/npLvIhiTELjsGLO2PLKDFYI56Z8+RACGcA3 qUMWd/6cZQVEmMJ4n8ZB7T+A9MElDOYS18fizaLEANArCQA7uSDTTEtpodyGOZs= X-Google-Smtp-Source: AGHT+IH1B0ko3VIpWkPI4RC1oi+MD1rEEYyYDNnVuUIYAatTCka4T6be6wD1IPac0B/RcE+iH3t9Yg== X-Received: by 2002:a17:907:3f23:b0:a8a:8d81:97ac with SMTP id a640c23a62f3a-a9de5c9f5f9mr669847666b.4.1730111169568; Mon, 28 Oct 2024 03:26:09 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.121]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b1f297b04sm363613966b.134.2024.10.28.03.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 03:26:09 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Andrey Smirnov , Andrzej Hajda , Conor Dooley , David Airlie , Fabio Estevam , Inki Dae , Jagan Teki , Jernej Skrabec , Jessica Zhang , Jonas Karlman , Krzysztof Kozlowski , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , Maarten Lankhorst , Marek Szyprowski , Marek Vasut , Maxime Ripard , Michael Trimarchi , Neil Armstrong , Peng Fan , Pengutronix Kernel Team , Rob Herring , Robert Foss , Sascha Hauer , Shawn Guo , Shengjiu Wang , Simona Vetter , Stefan Agner , Thomas Zimmermann , Ulf Hansson , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [RFC PATCH 00/10] Support simple-framebuffer on imx8m Date: Mon, 28 Oct 2024 11:25:23 +0100 Message-ID: <20241028102559.1451383-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This series is the Linux counterpart of what was sent to U-Boot [1] for the support of the simple-framebuffer for the BSH SMM S2Pro board. The need to avoid re-initializing the hardware (power domains, controllers, bridges, display panels) that has already been initialized and kept powered on by the bootloader has required updating more than one YAML file, with the addition of boolean properties to inform the driver that the corresponding hardware has been initialized and left on by the bootloader. All these properties are added on the fly by the bootloader to the various relevant nodes. Support for the simple framebuffer for the dts of imx8mn-bsh-smm-s2/pro board has been sent with a separate patch from this series [2]. [1] https://lore.kernel.org/all/20240913095622.72377-18-dario.binacchi@amarulasolutions.com/T/ [2] https://lore.kernel.org/imx/20241024102800.3481574-1-dario.binacchi@amarulasolutions.com/T/ Dario Binacchi (10): dt-bindings: soc: imx-blk-ctrl: add 'fsl,power-domains-boot-on' property pmdomain: imx8m-blk-ctrl: don't turn on a power domain already on dt-bindings: power: gpcv2: add 'fsl,boot-on' property pmdomain: imx: gpcv2: don't turn on a power domain already on dt-bindings: display: panel: add 'syna,boot-on' property drm/panel: synaptics-r63353: don't re-activate the panel if already setup dt-bindings: bridge: samsung-dsim: add 'samsung,boot-on' property drm: bridge: samsung-dsim: don't re-activate the bridge if already setup dt-bindings: lcdif: add 'fsl,boot-on' property drm/mxsfb: stop controller and drain FIFOs if already initialized .../display/bridge/samsung,mipi-dsim.yaml | 5 ++ .../bindings/display/fsl,lcdif.yaml | 5 ++ .../display/panel/synaptics,r63353.yaml | 5 ++ .../bindings/power/fsl,imx-gpcv2.yaml | 6 +++ .../soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml | 9 ++++ drivers/gpu/drm/bridge/samsung-dsim.c | 13 ++++- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 3 ++ drivers/gpu/drm/mxsfb/mxsfb_drv.h | 1 + drivers/gpu/drm/mxsfb/mxsfb_kms.c | 14 ++++- .../gpu/drm/panel/panel-synaptics-r63353.c | 10 +++- drivers/pmdomain/imx/gpcv2.c | 32 +++++++++++- drivers/pmdomain/imx/imx8m-blk-ctrl.c | 51 ++++++++++++++++++- 12 files changed, 148 insertions(+), 6 deletions(-)