difos/target/linux/bcm27xx/patches-6.12/950-0283-dt-bindings-hwmon-add-microchip-emc2305.yaml-dt-bind.patch
Álvaro Fernández Rojas 8f9e91ad03 bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-05-21 11:32:18 +02:00

81 lines
2.1 KiB
Diff

From b459b9677a63b8dad69b0b532ebb27e9dae3333e Mon Sep 17 00:00:00 2001
From: Michael Shych <michaelsh@nvidia.com>
Date: Sat, 30 Apr 2022 14:49:04 +0300
Subject: [PATCH] dt-bindings: hwmon: add microchip,emc2305.yaml dt binding
description.
Submitted to linux-hwmon mailing list at
https://patchwork.kernel.org/project/linux-hwmon/patch/20220430114905.53448-3-michaelsh@nvidia.com/
Add basic description of emc2305 driver device tree binding.
Signed-off-by: Michael Shych <michaelsh@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
dtbindings: Fixup microchip,emc2305.yaml bindings
The bindings submitted to mainline had some issues, so fix them up.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
.../bindings/hwmon/microchip,emc2305.yaml | 54 +++++++++++++++++++
1 file changed, 54 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,emc2305.yaml
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/microchip,emc2305.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/emc2305.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip EMC230[1|2|3|5] RPM-based PWM Fan Speed Controller
+
+properties:
+ compatible:
+ enum:
+ - microchip,emc2305
+ - microchip,emc2301
+ emc2305,pwm-min:
+ description:
+ Min pwm of emc2305
+ maxItems: 1
+ emc2305,pwm-max:
+ description:
+ Max pwm of emc2305
+ maxItems: 1
+ emc2305,pwm-channel:
+ description:
+ Max number of pwm channels
+ maxItems: 1
+ emcs205,max-state:
+ description:
+ maxItems: 1
+ emc2305,cooling-levels:
+ description:
+ Quantity of cooling level state.
+ maxItems: 1
+
+required:
+ - compatible
+
+optional:
+ - emc2305,min-pwm
+ - emc2305,max-pwm
+ - emc2305,pwm-channels
+ - emc2305,cooling-levels
+
+additionalProperties: false
+
+examples:
+ - |
+ fan {
+ compatible = "microchip,emc2305";
+ emc2305,pwm-min = <0>;
+ emc2305,pwm-max = <255>;
+ emc2305,pwm-channel = <5>
+ emc2305,cooling-levels = <10>;
+ };