Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2043921pxk; Sat, 5 Sep 2020 06:44:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTssPGSeRlvyHpOYgFYu05OPuyXFnKvMQ7HSd9q56JNtfYqiOea6Pj6AZnEdukYue/0JU6 X-Received: by 2002:a17:906:8c8:: with SMTP id o8mr12374965eje.91.1599313445749; Sat, 05 Sep 2020 06:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599313445; cv=none; d=google.com; s=arc-20160816; b=Giw/RspghahU1S7qNrSVThdlDDaCKWR9jrF2Ubh5MrAkZZIhHEk3d1t/hA/mZRTEt4 NNu+i7kAKl0rFnmtuOW9637TtM6t+z4/tWkwAZ/99mbii+4br0A+jqrUuJ/IbhfHQOzL 3jrWawkvXR+V48w855KLFcItk7kxMNrUuhVG32BOQXFetIVpjIX9GKvQutbl8w8qjTjw 1x3Dcht1pxlQNBWGWPJDjTHFSiDnpFWF7V1dd1jRmJmlbB2eYe0FIm+Nq+m1YWwqw2uk CleYaAWa5izE1VBWOlMzilDOCUiH+yofMpwtrUy12+jsOEOow3jQPCRKNVGeXqU9fQoM 5jYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fiZLVUbzmS8TzkaqE2tUFyUpj0mITu5dnN9LNTIQTnw=; b=AhtZx8nJCcSfQ/O4VPA8n2qY7zxdbwIeIx7Oh/T3UDZhKP625zt0WqGVmgkBVM8szY DNyEivA6VVVO/R2yu1rVdE2wU5Xiqmvy32NusxORu1sLWFHevgxkskf/HU5waXrVTjVK bpvyQa5z5qCsOGfebdxvblQceoL3cm1JQgvCtMd0SGIW7iQdqi3JR/SSWl4U6qfVtGDQ C1/3JS1S+rxnpPuT4ZSuXUsRmKssEvnvl2IqZ/y8vr6r3D5jpyKLj12LLxiCWulFGgY9 m73XkF4GJtcIfZuYPR4nGYu8fJ45DkrN0ILA2BbyNB+meuEDOH9t0AuVqsZpPRETCT4i hjeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dKmlOkci; 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 jp27si6058278ejb.668.2020.09.05.06.43.41; Sat, 05 Sep 2020 06:44:05 -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=dKmlOkci; 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 S1728662AbgIENjW (ORCPT + 99 others); Sat, 5 Sep 2020 09:39:22 -0400 Received: from mout.gmx.net ([212.227.17.22]:46561 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728473AbgIENer (ORCPT ); Sat, 5 Sep 2020 09:34:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599312831; bh=dUozDayDb3rFWMmvDYXmPqx3PtWjU/j5UWsQB+GibEk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=dKmlOkci75mW5whWMWqHXkc7HzP21sXxTAwPH9lCJ2HOB2zShwVgnEz2YhZhvRAHv 1SAYqEeAsxMZ4h/uouL90pLNPtbfEb4QynsxhJ3PagmiF634JkfHkuh/44xyavmpMv V6gsxA8eYEdfzUueOCVbROPIu21Y2uXCwO6oYpTc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.195.151]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MsHnm-1kXjrp1uaw-00toAA; Sat, 05 Sep 2020 15:33:51 +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 Subject: [PATCH v2 02/10] dt-bindings: mfd: Add binding for Netronix's embedded controller Date: Sat, 5 Sep 2020 15:32:22 +0200 Message-Id: <20200905133230.1014581-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905133230.1014581-1-j.neuschaefer@gmx.net> References: <20200905133230.1014581-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:KsJzyKCQwvS5BlRV0/850L0IdR6x4/dBrHBq7mSHZliTz8m15VR aOCXTl1oQJda9EIus66MyDVy9PVrf1df1zrgqUz4Zt/YXICmKRkNMGBR84B7sDEgDl3+yba WkmNDtiG8VAfYfRitvk0Sy/ovX8cTu8e+ETW3EFKXNE/zZXMgz5druzR5fVPayywYP3zLdG 6HHrIm1Ttfw/jGrYFXLYA== X-Spam-Flag: NO X-U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pU6QULA8xkxB ErDc2fEfKVoj5Sb0ab+Mz4qVwAxifJPH11aZE4JfE78Y/f6AY15y1+qCwr7qyMeW5K4ckut3l oSPtih6LwglvqwwnDSQ706lXum2bZ2nYADUro47ZvI7hAWs7rmm7BewYCHymrrB82MYWMAVIq PISxogXIVtjPC+WZ190wbn3+CS6vYeWf4IXVoS3OveYqkYJJYmCfe0Od5FUAHswMq1WTdbQ8u zkmSLVDrSBiE6P2Xsl5NALOXNr0yzhAN4HcoAlQ== Sender: linux-kernel-owner@vger.kernel.org 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-- v2: - Add the plaintext DT binding for comparison For reference, here is the binding in text form: Netronix Embedded Controller This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino= ), and is typically implemented as a TI MSP430 microcontroller. Required properties: - compatible: should be "netronix,ntxec" - reg: The I2C address of the EC Optional properties: - system-power-controller: See Documentation/devicetree/bindings/power/power-controller.txt - interrupts or interrupts-extended - interrupt-controller - #interrupt-cells: Should be 1 Optional subnodes: Sub-nodes are identified by their compatible string. compatible string | description --------------------------------|-------------------------------------- netronix,ntxec-pwm | PWM (used for backlight) netronix,ntxec-rtc | real time clock Example: &i2c3 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_i2c3>; status =3D "okay"; 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>; interrupt-controller; #interrupt-cells =3D <1>; pwm { compatible =3D "netronix,ntxec-pwm"; #pwm-cells =3D <2>; }; rtc { compatible =3D "netronix,ntxec-rtc"; interrupts-extended =3D <&ec 15>; interrupt-names =3D "alarm"; }; }; }; =2D-- .../bindings/mfd/netronix,ntxec.yaml | 57 +++++++++++++++++++ 1 file changed, 57 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..596df460f98eb =2D-- /dev/null +++ b/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml @@ -0,0 +1,57 @@ +# 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 + +required: + - compatible + - reg + +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>; + interrupt-controller; + #interrupt-cells =3D <1>; + }; + }; =2D- 2.28.0