Skip to content

Commit 3c2c005

Browse files
clamor-sthierryreding
authored andcommitted
ARM: tegra: chagall: Add embedded controller node
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>
1 parent 118a745 commit 3c2c005

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,14 @@
11551155
status = "okay";
11561156
clock-frequency = <400000>;
11571157

1158+
embedded-controller@10 {
1159+
compatible = "pegatron,chagall-ec";
1160+
reg = <0x10>;
1161+
1162+
monitored-battery = <&battery>;
1163+
power-supplies = <&mains>;
1164+
};
1165+
11581166
/* Wolfson Microelectronics WM8903 audio codec */
11591167
wm8903: audio-codec@1a {
11601168
compatible = "wlf,wm8903";
@@ -2596,6 +2604,14 @@
25962604
default-brightness-level = <15>;
25972605
};
25982606

2607+
battery: battery-cell {
2608+
compatible = "simple-battery";
2609+
device-chemistry = "lithium-ion-polymer";
2610+
charge-full-design-microamp-hours = <3050000>;
2611+
energy-full-design-microwatt-hours = <23000000>;
2612+
operating-range-celsius = <0 45>;
2613+
};
2614+
25992615
/* PMIC has a built-in 32KHz oscillator which is used by PMC */
26002616
clk32k_in: clock-32k {
26012617
compatible = "fixed-clock";

0 commit comments

Comments
 (0)