Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
232aa35e
Commit
232aa35e
authored
Jan 20, 2017
by
Alexandre TORGUE
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
f8b50363
' into stm32-dt-for-v4.11
parents
7ce7d89f
f8b50363
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
Documentation/devicetree/bindings/clock/st,stm32-rcc.txt
Documentation/devicetree/bindings/clock/st,stm32-rcc.txt
+17
-0
include/dt-bindings/clock/stm32fx-clock.h
include/dt-bindings/clock/stm32fx-clock.h
+39
-0
No files found.
Documentation/devicetree/bindings/clock/st,stm32-rcc.txt
View file @
232aa35e
...
@@ -17,6 +17,9 @@ Required properties:
...
@@ -17,6 +17,9 @@ Required properties:
property, containing a phandle to the clock device node, an index selecting
property, containing a phandle to the clock device node, an index selecting
between gated clocks and other clocks and an index specifying the clock to
between gated clocks and other clocks and an index specifying the clock to
use.
use.
- clocks: External oscillator clock phandle
- high speed external clock signal (HSE)
- external I2S clock (I2S_CKIN)
Example:
Example:
...
@@ -25,6 +28,7 @@ Example:
...
@@ -25,6 +28,7 @@ Example:
#clock-cells = <2>
#clock-cells = <2>
compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
reg = <0x40023800 0x400>;
reg = <0x40023800 0x400>;
clocks = <&clk_hse>, <&clk_i2s_ckin>;
};
};
Specifying gated clocks
Specifying gated clocks
...
@@ -66,6 +70,19 @@ The secondary index is bound with the following magic numbers:
...
@@ -66,6 +70,19 @@ The secondary index is bound with the following magic numbers:
0 SYSTICK
0 SYSTICK
1 FCLK
1 FCLK
2 CLK_LSI (low-power clock source)
3 CLK_LSE (generated from a 32.768 kHz low-speed external
crystal or ceramic resonator)
4 CLK_HSE_RTC (HSE division factor for RTC clock)
5 CLK_RTC (real-time clock)
6 PLL_VCO_I2S (vco frequency of I2S pll)
7 PLL_VCO_SAI (vco frequency of SAI pll)
8 CLK_LCD (LCD-TFT)
9 CLK_I2S (I2S clocks)
10 CLK_SAI1 (audio clocks)
11 CLK_SAI2
12 CLK_I2SQ_PDIV (post divisor of pll i2s q divisor)
13 CLK_SAIQ_PDIV (post divisor of pll sai q divisor)
Example:
Example:
...
...
include/dt-bindings/clock/stm32fx-clock.h
0 → 100644
View file @
232aa35e
/*
* stm32fx-clock.h
*
* Copyright (C) 2016 STMicroelectronics
* Author: Gabriel Fernandez for STMicroelectronics.
* License terms: GNU General Public License (GPL), version 2
*/
/*
* List of clocks wich are not derived from system clock (SYSCLOCK)
*
* The index of these clocks is the secondary index of DT bindings
* (see Documentatoin/devicetree/bindings/clock/st,stm32-rcc.txt)
*
* e.g:
<assigned-clocks = <&rcc 1 CLK_LSE>;
*/
#ifndef _DT_BINDINGS_CLK_STMFX_H
#define _DT_BINDINGS_CLK_STMFX_H
#define SYSTICK 0
#define FCLK 1
#define CLK_LSI 2
#define CLK_LSE 3
#define CLK_HSE_RTC 4
#define CLK_RTC 5
#define PLL_VCO_I2S 6
#define PLL_VCO_SAI 7
#define CLK_LCD 8
#define CLK_I2S 9
#define CLK_SAI1 10
#define CLK_SAI2 11
#define CLK_I2SQ_PDIV 12
#define CLK_SAIQ_PDIV 13
#define END_PRIMARY_CLK 14
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment