diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2017-03-22 06:18:55 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2017-03-28 10:48:27 -0400 |
commit | 57ef579878c3a9a168ce071a78982216338ba500 (patch) | |
tree | 966d31681fb4b18b4db048263bda7959e68c540a | |
parent | ca02e3f9b1853ff82565a3262146a710f5af7ebb (diff) |
ARM64: dts: meson-gx: Add Mali nodes for GXBB and GXL
The same Mali-450 MP3 GPU is present in the GXBB and GXL SoCs.
The node is simply added in the meson-gxbb.dtsi file.
For GXL, since a lot is shared with the GXM that has a Mali-T820 IP, this
patch adds a new meson-gxl-mali.dtsi and is included in the SoC specific
dtsi files.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
[khilman: s/MALI/Mali in changelog]
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
-rw-r--r-- | arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 37 | ||||
-rw-r--r-- | arch/arm64/boot/dts/amlogic/meson-gxl-mali.dtsi | 43 | ||||
-rw-r--r-- | arch/arm64/boot/dts/amlogic/meson-gxl-s905d.dtsi | 1 | ||||
-rw-r--r-- | arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi | 1 |
4 files changed, 82 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index c2c41aa879c6..65843b1feaf3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | |||
@@ -443,6 +443,43 @@ | |||
443 | }; | 443 | }; |
444 | }; | 444 | }; |
445 | 445 | ||
446 | &apb { | ||
447 | mali: gpu@c0000 { | ||
448 | compatible = "amlogic,meson-gxbb-mali", "arm,mali-450"; | ||
449 | reg = <0x0 0xc0000 0x0 0x40000>; | ||
450 | interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, | ||
451 | <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, | ||
452 | <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, | ||
453 | <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, | ||
454 | <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, | ||
455 | <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, | ||
456 | <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, | ||
457 | <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, | ||
458 | <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, | ||
459 | <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; | ||
460 | interrupt-names = "gp", "gpmmu", "pp", "pmu", | ||
461 | "pp0", "ppmmu0", "pp1", "ppmmu1", | ||
462 | "pp2", "ppmmu2"; | ||
463 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; | ||
464 | clock-names = "bus", "core"; | ||
465 | |||
466 | /* | ||
467 | * Mali clocking is provided by two identical clock paths | ||
468 | * MALI_0 and MALI_1 muxed to a single clock by a glitch | ||
469 | * free mux to safely change frequency while running. | ||
470 | */ | ||
471 | assigned-clocks = <&clkc CLKID_MALI_0_SEL>, | ||
472 | <&clkc CLKID_MALI_0>, | ||
473 | <&clkc CLKID_MALI>; /* Glitch free mux */ | ||
474 | assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>, | ||
475 | <0>, /* Do Nothing */ | ||
476 | <&clkc CLKID_MALI_0>; | ||
477 | assigned-clock-rates = <0>, /* Do Nothing */ | ||
478 | <666666666>, | ||
479 | <0>; /* Do Nothing */ | ||
480 | }; | ||
481 | }; | ||
482 | |||
446 | &i2c_A { | 483 | &i2c_A { |
447 | clocks = <&clkc CLKID_I2C>; | 484 | clocks = <&clkc CLKID_I2C>; |
448 | }; | 485 | }; |
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-mali.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-mali.dtsi new file mode 100644 index 000000000000..f06cc234693b --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-mali.dtsi | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2017 BayLibre SAS | ||
3 | * Author: Neil Armstrong <narmstrong@baylibre.com> | ||
4 | * | ||
5 | * SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
6 | */ | ||
7 | |||
8 | &apb { | ||
9 | mali: gpu@c0000 { | ||
10 | compatible = "amlogic,meson-gxbb-mali", "arm,mali-450"; | ||
11 | reg = <0x0 0xc0000 0x0 0x40000>; | ||
12 | interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, | ||
13 | <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, | ||
14 | <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, | ||
15 | <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, | ||
16 | <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, | ||
17 | <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, | ||
18 | <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, | ||
19 | <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, | ||
20 | <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, | ||
21 | <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; | ||
22 | interrupt-names = "gp", "gpmmu", "pp", "pmu", | ||
23 | "pp0", "ppmmu0", "pp1", "ppmmu1", | ||
24 | "pp2", "ppmmu2"; | ||
25 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; | ||
26 | clock-names = "bus", "core"; | ||
27 | |||
28 | /* | ||
29 | * Mali clocking is provided by two identical clock paths | ||
30 | * MALI_0 and MALI_1 muxed to a single clock by a glitch | ||
31 | * free mux to safely change frequency while running. | ||
32 | */ | ||
33 | assigned-clocks = <&clkc CLKID_MALI_0_SEL>, | ||
34 | <&clkc CLKID_MALI_0>, | ||
35 | <&clkc CLKID_MALI>; /* Glitch free mux */ | ||
36 | assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>, | ||
37 | <0>, /* Do Nothing */ | ||
38 | <&clkc CLKID_MALI_0>; | ||
39 | assigned-clock-rates = <0>, /* Do Nothing */ | ||
40 | <666666666>, | ||
41 | <0>; /* Do Nothing */ | ||
42 | }; | ||
43 | }; | ||
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d.dtsi index 615308e55576..5a90e30c1006 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d.dtsi | |||
@@ -42,6 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "meson-gxl.dtsi" | 44 | #include "meson-gxl.dtsi" |
45 | #include "meson-gxl-mali.dtsi" | ||
45 | 46 | ||
46 | / { | 47 | / { |
47 | compatible = "amlogic,s905d", "amlogic,meson-gxl"; | 48 | compatible = "amlogic,s905d", "amlogic,meson-gxl"; |
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi index 08237ee1e362..0f78d836edaf 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi | |||
@@ -42,6 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "meson-gxl.dtsi" | 44 | #include "meson-gxl.dtsi" |
45 | #include "meson-gxl-mali.dtsi" | ||
45 | 46 | ||
46 | / { | 47 | / { |
47 | compatible = "amlogic,s905x", "amlogic,meson-gxl"; | 48 | compatible = "amlogic,s905x", "amlogic,meson-gxl"; |