Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3830685pxv; Mon, 5 Jul 2021 06:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAHzoMHS8eMYAYaB0zIreaA74dg9lqaWhx7v2qsY9PO7dcwDcmgMgqKNeZu12AiwuFkoPh X-Received: by 2002:a17:907:7203:: with SMTP id dr3mr13347375ejc.52.1625492985116; Mon, 05 Jul 2021 06:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625492985; cv=none; d=google.com; s=arc-20160816; b=yW3aCLhoqsAw190UDggLhDpurqDOfw/JAmGy1S79GfPHxzOFy2CDHR7ZMBAnAaeOUW hHB+em3awu4mJtTIOB700AiZwIMijkEe8j8rW8bGAelP/LXDJE2lUYewMWb76iaHsZzt 2P4pfbuezjByIOivBhvvsPMSImD+kqXjxRiuAns28CV4Y9ZJTbaLrL0cSEp0tB9Tpayi +BNGHtxJD+xc1boh9vHGK4I/oWdYuuxj/nvNGGsoEU88XOk7CwrazzsxU71i3q2GqAGw +MMF0HerHN8FyMPJtfEmoYwr1LeGrd7hqe/OnrKiYY9AoaRloRNy/R3FZP8UmHJuVEpC +seQ== 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=PDXNeIlgEF5rXgCgnEfoqWrZcJ4/okqK6cSz5M/BpB8=; b=IrnHlNkcU8hqErBVyQsml7muX8GMZznI0Mq0fE4mEi+MpguFyFkjNefNdhX8igx/3Y PJtYfg7nLNCOu1AHeX9BWuOJjhSQVfnIusCkPJx46otnmoNkD1KYxeEi2yNd7/z+a7u9 88P8920KDysTQM6Pm/Iv/XPOvyWwi3Y1PvvLc/aeSeFdTveHMy+FonkFen3FkL6kzCYg mOJParQfhTvfQD08zI1OGSXs8pSrDDGglvhpWhxZ2PIjHS1BtXZN0Y+okdW8pMFnxxMX 8ce4fHSlA6mPd6LmwvX0AUT9CQMZaJb8z6owp7EDlj4XrxfncrWXROyOqPn0J0Etsp04 jkFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b="jHrIAnF/"; 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 z19si11017462ejl.200.2021.07.05.06.49.20; Mon, 05 Jul 2021 06:49:45 -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="jHrIAnF/"; 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 S231446AbhGENuy (ORCPT + 99 others); Mon, 5 Jul 2021 09:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231330AbhGENus (ORCPT ); Mon, 5 Jul 2021 09:50:48 -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 AACCCC061762 for ; Mon, 5 Jul 2021 06:48:10 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id he13so10490442ejc.11 for ; Mon, 05 Jul 2021 06:48:10 -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=PDXNeIlgEF5rXgCgnEfoqWrZcJ4/okqK6cSz5M/BpB8=; b=jHrIAnF/KGMolmPQdhTKxMr5MV60qeaudoLFm198lqf+3OB0gpysMsPIDmDYXbws5j SpIv5Cf84SJKBaMJSB5yiI379IZMU5UvVDJZrpGFRcBvYz3Z/cWA9IniYKv9LKWBXaZ2 WMssZC+yvGb9tD3Os3nwmn7/GSzAh307s1rAXziMhB86b4SRHxlh+c1rtdmM3B7q8RAi LWJ5ZwWmi3SfeQornhcs6Y9mQjyDBc+39DuJ1oMpgODyejzGdCR4BpMuC08AmL8s3QmC UKfgztbOUnzSFalQ9S9YM6lbUPBRfB8tpaLbLxKqaPdLtppVs4v2oJKqU7jU9yWnrnU4 oAzw== 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=PDXNeIlgEF5rXgCgnEfoqWrZcJ4/okqK6cSz5M/BpB8=; b=aLUyMBWryhK2reW7/Wv2Dqx95kgU5tKJyvL64NP8dH8wqWpcjBaDrMmDnlldiuzFPl vaT/rHLuQY6mjah57zLSvV8v3IsUf7F21xRnETS/Psc82nJ54fFz4+shbxuL2aM75+s2 G+ZUjCj6cVcPcpf4VxgqSI+l6EiIVsR82R5SuW4vj6y9IaS1UC3ZtJqVvZ25bEWiPrpu EmrbYdRuoPl2ZNoKx0bHwk3CCGW02jf0z67EPFeo+EIy71R5QCJKo3iWj5c+ybge6PJM ElohwUTQHvZz2ogerUvyuwNhyZI3ksFrdpHqy4Wzljpz9Ur6MLxo7gwhdtav9KSWkGeB nAbg== X-Gm-Message-State: AOAM531XZ4mWV7V48x0LDB6C44jNBz0EiM7sPCHEErNrL9rsb6RNFSa8 TYgQLBrEhNVrRNaFPXwbkUpp9A== X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr14045009ejc.188.1625492889134; Mon, 05 Jul 2021 06:48:09 -0700 (PDT) Received: from localhost.localdomain ([89.18.44.40]) by smtp.gmail.com with ESMTPSA id cf29sm1557637edb.14.2021.07.05.06.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 06:48:08 -0700 (PDT) From: Pavo Banicevic To: linux-doc@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, geert+renesas@glider.be, Max.Merchel@tq-group.com, linux@rempel-privat.de, daniel@0x0f.com, shawnguo@kernel.org, sam@ravnborg.org, arnd@arndb.de, krzysztof.kozlowski@canonical.com, pavo.banicevic@sartura.hr, corbet@lwn.net, lee.jones@linaro.org, pavel@ucw.cz, robh+dt@kernel.org, linux@roeck-us.net, jdelvare@suse.com, goran.medic@sartura.hr, luka.perkov@sartura.hr, luka.kovacic@sartura.hr Cc: Robert Marko Subject: [PATCH v8 1/7] dt-bindings: Add IEI vendor prefix and IEI WT61P803 PUZZLE driver bindings Date: Mon, 5 Jul 2021 15:49:33 +0200 Message-Id: <20210705134939.28691-2-pavo.banicevic@sartura.hr> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210705134939.28691-1-pavo.banicevic@sartura.hr> References: <20210705134939.28691-1-pavo.banicevic@sartura.hr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luka Kovacic 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 Signed-off-by: Pavo Banicevic Cc: Luka Perkov Cc: Robert Marko --- .../hwmon/iei,wt61p803-puzzle-hwmon.yaml | 53 ++++++++++++ .../leds/iei,wt61p803-puzzle-leds.yaml | 44 ++++++++++ .../bindings/mfd/iei,wt61p803-puzzle.yaml | 82 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 4 files changed, 181 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..dc3e39aafd3e --- /dev/null +++ b/Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml @@ -0,0 +1,44 @@ +# 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. + const: 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..2452631505cc --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml @@ -0,0 +1,82 @@ +# 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 { + 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 b868cefc7c55..e02b6d6eb568 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -509,6 +509,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.31.1