1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*2eb4d8dcSEmmanuel Vadot%YAML 1.2 3*2eb4d8dcSEmmanuel Vadot--- 4*2eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/netronix,ntxec.yaml# 5*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*2eb4d8dcSEmmanuel Vadot 7*2eb4d8dcSEmmanuel Vadottitle: Netronix Embedded Controller 8*2eb4d8dcSEmmanuel Vadot 9*2eb4d8dcSEmmanuel Vadotmaintainers: 10*2eb4d8dcSEmmanuel Vadot - Jonathan Neuschäfer <j.neuschaefer@gmx.net> 11*2eb4d8dcSEmmanuel Vadot 12*2eb4d8dcSEmmanuel Vadotdescription: | 13*2eb4d8dcSEmmanuel Vadot This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino), and 14*2eb4d8dcSEmmanuel Vadot is typically implemented as a TI MSP430 microcontroller. 15*2eb4d8dcSEmmanuel Vadot 16*2eb4d8dcSEmmanuel Vadotproperties: 17*2eb4d8dcSEmmanuel Vadot compatible: 18*2eb4d8dcSEmmanuel Vadot const: netronix,ntxec 19*2eb4d8dcSEmmanuel Vadot 20*2eb4d8dcSEmmanuel Vadot reg: 21*2eb4d8dcSEmmanuel Vadot items: 22*2eb4d8dcSEmmanuel Vadot - description: The I2C address of the EC 23*2eb4d8dcSEmmanuel Vadot 24*2eb4d8dcSEmmanuel Vadot system-power-controller: 25*2eb4d8dcSEmmanuel Vadot type: boolean 26*2eb4d8dcSEmmanuel Vadot description: See Documentation/devicetree/bindings/power/power-controller.txt 27*2eb4d8dcSEmmanuel Vadot 28*2eb4d8dcSEmmanuel Vadot interrupts: 29*2eb4d8dcSEmmanuel Vadot minItems: 1 30*2eb4d8dcSEmmanuel Vadot description: 31*2eb4d8dcSEmmanuel Vadot The EC can signal interrupts via a GPIO line 32*2eb4d8dcSEmmanuel Vadot 33*2eb4d8dcSEmmanuel Vadot "#pwm-cells": 34*2eb4d8dcSEmmanuel Vadot const: 2 35*2eb4d8dcSEmmanuel Vadot description: | 36*2eb4d8dcSEmmanuel Vadot Number of cells in a PWM specifier. 37*2eb4d8dcSEmmanuel Vadot 38*2eb4d8dcSEmmanuel Vadot The following PWM channels are supported: 39*2eb4d8dcSEmmanuel Vadot - 0: The PWM channel controlled by registers 0xa1-0xa7 40*2eb4d8dcSEmmanuel Vadot 41*2eb4d8dcSEmmanuel Vadotrequired: 42*2eb4d8dcSEmmanuel Vadot - compatible 43*2eb4d8dcSEmmanuel Vadot - reg 44*2eb4d8dcSEmmanuel Vadot 45*2eb4d8dcSEmmanuel VadotadditionalProperties: false 46*2eb4d8dcSEmmanuel Vadot 47*2eb4d8dcSEmmanuel Vadotexamples: 48*2eb4d8dcSEmmanuel Vadot - | 49*2eb4d8dcSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 50*2eb4d8dcSEmmanuel Vadot i2c { 51*2eb4d8dcSEmmanuel Vadot #address-cells = <1>; 52*2eb4d8dcSEmmanuel Vadot #size-cells = <0>; 53*2eb4d8dcSEmmanuel Vadot 54*2eb4d8dcSEmmanuel Vadot ec: embedded-controller@43 { 55*2eb4d8dcSEmmanuel Vadot pinctrl-names = "default"; 56*2eb4d8dcSEmmanuel Vadot pinctrl-0 = <&pinctrl_ntxec>; 57*2eb4d8dcSEmmanuel Vadot 58*2eb4d8dcSEmmanuel Vadot compatible = "netronix,ntxec"; 59*2eb4d8dcSEmmanuel Vadot reg = <0x43>; 60*2eb4d8dcSEmmanuel Vadot system-power-controller; 61*2eb4d8dcSEmmanuel Vadot interrupt-parent = <&gpio4>; 62*2eb4d8dcSEmmanuel Vadot interrupts = <11 IRQ_TYPE_EDGE_FALLING>; 63*2eb4d8dcSEmmanuel Vadot #pwm-cells = <2>; 64*2eb4d8dcSEmmanuel Vadot }; 65*2eb4d8dcSEmmanuel Vadot }; 66*2eb4d8dcSEmmanuel Vadot 67*2eb4d8dcSEmmanuel Vadot backlight { 68*2eb4d8dcSEmmanuel Vadot compatible = "pwm-backlight"; 69*2eb4d8dcSEmmanuel Vadot pwms = <&ec 0 50000>; 70*2eb4d8dcSEmmanuel Vadot power-supply = <&backlight_regulator>; 71*2eb4d8dcSEmmanuel Vadot }; 72*2eb4d8dcSEmmanuel Vadot 73*2eb4d8dcSEmmanuel Vadot backlight_regulator: regulator-dummy { 74*2eb4d8dcSEmmanuel Vadot compatible = "regulator-fixed"; 75*2eb4d8dcSEmmanuel Vadot regulator-name = "backlight"; 76*2eb4d8dcSEmmanuel Vadot }; 77