Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.9-rc6 45 lines 1.4 kB view raw
1* Amlogic GXBB AO Clock and Reset Unit 2 3The Amlogic GXBB AO clock controller generates and supplies clock to various 4controllers within the Always-On part of the SoC. 5 6Required Properties: 7 8- compatible: should be "amlogic,gxbb-aoclkc" 9- reg: physical base address of the clock controller and length of memory 10 mapped region. 11 12- #clock-cells: should be 1. 13 14Each clock is assigned an identifier and client nodes can use this identifier 15to specify the clock which they consume. All available clocks are defined as 16preprocessor macros in the dt-bindings/clock/gxbb-aoclkc.h header and can be 17used in device tree sources. 18 19- #reset-cells: should be 1. 20 21Each reset is assigned an identifier and client nodes can use this identifier 22to specify the reset which they consume. All available resets are defined as 23preprocessor macros in the dt-bindings/reset/gxbb-aoclkc.h header and can be 24used in device tree sources. 25 26Example: AO Clock controller node: 27 28 clkc_AO: clock-controller@040 { 29 compatible = "amlogic,gxbb-aoclkc"; 30 reg = <0x0 0x040 0x0 0x4>; 31 #clock-cells = <1>; 32 #reset-cells = <1>; 33 }; 34 35Example: UART controller node that consumes the clock and reset generated 36 by the clock controller: 37 38 uart_AO: serial@4c0 { 39 compatible = "amlogic,meson-uart"; 40 reg = <0x4c0 0x14>; 41 interrupts = <0 90 1>; 42 clocks = <&clkc_AO CLKID_AO_UART1>; 43 resets = <&clkc_AO RESET_AO_UART1>; 44 status = "disabled"; 45 };