Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp569057pxk; Thu, 24 Sep 2020 12:29:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCd/WfSPkSduAoWZQZZK+aV69QI7xAsq6uMSTmQ88UIMM4yQfGnATISW5E7kR5XIw16sg8 X-Received: by 2002:a50:ee10:: with SMTP id g16mr404260eds.258.1600975761294; Thu, 24 Sep 2020 12:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600975761; cv=none; d=google.com; s=arc-20160816; b=p7MUtAk+uaVPvdhWrOeBZ/fu3j5a1hTlDgrklcAxLcGi3OlLLKNrQWNeHMHCfx2p3m ai6iDyMtT7j8pp7nsRKADB7rZ11Os9+5Fd0PbHP30Ni6w4fVot5hYF6OwLjRUT49Ty7Y 6jBQZ2MjaB/qz4n+RTduzjwoG+zkVs6gYf9/CpuNQotBYKG7+pE0ccqT7bRpnyv44aDf +zG1K1MRcbCidXtqu0/rcHMPXapGhCAbFDckfTifAhgnh6tj0BJyJ5vmvTjv1PFD2hSh RY2jZ90XbdkIab6n8LLWYtMPGyfCO6qjsHRmj/aeld2eBaWJydu9h9xP5/IZt3OVzKh1 O9Ng== 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=qOGNK5qbDtk8jJiAwiY6iOLE6iyL/NbriUMSSFgqBlo=; b=AHAtBVfTpCxhJX6FJd3JUQG7nF64SLCH26GERZITP0Bx+Yxp3Lx3lVWoKdm1yjf3Y+ uwX8f/bp95NgD/3gfq26r9a0FcI9525sdZubKJNgEBc75jDVZfaFpH5Oq8tM/57PT6M9 iSN8N6/IYZKKEsjiNFwboSHlLDaSMNfFI2zDrEr88IuPnrQY9SbBY3rQ7a+X8rqZsBJd Ye6sSPSZqJ85IXjXieDUjgDi2lEd0FiPuGHOfsBmFZ0H6JkdzTZ44AgV55HRARbHZ3al r34WIeKQ7RXxS56MADwMZJdcMGoaltsB5+blF5sRKH2hGg6FI61boJVRlv7vY5vvwJ5g tVyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hsSQXm0O; 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 cb11si239652edb.361.2020.09.24.12.28.57; Thu, 24 Sep 2020 12:29:21 -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=@gmx.net header.s=badeba3b8450 header.b=hsSQXm0O; 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 S1728818AbgIXT0o (ORCPT + 99 others); Thu, 24 Sep 2020 15:26:44 -0400 Received: from mout.gmx.net ([212.227.17.22]:33321 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgIXT0o (ORCPT ); Thu, 24 Sep 2020 15:26:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600975562; bh=4RP05Hxu1YyFCz7+DB7beV9x6hPWq+uDXnTvDpZdY6k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hsSQXm0Oq6VogrOInBGGpvEucQOQbIzFwmoIikwUhl9YtvqFJWXti50juDgryWoxv mdbUNoIbQib3Zb/qBt2P6tnjB/NTqCZ73ecMj5LmyMVFeeeAb5EqT+PGljsKcHQEvc Gwcyt6wUf5OaDgrfAIoJlKlQNQQ9iF6IFn6Ew9SI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.195.151]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Md6Mt-1kvPez1hel-00aA47; Thu, 24 Sep 2020 21:26:02 +0200 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Alessandro Zummo , Alexandre Belloni , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Sam Ravnborg , Linus Walleij , Heiko Stuebner , Stephan Gerhold , Lubomir Rintel , Mark Brown , allen , Mauro Carvalho Chehab , "David S. Miller" , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Heiko Stuebner , Josua Mayer , Andreas Kemnade , Arnd Bergmann , Daniel Palmer , Andy Shevchenko Subject: [PATCH v3 2/7] dt-bindings: mfd: Add binding for Netronix embedded controller Date: Thu, 24 Sep 2020 21:24:50 +0200 Message-Id: <20200924192455.2484005-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200924192455.2484005-1-j.neuschaefer@gmx.net> References: <20200924192455.2484005-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:qIN3ysCKzKV3E5U7e0Zvu94KfThse5uh01FGd94RNlLA36XGY8l Y1vNOclGmg8YGMfZO+sqyDVFSUMVMtr2YvjymT4L8q2Xk/YfkQoNim4gVLoCPVe2CXuZZS1 h4YG4QJsgnwg/wR0GoJ4PM1kFUyfAq9cy4P5UTu8eFV4SzakZ7JCPjDt3sfIayylmpAnlEl 1ptuHS16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2kYuv0u3/aKyp0N0reVdW7frfHIXh+LiDEowctzYT3w9/l7bhlb9F FRYAdrzngHBVxOcnRhqw3tjiJ0dVOHJQNx/Uvrj1SvLBOropC3Ib5Bl36s/wcakT1oRzcCikL bENd1KNA1xCi7axkN8JAuR23JGyAHDslFfuWho4xOcgJxZBCEBjIuxQbeRZTS2ZMhCkXiUVsC FeQPqlc49m9S4Q7LBqCxGuuUVQ8n63fb9GfEStPB9StFA09GuN32TesFa81l+ULgMrgz8/aw1 3uZsePsDv1RezN1dCSk0NmYpM+Q9/17jdJ2craw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino), and is typically implemented as a TI MSP430 microcontroller. It controls different functions of the system, such as power on/off, RTC, PWM for the backlight. The exact functionality provided can vary between boards. Signed-off-by: Jonathan Neusch=C3=A4fer =2D-- v3: - Remove binding in text form patch description again - Add additionalProperties: false - Remove interrupt-controller property from example - Merge pwm/rtc nodes into main node v2: - https://lore.kernel.org/lkml/20200905133230.1014581-3-j.neuschaefer@gmx.= net/ - Add the plaintext DT binding for comparison =2D-- .../bindings/mfd/netronix,ntxec.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/netronix,ntxec.y= aml diff --git a/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml b/D= ocumentation/devicetree/bindings/mfd/netronix,ntxec.yaml new file mode 100644 index 0000000000000..59a630025f52f =2D-- /dev/null +++ b/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/netronix,ntxec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Netronix Embedded Controller + +maintainers: + - Jonathan Neusch=C3=A4fer + +description: | + This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolin= o), and + is typically implemented as a TI MSP430 microcontroller. + +properties: + compatible: + const: netronix,ntxec + + reg: + items: + - description: The I2C address of the EC + + system-power-controller: + type: boolean + description: See Documentation/devicetree/bindings/power/power-contro= ller.txt + + interrupts: + minItems: 1 + description: + The EC can signal interrupts via a GPIO line + + "#pwm-cells": + const: 2 + description: | + Number of cells in a PWM specifier. + + The following PWM channels are supported: + - 0: The PWM channel controlled by registers 0xa1-0xa7 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + ec: embedded-controller@43 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_ntxec>; + + compatible =3D "netronix,ntxec"; + reg =3D <0x43>; + system-power-controller; + interrupt-parent =3D <&gpio4>; + interrupts =3D <11 IRQ_TYPE_EDGE_FALLING>; + #pwm-cells =3D <2>; + }; + }; + + backlight { + compatible =3D "pwm-backlight"; + pwms =3D <&ec 0 50000>; + power-supply =3D <&backlight_regulator>; + }; + + backlight_regulator: regulator-dummy { + compatible =3D "regulator-fixed"; + regulator-name =3D "backlight"; + }; =2D- 2.28.0