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

clk: Combine DT binding doc for max77686 and max77802

The clock IP used on the Maxim PMICs max77686 and max77802 are
same. The configuration of clock register is also same except
the number of clocks.

Define the common DT binding file for the clocks of Maxim PMICs
MAX77686 and MAX77802. For this, remove the separate DT binding
document file for maxim,max77802 and move all information to
maxim,max77686 DT binding document.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
CC: Javier Martinez Canillas <javier@dowhile0.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Laxman Dewangan and committed by
Stephen Boyd
24f668de 8ad313fe

+59 -67
+59 -23
Documentation/devicetree/bindings/clock/maxim,max77686.txt
··· 1 - Binding for Maxim MAX77686 32k clock generator block 1 + Binding for Maxim MAX77686/MAX77802 32k clock generator block 2 2 3 - This is a part of device tree bindings of MAX77686 multi-function device. 4 - More information can be found in bindings/mfd/max77686.txt file. 3 + This is a part of device tree bindings of MAX77686/MAX77802 multi-function 4 + device. More information can be found in bindings/mfd/max77686.txt file for 5 + MAX77686 and bindings/mfd/max77802.txt for MAX77802. 5 6 6 7 The MAX77686 contains three 32.768khz clock outputs that can be controlled 8 + (gated/ungated) over I2C. 9 + 10 + The MAX77802 contains two 32.768khz clock outputs that can be controlled 7 11 (gated/ungated) over I2C. 8 12 9 13 Following properties should be presend in main device node of the MFD chip. ··· 21 17 22 18 Each clock is assigned an identifier and client nodes can use this identifier 23 19 to specify the clock which they consume. Following indices are allowed: 24 - - 0: 32khz_ap clock, 25 - - 1: 32khz_cp clock, 26 - - 2: 32khz_pmic clock. 20 + - 0: 32khz_ap clock (max77686, max77802), 21 + - 1: 32khz_cp clock (max77686, max77802), 22 + - 2: 32khz_pmic clock (max77686). 27 23 28 24 Clocks are defined as preprocessor macros in dt-bindings/clock/maxim,max77686.h 29 - header and can be used in device tree sources. 25 + header for MAX77686 and dt-bindings/clock/maxim,max77802.h for MAX77802 and can 26 + be used in device tree sources. 30 27 31 - Example: Node of the MFD chip 28 + Example: 32 29 33 - max77686: max77686@09 { 34 - compatible = "maxim,max77686"; 35 - interrupt-parent = <&wakeup_eint>; 36 - interrupts = <26 0>; 37 - reg = <0x09>; 38 - #clock-cells = <1>; 30 + 1. With MAX77686: 39 31 40 - /* ... */ 41 - }; 32 + #include <dt-bindings/clock/maxim,max77686.h> 33 + /* ... */ 42 34 43 - Example: Clock consumer node 35 + Node of the MFD chip 36 + max77686: max77686@09 { 37 + compatible = "maxim,max77686"; 38 + interrupt-parent = <&wakeup_eint>; 39 + interrupts = <26 0>; 40 + reg = <0x09>; 41 + #clock-cells = <1>; 44 42 45 - foo@0 { 46 - compatible = "bar,foo"; 47 - /* ... */ 48 - clock-names = "my-clock"; 49 - clocks = <&max77686 MAX77686_CLK_PMIC>; 50 - }; 43 + /* ... */ 44 + }; 45 + 46 + Clock consumer node 47 + 48 + foo@0 { 49 + compatible = "bar,foo"; 50 + /* ... */ 51 + clock-names = "my-clock"; 52 + clocks = <&max77686 MAX77686_CLK_PMIC>; 53 + }; 54 + 55 + 2. With MAX77802: 56 + 57 + #include <dt-bindings/clock/maxim,max77802.h> 58 + /* ... */ 59 + 60 + Node of the MFD chip 61 + max77802: max77802@09 { 62 + compatible = "maxim,max77802"; 63 + interrupt-parent = <&wakeup_eint>; 64 + interrupts = <26 0>; 65 + reg = <0x09>; 66 + #clock-cells = <1>; 67 + 68 + /* ... */ 69 + }; 70 + 71 + Clock consumer node 72 + 73 + foo@0 { 74 + compatible = "bar,foo"; 75 + /* ... */ 76 + clock-names = "my-clock"; 77 + clocks = <&max77802 MAX77802_CLK_32K_AP>; 78 + };
-44
Documentation/devicetree/bindings/clock/maxim,max77802.txt
··· 1 - Binding for Maxim MAX77802 32k clock generator block 2 - 3 - This is a part of device tree bindings of MAX77802 multi-function device. 4 - More information can be found in bindings/mfd/max77802.txt file. 5 - 6 - The MAX77802 contains two 32.768khz clock outputs that can be controlled 7 - (gated/ungated) over I2C. 8 - 9 - Following properties should be present in main device node of the MFD chip. 10 - 11 - Required properties: 12 - - #clock-cells: From common clock binding; shall be set to 1. 13 - 14 - Optional properties: 15 - - clock-output-names: From common clock binding. 16 - 17 - Each clock is assigned an identifier and client nodes can use this identifier 18 - to specify the clock which they consume. Following indices are allowed: 19 - - 0: 32khz_ap clock, 20 - - 1: 32khz_cp clock. 21 - 22 - Clocks are defined as preprocessor macros in dt-bindings/clock/maxim,max77802.h 23 - header and can be used in device tree sources. 24 - 25 - Example: Node of the MFD chip 26 - 27 - max77802: max77802@09 { 28 - compatible = "maxim,max77802"; 29 - interrupt-parent = <&wakeup_eint>; 30 - interrupts = <26 0>; 31 - reg = <0x09>; 32 - #clock-cells = <1>; 33 - 34 - /* ... */ 35 - }; 36 - 37 - Example: Clock consumer node 38 - 39 - foo@0 { 40 - compatible = "bar,foo"; 41 - /* ... */ 42 - clock-names = "my-clock"; 43 - clocks = <&max77802 MAX77802_CLK_32K_AP>; 44 - };