Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Amlogic Thermal |
| 8 | |
| 9 | maintainers: |
| 10 | - Guillaume La Roque <glaroque@baylibre.com> |
| 11 | |
| 12 | description: Binding for Amlogic Thermal |
| 13 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 14 | $ref: thermal-sensor.yaml# |
| 15 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 16 | properties: |
| 17 | compatible: |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 18 | oneOf: |
| 19 | - items: |
| 20 | - enum: |
| 21 | - amlogic,g12a-cpu-thermal |
| 22 | - amlogic,g12a-ddr-thermal |
| 23 | - const: amlogic,g12a-thermal |
| 24 | - const: amlogic,a1-cpu-thermal |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 25 | |
| 26 | reg: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | interrupts: |
| 30 | maxItems: 1 |
| 31 | |
| 32 | clocks: |
| 33 | maxItems: 1 |
| 34 | |
| 35 | amlogic,ao-secure: |
| 36 | description: phandle to the ao-secure syscon |
| 37 | $ref: /schemas/types.yaml#/definitions/phandle |
| 38 | |
| 39 | '#thermal-sensor-cells': |
| 40 | const: 0 |
| 41 | |
| 42 | required: |
| 43 | - compatible |
| 44 | - reg |
| 45 | - interrupts |
| 46 | - clocks |
| 47 | - amlogic,ao-secure |
| 48 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 49 | unevaluatedProperties: false |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 50 | |
| 51 | examples: |
| 52 | - | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 53 | temperature-sensor@ff634800 { |
| 54 | compatible = "amlogic,g12a-cpu-thermal", |
| 55 | "amlogic,g12a-thermal"; |
| 56 | reg = <0xff634800 0x50>; |
| 57 | interrupts = <0x0 0x24 0x0>; |
| 58 | clocks = <&clk 164>; |
| 59 | #thermal-sensor-cells = <0>; |
| 60 | amlogic,ao-secure = <&sec_AO>; |
| 61 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 62 | ... |