All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for rk3288 boards
@ 2017-02-23  6:20 Jacob Chen
  2017-02-23  6:20 ` [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on " Jacob Chen
  2017-03-03  4:52 ` [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for " Simon Glass
  0 siblings, 2 replies; 6+ messages in thread
From: Jacob Chen @ 2017-02-23  6:20 UTC (permalink / raw)
  To: u-boot

Enable gmac interface for rk3288 board dts.
use "okay" not "ok"

Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
---

 arch/arm/dts/rk3288-evb.dtsi      | 22 ++++++++++++++++++++++
 arch/arm/dts/rk3288-miniarm.dtsi  |  2 +-
 arch/arm/dts/rk3288-popmetal.dtsi |  2 +-
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/rk3288-evb.dtsi b/arch/arm/dts/rk3288-evb.dtsi
index cb7d03e..4960f33 100644
--- a/arch/arm/dts/rk3288-evb.dtsi
+++ b/arch/arm/dts/rk3288-evb.dtsi
@@ -11,6 +11,13 @@
 		reg = <0 0x80000000>;
 	};
 
+	ext_gmac: external-gmac-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <125000000>;
+		clock-output-names = "ext_gmac";
+	};
+
 	keys: gpio-keys {
 		compatible = "gpio-keys";
 		#address-cells = <1>;
@@ -98,6 +105,21 @@
 	status = "okay";
 };
 
