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: 839280 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 54412189F5C for ; Mon, 28 Oct 2024 10:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730111173; cv=none; b=FeT26WJ8luvMb6Rybp/BSJ3pkmM4PtNJ1ntf/Ndvzc7Iae+wvFEQtHHOnG3ef59lMXw/odqm8fwozVUUJwe0DML2OyNa7hHCYg3uDwpXYjFmJ4z6MN+F3TEVQKc5xqzjRbr7bdS5+VX9Oqp1P8RZXpdVqgFK4Iu3p/HNtpGLSJE= 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=HLTpS552; arc=none smtp.client-ip=209.85.218.42 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="HLTpS552" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a93c1cc74fdso578200866b.3 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=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=Tjf17nGxadGEosYCdQe1mRaeFLEYOHfj3xwJxxS9C4Y=; b=HLTpS552jQkZZB10vKPKMtLZRZXGk/NFO8+BWun9DuiUqfXtI82pTgpqH3ebDic1qH V+df77KeC51u72QCPrh+DTCO8ROAaB1TmfvRF7PAGBLvHof7d82dCPIhqD7z8e8zbDCz 09ADarA9UYfCdRw4UePh5RD5r5oQ1ETM04Q54= 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=P3p9F5nNY+PXCtO3tpoOM9zWSz0LK17uJR6NibRPGxVhxtCMJnPo6A/ANL+TrSGD4f P38bz21xMG9FGXVpQaBFex8NKoymZyRnAwCUkD0taAQM22FmJgpdy8xJ2DBfDIi2vbQ6 QEM7Sj+TDqwMth41uEae/W9c33weTALah636rOiqEL8Ogfgt5lQov6Vxc9YUAuT0ry6k PYeGad2e7n8Ikoe3gvNvmrXHMk7P5XTeez52cqmGE7vgSkzLyR6FYd4aStS64V28m/XZ 2dEQZA/kYXBf+JHLkcnLtqxudH8B70VY/7/k4Jco4FeDtaYNFSW4352lhGL748ixdCjq PerQ== X-Forwarded-Encrypted: i=1; AJvYcCWj5YNdL88To6z+m+xjN4LNI7yznaBzlne5sPv8IN+r4pOp8Z5c9O4zMzuiVf0t7whAHk1LYyNAeg==@vger.kernel.org X-Gm-Message-State: AOJu0YylYpKd6KHt4Mwv6H4KEhdoEfVq1ZChqo2sjMSwddLacGgTzKoa ZkYu9Jxq2fSRxVWpRsNbftfbeFJdGO5ke5gzly4WKNtyRQx3wo90A1k0SEE33Uc= 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: linux-pm@vger.kernel.org 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(-)