Commit d3e815ea authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding
Browse files

ARM: tegra: acer-a500: Add Embedded Controller



This patch adds device-tree node for the Embedded Controller which is
found on the Picasso board. The Embedded Controller itself is ENE KB930,
it provides functions like battery-gauge/LED/GPIO/etc and it uses firmware
that is specifically customized for the Acer A500 device.

Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent dd2a21d0
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -512,6 +512,16 @@ panel_ddc: i2c@1 {
			reg = <1>;
			#address-cells = <1>;
			#size-cells = <0>;

			embedded-controller@58 {
				compatible = "acer,a500-iconia-ec", "ene,kb930";
				reg = <0x58>;

				system-power-controller;

				monitored-battery = <&bat1010>;
				power-supplies = <&mains>;
			};
		};
	};

@@ -794,6 +804,13 @@ backlight: backlight {
		default-brightness-level = <20>;
	};

	bat1010: battery-2s1p {
		compatible = "simple-battery";
		charge-full-design-microamp-hours = <3260000>;
		energy-full-design-microwatt-hours = <24000000>;
		operating-range-celsius = <0 40>;
	};

	/* PMIC has a built-in 32KHz oscillator which is used by PMC */
	clk32k_in: clock@0 {
		compatible = "fixed-clock";