lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240708194808.1819185-4-gnstark@salutedevices.com>
Date: Mon, 8 Jul 2024 22:48:07 +0300
From: George Stark <gnstark@...utedevices.com>
To: <robh@...nel.org>, <krzk+dt@...nel.org>, <conor+dt@...nel.org>,
	<neil.armstrong@...aro.org>, <khilman@...libre.com>, <jbrunet@...libre.com>,
	<martin.blumenstingl@...glemail.com>, <hkallweit1@...il.com>,
	<broonie@...nel.org>, <glaroque@...libre.com>, <rafael@...nel.org>,
	<daniel.lezcano@...aro.org>, <rui.zhang@...el.com>, <lukasz.luba@....com>,
	<b.galvani@...il.com>, <mmkurbanov@...rdevices.ru>
CC: <linux-i2c@...r.kernel.org>, <linux-spi@...r.kernel.org>,
	<linux-pm@...r.kernel.org>, <devicetree@...r.kernel.org>,
	<linux-amlogic@...ts.infradead.org>, <linux-arm-kernel@...ts.infradead.org>,
	<linux-kernel@...r.kernel.org>, <kernel@...utedevices.com>, George Stark
	<gnstark@...utedevices.com>
Subject: [PATCH 3/4] dt-bindings: thermal: amlogic,thermal: add power-domains

On newer SoCs, the thermal hardware can require a power domain to
operate so add corresponding property as optional by default and as
required for Meson A1 due to it's temperature sensor has dedicated
power domain.

Signed-off-by: George Stark <gnstark@...utedevices.com>
---
 .../bindings/thermal/amlogic,thermal.yaml          | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
index 01fccdfc4178..5c9147e3b734 100644
--- a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
@@ -30,6 +30,9 @@ properties:
   clocks:
     maxItems: 1
 
+  power-domains:
+    maxItems: 1
+
   amlogic,ao-secure:
     description: phandle to the ao-secure syscon
     $ref: /schemas/types.yaml#/definitions/phandle
@@ -44,6 +47,17 @@ required:
   - clocks
   - amlogic,ao-secure
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - amlogic,a1-cpu-thermal
+    then:
+      required:
+        - power-domains
+
 additionalProperties: false
 
 examples:
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