From patchwork Tue Nov 29 16:11:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 13058794 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3FE0C4708C for ; Tue, 29 Nov 2022 16:11:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233743AbiK2QLu (ORCPT ); Tue, 29 Nov 2022 11:11:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234942AbiK2QLo (ORCPT ); Tue, 29 Nov 2022 11:11:44 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B504AF3E for ; Tue, 29 Nov 2022 08:11:43 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id 5so11300488wmo.1 for ; Tue, 29 Nov 2022 08:11:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H2vfd4NfyR8Z3X2IKQ3UwNsmTJuUT8Ra5+BTS98+T/M=; b=g8+XUIGNkJTWNQdsPmr+SbneZPTadvXo7j73gjOuKUkfZwkueu2u7AA00jqX826/Hn qNgG7J0oA/7d0uTzxVYbUbs+KbThTOW4YKstyUoDeX8dMKzvMhlc3obp5nUCzjtDuw2P mSl/dzFzl8tqvsF5eRnqeXfL/i/jsGUxMEM+UNY529EaAdD0MCkKlRZNGPQQEye0Qfus XSsUBFU740nnzguQ05Tl6PvahVSVq9YMgVj+O1Mu4jzE9arcm4tYNeoIAnVaIMTdoFcU 8n7JbZttKLXz2lPIT43AgU5vDZgiLv2CvWRPRAfVXLaTLo4WVj+vN4jD7pmERBo8NjO2 NagQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H2vfd4NfyR8Z3X2IKQ3UwNsmTJuUT8Ra5+BTS98+T/M=; b=5i2YWF+9+S0U7wF3PqNy63jO5Lcn+XV9eAOlq2KVLQa4I4Jmy2Sc/d7AW91mY2sUI1 ggMWJC/ATlj6n0Wp7LSdx1RxXWGtlA55QmUH2x4Rm24Hyydc3TOmz1dyD1fuZBKlHmZi oBwvyQq7Cx5Mb7p6ZT15so1HqBU9akxKLqMLrHOgguyP097H0o6IHvULc/o+6FP8w0wC ppZpij3L3dyzZ3WP1b84idsdFmuyPUHABNStnKNVxT/doVhQaBiNki3zY6vFBTtWobYi z77c6LzWRVxZ3tWPa3AZqHq79R2rO4seeEJhHWwK7WNW6JFxQARpk+q7aY2DlTBw9w1J Z9JA== X-Gm-Message-State: ANoB5pnRZplnxfo1kzRG3JCx8o7HJfvoG2LUxEfUDrSkMIlDMgFpDO3z bg3KA2rd7zDec6E8Za6ayDkmbg== X-Google-Smtp-Source: AA0mqf5tKEJz4bthMkhUAZ7s02kYzqS6x/DLf1zCSjX5wrLLL//XLjag3ptA2Y16+XswrWxwPB8axA== X-Received: by 2002:a05:600c:1603:b0:3cf:8279:c80c with SMTP id m3-20020a05600c160300b003cf8279c80cmr28508694wmn.169.1669738302208; Tue, 29 Nov 2022 08:11:42 -0800 (PST) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id n26-20020a05600c3b9a00b003c6b70a4d69sm3144522wms.42.2022.11.29.08.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 08:11:41 -0800 (PST) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: devicetree@vger.kernel.org, Guenter Roeck , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Naresh Solanki Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph , Naresh Solanki Subject: [PATCH v8 1/4] dt-bindings: hwmon: fan: Add Common Fan Properties Date: Tue, 29 Nov 2022 17:11:31 +0100 Message-Id: <20221129161134.2672474-2-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221129161134.2672474-1-Naresh.Solanki@9elements.com> References: <20221129161134.2672474-1-Naresh.Solanki@9elements.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add common fan properties bindings to a schema. Bindings for fan controllers can reference the common schema for the fan child nodes: patternProperties: "^fan@[0-2]": type: object $ref: fan-common.yaml# Signed-off-by: Naresh Solanki --- .../devicetree/bindings/hwmon/fan-common.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/fan-common.yaml diff --git a/Documentation/devicetree/bindings/hwmon/fan-common.yaml b/Documentation/devicetree/bindings/hwmon/fan-common.yaml new file mode 100644 index 000000000000..330fb1552821 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/fan-common.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/fan-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Fan Properties + +maintainers: + - Naresh Solanki + +properties: + max-rpm: + description: + Max RPM supported by fan. + $ref: /schemas/types.yaml#/definitions/uint32 + + min-rpm: + description: + Min RPM supported by fan. + $ref: /schemas/types.yaml#/definitions/uint32 + + pulses-per-revolution: + description: + The number of pulse from fan sensor per revolution. + $ref: /schemas/types.yaml#/definitions/uint32 + + target-rpm: + description: + Target RPM the fan should be configured during driver probe. + $ref: /schemas/types.yaml#/definitions/uint32 + + pwms: + maxItems: 1 + description: + PWM signal for the fan + + label: + description: + Optional fan label + + fan-supply: + description: + Power supply for fan. + +additionalProperties: true + +...