Commit 8f271fe1 authored by Gopi Krishna Menon's avatar Gopi Krishna Menon Committed by Daniel Lezcano
Browse files

dt-bindings: thermal: st,thermal-spear1340: convert to dtschema

parent da2c4f33
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
* SPEAr Thermal

Required properties:
- compatible : "st,thermal-spear1340"
- reg : Address range of the thermal registers
- st,thermal-flags: flags used to enable thermal sensor

Example:

	thermal@fc000000 {
		compatible = "st,thermal-spear1340";
		reg = <0xfc000000 0x1000>;
		st,thermal-flags = <0x7000>;
	};
+36 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/thermal/st,thermal-spear1340.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: SPEAr Thermal Sensor

maintainers:
  - Viresh Kumar <vireshk@kernel.org>

properties:
  compatible:
    const: st,thermal-spear1340

  reg:
    maxItems: 1

  st,thermal-flags:
    description: flags used to enable thermal sensor
    $ref: /schemas/types.yaml#/definitions/uint32

required:
  - compatible
  - reg
  - st,thermal-flags

additionalProperties: false

examples:
  - |
    thermal@fc000000 {
      compatible = "st,thermal-spear1340";
      reg = <0xfc000000 0x1000>;
      st,thermal-flags = <0x7000>;
    };