Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2550635pxx; Sun, 1 Nov 2020 01:51:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYhGpPyS8ypONMwh2jCunkmD5uKtlNt1l37WtQBmiinJwoLAIYMyv3qG2REFUEoWSNT0Sh X-Received: by 2002:aa7:d384:: with SMTP id x4mr11411647edq.105.1604224268532; Sun, 01 Nov 2020 01:51:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604224268; cv=none; d=google.com; s=arc-20160816; b=uEPjw1ACAxC+fQQ0Uwn+vj5vh2A6kn6zrxvLVg8ovRkuY22ir01J/F1NJiBxYFja7s YhwoZZXxComDO/VtD7xBGpLPcnVN4KNhS1huqjbjCKRi7uf9OFmBjow6o7m9XF0YcoGQ HZ2GzZBMzs0rPr36KEtGH7eie8U9UVHeGzlpLbsfzxQfTGmqfzrCt2TvqvL34m4iPdbk 3rfDBRGo6L1VtLNWHk9flxZEzqr5SjxKKz5XDo26mDhEBdbWIeSv/AYPDXOl8k2IuxgJ Rp0wAUBLFJzreQ0VtkMlPZv73YVXeaA8qTU3CZrnx7JK0jrQ4B9PxjbT59yWb7I2xD8c f8zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CT1iia8GuDUfamUVCy7ssmgKgChHFGwKBrm0tLv+r5Q=; b=Sv7N/GUWG0vQuKteLvbXAGO0S9tRmd2xwBIYRXkF8DCAK84PfYIbTXLJVB8KIouLh3 4AvlM9LblBYHPhvUgRPzI/79kR86q6FwaaJKMfTwvM3ZdkWRW/Bm8XNlV91TBhZBMyDe e5ZaCatknkOwKCH4ntQqUzjwkHkoT38saLpaxuyJlI073JBHfy3Am6JPW9CCYxdspYu6 3XOtYRWW/wK5mS82Lf8xT3M9AodcqO50FFDoUuXB8N3MktNHvmKdP48Z1eeUyopjEYuK Upg9kAFSy1UJeE3BiVXX+NB7UvfZonfEUxPH7wlZtjSdUoBfBnwZ3bmcwb6njbjO4yh6 k4lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=1M6PgKxp; 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 q1si8779581edc.21.2020.11.01.01.50.30; Sun, 01 Nov 2020 01:51:08 -0800 (PST) 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=1M6PgKxp; 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 S1726155AbgKAJpR (ORCPT + 99 others); Sun, 1 Nov 2020 04:45:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbgKAJpQ (ORCPT ); Sun, 1 Nov 2020 04:45:16 -0500 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC08DC0617A6 for ; Sun, 1 Nov 2020 01:45:15 -0800 (PST) Received: by mail-io1-xd41.google.com with SMTP id r9so11954849ioo.7 for ; Sun, 01 Nov 2020 01:45:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CT1iia8GuDUfamUVCy7ssmgKgChHFGwKBrm0tLv+r5Q=; b=1M6PgKxp0xPikUCo/jsKZbQb7QECX5qZ3UFB+GUt748KQ0sANbynwPCYeNuJNIj9gm nwPoXFN34aZ/tC5/9yGzrt0LNnOOt4VZ9wYBwH7hMNPUIzCXEVUcNSPkw1EehfncL7BX 5XF2nyoGXQTU3RW7B+CajcsEDYVa9fYaFmckuvyxqeQtrbrAgwCTuAV8Vm1m6MOngXG9 7ROQOhie2L6BTp3+/6H28NPqG8n8701qUFrM+tjcNnMYkhlD429uP4Ian/Cg6nM81rGt iDbvlG98TCAvbdRbe1RqthGORQufuxzVchaPE+yx7nM/BecnFWVMmx07TGeI2AxJmTE4 HLWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CT1iia8GuDUfamUVCy7ssmgKgChHFGwKBrm0tLv+r5Q=; b=XAS7kuFQYhJkU0I8JcQpZ8S9b1DqhZRoXwEXmLUbxt3BEI9wmhVfQv3EupN/4z4suG diTYHzL51gkQKgy/3BzmZsEiBPSd2tsacqA5/NSyun84M4G3VOYNrwqc3+pGw5EkEOhG IP9Q25KzyPMRy3J5hbCVVyRQb406f9NXvlmhsYY/dn6Sgw4YdwhHlPPU6eN4reGr06f6 f6WYVws7C2z3TevSNoVbypzxyZC7szYhs+2+NfIDHZZF7+4WCCiHCnycv6H10ZlbCFHw UzCFB5/LX5Qjj++hj9JEttf9eLYdgYIKiecJSAG1KUs21semworHQqoDtGYvtCTxA7xG uK5A== X-Gm-Message-State: AOAM532BY4cz650owd+fpwjIWMwbBvymJCjzTNJMUVlkStH8tolAeGaC jpEzYR2gTyUbvZfTWMCHe6ixRJ3000U8kcdMxlfvEg== X-Received: by 2002:a02:c64f:: with SMTP id k15mr2912474jan.75.1604223915254; Sun, 01 Nov 2020 01:45:15 -0800 (PST) MIME-Version: 1.0 References: <20201025005916.64747-1-luka.kovacic@sartura.hr> <20201025005916.64747-2-luka.kovacic@sartura.hr> <20201028151534.GA4034363@bogus> In-Reply-To: <20201028151534.GA4034363@bogus> From: Luka Kovacic Date: Sun, 1 Nov 2020 10:45:04 +0100 Message-ID: Subject: Re: [PATCH v7 1/6] dt-bindings: Add IEI vendor prefix and IEI WT61P803 PUZZLE driver bindings To: Rob Herring Cc: Linux Kernel Mailing List , linux-hwmon@vger.kernel.org, Linux LED Subsystem , devicetree , Lee Jones , Pavel Machek , Dan Murphy , Jean Delvare , Guenter Roeck , Marek Behun , Luka Perkov , Andy Shevchenko , Robert Marko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Rob, On Wed, Oct 28, 2020 at 4:15 PM Rob Herring wrote: > > On Sun, Oct 25, 2020 at 02:59:11AM +0200, Luka Kovacic wrote: > > 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 > > 'const: 0' instead. > > > + > > +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 > > Needs a vendor prefix, description, and type. > > > + > > + 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"; > > Don't show status in examples. > > > + 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 > > I'll fix these in a new patchset. Kind regards, Luka