Skip to contentSkip to conversation

dt-bindings: clock: add lpc32xx clock frequency output

PATCH In review [email protected] 2 participants 3 messages Feb 9, 2016 – Feb 10, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 dt-bindings: clock: add lpc32xx clock frequency output

From: Sylvain Lemieux <[email protected]>

This patch add an optional parameter to setup the
xtal clock frequency output.

---
 Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt +3 -0
index 20cbca3..ce51759 100644
@@ -10,6 +10,9 @@ Required properties:
 - clock-names: list of external oscillator clock names, must contain
   "xtal_32k" and may have optional "xtal"
 
+Optional properties:
+- xtal,clock-output-frequency: define the "xtal" clock frequency output in Hz
+
 Examples:
 
 	/* System Control Block */
Signature · 1 line
1.8.3.1
#1 lore raw

Hi Sylvain,

Quoted 15 lines · On 09.02.2016 20:47, [email protected] wrote:

From: Sylvain Lemieux <[email protected]>

This patch add an optional parameter to setup the
xtal clock frequency output.

---
 Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt +0 -0
index 20cbca3..ce51759 100644

Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt Required properties: · line 15

Quoted 6 lines
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt +3 -0
@@ -10,6 +10,9 @@ Required properties:
 - clock-names: list of external oscillator clock names, must contain
   "xtal_32k" and may have optional "xtal"
 
+Optional properties:
+- xtal,clock-output-frequency: define the "xtal" clock frequency output in Hz
+

this one looks wrong in sense that from patch 1/2 the property configures a PLL output clock rate, which is not an oscillator (xtal) clock rate.

I believe switching to "assigned-clock-rates" should make this change obsolete.

Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt Required properties: · line 18

Quoted 4 lines
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt +0 -0
 Examples:
 
 	/* System Control Block */

--
With best wishes,
Vladimir

#2 lore raw
Quoted 28 lines · Vladimir Zapolskiy

Hi Sylvain,

Quoted 15 lines · On 09.02.2016 20:47, [email protected] wrote:

From: Sylvain Lemieux <[email protected]>

This patch add an optional parameter to setup the
xtal clock frequency output.

---
 Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt +0 -0
index 20cbca3..ce51759 100644

Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt Required properties: · line 15

Quoted 6 lines
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt +3 -0
@@ -10,6 +10,9 @@ Required properties:
 - clock-names: list of external oscillator clock names, must contain
   "xtal_32k" and may have optional "xtal"
 
+Optional properties:
+- xtal,clock-output-frequency: define the "xtal" clock frequency output in Hz
+

this one looks wrong in sense that from patch 1/2 the property configures a PLL output clock rate, which is not an oscillator (xtal) clock rate.

Quoted 3 lines

I believe switching to "assigned-clock-rates" should make this change obsolete.

Agreed, this change is not needed;

Sylvain

Quoted 8 lines

Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt Required properties: · line 18

Quoted 4 lines
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt +0 -0
 Examples:
 
 	/* System Control Block */

--
With best wishes,
Vladimir