ARM: dts: imx50-kobo-aura: Add Netronix embedded controller
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sun, 24 Jan 2021 21:41:27 +0000 (22:41 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 Mar 2021 04:22:16 +0000 (12:22 +0800)
Enable the Netronix EC on the Kobo Aura ebook reader.

Several features are still missing:
 - Frontlight/backlight. The vendor kernel drives the frontlight LED
   using the PWM output of the EC and an additional boost pin that
   increases the brightness.
 - Battery monitoring
 - Interrupts for RTC alarm and low-battery events

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx50-kobo-aura.dts

index 97cfd970fe742528938b01434109ba710ad0f6e4..82ce8c43be867efac9f21dd3c73b6960896e099d 100644 (file)
        pinctrl-0 = <&pinctrl_i2c3>;
        status = "okay";
 
-       /* TODO: embedded controller at 0x43 */
+       embedded-controller@43 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_ec>;
+               compatible = "netronix,ntxec";
+               reg = <0x43>;
+               system-power-controller;
+               interrupts-extended = <&gpio4 11 IRQ_TYPE_EDGE_FALLING>;
+               #pwm-cells = <2>;
+       };
 };
 
 &iomuxc {
+       pinctrl_ec: ecgrp {
+               fsl,pins = <
+                       MX50_PAD_CSPI_SS0__GPIO4_11             0x0     /* INT */
+               >;
+       };
+
        pinctrl_gpiokeys: gpiokeysgrp {
                fsl,pins = <
                        MX50_PAD_CSPI_MISO__GPIO4_10            0x0