From patchwork Wed Mar 20 17:04:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13598023 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1138DBA45; Wed, 20 Mar 2024 17:05:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710954315; cv=none; b=c9Tbgqi1M9D8b6kAIj6Cg5Q3lzTlhBAQjZ5nMMYEQi5pac+NnCB5pOWavaxRaDQ1Zq2az3sciMbK+DrwAOXPhaI8gdlNb7rT6+fCP6bBGwMLdAIcoLkq/5URGtzaMc1IUDx0NVHbb/8hPP4CV+Lu7nCOQkmMdXS/pT7F8HhKOt8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710954315; c=relaxed/simple; bh=TjTcKKa669OKcPhVLe09wrmQ2cA8xaDIfGZNCpgTFng=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VBDBAFTFg9wZhAIMCpd+ho9aqs/mBTDEpSsyp41u9xfJl0A3r0CnJYc1hsTlKN7lSjHHfXuAjsn+Lc3TBcrgfW+DQRB8oFWCB0vGwR8PI7BsMbeMPTfr6eKvGF6adA8wQO3lG0QWtWXrbbcb9TRB8x1sUiP7IUQEOezhs7ZSN0w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=J9M7xCZH; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J9M7xCZH" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-513edc88d3cso127264e87.0; Wed, 20 Mar 2024 10:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710954311; x=1711559111; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BJIJVaZ1AJVUf194+oMOU0Iy8m7xvdZB41+GUQbshIo=; b=J9M7xCZHe3orBjKzrIBbbYlJ/jAxQwXQjQiDaq/N25qnCOQHzBAFXibebDM0fQ9JBE pn7l0QUDBHbmhbjMqYlUPwlpSjlgiSLaQs5eqMi/BOkg6HFfZmX0HviegK5F5SwKtZ/q mDSUWU7UqHay62t7ON13ZNtADlW9YjGo5qarXI+AhIG9LEiwRMqMo5CUjustH/nKVFcx lwscMHy3J7hPLuomAAZaX7UlOeJ5USxtu0lGbUvORQ2tXyFi8OBbMi69UG1v4X/XRWCU Sn90pWJsZ3kgzYZxplm9hkHIwWsUHqCPcN4F5xuemXQQd2dE8+hBoJDvxYTB1UOpYUyq OFTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710954311; x=1711559111; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BJIJVaZ1AJVUf194+oMOU0Iy8m7xvdZB41+GUQbshIo=; b=Vs4Rb0QUzGcvl9x1lF89tz4jNPGHdxJR2Z/U6MdESSjcMWAvRY/lTyWL27alC070hJ dBjOiPVWtO59r7//HLPm9rKekdiwjelWCKea4WReIiXgx4abDzLWT4YBF+3VihRoE3eQ QoUoeMyMG32E9uqxnfrSPnAEIU5Tb/41UywkMP1xjhXr8mLM/qaZ+rs0R7w3iSpZexVO r0chJz8QJAFzZaiHsQDi7nxc9d4HwcZMziJMfilAL1vvpyFf1Ka/chR0GX/vEw9pjb74 8uPGaMNgeGklueICOEFBLthXY7DCMeQSY5eVvM8S9pL8M1QImifo3dM9KQmIt6L127e2 yRvA== X-Forwarded-Encrypted: i=1; AJvYcCV4sV55qDRHOxp57L08di5NLdumvB4yW4t5U/mUYBstWva/9EDgQqtbIqCkF+tLLn4hVV1vz5HEGUN1EYMuYdNbTmLYNYtrKsLV7ArEPIfapzQ4cY2ZPJ/CrrO4KYUzSKGsS1oVbs11FQ== X-Gm-Message-State: AOJu0Yyiz8omt6TuTBpzR62k+wlcmbmfHQVWlfN3l1sRJJVkZ/nXDH4L 1ixmXSK0gQ9KVrvjLVqCimteI5QB4RbAPOfUMCjYLnDn+VYDZMd8t0EsdOvlYrTLiQ== X-Google-Smtp-Source: AGHT+IGugjMJM1VIOuWhOA3U805kpwztRjqATv4iCECfL2CUiXOSrAhdeQbZ63iRqUNVdDkzigwT8Q== X-Received: by 2002:ac2:4db1:0:b0:513:b8a2:8d83 with SMTP id h17-20020ac24db1000000b00513b8a28d83mr13334340lfe.3.1710954311486; Wed, 20 Mar 2024 10:05:11 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-3c5a-7cb4-e12c-8223.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:3c5a:7cb4:e12c:8223]) by smtp.gmail.com with ESMTPSA id af3-20020a170906998300b00a469604c464sm5999019ejc.160.2024.03.20.10.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 10:05:10 -0700 (PDT) From: Javier Carrasco Date: Wed, 20 Mar 2024 18:04:57 +0100 Subject: [PATCH 1/2] dt-bindings: hwmon: lm87: convert to dtschema Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240320-hwmon_yaml-v1-1-a349ca21ccab@gmail.com> References: <20240320-hwmon_yaml-v1-0-a349ca21ccab@gmail.com> In-Reply-To: <20240320-hwmon_yaml-v1-0-a349ca21ccab@gmail.com> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , peiyu li <579lpy@gmail.com> Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1710954308; l=3573; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=TjTcKKa669OKcPhVLe09wrmQ2cA8xaDIfGZNCpgTFng=; b=H3Uv7ycEoEDXVWMGKrmDVVnnLbAQN0+FrQ8HGa1eaZyuibMwUcTSj3q68yGFXU0Mev0NR8WBm V/D+/wDeZz/B4tpn4AtWTCHAC9EqIjlMSbiF26T/YIN57stYrkmuS3E X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= Convert existing bindings to dtschema to support validation. This is a straightforward conversion with no new properties. Signed-off-by: Javier Carrasco Reviewed-by: Conor Dooley --- Documentation/devicetree/bindings/hwmon/lm87.txt | 30 ---------- .../devicetree/bindings/hwmon/ti,lm87.yaml | 69 ++++++++++++++++++++++ 2 files changed, 69 insertions(+), 30 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/lm87.txt b/Documentation/devicetree/bindings/hwmon/lm87.txt deleted file mode 100644 index 758ff398b67b..000000000000 --- a/Documentation/devicetree/bindings/hwmon/lm87.txt +++ /dev/null @@ -1,30 +0,0 @@ -*LM87 hwmon sensor. - -Required properties: -- compatible: Should be - "ti,lm87" - -- reg: I2C address - -optional properties: -- has-temp3: This configures pins 18 and 19 to be used as a second - remote temperature sensing channel. By default the pins - are configured as voltage input pins in0 and in5. - -- has-in6: When set, pin 5 is configured to be used as voltage input - in6. Otherwise the pin is set as FAN1 input. - -- has-in7: When set, pin 6 is configured to be used as voltage input - in7. Otherwise the pin is set as FAN2 input. - -- vcc-supply: a Phandle for the regulator supplying power, can be - configured to measure 5.0V power supply. Default is 3.3V. - -Example: - -lm87@2e { - compatible = "ti,lm87"; - reg = <0x2e>; - has-temp3; - vcc-supply = <®_5v0>; -}; diff --git a/Documentation/devicetree/bindings/hwmon/ti,lm87.yaml b/Documentation/devicetree/bindings/hwmon/ti,lm87.yaml new file mode 100644 index 000000000000..f553235a7321 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,lm87.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/hwmon/ti,lm87.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments LM87 Hardware Monitor + +maintainers: + - Javier Carrasco + +description: | + The LM87 is a serial interface system hardware monitor + with remote diode temperature sensing. + + Datasheets: + https://www.ti.com/product/LM87 + +properties: + compatible: + const: ti,lm87 + + reg: + maxItems: 1 + + has-temp3: + $ref: /schemas/types.yaml#/definitions/flag + description: + This configures pins 18 and 19 to be used as a second + remote temperature sensing channel. By default the pins + are configured as voltage input pins in0 and in5. + + has-in6: + $ref: /schemas/types.yaml#/definitions/flag + description: + When set, pin 5 is configured to be used as voltage input + in6. Otherwise the pin is set as FAN1 input. + + has-in7: + $ref: /schemas/types.yaml#/definitions/flag + description: + When set, pin 6 is configured to be used as voltage input + in7. Otherwise the pin is set as FAN2 input. + + vcc-supply: + description: + Regulator supplying power, can be configured to measure + 5.0V power supply. Default is 3.3V. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hwmon@2e { + compatible = "ti,lm87"; + reg = <0x2e>; + has-temp3; + vcc-supply = <®_5v0>; + }; + }; From patchwork Wed Mar 20 17:04:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13598024 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CDA86A010; Wed, 20 Mar 2024 17:05:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710954317; cv=none; b=ZWMDdbiRRIsxYw6I3wG30YRfYJAmgsgrCgfWbtOTUg6uYq3vb8VM3LQfDj6kSer2n8ygnAdqE5VjgSDkNli1xhj3NTPq98uP9cHLlEepMNn19TqFM5719xDzkvpTl31EMvyDmdNzDz/1AIb98aMbQHJIMtbovOTI0EKcLFP/hhY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710954317; c=relaxed/simple; bh=IVOoaXTdRIOWRHqJ/jIyAtqfWU/uE5l47TaaKfbqYKI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SfAZIbLeK82fWqoQZ+W5BwNTmTJuQ5PrpbwN0dzJoDdANc5JyaoFrDgDCqkF2BJS5QD92MSmMls+OZtMtNLOkAbuZua53lP4GRvv3nS1gNQE975KDOxHKMyU37g7B46P6xlCYQq64rOlBQfA4XU2707kWgw/qcIBQtI/qDLBqu8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BaJtZkEq; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BaJtZkEq" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a3ddc13bbb3so214027766b.0; Wed, 20 Mar 2024 10:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710954313; x=1711559113; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=63t1vQpfuivnFuqcHL3Yoh9775vvNNfjouC2X81BrxQ=; b=BaJtZkEq/igw9WzmiOsKqT3mAOs3j8PAdIJ5IN0wuEWG9MKG4dEiZNFxR5cs1L1aqi 3Lc24sM6dFqW2zKcrl9y9BSTI3i5JnDp5vgT4dtabftIbES/h0Q6dEB2F50l4eLWG0t5 ngLfR0Nv1A8jNzlTUD2dfwef8ByHRxv9EAB0kP8x5ps41nesLzaMx2r+iup6aZFPqG/V +eNYXx6PzdjCP0VXez0uAshC7eKOQGF8urytxh8wB6W7EN3V29D1jaRKoPhbQPXPK9UF 3sr8M66A3mW2Z6/pp30xp+FWd/x4UwMVSPpT6W6bh0DjR+7yv+hcxcOq5g4x3i0Xcq88 8KLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710954313; x=1711559113; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=63t1vQpfuivnFuqcHL3Yoh9775vvNNfjouC2X81BrxQ=; b=ZSU6KppWO0JUWkCyfGpKsJGMMyxdVl2+/1sn81yvy97pUI4GWNTZMBUilwuPI37UMg C8O+dKAX0hovBmf6qdM99TzGUs2mF++Z0iUQfMod+FXo1Q3In5Kouf/cvCj//meB6xsT nocBPhVHcsqrj7Umr1e8YVk7PvaGBr1CTxwbTMLQs2hAoY2wdvGmpXQCcIfv3TlXC4hu fI1LtIYh1a2tb0CgnfpYLlC4Uy+4MyY1zjTjSLQwy0wsXcT4jAAZGmBOMxBr67dtnpW4 EhBSCvj0rIv79FlkrfX9kagPlclr67EQqm8N/YJSf6dFObWJrFp+7HOnaKuW8Sdpaj4X UQgg== X-Forwarded-Encrypted: i=1; AJvYcCVs/wXSrkzU+x56I2S3mLddofw86giyDLHxRQTQJ2qU7InObEFTe/u+0rnu+ZhYvBB55qYPMj+vySF7Sf/IuGmqdCEFN9f28U6rSBG51xHNtghhru9zqftWcqEf+UkPcL6DPO6xu9SueA== X-Gm-Message-State: AOJu0Yz1rfP5+Z0Bj4eK8qF0/crmAt9oI9y6BzZfteQr8rWpCzUtCcDR 09FnBdMXRf7GZtFjF+aG3sDYPiOKEqUhBwtV77LiwHWjSJPd3z2l8qDmfgW9+DRcqQ== X-Google-Smtp-Source: AGHT+IE4FWycV2u2wFkM4cGuD4UzYQE5/Y6WQqubh+YUUn5OYTqJkVFL1BtiMmruqGLMTIVmHwSlrw== X-Received: by 2002:a17:906:29c7:b0:a46:ebe6:742e with SMTP id y7-20020a17090629c700b00a46ebe6742emr221889eje.23.1710954313107; Wed, 20 Mar 2024 10:05:13 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-3c5a-7cb4-e12c-8223.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:3c5a:7cb4:e12c:8223]) by smtp.gmail.com with ESMTPSA id af3-20020a170906998300b00a469604c464sm5999019ejc.160.2024.03.20.10.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 10:05:12 -0700 (PDT) From: Javier Carrasco Date: Wed, 20 Mar 2024 18:04:58 +0100 Subject: [PATCH 2/2] dt-bindings: hwmon: max6650: convert to dtschema Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240320-hwmon_yaml-v1-2-a349ca21ccab@gmail.com> References: <20240320-hwmon_yaml-v1-0-a349ca21ccab@gmail.com> In-Reply-To: <20240320-hwmon_yaml-v1-0-a349ca21ccab@gmail.com> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , peiyu li <579lpy@gmail.com> Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1710954308; l=3820; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=IVOoaXTdRIOWRHqJ/jIyAtqfWU/uE5l47TaaKfbqYKI=; b=V7vq8d/EncKKvGUZA67pruDqB8f6EAafYYYMgu8uLkGoKdUYl/VkJy4DTsyCPmurzBcCN0/h2 EDuS4Kil6/zCaScx8t2C6N63qmVCKsmwBf79qGEM11s4OKI3N2auuYD X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= Convert existing bindings to dtschema to support validation. This is a straightforward conversion with no new properties. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/hwmon/max6650.txt | 28 --------- .../devicetree/bindings/hwmon/maxim,max6650.yaml | 68 ++++++++++++++++++++++ 2 files changed, 68 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/max6650.txt b/Documentation/devicetree/bindings/hwmon/max6650.txt deleted file mode 100644 index f6bd87d8e284..000000000000 --- a/Documentation/devicetree/bindings/hwmon/max6650.txt +++ /dev/null @@ -1,28 +0,0 @@ -Bindings for MAX6651 and MAX6650 I2C fan controllers - -Reference: -[1] https://datasheets.maximintegrated.com/en/ds/MAX6650-MAX6651.pdf - -Required properties: -- compatible : One of "maxim,max6650" or "maxim,max6651" -- reg : I2C address, one of 0x1b, 0x1f, 0x4b, 0x48. - -Optional properties, default is to retain the chip's current setting: -- maxim,fan-microvolt : The supply voltage of the fan, either 5000000 uV or - 12000000 uV. -- maxim,fan-prescale : Pre-scaling value, as per datasheet [1]. Lower values - allow more fine-grained control of slower fans. - Valid: 1, 2, 4, 8, 16. -- maxim,fan-target-rpm: Initial requested fan rotation speed. If specified, the - driver selects closed-loop mode and the requested speed. - This ensures the fan is already running before userspace - takes over. - -Example: - fan-max6650: max6650@1b { - reg = <0x1b>; - compatible = "maxim,max6650"; - maxim,fan-microvolt = <12000000>; - maxim,fan-prescale = <4>; - maxim,fan-target-rpm = <1200>; - }; diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max6650.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max6650.yaml new file mode 100644 index 000000000000..1b33b5fb606d --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/maxim,max6650.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/hwmon/maxim,max6650.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX6650 and MAX6651 I2C Fan Controllers + +maintainers: + - Javier Carrasco + +description: | + The MAX6650 and MAX6651 regulate and monitor the speed + of 5VDC/12VDC burshless fans with built-in tachometers. + + Datasheets: + https://datasheets.maximintegrated.com/en/ds/MAX6650-MAX6651.pdf + +properties: + compatible: + enum: + - maxim,max6650 + - maxim,max6651 + + reg: + maxItems: 1 + + maxim,fan-microvolt: + description: + The supply voltage of the fan, either 5000000 uV or + 12000000 uV. + + maxim,fan-prescale: + description: + Pre-scaling value, as per datasheet. Lower values + allow more fine-grained control of slower fans. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 4, 8, 16] + + maxim,fan-target-rpm: + description: + Initial requested fan rotation speed. If specified, the + driver selects closed-loop mode and the requested speed. + This ensures the fan is already running before userspace + takes over. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan-controller@1b { + compatible = "maxim,max6650"; + reg = <0x1b>; + maxim,fan-microvolt = <12000000>; + maxim,fan-prescale = <4>; + maxim,fan-target-rpm = <1200>; + }; + };