Path: blob/main/sys/contrib/device-tree/Bindings/clock/amlogic,axg-audio-clkc.txt
48376 views
* Amlogic AXG Audio Clock Controllers12The Amlogic AXG audio clock controller generates and supplies clock to the3other elements of the audio subsystem, such as fifos, i2s, spdif and pdm4devices.56Required Properties:78- compatible : should be "amlogic,axg-audio-clkc" for the A113X and A113D,9"amlogic,g12a-audio-clkc" for G12A,10"amlogic,sm1-audio-clkc" for S905X3.11- reg : physical base address of the clock controller and length of12memory mapped region.13- clocks : a list of phandle + clock-specifier pairs for the clocks listed14in clock-names.15- clock-names : must contain the following:16* "pclk" - Main peripheral bus clock17may contain the following:18* "mst_in[0-7]" - 8 input plls to generate clock signals19* "slv_sclk[0-9]" - 10 slave bit clocks provided by external20components.21* "slv_lrclk[0-9]" - 10 slave sample clocks provided by external22components.23- resets : phandle of the internal reset line24- #clock-cells : should be 1.25- #reset-cells : should be 1 on the g12a (and following) soc family2627Each clock is assigned an identifier and client nodes can use this identifier28to specify the clock which they consume. All available clocks are defined as29preprocessor macros in the dt-bindings/clock/axg-audio-clkc.h header and can be30used in device tree sources.3132Example:3334clkc_audio: clock-controller@0 {35compatible = "amlogic,axg-audio-clkc";36reg = <0x0 0x0 0x0 0xb4>;37#clock-cells = <1>;3839clocks = <&clkc CLKID_AUDIO>,40<&clkc CLKID_MPLL0>,41<&clkc CLKID_MPLL1>,42<&clkc CLKID_MPLL2>,43<&clkc CLKID_MPLL3>,44<&clkc CLKID_HIFI_PLL>,45<&clkc CLKID_FCLK_DIV3>,46<&clkc CLKID_FCLK_DIV4>,47<&clkc CLKID_GP0_PLL>;48clock-names = "pclk",49"mst_in0",50"mst_in1",51"mst_in2",52"mst_in3",53"mst_in4",54"mst_in5",55"mst_in6",56"mst_in7";57resets = <&reset RESET_AUDIO>;58};596061