Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp307834pxu; Sun, 25 Oct 2020 01:23:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN+ccq7DLMjFiHZHN8iVDF5/6gfrbn27NrP5okSv8sv4Yxsj0s0fPCPAeE4mc2MxIgpUHz X-Received: by 2002:a17:906:5593:: with SMTP id y19mr10160398ejp.369.1603614197778; Sun, 25 Oct 2020 01:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603614197; cv=none; d=google.com; s=arc-20160816; b=ztyEILShgPRQ0Xr4obJcPrdrqjF8lEByEfjzOmGT8Q/7rv+jGENj/xkWSKleLZ1gg8 MU/6c8ufUcSE3HXc4eGszrHcwsH3xAMcVnMtKfNYXb8hecCR1WGvw/Bxqtrq87bjqNPz oVsWx6B743TTyMFb5ln5+J0FnePv9v/t7N06MzAv7Fh+7ji7Nwsd7btDwyIIAj1mSB6D fZ4OD5xOn/fc+hO4O5HImCp+IFqez7bi9xf1SM1sM+sd+zdD0SKW3JQvInz+GfOyLedK mjNUyZZ0STHUfYYGUD3m935u93f+g7xDzpP0byQTGFh4xy7p0vr/zQlDvkdr/AbCsOEn JrEQ== 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=aH5lWPXQedbYF5LSN3GmPneR24giitxJlZaOPlHn8X4=; b=T/89mMn82JO192WjeWpFow4LZ6JR8wpksSyjHgTc0pbQS/lRHtd/9I4VzKssMrE5H+ C/jvVFV7lo5aOyJ/XgETY06kTjl5wLebdqf5GZwrhTpuXvmByVHVY0A0aMgl3d/2Y8zf OL4JSOYStIC5aSydtrZUJvYCQUfMzv+y2JbKBdToghUAW5ffFOT84l9cY2EIGpKio5aM Gwn8cDKg6pMyTF6c3gMI0H0xBDrMELFXa1WXtSK0T9oaLLVmEbaacNxAVAxDM+myKqx1 epULvO/oJ5bH6ZRl87fzKDQXdaQjXNDsVlHiy1WaxJo06EYCw7rqRJTT6c9FQUrcZCD5 NUOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=xn4SrHuf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x4si4897620edq.65.2020.10.25.01.22.55; Sun, 25 Oct 2020 01:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=xn4SrHuf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765979AbgJYA7g (ORCPT + 99 others); Sat, 24 Oct 2020 20:59:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765966AbgJYA7f (ORCPT ); Sat, 24 Oct 2020 20:59:35 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D34C0613D0 for ; Sat, 24 Oct 2020 17:59:35 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id d6so3541815ejb.11 for ; Sat, 24 Oct 2020 17:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aH5lWPXQedbYF5LSN3GmPneR24giitxJlZaOPlHn8X4=; b=xn4SrHufyIdk3ZW8fhVbEwY/Cfexu7XrDPDOsJs0k8hA+mzZMMAh1p9OlrTcqIKpuc HyikUU4gKtRsD3NFH5Cs1/C5Q2f5839USzyoESq3Eu+srs/r37rAOFy/u2rQIO2/bUMY aGikyb+iYKIiuzQv5PpB+rfPaqIqVDYcHdEaS3KxV0cBcoVD5VkFEgQOD/hmUmRHxd1F mP1pZdrPMrdPEQtOhT0H8gXLYn0PR/6TL7mLml+KPsH4N5eABgfuTjivGo+B2Ff2IrIc 2bMk7lwjntIgu+maPYKOVcbEeNm8GqPKcjM2LrDlAQgLxD8i4ZOPBh+mzwlaCeuN4gd+ h9qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aH5lWPXQedbYF5LSN3GmPneR24giitxJlZaOPlHn8X4=; b=E9TUwlhkq3e73dL8hdDR8SeSnrLYiZqrqOc8yK1/GrhboeTY/WKlOZ5HLVl6cVQerG 4+FcqSsnF9D46ePpwSU5e5bW0c+bvyjoSOLTbfI+EunR/TeOseLpAZjfUvHsb3/TC1ax C5tFkhGBMz1ontE1sb1NWvzNzBjaKlogggk9WwhmI5FRHHFStaCbom+wnqniZR/GLDir aDAE7hiiwQVnp7Ww3k+Rl7fIIPvVGjcJ1ov6F7NKvtObEvg5MdkzkSDFBJpDP4jgNO1j Y0n/jJbbc2PFL4QyJ/QJCgnz6o+Z/LAz5ktSqWw3aW9htmj0wzzafujrI4606Vr6ARcJ ZIcw== X-Gm-Message-State: AOAM532oNEnzZ9X+qnLYWyqDXo4jQcziwySTzPvvNGyfPcHk0UsK16YJ Ls7li+00M03Ifh5I69iq1/rQYNKpqjMbcNubjeW20NP817waRFQqcil+hHNO4RrE+OwpgbLM1BQ SRot8TmCQthJIy3cQUj1v1pQUmsQMbW0ehCOWQNl74loFXn3+n5SHbIJLy26AK5THLNz6YwyrIj WXUPQfv5I= X-Received: by 2002:a17:906:3bd7:: with SMTP id v23mr9414507ejf.100.1603587572043; Sat, 24 Oct 2020 17:59:32 -0700 (PDT) Received: from localhost.localdomain ([2a00:ee2:4b0d:3001:fbc5:498b:ed6d:cfac]) by smtp.gmail.com with ESMTPSA id q5sm2797274edt.79.2020.10.24.17.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Oct 2020 17:59:31 -0700 (PDT) From: Luka Kovacic To: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org Cc: lee.jones@linaro.org, pavel@ucw.cz, dmurphy@ti.com, robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net, marek.behun@nic.cz, luka.perkov@sartura.hr, andy.shevchenko@gmail.com, robert.marko@sartura.hr, Luka Kovacic Subject: [PATCH v7 1/6] dt-bindings: Add IEI vendor prefix and IEI WT61P803 PUZZLE driver bindings Date: Sun, 25 Oct 2020 02:59:11 +0200 Message-Id: <20201025005916.64747-2-luka.kovacic@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201025005916.64747-1-luka.kovacic@sartura.hr> References: <20201025005916.64747-1-luka.kovacic@sartura.hr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the IEI WT61P803 PUZZLE Device Tree bindings for MFD, HWMON and LED drivers. A new vendor prefix is also added accordingly for IEI Integration Corp. Signed-off-by: Luka Kovacic Cc: Luka Perkov Cc: Robert Marko --- .../hwmon/iei,wt61p803-puzzle-hwmon.yaml | 53 ++++++++++++ .../leds/iei,wt61p803-puzzle-leds.yaml | 45 ++++++++++ .../bindings/mfd/iei,wt61p803-puzzle.yaml | 83 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 4 files changed, 183 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml create mode 100644 Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml create mode 100644 Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml diff --git a/Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml b/Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml new file mode 100644 index 000000000000..c24a24e90495 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/iei,wt61p803-puzzle-hwmon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IEI WT61P803 PUZZLE MCU HWMON module from IEI Integration Corp. + +maintainers: + - Luka Kovacic + +description: | + This module is a part of the IEI WT61P803 PUZZLE MFD device. For more details + see Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml. + + The HWMON module is a sub-node of the MCU node in the Device Tree. + +properties: + compatible: + const: iei,wt61p803-puzzle-hwmon + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^fan-group@[0-1]$": + type: object + properties: + reg: + minimum: 0 + maximum: 1 + description: + Fan group ID + + cooling-levels: + minItems: 1 + maxItems: 255 + description: + Cooling levels for the fans (PWM value mapping) + description: | + Properties for each fan group. + required: + - reg + +required: + - compatible + - "#address-cells" + - "#size-cells" + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml b/Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml new file mode 100644 index 000000000000..bbf264c13189 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/iei,wt61p803-puzzle-leds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IEI WT61P803 PUZZLE MCU LED module from IEI Integration Corp. + +maintainers: + - Luka Kovacic + +description: | + This module is a part of the IEI WT61P803 PUZZLE MFD device. For more details + see Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml. + + The LED module is a sub-node of the MCU node in the Device Tree. + +properties: + compatible: + const: iei,wt61p803-puzzle-leds + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + "led@0": + type: object + $ref: common.yaml + description: | + Properties for a single LED. + properties: + reg: + description: + Index of the LED. Only one LED is supported at the moment. + minimum: 0 + maximum: 0 + +required: + - compatible + - "#address-cells" + - "#size-cells" + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml b/Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml new file mode 100644 index 000000000000..64264c664c48 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/iei,wt61p803-puzzle.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IEI WT61P803 PUZZLE MCU from IEI Integration Corp. + +maintainers: + - Luka Kovacic + +description: | + IEI WT61P803 PUZZLE MCU is embedded in some IEI Puzzle series boards. + It's used for controlling system power states, fans, LEDs and temperature + sensors. + + For Device Tree bindings of other sub-modules (HWMON, LEDs) refer to the + binding documents under the respective subsystem directories. + +properties: + compatible: + const: iei,wt61p803-puzzle + + current-speed: + description: + Serial bus speed in bps + maxItems: 1 + + enable-beep: true + + hwmon: + $ref: ../hwmon/iei,wt61p803-puzzle-hwmon.yaml + + leds: + $ref: ../leds/iei,wt61p803-puzzle-leds.yaml + +required: + - compatible + - current-speed + +additionalProperties: false + +examples: + - | + #include + serial { + status = "okay"; + mcu { + compatible = "iei,wt61p803-puzzle"; + current-speed = <115200>; + enable-beep; + + leds { + compatible = "iei,wt61p803-puzzle-leds"; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_POWER; + color = ; + }; + }; + + hwmon { + compatible = "iei,wt61p803-puzzle-hwmon"; + #address-cells = <1>; + #size-cells = <0>; + + fan-group@0 { + #cooling-cells = <2>; + reg = <0x00>; + cooling-levels = <64 102 170 230 250>; + }; + + fan-group@1 { + #cooling-cells = <2>; + reg = <0x01>; + cooling-levels = <64 102 170 230 250>; + }; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 63996ab03521..5f2595f0b2ad 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -467,6 +467,8 @@ patternProperties: description: IC Plus Corp. "^idt,.*": description: Integrated Device Technologies, Inc. + "^iei,.*": + description: IEI Integration Corp. "^ifi,.*": description: Ingenieurburo Fur Ic-Technologie (I/F/I) "^ilitek,.*": -- 2.26.2