From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] dt-bindings: gpu: Add Mali Utgard bindings
Date: Fri, 27 Jan 2017 14:19:13 -0600 [thread overview]
Message-ID: <20170127201913.jjhdw57jmxifqpxa@rob-hp-laptop> (raw)
In-Reply-To: <a4d90de597cfcfab5fddeeb538505774a980818b.1485180017.git-series.maxime.ripard@free-electrons.com>
On Mon, Jan 23, 2017 at 03:00:45PM +0100, Maxime Ripard wrote:
> The ARM Mali Utgard GPU family is embedded into a number of SoCs from
> Allwinner, Amlogic, Mediatek or Rockchip.
>
> Add a binding for the GPU of that family.
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
>
> ---
>
> Changes from v1:
> - Dropped the arm,mali-utgard compatible
> - Made the clocks mandatory
> - Added Linus Walleij Reviewed-by, and the ST compatible for the Mali
> ---
> Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 79 ++++++++-
> 1 file changed, 79 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
>
> diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
> new file mode 100644
> index 000000000000..ba0edcdd1b00
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
> @@ -0,0 +1,79 @@
> +ARM Mali Utgard GPU
> +===================
> +
> +Required properties:
> + - compatible
> + * Must be one of the following:
> + + "arm,mali-300"
> + + "arm,mali-400"
> + + "arm,mali-450"
> + * And, optionally, one of the vendor specific compatible:
> + + allwinner,sun4i-a10-mali
> + + allwinner,sun7i-a20-mali
And stericsson,db8500-mali?
> +
> + - reg: Physical base address and length of the GPU registers
> +
> + - interrupts: an entry for each entry in interrupt-names.
> + See ../interrupt-controller/interrupts.txt for details.
> +
> + - interrupt-names:
> + * ppX: Pixel Processor X interrupt (X from 0 to 7)
> + * ppmmuX: Pixel Processor X MMU interrupt (X from 0 to 7)
> + * pp: Pixel Processor broadcast interrupt (mali-450 only)
> + * gp: Geometry Processor interrupt
> + * gpmmu: Geometry Processor MMU interrupt
> +
> + - clocks: an entry for each entry in clock-names
> + - clock-names:
> + * bus: bus clock for the GPU
> + * core: clock driving the GPU itself
assigned-clocks?
> +
> +Optional properties:
> + - interrupt-names and interrupts:
> + * pmu: Power Management Unit interrupt, if implemented in hardware
> +
> +Vendor-specific bindings
> +------------------------
> +
> +The Mali GPU is integrated very differently from one SoC to
> +another. In order to accomodate those differences, you have the option
> +to specify one more vendor-specific compatible, among:
> +
> + - allwinner,sun4i-a10-mali
> + Required properties:
> + * resets: phandle to the reset line for the GPU
> +
> + - allwinner,sun7i-a20-mali
> + Required properties:
> + * resets: phandle to the reset line for the GPU
> +
> + - stericsson,db8500-mali
> + Required properties:
> + * interrupt-names and interrupts:
> + + combined: combined interrupt of all of the above lines
> +
> +Example:
> +
> +mali: gpu at 01c40000 {
Drop the leading 0.
> + compatible = "allwinner,sun7i-a20-mali", "arm,mali-400";
> + reg = <0x01c40000 0x10000>;
> + interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "gp",
> + "gpmmu",
> + "pp0",
> + "ppmmu0",
> + "pp1",
> + "ppmmu1",
> + "pmu";
> + clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
> + clock-names = "bus", "core";
> + resets = <&ccu RST_BUS_GPU>;
> +};
> +
> +
>
> base-commit: 49def1853334396f948dcb4cedb9347abb318df5
> --
> git-series 0.8.11
next prev parent reply other threads:[~2017-01-27 20:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-23 14:00 [PATCH v2 1/2] dt-bindings: gpu: Add Mali Utgard bindings Maxime Ripard
2017-01-23 14:00 ` [PATCH v2 2/2] ARM: sun8i: dt: Add mali node Maxime Ripard
2017-01-27 20:21 ` Rob Herring
2017-01-30 14:00 ` Maxime Ripard
2017-01-30 16:40 ` Rob Herring
2017-01-27 20:19 ` Rob Herring [this message]
2017-01-30 13:48 ` [PATCH v2 1/2] dt-bindings: gpu: Add Mali Utgard bindings Maxime Ripard
2017-01-30 16:24 ` Neil Armstrong
2017-01-31 9:56 ` Maxime Ripard
2017-01-31 10:17 ` Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170127201913.jjhdw57jmxifqpxa@rob-hp-laptop \
--to=robh@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox