Last active
May 3, 2018 03:20
-
-
Save cnlohr/8164f52c4551d10aaa2c94ad6156c7ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; /plugin/; | |
/ { | |
// compatible = "allwinner,sun50i-h5-mali", | |
// "arm,mali-450";// "allwinner,sun50i-h5"; | |
fragment@0 { | |
target-path = "/"; | |
__overlay__ { | |
soc { | |
mali: gpu@1280000 { | |
reg = <0x01e80000 0x30000>; | |
// GIC_SPI n IRQ_TYPE_LEVEL_HIGH | |
interrupts = <0 96 4>, | |
<0 97 4>, | |
<0 98 4>, | |
<0 99 4>, | |
<0 100 4>, | |
<0 101 4>, | |
<0 102 4>, | |
<0 103 4>, | |
<0 104 4>, | |
<0 105 4>, | |
<0 106 4>, | |
<0 107 4>; | |
interrupt-names = "gp", | |
"gpmmu", | |
"pmu", | |
"pp", | |
"pp0", | |
"ppmmu0", | |
"pp1", | |
"ppmmu1", | |
"pp2", | |
"ppmmu2", | |
"pp3", | |
"ppmmu3"; | |
//#define CLK_BUS_GPU 49 (From sun8i-h3-ccu.h) OR IS IT &bus_gpu_clk.common.hw??? | |
//#define CLK_GPU 114 (From sun8i-h3-ccu.h) | |
//sun8i-h3-ccu.h:#define RST_BUS_GPU 35 | |
clocks = <&ccu 49>, <&ccu 114>; | |
clock-names = "bus", "core"; | |
resets = <&ccu 35>; | |
assigned-clocks = <&ccu 114>; | |
assigned-clock-rates = <384000000>; | |
}; | |
}; | |
}; | |
}; | |
}; | |
//From patch https://raw.githubusercontent.com/jernejsk/LibreELEC.tv/aw_h5_init/projects/Allwinner/devices/H5/patches/linux/20-add-mali-node.patch | |
//Patching https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | |
//Example patch https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/gpio-button.dts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WARNING THIS DOES NOT WORK I AM STILL TRYING TO FIND OUT WHY!
https://forum.armbian.com/topic/7115-mali-node-missing-from-dtbs-on-h5/?tab=comments#comment-53705