Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: Add documentation for the BCM63138 timer and syscon-reboot

A timer node and a syscon-reboot node are required for software reboot
to work on BCM63138, document these two nodes in the platform binding.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

+34
+34
Documentation/devicetree/bindings/arm/bcm/brcm,bcm63138.txt
··· 49 49 compatible = "brcm,bcm63138-bootlut"; 50 50 reg = <0x8000 0x50>; 51 51 }; 52 + 53 + ======= 54 + reboot 55 + ------ 56 + Two nodes are required for software reboot: a timer node and a syscon-reboot node. 57 + 58 + Timer node: 59 + 60 + - compatible: Must be "brcm,bcm6328-timer", "syscon" 61 + - reg: Register base address and length 62 + 63 + Syscon reboot node: 64 + 65 + See Documentation/devicetree/bindings/power/reset/syscon-reboot.txt for the 66 + detailed list of properties, the two values defined below are specific to the 67 + BCM6328-style timer: 68 + 69 + - offset: Should be 0x34 to denote the offset of the TIMER_WD_TIMER_RESET register 70 + from the beginning of the TIMER block 71 + - mask: Should be 1 for the SoftRst bit. 72 + 73 + Example: 74 + 75 + timer: timer@80 { 76 + compatible = "brcm,bcm6328-timer", "syscon"; 77 + reg = <0x80 0x3c>; 78 + }; 79 + 80 + reboot { 81 + compatible = "syscon-reboot"; 82 + regmap = <&timer>; 83 + offset = <0x34>; 84 + mask = <0x1>; 85 + };