Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2017 BayLibre SAS |
| 4 | * Author: Neil Armstrong <narmstrong@baylibre.com> |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | &apb { |
| 8 | mali: gpu@c0000 { |
Loic Devulder | c037903 | 2018-11-27 17:41:18 +0100 | [diff] [blame] | 9 | compatible = "amlogic,meson-gxl-mali", "arm,mali-450"; |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 10 | reg = <0x0 0xc0000 0x0 0x40000>; |
| 11 | interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, |
| 12 | <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, |
| 13 | <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, |
| 14 | <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, |
| 15 | <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, |
| 16 | <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, |
| 17 | <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, |
| 18 | <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, |
| 19 | <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, |
| 20 | <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; |
| 21 | interrupt-names = "gp", "gpmmu", "pp", "pmu", |
| 22 | "pp0", "ppmmu0", "pp1", "ppmmu1", |
| 23 | "pp2", "ppmmu2"; |
| 24 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; |
| 25 | clock-names = "bus", "core"; |
| 26 | |
| 27 | /* |
| 28 | * Mali clocking is provided by two identical clock paths |
| 29 | * MALI_0 and MALI_1 muxed to a single clock by a glitch |
| 30 | * free mux to safely change frequency while running. |
| 31 | */ |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 32 | assigned-clocks = <&clkc CLKID_GP0_PLL>, |
| 33 | <&clkc CLKID_MALI_0_SEL>, |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 34 | <&clkc CLKID_MALI_0>, |
| 35 | <&clkc CLKID_MALI>; /* Glitch free mux */ |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 36 | assigned-clock-parents = <0>, /* Do Nothing */ |
| 37 | <&clkc CLKID_GP0_PLL>, |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 38 | <0>, /* Do Nothing */ |
| 39 | <&clkc CLKID_MALI_0>; |
Neil Armstrong | 8e8aec2 | 2018-06-05 10:10:44 +0200 | [diff] [blame] | 40 | assigned-clock-rates = <744000000>, |
| 41 | <0>, /* Do Nothing */ |
| 42 | <744000000>, |
Neil Armstrong | a4cf392 | 2017-10-12 15:50:30 +0200 | [diff] [blame] | 43 | <0>; /* Do Nothing */ |
| 44 | }; |
| 45 | }; |