rk3588 frac pll:
FFVCO = ((m + k / 65536) * FFIN) / p
FFOUT = ((m + k / 65536) * FFIN) / (p * 2s)
k is the original code, but the K[15:0] is complement code
(6'b1000___ <= K[15:0] <= 16'b0111___),
need to be converted.
Signed-off-by: Elaine Zhang
---
drivers/clk/ro
Optimize setting process.
Signed-off-by: Elaine Zhang
---
drivers/clk/rockchip/clk_rk3588.c | 24 +---
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/drivers/clk/rockchip/clk_rk3588.c
b/drivers/clk/rockchip/clk_rk3588.c
index 7ba037ad72ba..a995dd5591d3
aclk_top_root choose a parent clock that does not change.
Signed-off-by: Elaine Zhang
---
drivers/clk/rockchip/clk_rk3588.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/rockchip/clk_rk3588.c
b/drivers/clk/rockchip/clk_rk3588.c
index c86176264147
For dclk_vop to support more frequencies.
Signed-off-by: Elaine Zhang
---
drivers/clk/rockchip/clk_rk3568.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/rockchip/clk_rk3568.c
b/drivers/clk/rockchip/clk_rk3568.c
index 599b7b130eb9..68f59e57
Change in V2:
drop [PATCH v1 1/7] and [PATCH v1 2/7], upstream kernel first.
update commit message and remove change id.
Elaine Zhang (3):
clk: rockchip: rk3568: support dclk_vop select more parent clks
clk: rockchip: rk3588: support aclk_top_root set 750M
clk: rockchip: rk3588: fix up
From: Guochun Huang
For a specific frequency.
Signed-off-by: Guochun Huang
Signed-off-by: Elaine Zhang
---
drivers/clk/rockchip/clk_rk3588.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/rockchip/clk_rk3588.c
b/drivers/clk/rockchip/clk_rk3588.c
index 119b1337bdf2
Change-Id: If20fe16260d2b584d4216d1dbabffcb25478fb1d
Signed-off-by: Elaine Zhang
---
.../include/asm/arch-rockchip/cru_rk3568.h| 36 +++
drivers/clk/rockchip/clk_rk3568.c | 218 ++
2 files changed, 254 insertions(+)
diff --git a/arch/arm/include/asm/arch
From: Guochun Huang
Change-Id: I5a842a3103df9a566789e7635fb484e4bb0bf427
Signed-off-by: Guochun Huang
Signed-off-by: Elaine Zhang
---
drivers/clk/rockchip/clk_rk3588.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/rockchip/clk_rk3588.c
b/drivers/clk/rockchip/clk_rk3588.c
Change-Id: Ib823620ff7940f8d62e78010817ca9b5f06995dd
Signed-off-by: Elaine Zhang
---
drivers/clk/rockchip/clk_rk3568.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/rockchip/clk_rk3568.c
b/drivers/clk/rockchip/clk_rk3568.c
index 469014439be4
Change-Id: I78f00d37a645f37e28587d1c31f3179d5fa891e7
Signed-off-by: Elaine Zhang
---
drivers/clk/rockchip/clk_rk3588.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/rockchip/clk_rk3588.c
b/drivers/clk/rockchip/clk_rk3588.c
index c86176264147
Elaine Zhang (5):
rockchip: dts: rk3568: Resync from kernel-4.19
clk: rockchip: rk3568: add i2s3 clk
clk: rockchip: rk3568: support dclk_vop select more parent clks
clk: rockchip: rk3588: support aclk_top_root set 750M
clk: rockchip: rk3588: fix up the frac pll calculation
Guochun Huang
Resync from kernel-4.19:
(a6cf6aca12c0 drivers: rkflash: Ajudst the dll strategy)
Change-Id: I7b7134946b76dbd8963cfaafdc5b56750622855e
Signed-off-by: Elaine Zhang
---
include/dt-bindings/clock/rk3568-cru.h | 7 +++
1 file changed, 7 insertions(+)
diff --git a/include/dt-bindings/clock
fix up ppll init freq.
support tclk_emmc.
add freq (26M) for mmc device.
fix up the sfc clk rate unit error.
Change in V2:
remove change id.
Signed-off-by: Elaine Zhang
---
arch/arm/include/asm/arch-rockchip/cru_rk3568.h | 2 +-
drivers/clk/rockchip/clk_rk3568.c | 11
fix up ppll init freq.
support tclk_emmc.
add freq (26M) for mmc device.
fix up the sfc clk rate unit error.
Change-Id: I41daa2c1daf55ab07229c1513c6be51b90125cfd
Signed-off-by: Elaine Zhang
---
arch/arm/include/asm/arch-rockchip/cru_rk3568.h | 2 +-
drivers/clk/rockchip/clk_rk3568.c
Add dts binding header for rk3568, files origin from kernel.
Signed-off-by: Elaine Zhang
Reviewed-by: Kever Yang
---
include/dt-bindings/clock/rk3568-cru.h | 925 +
1 file changed, 925 insertions(+)
create mode 100644 include/dt-bindings/clock/rk3568-cru.h
diff --git
Add basic clock for rk3568 which including cpu, bus, mmc,
i2c, pwm, gmac ...clocks init.
Change in V2:
[PATCH v2 0/1]: No change.
[PATCH v2 0/2]: update the copyright info and remove unused clock set/get.
Elaine Zhang (2):
rockchip: rk3568: add device tree file
rockchip: rk3568: add clock
Add rk3568 clock driver and cru structure definition.
Signed-off-by: Elaine Zhang
---
.../include/asm/arch-rockchip/cru_rk3568.h| 504 +++
drivers/clk/rockchip/Makefile |1 +
drivers/clk/rockchip/clk_rk3568.c | 2832 +
3 files changed, 3337
Add rk3568 clock driver and cru structure definition.
Signed-off-by: Elaine Zhang
---
.../include/asm/arch-rockchip/cru_rk3568.h| 504 +++
drivers/clk/rockchip/Makefile |1 +
drivers/clk/rockchip/clk_rk3568.c | 2959 +
3 files changed, 3464
Common PLL setup function, compatible with different SOC.
Mainly for the subsequent new SOC use.
Signed-off-by: Elaine Zhang
---
arch/arm/include/asm/arch-rockchip/clock.h | 76 +
drivers/clk/rockchip/Makefile | 1 +
drivers/clk/rockchip/clk_pll.c | 361
From: Joseph Chen
The RK809 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(5*BUCKs, 9*LDOs, 2*SWITCHs)
- RTC
- Clocking
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
Reviewed-by: Kever Yang
The RK805 are a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 3*LDOs)
- RTC
- Clocking
Signed-off-by: Elaine Zhang
Reviewed-by: Kever Yang
---
drivers/power/pmic/rk8xx.c | 1 +
drivers/power
From: Joseph Chen
The RK817 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1* BOOST, 9*LDOs, 1*SWITCH)
- RTC
- Clocking
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
Reviewed-by: Kever
The RK816 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1*BOOST, 6*LDOs, 1*SWITCH)
- RTC
- Clocking
Signed-off-by: Elaine Zhang
Reviewed-by: Kever Yang
---
drivers/power/pmic/rk8xx.c | 1
-off-by: Elaine Zhang
Reviewed-by: Kever Yang
---
doc/device-tree-bindings/regulator/regulator.txt | 27 +
drivers/power/regulator/regulator-uclass.c | 70
include/power/regulator.h| 64 ++
test/dm/regulator.c
In order to adapt the following pmics, make the interface more compatible.
Support buck and ldo suspend voltage setting and getting.
Supprot buck and ldo suspend enable/disable setting and getting.
Signed-off-by: Elaine Zhang
Reviewed-by: Kever Yang
---
drivers/power/regulator/rk8xx.c | 547
], support rk816 pmic and update commit
message.
[PATCH v2 4/8]: Update commit message.
[PATCH v2 5/8]: No change.
[PATCH v2 6/8]: No change.
[PATCH v2 7/8]: Remove rk809 keywords and update commit message.
[PATCH v2 8/8]: Update commit message.
Elaine Zhang (3):
power: regulator: rk8xx: update
From: Joseph Chen
The RK817 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1* BOOST, 9*LDOs, 1*SWITCH)
- RTC
- Clocking
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power
From: Joseph Chen
add rk8xx_shutdown for pmic shutdown.
It is used in applications such as UBOOT shutdown charging.
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 39 +++
1 file changed, 39 insertions(+)
diff --git
From: Joseph Chen
The RK809 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(5*BUCKs, 9*LDOs, 2*SWITCHs)
- RTC
- Clocking
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c
From: Joseph Chen
It is a common requirement to shutdown some PMIC. Provide some
simple convenience functions to do this.
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/pmic-uclass.c | 11 +++
include/power/pmic.h | 9 +
2 files
The RK805 are a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 3*LDOs)
- RTC
- Clocking
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 1 +
drivers/power/regulator/rk8xx.c | 17
The RK816 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1*BOOST, 6*LDOs, 1*SWITCH)
- RTC
- Clocking
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 1 +
drivers/power/regulator
In order to adapt the following pmics, make the interface more compatible.
Support buck and ldo suspend voltage setting and getting.
Supprot buck and ldo suspend enable/disable setting and getting.
Signed-off-by: Elaine Zhang
---
drivers/power/regulator/rk8xx.c | 547
v2 4/8]: Update commit message.
[PATCH v2 5/8]: No change.
[PATCH v2 6/8]: No change.
[PATCH v2 7/8]: Remove rk809 keywords and update commit message.
[PATCH v2 8/8]: Update commit message.
Elaine Zhang (3):
power: regulator: rk8xx: update the driver for rk808 and rk818
power: pmic: rk816
-off-by: Elaine Zhang
---
doc/device-tree-bindings/regulator/regulator.txt | 27 +
drivers/power/regulator/regulator-uclass.c | 70
include/power/regulator.h| 64 ++
test/dm/regulator.c
From: Joseph Chen
The RK817 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1* BOOST, 9*LDOs, 1*SWITCH)
- RTC
- Clocking
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power
From: Joseph Chen
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
index 00c8a2e091d8..df2056913ced 100644
From: Joseph Chen
The RK809 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(5*BUCKs, 9*LDOs, 2*SWITCHs)
- RTC
- Clocking
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c
From: Joseph Chen
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/pmic-uclass.c | 11 +++
include/power/pmic.h | 9 +
2 files changed, 20 insertions(+)
diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c
The RK805 are a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 3*LDOs)
- RTC
- Clocking
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 1 +
drivers/power/regulator/rk8xx.c | 17
The RK816 is a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators(4*BUCKs, 1*BOOST, 6*LDOs, 1*SWITCH)
- RTC
- Clocking
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 1 +
drivers/power/regulator
In order to adapt the following pmics, make the interface more compatible.
Support buck and ldo suspend voltage setting and getting.
Supprot buck and ldo suspend enable/disable setting and getting.
Signed-off-by: Elaine Zhang
---
drivers/power/regulator/rk8xx.c | 547
.
[PATCH v2 4/8]: Update commit message.
[PATCH v2 5/8]: No change.
[PATCH v2 6/8]: No change.
[PATCH v2 7/8]: Remove rk809 keywords and update commit message.
[PATCH v2 8/8]: Update commit message.
Elaine Zhang (3):
power: regulator: rk8xx: update the driver for rk808 and rk818
power: pmic: rk816
-off-by: Elaine Zhang
---
drivers/power/regulator/regulator-uclass.c | 67 ++
include/power/regulator.h | 42 +++
test/dm/regulator.c| 46
3 files changed, 155 insertions(+)
diff --git
From: Joseph Chen
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
index 00c8a2e091d8..df2056913ced 100644
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 1 +
drivers/power/regulator/rk8xx.c | 674 +++-
include/power/rk8xx_pmic.h | 11 +-
3 files changed, 600 insertions(+), 86 deletions(-)
diff --git a/drivers/power/pmic/rk8xx.c b
From: Joseph Chen
include sub modules: pmic, regulator
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 6 -
drivers/power/regulator/rk8xx.c | 55 -
include/power/rk8xx_pmic.h | 1 +
3 files
From: Joseph Chen
include sub modules: pmic, regulator
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 109 --
drivers/power/regulator/rk8xx.c | 198 +++-
include/power/rk8xx_pmic.h
-off-by: Elaine Zhang
---
drivers/power/regulator/regulator-uclass.c | 67 ++
include/power/regulator.h | 42 +++
2 files changed, 109 insertions(+)
diff --git a/drivers/power/regulator/regulator-uclass.c
b/drivers/power/regulator
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/rk8xx.c | 1 +
drivers/power/regulator/rk8xx.c | 17 +
include/power/rk8xx_pmic.h | 1 +
3 files changed, 19 insertions(+)
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
index 1900de9d1cdb
From: Joseph Chen
Signed-off-by: Joseph Chen
Signed-off-by: Elaine Zhang
---
drivers/power/pmic/pmic-uclass.c | 11 +++
include/power/pmic.h | 9 +
2 files changed, 20 insertions(+)
diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c
Support more PMIC and improve compatibility between pmics.
Elaine Zhang (2):
power: pmic: rk816: support rk816 pmic
power: pmic: rk805: support rk805 pmic
Joseph Chen (6):
dm: regulator: support regulator more state
power: pmic: rk8xx: bind more function
dm: pmic: add pmic_shutdown
On 04/07/2017 07:28 PM, Jaehoon Chung wrote:
Hi Kever,
On 04/07/2017 08:02 PM, Kever Yang wrote:
The latest kernel PWM drivers enable the polarity settings. When system
run from U-Boot to kerenl, if there are differences in polarity set or
duty cycle, the PMW will re-init:
close -> set
On 04/10/2017 03:28 AM, Simon Glass wrote:
Hi,
On 7 April 2017 at 05:02, Kever Yang wrote:
The latest kernel PWM drivers enable the polarity settings. When system
run from U-Boot to kerenl, if there are differences in polarity set or
duty cycle, the PMW will
54 matches
Mail list logo