reboot: meson: standardize the compatible property
authorJian Hu <jian.hu@amlogic.com>
Mon, 2 Jul 2018 09:52:37 +0000 (17:52 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 18 Jul 2018 09:50:23 +0000 (02:50 -0700)
PD#168480: reboot: meson: standardize the compatible property

Use 'amlogic,reboot' instead of 'aml,reboot'.
'aml,reboot' will be removed later.

Change-Id: I7d16795c98aa293fe204121ccd7da41c7d078f77
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
Documentation/devicetree/bindings/amlogic/reboot-meson.txt [new file with mode: 0644]
MAINTAINERS
drivers/amlogic/reboot/reboot.c

diff --git a/Documentation/devicetree/bindings/amlogic/reboot-meson.txt b/Documentation/devicetree/bindings/amlogic/reboot-meson.txt
new file mode 100644 (file)
index 0000000..70e2bc8
--- /dev/null
@@ -0,0 +1,16 @@
+Amlogic Meson Reboot
+
+Required properties:
+ - compatible: must be "amlogic,reboot"
+
+ - sys_reset: should be 0x84000009
+ - sys_poweroff: should be 0x84000008
+   refere to Power_State_Coordination_Interface_PDD_v1_1_DEN0022D.pdf,page 34.
+
+Examples:
+
+       reboot {
+               compatible = "amlogic,reboot";
+               sys_reset = <0x84000009>;
+               sys_poweroff = <0x84000008>;
+       };
index 53931e8569f86fdb5d4d6aac1be233e152e23333..c7ae63fee9d7f3b969a0cfc676378683d2304dc3 100644 (file)
@@ -14535,3 +14535,7 @@ F:      include/dt-bindings/gpio/meson-txl-gpio.h
 AMLOGIC TXL PANEL DRIVER
 M:     evoke zhang <evoke.zhang@amlogic.com>
 F:     arch/arm64/boot/dts/amlogic/mesontxl_p321-panel.dtsi
+
+AMLOGIC REBOOT
+M:     Jian Hu <jian.hu@amlogic.com>
+F:     Documentation/devicetree/bindings/amlogic/reboot-meson.txt
index e26119de4befff8d258fe7cd33d4f8398fa1b459..4a1cc9bee42c03615591b1b1e4c3004261bfe45a 100644 (file)
@@ -151,6 +151,7 @@ static int aml_restart_probe(struct platform_device *pdev)
 
 static const struct of_device_id of_aml_restart_match[] = {
        { .compatible = "aml, reboot", },
+       { .compatible = "amlogic,reboot", },
        {},
 };
 MODULE_DEVICE_TABLE(of, of_aml_restart_match);