* [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd"
@ 2016-05-13 22:12 Brian Norris
2016-05-13 22:12 ` [PATCH v4 2/3] ARM64: dts: rockchip: add sdhci/emmc for rk3399 Brian Norris
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Brian Norris @ 2016-05-13 22:12 UTC (permalink / raw)
To: linux-arm-kernel
Per the examples in
Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt, we need the
grf node to be a simple-mfd in order to properly enumerate child devices
like our eMMC PHY.
Signed-off-by: Brian Norris <briannorris@chromium.org>
---
v4:
* New, split out of patch 2, per Heiko's recommendation
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 46f325a143b0..e1c3667a9bea 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -481,8 +481,11 @@
};
grf: syscon at ff770000 {
- compatible = "rockchip,rk3399-grf", "syscon";
+ compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
reg = <0x0 0xff770000 0x0 0x10000>;
+
+ #address-cells = <1>;
+ #size-cells = <1>;
};
watchdog at ff840000 {
--
2.8.0.rc3.226.g39d4020
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v4 2/3] ARM64: dts: rockchip: add sdhci/emmc for rk3399
2016-05-13 22:12 [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Brian Norris
@ 2016-05-13 22:12 ` Brian Norris
2016-05-13 22:12 ` [PATCH v4 3/3] ARM64: dts: rockchip: enable eMMC for rk3399 EVB Brian Norris
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Brian Norris @ 2016-05-13 22:12 UTC (permalink / raw)
To: linux-arm-kernel
Add description for the SDHCI v5.1 eMMC controller on rk3399. Fix it to
200 MHz, to support all supported timing modes.
Note that 'rockchip,rk3399-sdhci-5.1' is not documented; we presumably
have a compliant Arasan controller, but let's have a rockchip property
as the canonical backup/precautionary measure. Per Heiko's previous
suggestion, let's not clutter the arasan doc with it.
Signed-off-by: Brian Norris <briannorris@chromium.org>
---
v4:
* split "simple-mfd" out into patch 1
v3:
* correct emmc_phy reg length to 0x24
v2:
* improved commit message
* assign eMMC clock to 200 MHz
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index e1c3667a9bea..99078f5ebeb9 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -215,6 +215,19 @@
status = "disabled";
};
+ sdhci: sdhci at fe330000 {
+ compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
+ reg = <0x0 0xfe330000 0x0 0x10000>;
+ interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
+ clock-names = "clk_xin", "clk_ahb";
+ assigned-clocks = <&cru SCLK_EMMC>;
+ assigned-clock-rates = <200000000>;
+ phys = <&emmc_phy>;
+ phy-names = "phy_arasan";
+ status = "disabled";
+ };
+
usb_host0_ehci: usb at fe380000 {
compatible = "generic-ehci";
reg = <0x0 0xfe380000 0x0 0x20000>;
@@ -486,6 +499,13 @@
#address-cells = <1>;
#size-cells = <1>;
+
+ emmc_phy: phy at f780 {
+ compatible = "rockchip,rk3399-emmc-phy";
+ reg = <0xf780 0x24>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };
};
watchdog at ff840000 {
--
2.8.0.rc3.226.g39d4020
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v4 3/3] ARM64: dts: rockchip: enable eMMC for rk3399 EVB
2016-05-13 22:12 [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Brian Norris
2016-05-13 22:12 ` [PATCH v4 2/3] ARM64: dts: rockchip: add sdhci/emmc for rk3399 Brian Norris
@ 2016-05-13 22:12 ` Brian Norris
2016-05-13 22:54 ` Doug Anderson
2016-05-13 22:53 ` [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Doug Anderson
2016-05-14 17:01 ` Heiko Stuebner
3 siblings, 1 reply; 6+ messages in thread
From: Brian Norris @ 2016-05-13 22:12 UTC (permalink / raw)
To: linux-arm-kernel
Rockchip's rk3399 evaluation board has eMMC. Let's enable the
newly-added nodes.
Signed-off-by: Brian Norris <briannorris@chromium.org>
---
v4:
* alphabetize &node references
v3:
* no change
v2:
* better commit description
arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
index 1a3eb1482050..d33aa06d46f5 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts
@@ -77,6 +77,10 @@
};
};
+&emmc_phy {
+ status = "okay";
+};
+
&pwm0 {
status = "okay";
};
@@ -89,6 +93,14 @@
status = "okay";
};
+&sdhci {
+ bus-width = <8>;
+ mmc-hs400-1_8v;
+ mmc-hs400-enhanced-strobe;
+ non-removable;
+ status = "okay";
+};
+
&uart2 {
status = "okay";
};
--
2.8.0.rc3.226.g39d4020
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd"
2016-05-13 22:12 [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Brian Norris
2016-05-13 22:12 ` [PATCH v4 2/3] ARM64: dts: rockchip: add sdhci/emmc for rk3399 Brian Norris
2016-05-13 22:12 ` [PATCH v4 3/3] ARM64: dts: rockchip: enable eMMC for rk3399 EVB Brian Norris
@ 2016-05-13 22:53 ` Doug Anderson
2016-05-14 17:01 ` Heiko Stuebner
3 siblings, 0 replies; 6+ messages in thread
From: Doug Anderson @ 2016-05-13 22:53 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
On Fri, May 13, 2016 at 3:12 PM, Brian Norris <briannorris@chromium.org> wrote:
> Per the examples in
> Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt, we need the
> grf node to be a simple-mfd in order to properly enumerate child devices
> like our eMMC PHY.
>
> Signed-off-by: Brian Norris <briannorris@chromium.org>
> ---
> v4:
>
> * New, split out of patch 2, per Heiko's recommendation
>
> arch/arm64/boot/dts/rockchip/rk3399.dtsi | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Douglas Anderson <dianders@chromium.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd"
2016-05-13 22:12 [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Brian Norris
` (2 preceding siblings ...)
2016-05-13 22:53 ` [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Doug Anderson
@ 2016-05-14 17:01 ` Heiko Stuebner
3 siblings, 0 replies; 6+ messages in thread
From: Heiko Stuebner @ 2016-05-14 17:01 UTC (permalink / raw)
To: linux-arm-kernel
Am Freitag, 13. Mai 2016, 15:12:02 schrieb Brian Norris:
> Per the examples in
> Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt, we need the
> grf node to be a simple-mfd in order to properly enumerate child devices
> like our eMMC PHY.
>
> Signed-off-by: Brian Norris <briannorris@chromium.org>
applied all 3 for 4.8 with the received Reviews.
Please keep the arm64 lower-case and carry over already received
Acks/Reviews (Shawn and Doug on patch2 in v2).
Thanks
Heiko
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-05-14 17:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-13 22:12 [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Brian Norris
2016-05-13 22:12 ` [PATCH v4 2/3] ARM64: dts: rockchip: add sdhci/emmc for rk3399 Brian Norris
2016-05-13 22:12 ` [PATCH v4 3/3] ARM64: dts: rockchip: enable eMMC for rk3399 EVB Brian Norris
2016-05-13 22:54 ` Doug Anderson
2016-05-13 22:53 ` [PATCH v4 1/3] ARM64: dts: rockchip: make rk3399's grf a "simple-mfd" Doug Anderson
2016-05-14 17:01 ` Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).