From: Michael Riesch <hidden> Date: 2021-08-05 12:01:27
Hi all,
This series enables the SD card reader on the RK3568 EVB1
and completes the support for the on-board eMMC.
As the PMU IO domains are required, the patch series that
introduces support for the RK3568 PMU IO domains [1] has been
revised and integrated in this series.
Additionally, the required voltage regulators of the RK809
PMIC are enabled.
Best regards,
Michael
[1] https://patchwork.kernel.org/project/linux-rockchip/list/?series=489383
v3:
- clean up device tree properties and sort alphabetically
v2:
- rename alias to match convention
- add support for rk3568 io domains
Jianqun Xu (1):
soc: rockchip: io-domain: add rk3568 support
Michael Riesch (6):
dt-bindings: power: add rk3568-pmu-io-domain support
arm64: dts: rockchip: enable io domains for rk356x
arm64: dts: rockchip: rk3568-evb1-v10: enable io domains
arm64: dts: rockchip: rk3568-evb1-v10: add regulators of rk809 pmic
arm64: dts: rockchip: rk3568-evb1-v10: add node for sd card
arm64: dts: rockchip: rk3568-evb1-v10: add pinctrl and alias to emmc
node
.../bindings/power/rockchip-io-domain.yaml | 30 +++
.../devicetree/bindings/soc/rockchip/grf.yaml | 1 +
.../boot/dts/rockchip/rk3568-evb1-v10.dts | 251 ++++++++++++++++++
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 5 +
drivers/soc/rockchip/io-domain.c | 88 +++++-
5 files changed, 367 insertions(+), 8 deletions(-)
--
2.17.1
From: Michael Riesch <hidden> Date: 2021-08-05 12:01:31
Add binding for the RK3568 along a SoC-specific description of
voltage supplies.
Signed-off-by: Jianqun Xu <redacted>
[add soc-specific section]
Signed-off-by: Michael Riesch <redacted>
---
v3:
- add missing compatible for the rk3568 to grf.yaml
.../bindings/power/rockchip-io-domain.yaml | 30 +++++++++++++++++++
.../devicetree/bindings/soc/rockchip/grf.yaml | 1 +
2 files changed, 31 insertions(+)
@@ -282,6 +284,34 @@ $defs:pmu1830-supply:description:The supply connected to PMUIO2_VDD.+rk3568-pmu:+if:+properties:+compatible:+contains:+const:rockchip,rk3568-pmu-io-voltage-domain++then:+properties:+pmuio1-supply:+description:The supply connected to PMUIO1.+pmuio2-supply:+description:The supply connected to PMUIO2.+vccio1-supply:+description:The supply connected to VCCIO1.+vccio2-supply:+description:The supply connected to VCCIO2.+vccio3-supply:+description:The supply connected to VCCIO3.+vccio4-supply:+description:The supply connected to VCCIO4.+vccio5-supply:+description:The supply connected to VCCIO5.+vccio6-supply:+description:The supply connected to VCCIO6.+vccio7-supply:+description:The supply connected to VCCIO7.+rv1108:if:properties:
From: Michael Riesch <hidden> Date: 2021-08-05 12:01:32
From: Jianqun Xu <redacted>
The io-domain registers on RK3568 SoCs have three separated bits to
enable/disable the 1.8v/2.5v/3.3v power.
This patch make the write to be a operation, allow rk3568 uses a private
register set function.
Since the 2.5v is not used on RK3568, so the driver only set
1.8v [enable] + 3.3v [disable] for 1.8v mode
1.8v [disable] + 3.3v [enable] for 3.3v mode
There is not register order requirement which has been cleared by our IC
team.
Signed-off-by: Jianqun Xu <redacted>
---
drivers/soc/rockchip/io-domain.c | 88 +++++++++++++++++++++++++++++---
1 file changed, 80 insertions(+), 8 deletions(-)
From: Michael Riesch <hidden> Date: 2021-08-05 12:01:40
Enable the PMU IO domains for the RK3566 and the RK3568.
Signed-off-by: Michael Riesch <redacted>
---
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 5 +++++
1 file changed, 5 insertions(+)
From: Michael Riesch <hidden> Date: 2021-08-05 12:01:45
Enable the PMU IO domains in the device tree for the RK3568 EVB1.
Signed-off-by: Michael Riesch <redacted>
---
arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
From: Michael Riesch <hidden> Date: 2021-08-05 12:01:47
Add the regulators of the RK809 PMIC to the device tree of the
RK3568 EVB1.
Signed-off-by: Michael Riesch <redacted>
---
v3:
- sort device tree properties alphabetically
.../boot/dts/rockchip/rk3568-evb1-v10.dts | 221 ++++++++++++++++++
1 file changed, 221 insertions(+)
From: Michael Riesch <hidden> Date: 2021-08-05 12:02:00
Add the SD card reader to the device tree of the RK3568 EVB1.
Signed-off-by: Michael Riesch <redacted>
---
v3:
- clean up device tree properties and sort alphabetically
- revise alias
arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
From: Michael Riesch <hidden> Date: 2021-08-05 12:02:10
Since the EMMC pins can be used for other functions as well, we need to
configure the pinctrl.
Signed-off-by: Michael Riesch <redacted>
---
v3:
- revise alias
arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts | 3 +++
1 file changed, 3 insertions(+)
From: Peter Geis <hidden> Date: 2021-08-05 13:06:09
On Thu, Aug 5, 2021 at 8:01 AM Michael Riesch
[off-list ref] wrote:
From: Jianqun Xu <redacted>
The io-domain registers on RK3568 SoCs have three separated bits to
enable/disable the 1.8v/2.5v/3.3v power.
This patch make the write to be a operation, allow rk3568 uses a private
register set function.
Since the 2.5v is not used on RK3568, so the driver only set
1.8v [enable] + 3.3v [disable] for 1.8v mode
1.8v [disable] + 3.3v [enable] for 3.3v mode
There is not register order requirement which has been cleared by our IC
team.
Tested on Quartz64 Model A, Quartz64 Model B.
Tested-by: Peter Geis <redacted>
From: Robin Murphy <robin.murphy@arm.com> Date: 2021-08-05 16:27:49
On 2021-08-05 13:01, Michael Riesch wrote:
From: Jianqun Xu <redacted>
The io-domain registers on RK3568 SoCs have three separated bits to
enable/disable the 1.8v/2.5v/3.3v power.
This patch make the write to be a operation, allow rk3568 uses a private
register set function.
Since the 2.5v is not used on RK3568, so the driver only set
FWIW, this seems at odds with what the first paragraph says - can anyone clarify what exactly "not used" means here? Is it that the I/O domain controller has been redesigned to support more than two logic levels on the new generation of SoCs, but RK3568's I/O pads still only physically support 1.8v and 3.3v; or is it that it *can* support 2.5v as well but no currently-known RK3568-based designs use that?
In the former case it's just a wording issue in the commit message, but in the latter it's arguably worth implementing support now for the sake of future compatibility.
Robin.
quoted hunk
1.8v [enable] + 3.3v [disable] for 1.8v mode
1.8v [disable] + 3.3v [enable] for 3.3v mode
There is not register order requirement which has been cleared by our IC
team.
Signed-off-by: Jianqun Xu <redacted>
---
drivers/soc/rockchip/io-domain.c | 88 +++++++++++++++++++++++++++++---
1 file changed, 80 insertions(+), 8 deletions(-)
Hi Robin,
Am Donnerstag, 5. August 2021, 18:27:36 CEST schrieb Robin Murphy:
On 2021-08-05 13:01, Michael Riesch wrote:
quoted
From: Jianqun Xu <redacted>
The io-domain registers on RK3568 SoCs have three separated bits to
enable/disable the 1.8v/2.5v/3.3v power.
This patch make the write to be a operation, allow rk3568 uses a private
register set function.
Since the 2.5v is not used on RK3568, so the driver only set
FWIW, this seems at odds with what the first paragraph says - can anyone
clarify what exactly "not used" means here? Is it that the I/O domain
controller has been redesigned to support more than two logic levels on
the new generation of SoCs, but RK3568's I/O pads still only physically
support 1.8v and 3.3v; or is it that it *can* support 2.5v as well but
no currently-known RK3568-based designs use that?
In the former case it's just a wording issue in the commit message, but
in the latter it's arguably worth implementing support now for the sake
of future compatibility.
I hadn't looked that deeply into the rk356x io-domain config, but at least
on a register level in the TRM it seems there are separate bits for
"3.3V control", "2.5V control", "1.8V control" [0] for each io-domain.
Of course the documentation is otherwise somewhat sparse.
Maybe Jay or Kever [added] can explain a bit more about the 3 voltage
levels.
In general though, I tend to find the approach good enough for now.
Especially as the io-domain stuff is always said to "can cause damage
to the soc if used incorrectly" and it looks like nobody (including
Rockchip) seems to have actual hardware using these 2.5V levels right now.
So having code in there that no-one ever tested doesn't feel too good ;-)
Adding this later when needed should be somewhat easy, as it really only
needs adding of handling that 3rd control bit per domain.
Heiko
[0] what happens if none of the 3 is active? ;-)
Robin.
quoted
1.8v [enable] + 3.3v [disable] for 1.8v mode
1.8v [disable] + 3.3v [enable] for 3.3v mode
There is not register order requirement which has been cleared by our IC
team.
Signed-off-by: Jianqun Xu <redacted>
---
drivers/soc/rockchip/io-domain.c | 88 +++++++++++++++++++++++++++++---
1 file changed, 80 insertions(+), 8 deletions(-)
From: Rob Herring <robh@kernel.org> Date: 2021-08-13 18:55:12
On Thu, 05 Aug 2021 14:01:01 +0200, Michael Riesch wrote:
Add binding for the RK3568 along a SoC-specific description of
voltage supplies.
Signed-off-by: Jianqun Xu <redacted>
[add soc-specific section]
Signed-off-by: Michael Riesch <redacted>
---
v3:
- add missing compatible for the rk3568 to grf.yaml
.../bindings/power/rockchip-io-domain.yaml | 30 +++++++++++++++++++
.../devicetree/bindings/soc/rockchip/grf.yaml | 1 +
2 files changed, 31 insertions(+)
On Thu, 5 Aug 2021 14:01:00 +0200, Michael Riesch wrote:
This series enables the SD card reader on the RK3568 EVB1
and completes the support for the on-board eMMC.
As the PMU IO domains are required, the patch series that
introduces support for the RK3568 PMU IO domains [1] has been
revised and integrated in this series.
Additionally, the required voltage regulators of the RK809
PMIC are enabled.
[...]
Applied, thanks!
[1/7] dt-bindings: power: add rk3568-pmu-io-domain support
commit: fadbd4e7847905d61dd333a0d3d31654f4510bc6
[2/7] soc: rockchip: io-domain: add rk3568 support
commit: 28b05a64e47cbceebb8a5f3f643033148d5c06c3
[3/7] arm64: dts: rockchip: enable io domains for rk356x
commit: 2e9ce86bbea81022540ede98cac152df5566205e
[4/7] arm64: dts: rockchip: rk3568-evb1-v10: enable io domains
commit: 915186bd99a55642ae77d7f9c46e295b3fd9dc1c
[5/7] arm64: dts: rockchip: rk3568-evb1-v10: add regulators of rk809 pmic
commit: e3f6b997b6b17810583af79f458b35fc0a34d939
[6/7] arm64: dts: rockchip: rk3568-evb1-v10: add node for sd card
commit: ef180dba76f583efc19c7d5f3d2809e0aa8856e8
[7/7] arm64: dts: rockchip: rk3568-evb1-v10: add pinctrl and alias to emmc node
commit: eb8d07586e13fc7aa4ed68820240d36a03418193
Best regards,
--
Heiko Stuebner [off-list ref]