diff --git a/Documentation/devicetree/bindings/amlogic/reboot-meson.txt b/Documentation/devicetree/bindings/amlogic/reboot-meson.txt new file mode 100644 index 000000000000..70e2bc809d9c --- /dev/null +++ b/Documentation/devicetree/bindings/amlogic/reboot-meson.txt @@ -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>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 53931e8569f8..c7ae63fee9d7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14535,3 +14535,7 @@ F: include/dt-bindings/gpio/meson-txl-gpio.h AMLOGIC TXL PANEL DRIVER M: evoke zhang F: arch/arm64/boot/dts/amlogic/mesontxl_p321-panel.dtsi + +AMLOGIC REBOOT +M: Jian Hu +F: Documentation/devicetree/bindings/amlogic/reboot-meson.txt diff --git a/drivers/amlogic/reboot/reboot.c b/drivers/amlogic/reboot/reboot.c index e26119de4bef..4a1cc9bee42c 100644 --- a/drivers/amlogic/reboot/reboot.c +++ b/drivers/amlogic/reboot/reboot.c @@ -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);