2024-06-05 09:40:36

by Neil Armstrong

[permalink] [raw]
Subject: [PATCH] dt-bindings: iio: adc: amlogic,meson-saradc: add optional power-domains

On newer SoCs, the SAR ADC hardware can require a power-domain to operate,
add it as optional.

Signed-off-by: Neil Armstrong <[email protected]>
---
Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml | 3 +++
1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml
index 7e8328e9ce13..f748f3a60b35 100644
--- a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.yaml
@@ -66,6 +66,9 @@ properties:
nvmem-cell-names:
const: temperature_calib

+ power-domains:
+ maxItems: 1
+
allOf:
- if:
properties:

---
base-commit: c3f38fa61af77b49866b006939479069cd451173
change-id: 20240605-topic-amlogic-upstream-bindings-fixes-power-domains-sardac-0f9d22e7e558

Best regards,
--
Neil Armstrong <[email protected]>



2024-06-05 17:22:37

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: iio: adc: amlogic,meson-saradc: add optional power-domains

On Wed, Jun 05, 2024 at 11:37:08AM +0200, Neil Armstrong wrote:
> On newer SoCs, the SAR ADC hardware can require a power-domain to operate,
> add it as optional.

What about the older socs that don't have power domains, the property is
now usable there?


Attachments:
(No filename) (261.00 B)
signature.asc (235.00 B)
Download all attachments

2024-06-06 07:56:06

by Neil Armstrong

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: iio: adc: amlogic,meson-saradc: add optional power-domains

On 05/06/2024 18:58, Conor Dooley wrote:
> On Wed, Jun 05, 2024 at 11:37:08AM +0200, Neil Armstrong wrote:
>> On newer SoCs, the SAR ADC hardware can require a power-domain to operate,
>> add it as optional.
>
> What about the older socs that don't have power domains, the property is
> now usable there?

Old SoCs doesn't necessarily have an associated power domain, or was handled
by firmware, does it harm if we make it optional for older ones as well ?

Neil

2024-06-06 16:24:15

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: iio: adc: amlogic,meson-saradc: add optional power-domains

On Thu, Jun 06, 2024 at 09:54:22AM +0200, Neil Armstrong wrote:
> On 05/06/2024 18:58, Conor Dooley wrote:
> > On Wed, Jun 05, 2024 at 11:37:08AM +0200, Neil Armstrong wrote:
> > > On newer SoCs, the SAR ADC hardware can require a power-domain to operate,
> > > add it as optional.
> >
> > What about the older socs that don't have power domains, the property is
> > now usable there?
>
> Old SoCs doesn't necessarily have an associated power domain, or was handled
> by firmware, does it harm if we make it optional for older ones as well ?

I mean, really all of these devices have a power domain, even if the DT
doesn't describe one as it's hardly gonna work without power, so the
commit message just seems odd to me. I don't care enough to ask for a
new commit message though.
Acked-by: Conor Dooley <[email protected]>


Attachments:
(No filename) (852.00 B)
signature.asc (235.00 B)
Download all attachments

2024-06-08 17:51:41

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: iio: adc: amlogic,meson-saradc: add optional power-domains

On Thu, 6 Jun 2024 17:21:17 +0100
Conor Dooley <[email protected]> wrote:

> On Thu, Jun 06, 2024 at 09:54:22AM +0200, Neil Armstrong wrote:
> > On 05/06/2024 18:58, Conor Dooley wrote:
> > > On Wed, Jun 05, 2024 at 11:37:08AM +0200, Neil Armstrong wrote:
> > > > On newer SoCs, the SAR ADC hardware can require a power-domain to operate,
> > > > add it as optional.
> > >
> > > What about the older socs that don't have power domains, the property is
> > > now usable there?
> >
> > Old SoCs doesn't necessarily have an associated power domain, or was handled
> > by firmware, does it harm if we make it optional for older ones as well ?
>
> I mean, really all of these devices have a power domain, even if the DT
> doesn't describe one as it's hardly gonna work without power, so the
> commit message just seems odd to me. I don't care enough to ask for a
> new commit message though.
> Acked-by: Conor Dooley <[email protected]>

Applied