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 v5.2-rc6 51 lines 1.6 kB view raw
1* Amlogic GXBB Clock and Reset Unit 2 3The Amlogic GXBB clock controller generates and supplies clock to various 4controllers within the SoC. 5 6Required Properties: 7 8- compatible: should be: 9 "amlogic,gxbb-clkc" for GXBB SoC, 10 "amlogic,gxl-clkc" for GXL and GXM SoC, 11 "amlogic,axg-clkc" for AXG SoC. 12 "amlogic,g12a-clkc" for G12A SoC. 13- clocks : list of clock phandle, one for each entry clock-names. 14- clock-names : should contain the following: 15 * "xtal": the platform xtal 16 17- #clock-cells: should be 1. 18 19Each clock is assigned an identifier and client nodes can use this identifier 20to specify the clock which they consume. All available clocks are defined as 21preprocessor macros in the dt-bindings/clock/gxbb-clkc.h header and can be 22used in device tree sources. 23 24Parent node should have the following properties : 25- compatible: "syscon", "simple-mfd, and "amlogic,meson-gx-hhi-sysctrl" or 26 "amlogic,meson-axg-hhi-sysctrl" 27- reg: base address and size of the HHI system control register space. 28 29Example: Clock controller node: 30 31sysctrl: system-controller@0 { 32 compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd"; 33 reg = <0 0 0 0x400>; 34 35 clkc: clock-controller { 36 #clock-cells = <1>; 37 compatible = "amlogic,gxbb-clkc"; 38 clocks = <&xtal>; 39 clock-names = "xtal"; 40 }; 41}; 42 43Example: UART controller node that consumes the clock generated by the clock 44 controller: 45 46 uart_AO: serial@c81004c0 { 47 compatible = "amlogic,meson-uart"; 48 reg = <0xc81004c0 0x14>; 49 interrupts = <0 90 1>; 50 clocks = <&clkc CLKID_CLK81>; 51 };