+&gmac {
+	phy-mode = "rgmii";
+	clock_in_out = "input";
+	snps,reset-gpio = <&gpio4 7 0>;
+	snps,reset-active-low;
+	snps,reset-delays-us = <0 10000 1000000>;
+	assigned-clocks = <&cru SCLK_MAC>;
+	assigned-clock-parents = <&ext_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	tx_delay = <0x30>;
+	rx_delay = <0x10>;
+	status = "okay";
+};
+
 &hdmi {
 	ddc-i2c-bus = <&i2c5>;
 	status = "okay";
diff --git a/arch/arm/dts/rk3288-miniarm.dtsi b/arch/arm/dts/rk3288-miniarm.dtsi
index ceb4e2b..527493c 100644
--- a/arch/arm/dts/rk3288-miniarm.dtsi
+++ b/arch/arm/dts/rk3288-miniarm.dtsi
@@ -149,7 +149,7 @@
 	pinctrl-0 = <&rgmii_pins>;
 	tx_delay = <0x30>;
 	rx_delay = <0x10>;
-	status = "ok";
+	status = "okay";
 };
 
 &hdmi {
diff --git a/arch/arm/dts/rk3288-popmetal.dtsi b/arch/arm/dts/rk3288-popmetal.dtsi
index e5be4cb..dd6ce8b 100644
--- a/arch/arm/dts/rk3288-popmetal.dtsi
+++ b/arch/arm/dts/rk3288-popmetal.dtsi
@@ -203,7 +203,7 @@
 	pinctrl-0 = <&rgmii_pins>;
 	tx_delay = <0x30>;
 	rx_delay = <0x10>;
-	status = "ok";
+	status = "okay";
 };
 
 &hdmi {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on rk3288 boards
  2017-02-23  6:20 [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for rk3288 boards Jacob Chen
@ 2017-02-23  6:20 ` Jacob Chen
  2017-03-03  4:52   ` Simon Glass
  2017-03-03  4:52 ` [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for " Simon Glass
  1 sibling, 1 reply; 6+ messages in thread
From: Jacob Chen @ 2017-02-23  6:20 UTC (permalink / raw)
  To: u-boot

At current, only firefly and rock2 have network enabled.
Let's enable other boards.

Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
---

 configs/evb-rk3288_defconfig      | 5 ++++-
 configs/fennec-rk3288_defconfig   | 5 ++++-
 configs/miniarm-rk3288_defconfig  | 4 ++++
 configs/popmetal-rk3288_defconfig | 4 ++++
 4 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig
index df58996..1b516de 100644
--- a/configs/evb-rk3288_defconfig
+++ b/configs/evb-rk3288_defconfig
@@ -45,8 +45,11 @@ CONFIG_LED=y
 CONFIG_LED_GPIO=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
+CONFIG_DM_ETH=y
+CONFIG_NETDEVICES=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_GMAC_ROCKCHIP=y
 CONFIG_PINCTRL=y
-# CONFIG_PINCTRL_FULL is not set
 CONFIG_SPL_PINCTRL=y
 # CONFIG_SPL_PINCTRL_FULL is not set
 CONFIG_ROCKCHIP_RK3288_PINCTRL=y
diff --git a/configs/fennec-rk3288_defconfig b/configs/fennec-rk3288_defconfig
index 21a5df7..5471970 100644
--- a/configs/fennec-rk3288_defconfig
+++ b/configs/fennec-rk3288_defconfig
@@ -44,8 +44,11 @@ CONFIG_ROCKCHIP_GPIO=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
+CONFIG_DM_ETH=y
+CONFIG_NETDEVICES=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_GMAC_ROCKCHIP=y
 CONFIG_PINCTRL=y
-# CONFIG_PINCTRL_FULL is not set
 CONFIG_SPL_PINCTRL=y
 # CONFIG_SPL_PINCTRL_FULL is not set
 CONFIG_ROCKCHIP_RK3288_PINCTRL=y
diff --git a/configs/miniarm-rk3288_defconfig b/configs/miniarm-rk3288_defconfig
index 2b6bd0b..8b86ae5 100644
--- a/configs/miniarm-rk3288_defconfig
+++ b/configs/miniarm-rk3288_defconfig
@@ -44,6 +44,10 @@ CONFIG_ROCKCHIP_GPIO=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
+CONFIG_DM_ETH=y
+CONFIG_NETDEVICES=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_GMAC_ROCKCHIP=y
 CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 # CONFIG_SPL_PINCTRL_FULL is not set
diff --git a/configs/popmetal-rk3288_defconfig b/configs/popmetal-rk3288_defconfig
index c4bf33a..c25b60a 100644
--- a/configs/popmetal-rk3288_defconfig
+++ b/configs/popmetal-rk3288_defconfig
@@ -44,6 +44,10 @@ CONFIG_ROCKCHIP_GPIO=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
+CONFIG_DM_ETH=y
+CONFIG_NETDEVICES=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_GMAC_ROCKCHIP=y
 CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 # CONFIG_SPL_PINCTRL_FULL is not set
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for rk3288 boards
  2017-02-23  6:20 [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for rk3288 boards Jacob Chen
  2017-02-23  6:20 ` [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on " Jacob Chen
@ 2017-03-03  4:52 ` Simon Glass
  2017-03-14 23:50   ` Simon Glass
  1 sibling, 1 reply; 6+ messages in thread
From: Simon Glass @ 2017-03-03  4:52 UTC (permalink / raw)
  To: u-boot

On 22 February 2017 at 23:20, Jacob Chen <jacob2.chen@rock-chips.com> wrote:
> Enable gmac interface for rk3288 board dts.
> use "okay" not "ok"
>
> Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
> ---
>
>  arch/arm/dts/rk3288-evb.dtsi      | 22 ++++++++++++++++++++++
>  arch/arm/dts/rk3288-miniarm.dtsi  |  2 +-
>  arch/arm/dts/rk3288-popmetal.dtsi |  2 +-
>  3 files changed, 24 insertions(+), 2 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on rk3288 boards
  2017-02-23  6:20 ` [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on " Jacob Chen
@ 2017-03-03  4:52   ` Simon Glass
  2017-03-14 23:50     ` Simon Glass
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Glass @ 2017-03-03  4:52 UTC (permalink / raw)
  To: u-boot

On 22 February 2017 at 23:20, Jacob Chen <jacob2.chen@rock-chips.com> wrote:
> At current, only firefly and rock2 have network enabled.
> Let's enable other boards.
>
> Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
> ---
>
>  configs/evb-rk3288_defconfig      | 5 ++++-
>  configs/fennec-rk3288_defconfig   | 5 ++++-
>  configs/miniarm-rk3288_defconfig  | 4 ++++
>  configs/popmetal-rk3288_defconfig | 4 ++++
>  4 files changed, 16 insertions(+), 2 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for rk3288 boards
  2017-03-03  4:52 ` [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for " Simon Glass
@ 2017-03-14 23:50   ` Simon Glass
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Glass @ 2017-03-14 23:50 UTC (permalink / raw)
  To: u-boot

On 2 March 2017 at 21:52, Simon Glass <sjg@chromium.org> wrote:
> On 22 February 2017 at 23:20, Jacob Chen <jacob2.chen@rock-chips.com> wrote:
>> Enable gmac interface for rk3288 board dts.
>> use "okay" not "ok"
>>
>> Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
>> ---
>>
>>  arch/arm/dts/rk3288-evb.dtsi      | 22 ++++++++++++++++++++++
>>  arch/arm/dts/rk3288-miniarm.dtsi  |  2 +-
>>  arch/arm/dts/rk3288-popmetal.dtsi |  2 +-
>>  3 files changed, 24 insertions(+), 2 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on rk3288 boards
  2017-03-03  4:52   ` Simon Glass
@ 2017-03-14 23:50     ` Simon Glass
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Glass @ 2017-03-14 23:50 UTC (permalink / raw)
  To: u-boot

On 2 March 2017 at 21:52, Simon Glass <sjg@chromium.org> wrote:
> On 22 February 2017 at 23:20, Jacob Chen <jacob2.chen@rock-chips.com> wrote:
>> At current, only firefly and rock2 have network enabled.
>> Let's enable other boards.
>>
>> Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
>> ---
>>
>>  configs/evb-rk3288_defconfig      | 5 ++++-
>>  configs/fennec-rk3288_defconfig   | 5 ++++-
>>  configs/miniarm-rk3288_defconfig  | 4 ++++
>>  configs/popmetal-rk3288_defconfig | 4 ++++
>>  4 files changed, 16 insertions(+), 2 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-14 23:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23  6:20 [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for rk3288 boards Jacob Chen
2017-02-23  6:20 ` [U-Boot] [PATCH 2/2] rockchip: configs: Enable networking support on " Jacob Chen
2017-03-03  4:52   ` Simon Glass
2017-03-14 23:50     ` Simon Glass
2017-03-03  4:52 ` [U-Boot] [PATCH 1/2] ARM: dts: rockchip: enable gmac for " Simon Glass
2017-03-14 23:50   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.