[RFC,01/10] dt-bindings: soc: imx-blk-ctrl: add 'fsl,power-domains-boot-on' property
| Message ID | 20241028102559.1451383-2-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBRON7W4AMGQEET2ZFOQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com
[209.85.167.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7AE653F338
for <linux-amarula@patchwork.amarulasolutions.com>;
Mon, 28 Oct 2024 11:26:14 +0100 (CET)
Received: by mail-lf1-f71.google.com with SMTP id
2adb3069b0e04-539ebb67c28sf2662228e87.3
for <linux-amarula@patchwork.amarulasolutions.com>;
Mon, 28 Oct 2024 03:26:14 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1730111174; cv=pass;
d=google.com; s=arc-20240605;
b=NYuZQOyq9nTd1afeLbmV9DbrV7/DG4cPQ3SZu6VN1Zw3XVB+3vZk/935eSEqzdSXE+
pPQPJ3J2RF8fyG4Qq01OGgrxPbQjxP1b51mqXZgEVW9MB/qXMgdetMHxE0xDRuJJZSRN
2yq4ye/889QLYjQSI6mbA8AEwhV55tyNmcNtCfHZ1LsPhIfNzrJ9Y4RMt0w5UUh+nfK/
7vorPIIuETStL62TeG8ietBf9tl2jdFy4jIelAW6FR7g6KQyU0XNx2hs1uiATqnVC9TE
MQ7dLSy10g5nfJkC4fY4DHPf/5aaKiBGr4tXDFw0/lYG2WCwLRisYp+pBLQq2DbXRjHG
3lpQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=zBlT5RfxFi4GhBO4gYzvVd80ECn6Mws5OQfvYNtSI4A=;
fh=s3ZCvQ+/3s/YbGfT2412t9ktazDdV7pmsBWNEJmFSb8=;
b=Yt5FZJVSlB86wbFkL7/Wva2y0sAd2NEx6N1mx7O5CceoVfjexKJNfn6nbrEOsBhxJu
gqJdqX+Ez51cIluZJT1Z9DHgV8dPTwnCwgumHuAySi+8FQ5JSbst9xv6s2JW7oXwxmD4
FUL2s414iLdmSn9MsWesK5Bm3e44B4wW1QVcUSa8+uNDkqmQ6tzh471TzO5yRDGw3/w8
2fl8p10RlnAieG4p4+L2Mh+mG66u4Vm5hVCVn5Qx27S7/qGZ9tDN37VTa+P1BTbUrYfU
5OgJ47kbXiqXv92FTWJzMLbPHbzfJuZ/oZi2epgj4fsnLNGYhl0Ci2+UMRKjiltKDfiF
a9jA==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=azwR668k;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1730111174; x=1730715974;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=zBlT5RfxFi4GhBO4gYzvVd80ECn6Mws5OQfvYNtSI4A=;
b=m8IyT310IvXkZPeV3aBWmnfY5t+cKon5vIJG2iUbiDi9DSQOdoGPArfCWaXjfu5OoY
CSRaPgBzGhXHmW09jBR98wno0ESE+ktZoGDZllDwdiUPVLmb4VLVV6TXYb/wDbyxJ1MK
hK8sPhhfiEjjTc9AAZMID/MK3PxwngRUUTMQg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1730111174; x=1730715974;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=zBlT5RfxFi4GhBO4gYzvVd80ECn6Mws5OQfvYNtSI4A=;
b=aXwTl4QS6b/+q6o9riEiJ/p3btKKuj1Buev/ZSaw7OTS4y+yEUR0+sAZu3iAZdSGEu
qsh0CaNSepql3cDftTid8je5ObIwcaqi4O4a5AhYGzwqx1aKBVTCFt4RVXcZIKLXV+uP
g2SCAIPgKQYAYDCNerXaB6K+Y3fN+2/azD5brYZ+utJXlp1wB2bm/LnORKQsntYc8KR6
uBHGmrU5b5JzoxANSAA8OUByLqLeWF8ZDyqo78nXXYRHC2k9e9ATvgRWx7/MJGNbx1vs
DXrUqc7sUzL3XfcsQ1akFHeMs3SNxK9sB8D+bq8fULAKF59jgQVd4OG3ybdZGD3gTwyc
h+Cw==
X-Forwarded-Encrypted: i=2;
AJvYcCXO4AuZhUtBCUJ7mDNob6KSgk6ruzJieWLkdrhzp9B+5Jxce7IriVTeU4wsyPJLwHbJ0tZboGiqUKnOSvoS@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YzHa5gPXH0t2gJnibYzxB9fp7oRJkRSpEyLfOsZoleNMYTuKnPh
u1qMkn26EXYMemHLR4kpt9mxqdqu18qAo78IV7SLYBcxK5b85juBsi9IEGjY5C5vDg==
X-Google-Smtp-Source:
AGHT+IFxgm0JkdlVqP9yjSBLPVyijQpd0WppcnG/Uq98W6UnzMUxBbTdvoiFU9edpAgBcWCUaMouWg==
X-Received: by 2002:a05:6512:1384:b0:536:a4e1:5fa2 with SMTP id
2adb3069b0e04-53b348de8c1mr2758408e87.26.1730111173444;
Mon, 28 Oct 2024 03:26:13 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:6512:10c6:b0:539:fc31:fc9a with SMTP id
2adb3069b0e04-53b213918c9ls95213e87.0.-pod-prod-06-eu; Mon, 28 Oct 2024
03:26:12 -0700 (PDT)
X-Received: by 2002:a05:6512:2811:b0:535:6b9e:bcdd with SMTP id
2adb3069b0e04-53b348ebf93mr3063359e87.33.1730111171681;
Mon, 28 Oct 2024 03:26:11 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1730111171; cv=none;
d=google.com; s=arc-20240605;
b=UGMHgNEhKRQLCsvz82Kz0GUt0bjgtCgXueyCrEvhb6b/7OS/nEkeRtsRqXzuXd52iW
7BWUX2bmH1R2xUeO/x5sz/S5IXxreoYRr9YW2G0yPEWvY/nFe7KOqVAWmtu8LBe30mO9
0cyzkfpUCOmblpEsDAjTvC5zsvSKprtbhrd7kJIhCs5sY3xkNH2agNcfPmmPZb90zugR
N3CVwBiRWEarqW73XLkPDXBmp95sdFdVCKhU0L8rijyS6PS+s/xlhAb4aumosdE8uxOS
TXv8Sua4Cq7OZzFRDpIr9HtBux54XYywvKd6M2UV7PcXZ2gAm8IW8vbNbuPLe6LG7mBp
W2vA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=vYexXqsopB/TorltyWtW3DQvmZVEoLO13n0GfiFkuag=;
fh=nD842BF96KJ9rGCKKmmQBSphI3u3KaWY7TAsm6dMmNw=;
b=e7ULgb3oe2+Yd07jeww7QAfjE/YkT4+bmDp5x49fxGtpPVa0J7iB6HShq7yF6vhwiv
PDmGHWTteQXMOzJuNhrOSIJ8SWwUlaSbtFuRiDZUq42MB8yfnrjvL3WOuajhJpxhYL/h
22U4tO5G4pWLZ7Dp98cQtF2lsXA1jx0gzDaDfAhssQIdtwe4js+rLF66wyppb0FRyd7T
k+m0njCYMhtJMYmd1lIdg61FnSs0nGoY1g8+qV5Z8wSy/KrnGvwRYuSTiC/7+CsDgcNP
TtzP2blSnLJxLE9DZaJqOckolVWi8nCNoux0EYr7iPAVqZ7w3/Ktyh9m7fdYmQoHR+no
uN8Q==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=azwR668k;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
2adb3069b0e04-53b2e1cdc22sor1404194e87.22.2024.10.28.03.26.11
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Mon, 28 Oct 2024 03:26:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:ac2:4c46:0:b0:535:82eb:21d1 with SMTP id
2adb3069b0e04-53b34a3516cmr2517575e87.57.1730111171159;
Mon, 28 Oct 2024 03:26:11 -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.09
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 28 Oct 2024 03:26:10 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-kernel@vger.kernel.org
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Conor Dooley <conor+dt@kernel.org>,
Fabio Estevam <festevam@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Lucas Stach <l.stach@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Rob Herring <robh@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
devicetree@vger.kernel.org,
imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 01/10] dt-bindings: soc: imx-blk-ctrl: add
'fsl,power-domains-boot-on' property
Date: Mon, 28 Oct 2024 11:25:24 +0100
Message-ID: <20241028102559.1451383-2-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20241028102559.1451383-1-dario.binacchi@amarulasolutions.com>
References: <20241028102559.1451383-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=azwR668k;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
Support simple-framebuffer on imx8m
|
|
Commit Message
Dario Binacchi
Oct. 28, 2024, 10:25 a.m. UTC
This property lists the state of the power domains, indicating whether
they have been left on or off by the bootloader/firmware.
This information becomes relevant, for example, in the case of supporting
the simple framebuffer.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
.../bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
On Mon, Oct 28, 2024 at 11:25:24AM +0100, Dario Binacchi wrote: > This property lists the state of the power domains, indicating whether > they have been left on or off by the bootloader/firmware. > This information becomes relevant, for example, in the case of supporting > the simple framebuffer. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > .../bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml > index eeec9965b091..00aa0b8d8ea9 100644 > --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml > +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml > @@ -56,6 +56,15 @@ properties: > - const: csi-aclk > - const: csi-pclk > > + fsl,power-domains-boot-on: > + description: | > + Provide the on/off (1/0) status of the power domains. It allows > + specifying whether one or more power domains have already been > + initialized and left powered on by the bootloader. Sounds like a common problem *if* we wanted to fix it in DT. Why can't you just read the h/w registers to see which domains are powered on? Perhaps because some are on, but you want to turn them off. Also, for simple-framebuffer, I think you can list the power-domains to keep on. Rob To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
Hello Rob, On Fri, Nov 1, 2024 at 6:39 PM Rob Herring <robh@kernel.org> wrote: > > On Mon, Oct 28, 2024 at 11:25:24AM +0100, Dario Binacchi wrote: > > This property lists the state of the power domains, indicating whether > > they have been left on or off by the bootloader/firmware. > > This information becomes relevant, for example, in the case of supporting > > the simple framebuffer. > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > > > .../bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml > > index eeec9965b091..00aa0b8d8ea9 100644 > > --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml > > +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml > > @@ -56,6 +56,15 @@ properties: > > - const: csi-aclk > > - const: csi-pclk > > > > + fsl,power-domains-boot-on: > > + description: | > > + Provide the on/off (1/0) status of the power domains. It allows > > + specifying whether one or more power domains have already been > > + initialized and left powered on by the bootloader. > > Sounds like a common problem *if* we wanted to fix it in DT. > > Why can't you just read the h/w registers to see which domains are > powered on? Perhaps because some are on, but you want to turn them off. I checked, but there is no register on this platform that indicates the on/off status of the power domain. So, I cannot readout the power domain state. > > Also, for simple-framebuffer, I think you can list the power-domains to > keep on. I did it; I added the power domains in the simple-framebuffer node, but this doesn’t prevent the genpd.power_on() callback from being called. And when this callback is called, the power domain is re-initialized, which does not maintain the persistence of the image on the display. Adding this DTS property prevents re-initialization that has already been performed by the bootloader. Thanks and regards, Dario > > Rob > >
diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml index eeec9965b091..00aa0b8d8ea9 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml @@ -56,6 +56,15 @@ properties: - const: csi-aclk - const: csi-pclk + fsl,power-domains-boot-on: + description: | + Provide the on/off (1/0) status of the power domains. It allows + specifying whether one or more power domains have already been + initialized and left powered on by the bootloader. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 5 + maxItems: 5 + required: - compatible - reg