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

MIPS: Document Pistachio boot protocol and device-tree bindings

The Pistachio SoC boots only with device-tree. Document the required
properties and nodes as well as the boot protocol between the bootlaoder
and the kernel.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: James Hartley <james.hartley@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/9568/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Andrew Bresticker and committed by
Ralf Baechle
e14ba3cd b76a4c1a

+42
+42
Documentation/devicetree/bindings/mips/img/pistachio.txt
··· 1 + Imagination Pistachio SoC 2 + ========================= 3 + 4 + Required properties: 5 + -------------------- 6 + - compatible: Must include "img,pistachio". 7 + 8 + CPU nodes: 9 + ---------- 10 + A "cpus" node is required. Required properties: 11 + - #address-cells: Must be 1. 12 + - #size-cells: Must be 0. 13 + A CPU sub-node is also required for at least CPU 0. Since the topology may 14 + be probed via CPS, it is not necessary to specify secondary CPUs. Required 15 + propertis: 16 + - device_type: Must be "cpu". 17 + - compatible: Must be "mti,interaptiv". 18 + - reg: CPU number. 19 + - clocks: Must include the CPU clock. See ../../clock/clock-bindings.txt for 20 + details on clock bindings. 21 + Example: 22 + cpus { 23 + #address-cells = <1>; 24 + #size-cells = <0>; 25 + 26 + cpu0: cpu@0 { 27 + device_type = "cpu"; 28 + compatible = "mti,interaptiv"; 29 + reg = <0>; 30 + clocks = <&clk_core CLK_MIPS>; 31 + }; 32 + }; 33 + 34 + 35 + Boot protocol: 36 + -------------- 37 + In accordance with the MIPS UHI specification[1], the bootloader must pass the 38 + following arguments to the kernel: 39 + - $a0: -2. 40 + - $a1: KSEG0 address of the flattened device-tree blob. 41 + 42 + [1] http://prplfoundation.org/wiki/MIPS_documentation