0109-dt-bindings-hwmon-Add-starfive-jh71x0-temp.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. From a0f2b48b5433d2fbcf87e4edf52e5cc26d0c29c8 Mon Sep 17 00:00:00 2001
  2. From: Emil Renner Berthing <[email protected]>
  3. Date: Tue, 21 Mar 2023 10:26:43 +0800
  4. Subject: [PATCH 109/122] dt-bindings: hwmon: Add starfive,jh71x0-temp
  5. Add bindings for the temperature sensor on the StarFive JH7100 and
  6. JH7110 SoCs.
  7. Signed-off-by: Emil Renner Berthing <[email protected]>
  8. Signed-off-by: Hal Feng <[email protected]>
  9. Reviewed-by: Rob Herring <[email protected]>
  10. ---
  11. .../bindings/hwmon/starfive,jh71x0-temp.yaml | 70 +++++++++++++++++++
  12. 1 file changed, 70 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
  16. @@ -0,0 +1,70 @@
  17. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  18. +%YAML 1.2
  19. +---
  20. +$id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml#
  21. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  22. +
  23. +title: StarFive JH71x0 Temperature Sensor
  24. +
  25. +maintainers:
  26. + - Emil Renner Berthing <[email protected]>
  27. +
  28. +description: |
  29. + StarFive Technology Co. JH71x0 embedded temperature sensor
  30. +
  31. +properties:
  32. + compatible:
  33. + enum:
  34. + - starfive,jh7100-temp
  35. + - starfive,jh7110-temp
  36. +
  37. + reg:
  38. + maxItems: 1
  39. +
  40. + clocks:
  41. + minItems: 2
  42. + maxItems: 2
  43. +
  44. + clock-names:
  45. + items:
  46. + - const: "sense"
  47. + - const: "bus"
  48. +
  49. + '#thermal-sensor-cells':
  50. + const: 0
  51. +
  52. + resets:
  53. + minItems: 2
  54. + maxItems: 2
  55. +
  56. + reset-names:
  57. + items:
  58. + - const: "sense"
  59. + - const: "bus"
  60. +
  61. +required:
  62. + - compatible
  63. + - reg
  64. + - clocks
  65. + - clock-names
  66. + - resets
  67. + - reset-names
  68. +
  69. +additionalProperties: false
  70. +
  71. +examples:
  72. + - |
  73. + #include <dt-bindings/clock/starfive-jh7100.h>
  74. + #include <dt-bindings/reset/starfive-jh7100.h>
  75. +
  76. + temperature-sensor@124a0000 {
  77. + compatible = "starfive,jh7100-temp";
  78. + reg = <0x124a0000 0x10000>;
  79. + clocks = <&clkgen JH7100_CLK_TEMP_SENSE>,
  80. + <&clkgen JH7100_CLK_TEMP_APB>;
  81. + clock-names = "sense", "bus";
  82. + #thermal-sensor-cells = <0>;
  83. + resets = <&rstgen JH7100_RSTN_TEMP_SENSE>,
  84. + <&rstgen JH7100_RSTN_TEMP_APB>;
  85. + reset-names = "sense", "bus";
  86. + };