]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: tegra: chagall: Add embedded controller node
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 29 Apr 2025 06:18:02 +0000 (09:18 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 11 Jul 2025 15:11:18 +0000 (17:11 +0200)
Add embedded controller node to Pegatron Chagall device-tree.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Link: https://lore.kernel.org/r/20250429061803.9581-5-clamor95@gmail.com
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts

index 4012f9c799a8a3b1b309498c71626685c4914851..b7d0ebb766a6eca277adf85291542c094c03a33c 100644 (file)
                status = "okay";
                clock-frequency = <400000>;
 
+               embedded-controller@10 {
+                       compatible = "pegatron,chagall-ec";
+                       reg = <0x10>;
+
+                       monitored-battery = <&battery>;
+                       power-supplies = <&mains>;
+               };
+
                /* Wolfson Microelectronics WM8903 audio codec */
                wm8903: audio-codec@1a {
                        compatible = "wlf,wm8903";
                default-brightness-level = <15>;
        };
 
+       battery: battery-cell {
+               compatible = "simple-battery";
+               device-chemistry = "lithium-ion-polymer";
+               charge-full-design-microamp-hours = <3050000>;
+               energy-full-design-microwatt-hours = <23000000>;
+               operating-range-celsius = <0 45>;
+       };
+
        /* PMIC has a built-in 32KHz oscillator which is used by PMC */
        clk32k_in: clock-32k {
                compatible = "fixed-clock";