From patchwork Thu Oct 13 09:48:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 1996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp179674wrs; Thu, 13 Oct 2022 02:49:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4fCTQZl5ClKbrgYN0r6CcY2S5TKSa21fVXWR1lRgUMXZkzU5uEeUjMfRUx7tiQwtbKtPbD X-Received: by 2002:a63:fb01:0:b0:440:6e9b:1e86 with SMTP id o1-20020a63fb01000000b004406e9b1e86mr28521352pgh.26.1665654564043; Thu, 13 Oct 2022 02:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665654564; cv=none; d=google.com; s=arc-20160816; b=EPkrJ2U+tiDnx21/qfBI0iQtbWjI9tHBny136Bl7qe3QWJ5HlIoEM405eEkdofbuHq wQVKG5rDWWl/iqXUxwAmt0wt2B3fTnHsF9veY7ZSzfDRa9r5v9u5AWVX601JkAsd4ezo 9prPLLZ+ZdCB/w89/F1vaFuqmV7vK05nlucga5bHScUMN+IHj9m695tgev/bCh/cuvS7 mEzw2bUpAmr1R4mVUyRvCNfZ021YVcR8GWGXSZNtfVnq4l9Rez6XZALmgOpW1PcTQIem sSX7CDFib6kZgkuY0Og+6iv9zVsdqsGkh3Dav+7xzcf6EnsCPYVqj722JwoPLaGl9NIE +MZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WTl7droVltKnXDsBoh0Qb/I0hZgySD4P2UJsI4/mO+E=; b=MXQXgyU/7W2zrSIIAxkD2e75ddGwZpqSrSBS7al53Z7jZf9jNYo7X3z2VmuFtidy0f eXApmxv3yariksP9D1EH5f2yvEl6m+cX3m7utqCpRQcTSj/YkC4tA3JP0kY4spOMQaVW nJjsE3vT7nndsZlh7jGg9wXepYquhPlw2Eib71GN225rxhUa/F/uYKIPxnQDVLamKy6P CfMi/rii/IlGPvgQzx4lABwmfwi/BlYdooVcHikVwwzJtIEaLN70pNHubggILTrG1Zw8 lCuEdMUV48U8aBSIgSwTu56g+gSjQOMLtuZk/QLXHtseGfmzsA746M5s/HKGOO0+51GA PyFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=VcpBLoI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a056a000cce00b00562fc008395si17917600pfv.341.2022.10.13.02.49.11; Thu, 13 Oct 2022 02:49:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=VcpBLoI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbiJMJst (ORCPT + 99 others); Thu, 13 Oct 2022 05:48:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbiJMJsq (ORCPT ); Thu, 13 Oct 2022 05:48:46 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A76B9104537 for ; Thu, 13 Oct 2022 02:48:45 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id sc25so2659111ejc.12 for ; Thu, 13 Oct 2022 02:48:45 -0700 (PDT) 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=WTl7droVltKnXDsBoh0Qb/I0hZgySD4P2UJsI4/mO+E=; b=VcpBLoI2GZnFQeZ10p9jSVjI2ovSK6WLIhf1cD/WeK7vjOV+a/mi71G01oUTaDG9HY uX7LtYmSLtlo2i//Hg6RU7kr8zHq1eU+MJsqay6jTioLELp6ZxRV7DqHkKc5m0euXO/G ecXpb9faVxqjgYixI4uv7vejFPx9VqGQXV+JtBFegC52xyECEveXo4FVY0iA4qKp8HvY PQ8Ylyq4N90WcGHwYTSuIeBMWZpy/wYTc5T5KvmjKKHymXbajALB1/ZFCKI90+4ZlzE4 l695xSHTF7Gm4tF3itf1YfVpy+TiyI/V2TA9fOeL6vpPspVqc366VkF8pyMpGKJoW968 F9WA== 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=WTl7droVltKnXDsBoh0Qb/I0hZgySD4P2UJsI4/mO+E=; b=UV80gCUNF/t9gv0FYFgDoHLG++8cByqMncx9TqV0WDe8J6C52Lg1VIp6ItTA7i49QJ YT7cfyee5XB6/WvNqwcpuTuV48UWJ+L1N7mH2WY2vBcxpKCqeOVV3oBnIbg/j9pJYFVL dpwopNaE8sWPro59ZHl/aa7nWF2/P0r4a5uDvqRbgdg2Rg9NODI9gtYWJNhv6Rpy7uNz A5+gcGq1IkGdw4Tx5ORbXs0iALD1d8rOlDU0xHkz+SWmFLRu+8QmMNUFZcYyrpuCfyeB 6AxqESP1iTat7jOGrtK6DT9zhAIdVDFkclpli6yRPzix5xXEFbDxEq8rAm7pLV4fwzJ5 9Xag== X-Gm-Message-State: ACrzQf2pOpy5AIyunyhfEuRkabMPcXXeCtFbW39JMG27mz5GgiJXlXvP GfdOP6gZ0M/T+g+yktcsZLeiTg== X-Received: by 2002:a17:906:7945:b0:73b:e605:f31 with SMTP id l5-20020a170906794500b0073be6050f31mr25947222ejo.129.1665654524224; Thu, 13 Oct 2022 02:48:44 -0700 (PDT) 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 e14-20020a170906080e00b0078d25e0f74bsm2685353ejd.46.2022.10.13.02.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 02:48:43 -0700 (PDT) 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 v4 1/3] dt-bindings: hwmon: fan: Add fan binding to schema Date: Thu, 13 Oct 2022 11:48:36 +0200 Message-Id: <20221013094838.1529153-2-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221013094838.1529153-1-Naresh.Solanki@9elements.com> References: <20221013094838.1529153-1-Naresh.Solanki@9elements.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746565400088453050?= X-GMAIL-MSGID: =?utf-8?q?1746565400088453050?= 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 base-commit: 0cf46a653bdae56683fece68dc50340f7520e6c4 diff --git a/Documentation/devicetree/bindings/hwmon/fan-common.yaml b/Documentation/devicetree/bindings/hwmon/fan-common.yaml new file mode 100644 index 000000000000..224f5013c93f --- /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 + + pulses-per-revolution: + description: + The number of pulse from fan sensor per revolution. + $ref: /schemas/types.yaml#/definitions/uint32 + + default-rpm: + description: + Target RPM the fan should be configured during driver probe. + $ref: /schemas/types.yaml#/definitions/uint32 + + pwm-frequency: + description: + PWM frequency for fan in Hertz(Hz). + $ref: /schemas/types.yaml#/definitions/uint32 + + pwm-polarity-inverse: + description: + Inverse PWM polarity for fan. + type: boolean + + label: + description: + Optional fan label + + fan-supply: + description: + Power supply for fan. + +additionalProperties: true + +...