1*c66ec88fSEmmanuel VadotDevice Tree Clock bindings for arch-at91 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThis binding uses the common clock binding[1]. 4*c66ec88fSEmmanuel Vadot 5*c66ec88fSEmmanuel Vadot[1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel VadotSlow Clock controller: 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel VadotRequired properties: 10*c66ec88fSEmmanuel Vadot- compatible : shall be one of the following: 11*c66ec88fSEmmanuel Vadot "atmel,at91sam9x5-sckc", 12*c66ec88fSEmmanuel Vadot "atmel,sama5d3-sckc", 13*c66ec88fSEmmanuel Vadot "atmel,sama5d4-sckc" or 14*c66ec88fSEmmanuel Vadot "microchip,sam9x60-sckc": 15*c66ec88fSEmmanuel Vadot at91 SCKC (Slow Clock Controller) 16*c66ec88fSEmmanuel Vadot- #clock-cells : shall be 1 for "microchip,sam9x60-sckc" otherwise shall be 0. 17*c66ec88fSEmmanuel Vadot- clocks : shall be the input parent clock phandle for the clock. 18*c66ec88fSEmmanuel Vadot 19*c66ec88fSEmmanuel VadotOptional properties: 20*c66ec88fSEmmanuel Vadot- atmel,osc-bypass : boolean property. Set this when a clock signal is directly 21*c66ec88fSEmmanuel Vadot provided on XIN. 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel VadotFor example: 24*c66ec88fSEmmanuel Vadot sckc@fffffe50 { 25*c66ec88fSEmmanuel Vadot compatible = "atmel,at91sam9x5-sckc"; 26*c66ec88fSEmmanuel Vadot reg = <0xfffffe50 0x4>; 27*c66ec88fSEmmanuel Vadot clocks = <&slow_xtal>; 28*c66ec88fSEmmanuel Vadot #clock-cells = <0>; 29*c66ec88fSEmmanuel Vadot }; 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel VadotPower Management Controller (PMC): 32*c66ec88fSEmmanuel Vadot 33*c66ec88fSEmmanuel VadotRequired properties: 34*c66ec88fSEmmanuel Vadot- compatible : shall be "atmel,<chip>-pmc", "syscon" or 35*c66ec88fSEmmanuel Vadot "microchip,sam9x60-pmc" 36*c66ec88fSEmmanuel Vadot <chip> can be: at91rm9200, at91sam9260, at91sam9261, 37*c66ec88fSEmmanuel Vadot at91sam9263, at91sam9g45, at91sam9n12, at91sam9rl, at91sam9g15, 38*c66ec88fSEmmanuel Vadot at91sam9g25, at91sam9g35, at91sam9x25, at91sam9x35, at91sam9x5, 39*c66ec88fSEmmanuel Vadot sama5d2, sama5d3 or sama5d4. 40*c66ec88fSEmmanuel Vadot- #clock-cells : from common clock binding; shall be set to 2. The first entry 41*c66ec88fSEmmanuel Vadot is the type of the clock (core, system, peripheral or generated) and the 42*c66ec88fSEmmanuel Vadot second entry its index as provided by the datasheet 43*c66ec88fSEmmanuel Vadot- clocks : Must contain an entry for each entry in clock-names. 44*c66ec88fSEmmanuel Vadot- clock-names: Must include the following entries: "slow_clk", "main_xtal" 45*c66ec88fSEmmanuel Vadot 46*c66ec88fSEmmanuel VadotOptional properties: 47*c66ec88fSEmmanuel Vadot- atmel,osc-bypass : boolean property. Set this when a clock signal is directly 48*c66ec88fSEmmanuel Vadot provided on XIN. 49*c66ec88fSEmmanuel Vadot 50*c66ec88fSEmmanuel VadotFor example: 51*c66ec88fSEmmanuel Vadot pmc: pmc@f0018000 { 52*c66ec88fSEmmanuel Vadot compatible = "atmel,sama5d4-pmc", "syscon"; 53*c66ec88fSEmmanuel Vadot reg = <0xf0018000 0x120>; 54*c66ec88fSEmmanuel Vadot interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 55*c66ec88fSEmmanuel Vadot #clock-cells = <2>; 56*c66ec88fSEmmanuel Vadot clocks = <&clk32k>, <&main_xtal>; 57*c66ec88fSEmmanuel Vadot clock-names = "slow_clk", "main_xtal"; 58*c66ec88fSEmmanuel Vadot }; 59