fdto: peripheral driver support dtbo [2/4]
authorJianxiong Pan <jianxiong.pan@amlogic.com>
Thu, 22 Nov 2018 02:59:25 +0000 (10:59 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Tue, 4 Dec 2018 11:16:57 +0000 (19:16 +0800)
PD#SWPL-2193

Problem:
Node dummy-battery and dummy-charger are android version
dependent, and should be "fdt overlayed"

Solution:
Add fdt overlay file android_p_overlay_dt.dts, and configure
dummy-battery and dummy-charger in it

Verify:
Locally on P212 and R311

Change-Id: I75a27a0ad1253556cae5273f36e0eb828291fd73
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
35 files changed:
MAINTAINERS
arch/arm/boot/dts/amlogic/android_p_overlay_dt.dts [new file with mode: 0644]
arch/arm/boot/dts/amlogic/g12a_s905x2_u211.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u211_1g.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212_1g.dts
arch/arm/boot/dts/amlogic/gxl_p212_1g.dts
arch/arm/boot/dts/amlogic/gxl_p212_2g.dts
arch/arm/boot/dts/amlogic/gxl_p241_1g.dts
arch/arm/boot/dts/amlogic/gxl_p241_v2-1g.dts
arch/arm/boot/dts/amlogic/gxl_skt.dts
arch/arm/boot/dts/amlogic/txl_t962_p321.dts
arch/arm/boot/dts/amlogic/txl_t962_p321_720p.dts
arch/arm/boot/dts/amlogic/txlx_t962e_r321.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_2g.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_720p.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r314.dts
arch/arm64/boot/dts/amlogic/android_p_overlay_dt.dts [new file with mode: 0644]
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_p212_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p212_2g.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/gxl_skt.dts
arch/arm64/boot/dts/amlogic/txl_t962_p321.dts
arch/arm64/boot/dts/amlogic/txl_t962_p321_720p.dts
arch/arm64/boot/dts/amlogic/txlx_t962e_r321.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
arch/arm64/boot/dts/amlogic/txlx_t962x_r314.dts

index fbb21e7..0792422 100644 (file)
@@ -14643,6 +14643,8 @@ AMLOGIC DTBO PARTITION
 M:      Xindong Xu  <xindong.xu@amlogic.com>
 F:     arch/arm64/boot/dts/amlogic/common_overlay_dt.dts
 F:      arch/arm/boot/dts/amlogic/common_overlay_dt.dts
+F:     arch/arm64/boot/dts/amlogic/android_p_overlay_dt.dts
+F:     arch/arm/boot/dts/amlogic/android_p_overlay_dt.dts
 
 AMLOGIC DTS
 M:     Luan Yuan <luan.yuan@amlogic.com>
diff --git a/arch/arm/boot/dts/amlogic/android_p_overlay_dt.dts b/arch/arm/boot/dts/amlogic/android_p_overlay_dt.dts
new file mode 100644 (file)
index 0000000..778f84d
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * arch/arm/boot/dts/amlogic/android_p_overlay_dt.dts
+ *
+ * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ */
+
+/dts-v1/;
+/plugin/;
+
+
+&amlogic_battery {
+       compatible = "amlogic, dummy-battery";
+       status = "okay";
+};
+
+&amlogic_charger {
+       compatible = "amlogic, dummy-charger";
+       status = "okay";
+};
index 6c64e2c..76e20d2 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index 6bca2a5..74ec44c 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index dee8afa..1004379 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index dae759d..547e68b 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index 6169a28..51b5c52 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        bt-dev{
index 13a27d1..22175b6 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        bt-dev{
index fc12eb9..fb4e842 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        vpu {
index 06eb3d7..aab11d5 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        vpu {
index 0fba076..6ba0818 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        bt-dev{
index 0fe9b71..c896f12 100644 (file)
                };
        }; /* end of reserved-memory */
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        secmon {
index 497959b..5548335 100644 (file)
                };
        }; /* end of reserved-memory */
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        secmon {
index 8340c0d..36f67ec 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        ethmac: ethernet@0xff3f0000 {
index e383801..7e057d9 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */
index d2575d3..e5f94bf 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */
index aa905d3..970ae17 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */
index 499aef0..dd614f1 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */
diff --git a/arch/arm64/boot/dts/amlogic/android_p_overlay_dt.dts b/arch/arm64/boot/dts/amlogic/android_p_overlay_dt.dts
new file mode 100644 (file)
index 0000000..dc46ec3
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * arch/arm64/boot/dts/amlogic/android_p_overlay_dt.dts
+ *
+ * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ */
+
+/dts-v1/;
+/plugin/;
+
+&amlogic_battery {
+       compatible = "amlogic, dummy-battery";
+       status = "okay";
+};
+
+&amlogic_charger {
+       compatible = "amlogic, dummy-charger";
+       status = "okay";
+};
index b252a14..6d41588 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index 5e9028e..e0564dd 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogc_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index 5204c35..bcd08a2 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index f528968..6f414af 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        gpioleds {
index 0ceedde..b19d828 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        bt-dev{
index e459645..7f0e757 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        bt-dev{
index ba50836..25ff34c 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        vpu {
index 04e706d..b3dae7c 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        vpu {
index e12c7c4..6af8cb4 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        bt-dev{
index cd028a1..446bf37 100644 (file)
                };
        }; /* end of reserved-memory */
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        secmon {
index 0cadc71..8e154af 100644 (file)
                };
        }; /* end of reserved-memory */
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        secmon {
index 6a30d39..752a88c 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        ethmac: ethernet@0xff3f0000 {
index 6c6ce88..c3f97d5 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */
index e99ed7f..f1aa69e 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */
index 7643c1e..f1ab9ec 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */
index 4a7db34..efc13a5 100644 (file)
                };
        };
 
-       dummy-battery {
+       amlogic_battery:dummy-battery {
                compatible = "amlogic, dummy-battery";
-               status = "okay";
+               status = "disabled";
        };
 
-       dummy-charger {
+       amlogic_charger:dummy-charger {
                compatible = "amlogic, dummy-charger";
-               status = "okay";
+               status = "disabled";
        };
 
        /* for external keypad */