Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1602846ybt; Sat, 20 Jun 2020 15:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBhwwWPWrsVrI63f11UO26B+M1ioyNchnFE4zElUy3WGAf1/oxBHpuoiAhYyJKfhOF1j56 X-Received: by 2002:a50:da83:: with SMTP id q3mr10140308edj.325.1592693260161; Sat, 20 Jun 2020 15:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592693260; cv=none; d=google.com; s=arc-20160816; b=0AAe38kRKnQkIq928KTq7Ir6jqh1g31QbHUHS3a4DEVlNekU128Dfs+Wh4LzLeSFhN 6jhHa4CIqlpa9ryYOXUJKvFiU07cQuZECw0nQ4ta+ILBQk6zhjxWl2al43pqJiziMyXa cZ0BhBOE34Zh1JoAKpj62vqE4r3iFX00IZtmNpM6xcWgiVM+w6Lb9eq3NkAMNsdv1RVB iu5FAZzQ9EHEeWt96oKXYjmubzdtNHqkIZqitZFMuWODn3az66PdFezMDqzLug1Iv8hb U53IBb8EZGEHqNdG32I61yXn2+FjOYD8z7FJRfzULqmD0Ry/WECC7GBm5O+86HZPXOeu +Gmw== 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=qAvxnaOljZKDnE1UQNbSuXrJj3ATEGOHW/0BBg68cDo=; b=rr30Y+rEGYT5AjNZNO2kZ7E0ZgMNPVXN0vCXx/TVQ0d+2P0cB+Y+JyDUkUDKzb9tJo G3daLateQRt7U6qMkIdUfdaeH+UR6e8DbQb+c1SL53ew2xTYOp938Gq1mW6EOLYfBoDS 2+SpTZtMGDW6OK1M7fw08Oj3DpBT+2M7Ck+YvayR0pN1rkalt5LLkREcZcTAkFGyPRLt UePwjO6DxRdn7gmQTFmQ89uM84lGG1M51C77Eed2DmM5pHxbVRG5+Sniw3eDoXTDimQI dx4nFw//PJVGCTWrsaSCY/ZHy5/LWWpJfRu+nQFKi/lS8cYtVvWAYgWLtpKGtYHYER07 KzNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=FvOk5311; 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 w15si6773432edf.467.2020.06.20.15.47.17; Sat, 20 Jun 2020 15:47:40 -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=FvOk5311; 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 S1728902AbgFTWne (ORCPT + 99 others); Sat, 20 Jun 2020 18:43:34 -0400 Received: from mout.gmx.net ([212.227.17.22]:43239 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728708AbgFTWna (ORCPT ); Sat, 20 Jun 2020 18:43:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1592692949; bh=fz9iJvS+IQADqhRoQ/zH92wyy5n1baG4XghBRzehFfE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FvOk5311cG2uyND48G8BKzya2u9fpnzaHK8YmvdJKt7M50kVWwih9sHWwaiS8M3sP BtgpHe3JYcdxUgJFJre3O6v7nIwP2dOB7jUccvNBJwfy5UfqbDmKfa04CvoyXDhH6P 7zDO9qrru+atBrEKXrG6QomzjJG03XZj3te4JOE4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.186]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MIx3C-1jSVUF2jyU-00KNXT; Sun, 21 Jun 2020 00:42:29 +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 Subject: [RFC PATCH 03/10] dt-bindings: mfd: Add binding for Netronix's embedded controller Date: Sun, 21 Jun 2020 00:42:14 +0200 Message-Id: <20200620224222.1312520-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200620224222.1312520-1-j.neuschaefer@gmx.net> References: <20200620224222.1312520-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:QskTcHILhGvocIQPvfd8FUOVQFGG/i9pz7IBgR13JIg2w4J5Spj zrU3wG1ZFT6FxWvc0CbTK0QAWqyc7FSbsTspi1g6jgJSJXPbILQ+pCY46jXupZggraGL8iV Rk7sUAPsGFeqgYHzkkEhQlrzu2z2aTn9MM+dYYhYIcaanJTQ/BG4Q71Nqo5cuZYC6A17THV I1j1Nb56pjLV5QKAV6+gQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0: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XWOgRxIOwRfJVFqINXgnqymozObNFFFQ5yUnhiiyhdwNU/F4opc9lxxPt1q5Z nxDuMP6e6qRkjU2QwdI9fNmhkVxeGu5bF9yxrfuvYMJkt4wQHbm+nuvCjAYG92JC86F8bwH3C v6A4EaLyXoaBXo+1ES5jqSJeiPZQ3kZ9tU1qIHkY9njfZcN1oWzyf6+h3rAjfKigCjNyxDWLN 7x7HZkTLOWToUzmip 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-- .../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.27.0