Skip to content

Instantly share code, notes, and snippets.

@apritzel
Created January 25, 2016 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apritzel/649f87c78d256131a2d0 to your computer and use it in GitHub Desktop.
Save apritzel/649f87c78d256131a2d0 to your computer and use it in GitHub Desktop.
proposed DT snippet for proper multi-parent bus gates clock
bus_gates: clk@01c20060 {
#clock-cells = <1>;
compatible = "allwinner,sun8i-h3-bus-gates-clk", "allwinner,sunxi-bus-gates-clk";
reg = <0x01c20060 0x14>;
ahb1_parent {
clocks = <&ahb1>;
clock-indices = <5>, <6>, <8>, ....
clock-output-names = "ahb1_ce", "ahb1_dma", "ahb1_mmc0", ...
};
apb1_parent {
clocks = <&apb1>;
clock-indices = <54>, <64>,
<65>, <69>, <72>, ...
clock-output-names = "apb1_spdif", "apb1_pio", "apb1_ths", ...
};
ahb2_parent {
....
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment