Skip to content
This repository was archived by the owner on Oct 5, 2018. It is now read-only.

Commit 1cbfbc1

Browse files
gtucker-gmailldts
authored andcommitted
hi6220: add ARM Mali GPU entry
Add the Mali-450 GPU entry in the HI6220 device tree based on the 3.10 kernel. Also fix the mtcmos1 and mtcmos2 entries so they match the regulator drivers and actually get initialised and usable by the GPU driver. Signed-off-by: Guillaume Tucker <guillaume.tucker@arm.com>
1 parent c0ee55f commit 1cbfbc1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/arm64/boot/dts/hi6220.dtsi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,23 @@
991991
};
992992
};
993993

994+
mali:mali@f4080000 {
995+
compatible = "arm,mali-450", "arm,mali-utgard";
996+
reg = <0x0 0x3f100000 0x0 0x00708000>;
997+
clocks = <&clock_media HI6220_G3D_CLK>,
998+
<&clock_media HI6220_G3D_PCLK>;
999+
clock-names = "clk_g3d", "pclk_g3d";
1000+
G3D_PD_VDD-supply = <&mtcmos1>;
1001+
mali_def_freq = <500>;
1002+
pclk_freq = <144>;
1003+
dfs_steps = <2>;
1004+
dfs_lockprf = <1>;
1005+
dfs_limit_max_prf = <1>;
1006+
dfs_profile_num = <2>;
1007+
dfs_profiles = <250 3 0>, <500 1 0>;
1008+
mali_type = <2>;
1009+
};
1010+
9941011
dwmmc_0: dwmmc0@f723d000 {
9951012
compatible = "hisilicon,hisi-dw-mshc";
9961013
num-slots = <0x1>;
@@ -1038,11 +1055,13 @@
10381055

10391056
mtcmos1: regulator@a1{
10401057
regulator-name = "G3D_PD_VDD";
1058+
regulator-compatible = "mtcmos1";
10411059
hisilicon,ctrl-regs = <0x830 0x834 0x83c>;
10421060
hisilicon,ctrl-data = <1 0x1>;
10431061
};
10441062
mtcmos2: regulator@a2{
10451063
regulator-name = "SOC_MED";
1064+
regulator-compatible = "mtcmos2";
10461065
hisilicon,ctrl-regs = <0x830 0x834 0x83c>;
10471066
hisilicon,ctrl-data = <2 0x1>;
10481067
};

0 commit comments

Comments
 (0)