Rockchip soc32 changes for 4.14
Heiko Stuebner
maintainerHi Arnd, Kevin, Olof,
please find below and in the replies the first set of pull requests of Rockchip stuff for 4.14. I think the tag messages should describe the individual change broadly enough, so if nothing looks odd, please pull.
Thanks
Heiko
The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877:
Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git tags/v4.14-rockchip-soc32-1
for you to fetch changes up to bf3c4b517c2e2217e6cd53bc7a44e321bb799d75:
ARM: rockchip: enable ZONE_DMA for non 64-bit capable peripherals (2017-08-01 00:57:59 +0200)
----------------------------------------------------------------
32bit arch changes for Rockchip socs containing enablement for ZONE_DMA for LPAE builds due to the peripherals only being 32bit capable and conversion to the exclusive reset controls in smp code.
----------------------------------------------------------------
Philipp Zabel (1):
ARM: rockchip: explicitly request exclusive reset control in smp code
Tao Huang (1):
ARM: rockchip: enable ZONE_DMA for non 64-bit capable peripherals
arch/arm/mach-rockchip/Kconfig | 1 + arch/arm/mach-rockchip/platsmp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
Heiko Stuebner
maintainer[GIT PULL 2/4] Rockchip driver changes for 4.14
The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877:
Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git tags/v4.14-rockchip-drivers-1
for you to fetch changes up to bd85f4b76916f9d9d7130e58601662133399079a:
soc: rockchip: power-domain: add power domain support for rk3366 (2017-07-20 22:42:19 +0200)
----------------------------------------------------------------
Powerdomain support for rk3366 and disabling of the automatic jtag/sdmmc switching for rk3328.
----------------------------------------------------------------
Elaine Zhang (3):
dt-bindings: power: add RK3366 SoCs header for power-domain
dt-bindings: add binding for rk3366 power domains
soc: rockchip: power-domain: add power domain support for rk3366
Heiko Stuebner (1):
Merge branch 'v4.14-shared/pdids' into v4.14-armsoc/drivers
Shawn Lin (1):
soc: rockchip: disable jtag switching for RK3328 Soc
.../bindings/soc/rockchip/power_domain.txt | 3 ++ drivers/soc/rockchip/grf.c | 14 ++++++++++ drivers/soc/rockchip/pm_domains.c | 32 ++++++++++++++++++++++ include/dt-bindings/power/rk3366-power.h | 24 ++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 include/dt-bindings/power/rk3366-power.h
Heiko Stuebner
maintainer[GIT PULL 3/4] Rockchip dts32 changes for 4.14
In reply to Heiko StuebnerThe following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877:
Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git tags/v4.14-rockchip-dts32-1
for you to fetch changes up to 0f4dc7e154d054303c4dd6b5c3e3207f9a7f8714:
ARM: dts: rockchip: fix property-ordering in rv1108 mmc nodes (2017-07-22 22:41:35 +0200)
----------------------------------------------------------------
Removal of the deprectated num-slots property from all Rockchip dw-mmc nodes. The rv1108 gains support for sd-cards on the evaluation board and the general nodes get a bit of cosmetic. On rk3288 the evb gains support saradc and the adc-key connected to it while some more boards also get their mali gpu enabled (fennec, evb, tinker).
The biggest set of changes can be found on the rk3228/rk3229 combo this time. It gets core support for efuse, sdmmc, sdio, io-domans and spdif as well as a separate rk3229.dtsi that will keep the slight differences between the two brothers rk3228/rk3229. The evaluation board also gets some attention and abled nodes (regulators, io-domains, emmc, tsadc keys)
But I think the most interesting change is the cpu enable-method for it. Instead of using the older in-kernel method, we're now also moving to handling this in firmware via the psci interface on 32bit Rockchip socs. In a recently merged pull request [0] support for the rk3228/rk3229 was added to OP-TEE including the psci support and it seems supporting other 32bit Rockchip socs that way is also planned for the future.
[0] https://github.com/OP-TEE/optee_os/pull/1666
----------------------------------------------------------------
Andy Yan (1):
ARM: dts: rockchip: enable sdmmc for rv1108 evb
David Wu (2):
ARM: dts: rockchip: Add io-domain node for rk3228
ARM: dts: rockchip: enable io-domain for rk3229-evb
Finley Xiao (2):
ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb
ARM: dts: rockchip: add efuse device node for rk3228
Frank Wang (6):
ARM: dts: rockchip: add basic dtsi file for RK3229 SoC
ARM: dts: rockchip: add cpu enable method for rk3228 SoC
ARM: dts: rockchip: add regulator nodes for rk3229-evb
ARM: dts: rockchip: enable eMMC for rk3229-evb
ARM: dts: rockchip: enable tsadc for rk3229-evb
ARM: dts: rockchip: add gpio power-key for rk3229-evb
Heiko Stuebner (1):
ARM: dts: rockchip: fix property-ordering in rv1108 mmc nodes
Jacob Chen (5):
ARM: dts: rockchip: enable ARM Mali GPU on rk3288-tinker
ARM: dts: rockchip: enable ARM Mali GPU on rk3288-evb
ARM: dts: rockchip: enable ARM Mali GPU on rk3288-fennec
ARM: dts: rockchip: enable saradc for rk3288-evb
ARM: dts: rockchip: enable adc key for rk3288-evb
Jaehoon Chung (1):
ARM: dts: rockchip: change to "max-frequency" from "clock-freq-min-max" on rv1108
Klaus Goger (1):
ARM: dts: rockchip: fix typo in rk3036 mmc pinctrl
Shawn Lin (3):
ARM: dts: rockchip: remove num-slots from all platforms
ARM: dts: rockchip: fix compatible string for eMMC node of rk3228 SoC
ARM: dts: rockchip: add sdmmc and sdio nodes for rk3228 SoC
Sugar Zhang (1):
ARM: dts: rockchip: add rk322x spdif node
arch/arm/boot/dts/rk3036-kylin.dts | 2 - arch/arm/boot/dts/rk3036.dtsi | 3 +- arch/arm/boot/dts/rk3066a-bqcurie2.dts | 2 - arch/arm/boot/dts/rk3066a-mk808.dts | 2 - arch/arm/boot/dts/rk3066a-rayeager.dts | 3 - arch/arm/boot/dts/rk3188-px3-evb.dts | 2 - arch/arm/boot/dts/rk3188-radxarock.dts | 1 - arch/arm/boot/dts/rk3229-evb.dts | 129 +++++++++++++++++++++- arch/arm/boot/dts/rk3229.dtsi | 89 +++++++++++++++ arch/arm/boot/dts/rk322x.dtsi | 113 ++++++++++++++++++- arch/arm/boot/dts/rk3288-evb.dtsi | 49 +++++++- arch/arm/boot/dts/rk3288-fennec.dts | 6 +- arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 1 - arch/arm/boot/dts/rk3288-firefly-reload.dts | 2 - arch/arm/boot/dts/rk3288-firefly.dtsi | 3 - arch/arm/boot/dts/rk3288-miqi.dts | 2 - arch/arm/boot/dts/rk3288-phycore-rdk.dts | 1 - arch/arm/boot/dts/rk3288-phycore-som.dtsi | 1 - arch/arm/boot/dts/rk3288-popmetal.dts | 2 - arch/arm/boot/dts/rk3288-r89.dts | 1 - arch/arm/boot/dts/rk3288-rock2-som.dtsi | 1 - arch/arm/boot/dts/rk3288-rock2-square.dts | 2 - arch/arm/boot/dts/rk3288-tinker.dts | 6 +- arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 1 - arch/arm/boot/dts/rk3288-veyron.dtsi | 2 - arch/arm/boot/dts/rv1108-evb.dts | 4 + arch/arm/boot/dts/rv1108.dtsi | 20 ++-- 27 files changed, 401 insertions(+), 49 deletions(-) create mode 100644 arch/arm/boot/dts/rk3229.dtsi
Heiko Stuebner
maintainer[GIT PULL 4/4] Rockchip dts64 changes for 4.14
In reply to Heiko StuebnerThe following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877:
Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git tags/v4.14-rockchip-dts64-1
for you to fetch changes up to 45a995c054e116ea9578dd6186be35f65cc0a7d0:
arm64: dts: rockchip: update dynamic-power-coefficient for rk3399 (2017-08-01 01:00:55 +0200)
----------------------------------------------------------------
64bit Rockchip devicetree changes containing fixes for pinctrl typos and the use of keep-power-in-suspend in non-sdio nodes as well as the removal of the deprecated num-slots property from dwmmc nodes.
rk3328 gets support for spdif, io-domains and usb (including enablement of usb on the evaluation board), while rk3368 gains support for spdif.
The biggest chunk of course aims for the rk3399 with a number of pcie changes, support for the mali gpu, a new power-domain, sdmmc support on the firefly board and dynamic-power-coefficients.
The gru family also gets support for their quite central pwm regulators using the newly introduced vctrl regulator types.
----------------------------------------------------------------
Brian Norris (1):
arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients
Caesar Wang (5):
arm64: dts: rockchip: add SdioAudio pd control for rk3399
dt-bindings: gpu: add the RK3399 mali for rockchip specifics
arm64: dts: rockchip: add ARM Mali GPU node for RK3399 SoCs
arm64: dts: rockchip: enable the GPU for RK3399-GRU
arm64: dts: rockchip: update dynamic-power-coefficient for rk3399
David Wu (1):
arm64: dts: rockchip: Add rk3328 io-domain node
Klaus Goger (1):
arm64: dts: rockchip: fix typo in mmc pinctrl
Matthias Kaehlcke (2):
arm64: dts: rockchip: Update CPU regulator voltage ranges for Gru
arm64: dts: rockchip: Use vctrl regulators for dynamic CPU voltages on Gru/Kevin
Shawn Lin (6):
arm64: dts: rockchip: change clkreq mode for rk3399-evb
arm64: dts: rockchip: remove num-slots from all platforms
arm64: dts: rockchip: remove abused keep-power-in-suspend
arm64: dts: rockchip: change clkreq mode for rk3399-firefly
arm64: dts: rockchip: kill pcie_clkreqn and pcie_clkreqnb for rk3399
arm64: dts: rockchip: enable sdmmc controller on rk3399-firefly
Sugar Zhang (2):
arm64: dts: rockchip: add rk3368 spdif node
arm64: dts: rockchip: add rk3328 spdif node
William Wu (2):
arm64: dts: rockchip: add usb2 nodes for RK3328 SoCs
arm64: dts: rockchip: enable usb2 for RK3328 evaluation board
.../devicetree/bindings/gpu/arm,mali-midgard.txt | 1 + arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 24 +++++ arch/arm64/boot/dts/rockchip/rk3328.dtsi | 94 ++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi | 1 - arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts | 1 - .../boot/dts/rockchip/rk3368-orion-r68-meta.dts | 2 - arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dts | 3 - arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 2 - arch/arm64/boot/dts/rockchip/rk3368.dtsi | 19 ++++ arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 15 ++- arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 44 ++++++++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 119 ++++++++++++++------- arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi | 33 ++++++ arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi | 33 ++++++ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 41 +++++-- 16 files changed, 374 insertions(+), 60 deletions(-)
[GIT PULL 2/4] Rockchip driver changes for 4.14
In reply to Heiko StuebnerQuoted 8 lines · Heiko Stuebner
The following changes since commit
5771a8c08880cdca3bfb4a3fc6d309d6bba20877:Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.gittags/v4.14-rockchip-drivers-1
Quoted 7 lines
for you to fetch changes up to
bd85f4b76916f9d9d7130e58601662133399079a:soc: rockchip: power-domain: add power domain support for rk3366 (2017-07-20 22:42:19 +0200)
----------------------------------------------------------------
Powerdomain support for rk3366 and disabling of the automatic jtag/sdmmc switching for rk3328.
Pulled into next/drivers, thanks!
Arnd
[GIT PULL 3/4] Rockchip dts32 changes for 4.14
In reply to Heiko StuebnerQuoted 25 lines · Heiko Stuebner
The following changes since commit
5771a8c08880cdca3bfb4a3fc6d309d6bba20877:Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.gittags/v4.14-rockchip-dts32-1for you to fetch changes up to
0f4dc7e154d054303c4dd6b5c3e3207f9a7f8714:ARM: dts: rockchip: fix property-ordering in rv1108 mmc nodes (2017-07-22 22:41:35 +0200)
----------------------------------------------------------------
Removal of the deprectated num-slots property from all Rockchip dw-mmc nodes. The rv1108 gains support for sd-cards on the evaluation board and the general nodes get a bit of cosmetic. On rk3288 the evb gains support saradc and the adc-key connected to it while some more boards also get their mali gpu enabled (fennec, evb, tinker).The biggest set of changes can be found on the rk3228/rk3229 combo this time. It gets core support for efuse, sdmmc, sdio, io-domans and spdif as well as a separate
rk3229.dtsithat will keep the slight differences between the two brothers rk3228/rk3229. The evaluation board also gets some attention and abled nodes (regulators, io-domains, emmc, tsadc keys)
Quoted 8 lines
But I think the most interesting change is the cpu enable-method for it. Instead of using the older in-kernel method, we're now also moving to handling this in firmware via the psci interface on 32bit Rockchip socs. In a recently merged pull request [0] support for the rk3228/rk3229 was added to OP-TEE including the psci support and it seems supporting other 32bit Rockchip socs that way is also planned for the future.
Nice tag description!
What is the migration strategy for the 32-bit chips moving to psci? Does this mean that you have to update the bootloader in sync with the kernel now?
Pulled into next/dt, thanks!
Arnd
Quoted 6 lines · Heiko Stuebner
Hi Arnd, Kevin, Olof,
please find below and in the replies the first set of pull requests of Rockchip stuff for 4.14. I think the tag messages should describe the individual change broadly enough, so if nothing looks odd, please pull.
Pulled into next/soc, thanks!
Arnd
[GIT PULL 4/4] Rockchip dts64 changes for 4.14
In reply to Heiko StuebnerQuoted 8 lines · Heiko Stuebner
----------------------------------------------------------------
64bit Rockchip devicetree changes containing fixes for pinctrl typos and the use of keep-power-in-suspend in non-sdio nodes as well as the removal of the deprecated num-slots property from dwmmc nodes.rk3328 gets support for spdif, io-domains and usb (including enablement of usb on the evaluation board), while rk3368 gains support for spdif.
Quoted 6 lines
The biggest chunk of course aims for the rk3399 with a number of pcie changes, support for the mali gpu, a new power-domain, sdmmc support on the firefly board and dynamic-power-coefficients.
The gru family also gets support for their quite central pwm regulators using the newly introduced vctrl regulator types.
Pulled into next/dt64, thanks!
Arnd
Heiko Stuebner
maintainer[GIT PULL 3/4] Rockchip dts32 changes for 4.14
In reply to Arnd BergmannAm Mittwoch, 16. August 2017, 23:10:32 CEST schrieb Arnd Bergmann:
Quoted 33 lines · Heiko Stuebner
Quoted 32 lines
The following changes since commit
5771a8c08880cdca3bfb4a3fc6d309d6bba20877:Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.gittags/v4.14-rockchip-dts32-1for you to fetch changes up to
0f4dc7e154d054303c4dd6b5c3e3207f9a7f8714:ARM: dts: rockchip: fix property-ordering in rv1108 mmc nodes (2017-07-22 22:41:35 +0200)
----------------------------------------------------------------
Removal of the deprectated num-slots property from all Rockchip dw-mmc nodes. The rv1108 gains support for sd-cards on the evaluation board and the general nodes get a bit of cosmetic. On rk3288 the evb gains support saradc and the adc-key connected to it while some more boards also get their mali gpu enabled (fennec, evb, tinker).The biggest set of changes can be found on the rk3228/rk3229 combo this time. It gets core support for efuse, sdmmc, sdio, io-domans and spdif as well as a separate
rk3229.dtsithat will keep the slight differences between the two brothers rk3228/rk3229. The evaluation board also gets some attention and abled nodes (regulators, io-domains, emmc, tsadc keys)But I think the most interesting change is the cpu enable-method for it. Instead of using the older in-kernel method, we're now also moving to handling this in firmware via the psci interface on 32bit Rockchip socs. In a recently merged pull request [0] support for the rk3228/rk3229 was added to OP-TEE including the psci support and it seems supporting other 32bit Rockchip socs that way is also planned for the future.
Quoted 7 lines
Quoted 1 line
Nice tag description!
What is the migration strategy for the 32-bit chips moving to psci? Does this mean that you have to update the bootloader in sync with the kernel now?
so right now, only the rk3228/rk3229 combo uses psci alone (and not the kernel-level smp implementation of other rockchip socs). So for that there is no migration needed.
For the "legacy" socs (if that planned psci enablement does actually happen), I'd guess a supporting bootloader would just re-set the enable-method in the cpu nodes to psci and enable a yet-to-add psci node.
So my personal migration strategy would be to leave it like it is on the kernel dt-side and let updated firmware wiggle the devicetree into form :-) .
That way backwards-compatibility always stays in place and we don't require lock-step upgrades of bootloaders ... especially as the plethora of old Rockchip boards out there, sometimes even uses completely proprietary loaders.
Heiko
[GIT PULL 3/4] Rockchip dts32 changes for 4.14
Quoted 6 lines · Heiko Stuebner
Am Mittwoch, 16. August 2017, 23:10:32 CEST schrieb Arnd Bergmann:
For the "legacy" socs (if that planned psci enablement does actually happen), I'd guess a supporting bootloader would just re-set the enable-method in the cpu nodes to psci and enable a yet-to-add psci node.
Quoted 8 lines
So my personal migration strategy would be to leave it like it is on the kernel dt-side and let updated firmware wiggle the devicetree into form :-) .
That way backwards-compatibility always stays in place and we don't require lock-step upgrades of bootloaders ... especially as the plethora of old Rockchip boards out there, sometimes even uses completely proprietary loaders.
Yes, sounds good. Thanks!
Arnd