cts: dts: add dummy battery driver for TV [1/1]
authorLei Qian <lei.qian@amlogic.com>
Fri, 12 Oct 2018 13:19:58 +0000 (21:19 +0800)
committerLei Qian <lei.qian@amlogic.com>
Mon, 15 Oct 2018 09:15:57 +0000 (02:15 -0700)
PD#169027

Problem:
some CTS and VTS testcases use the battery information

Solution:
here add a dummy battery for it.
for P, it requires a dummy charger to set the online property to 1.

Verify:
verified by einstein

Change-Id: I78d2cf54904144bb24cd46670aa7377f2055cf55
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
15 files changed:
arch/arm/boot/dts/amlogic/g12a_s905x2_u212.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212_1g.dts
arch/arm/boot/dts/amlogic/txl_t962_p321.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_2g.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u211.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u211_1g.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p241_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p241_v2-1g.dts
arch/arm64/boot/dts/amlogic/txl_t962_p321.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_2g.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_720p.dts

index 3bb9734..278d4c8 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        gpioleds {
                compatible = "gpio-leds";
                status = "okay";
index 44ca8f8..cff5f4a 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        gpioleds {
                compatible = "gpio-leds";
                status = "okay";
index 6d54c5f..888ee61 100644 (file)
                };
        }; /* end of reserved-memory */
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        secmon {
                compatible = "amlogic, secmon";
                memory-region = <&secmon_reserved>;
index 54344a6..ddee4a0 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        /* for external keypad */
        adc_keypad {
                compatible = "amlogic, adc_keypad";
index 1bb311e..ea892b9 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        /* for external keypad */
        adc_keypad {
                compatible = "amlogic, adc_keypad";
index 6570157..b252a14 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        gpioleds {
                compatible = "gpio-leds";
                status = "okay";
index 5c828f5..5e9028e 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        gpioleds {
                compatible = "gpio-leds";
                status = "okay";
index 7326c05..5204c35 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        gpioleds {
                compatible = "gpio-leds";
                status = "okay";
index 290a55c..8b49554 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        gpioleds {
                compatible = "gpio-leds";
                status = "okay";
index f8e7ff5..0fa218d 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        vpu {
                clk_level = <2>;
                /* 0: 100.0M    1: 166.7M    2: 200.0M    3: 250.0M */
index 25b9fdc..ac1ea7f 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        vpu {
                clk_level = <2>;
                /* 0: 100.0M    1: 166.7M    2: 200.0M    3: 250.0M */
index d405243..314e177 100644 (file)
                };
        }; /* end of reserved-memory */
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        secmon {
                compatible = "amlogic, secmon";
                memory-region = <&secmon_reserved>;
index 53f2e9a..d43248d 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        /* for external keypad */
        adc_keypad {
                compatible = "amlogic, adc_keypad";
index 54bea7f..52653e2 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        /* for external keypad */
        adc_keypad {
                compatible = "amlogic, adc_keypad";
index 5833481..d9f57ee 100644 (file)
                };
        };
 
+       dummy-battery {
+               compatible = "amlogic, dummy-battery";
+               status = "okay";
+       };
+
+       dummy-charger {
+               compatible = "amlogic, dummy-charger";
+               status = "okay";
+       };
+
        /* for external keypad */
        adc_keypad {
                compatible = "amlogic, adc_keypad";