0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/netronix,ntxec.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Netronix Embedded Controller
0008
0009 maintainers:
0010 - Jonathan Neuschäfer <j.neuschaefer@gmx.net>
0011
0012 description: |
0013 This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino), and
0014 is typically implemented as a TI MSP430 microcontroller.
0015
0016 properties:
0017 compatible:
0018 const: netronix,ntxec
0019
0020 reg:
0021 items:
0022 - description: The I2C address of the EC
0023
0024 system-power-controller:
0025 type: boolean
0026 description: See Documentation/devicetree/bindings/power/power-controller.txt
0027
0028 interrupts:
0029 minItems: 1
0030 description:
0031 The EC can signal interrupts via a GPIO line
0032
0033 "#pwm-cells":
0034 const: 2
0035 description: |
0036 Number of cells in a PWM specifier.
0037
0038 The following PWM channels are supported:
0039 - 0: The PWM channel controlled by registers 0xa1-0xa7
0040
0041 required:
0042 - compatible
0043 - reg
0044
0045 additionalProperties: false
0046
0047 examples:
0048 - |
0049 #include <dt-bindings/interrupt-controller/irq.h>
0050 i2c {
0051 #address-cells = <1>;
0052 #size-cells = <0>;
0053
0054 ec: embedded-controller@43 {
0055 pinctrl-names = "default";
0056 pinctrl-0 = <&pinctrl_ntxec>;
0057
0058 compatible = "netronix,ntxec";
0059 reg = <0x43>;
0060 system-power-controller;
0061 interrupt-parent = <&gpio4>;
0062 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
0063 #pwm-cells = <2>;
0064 };
0065 };
0066
0067 backlight {
0068 compatible = "pwm-backlight";
0069 pwms = <&ec 0 50000>;
0070 power-supply = <&backlight_regulator>;
0071 };
0072
0073 backlight_regulator: regulator-dummy {
0074 compatible = "regulator-fixed";
0075 regulator-name = "backlight";
0076 };