Re: [U-Boot] [PATCH 5/6] dts: rk3399: add gmac for the rk3399

2017-04-01 Thread Simon Glass
On 25 March 2017 at 21:48, Simon Glass  wrote:
> On 24 March 2017 at 12:24, Philipp Tomsich
>  wrote:
>> This change adds the gmac node (i.e. the GMAC Ethernet controller) as
>> defined in the Linux DTS.
>
> It's useful to mention which version/commit of Linux you got it from.
>
>>
>> Signed-off-by: Philipp Tomsich 
>> ---
>>
>>  arch/arm/dts/rk3399.dtsi | 55 
>> 
>>  1 file changed, 55 insertions(+)
>
> Acked-by: Simon Glass 

Applied to u-boot-rockchip, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH 5/6] dts: rk3399: add gmac for the rk3399

2017-03-25 Thread Simon Glass
On 24 March 2017 at 12:24, Philipp Tomsich
 wrote:
> This change adds the gmac node (i.e. the GMAC Ethernet controller) as
> defined in the Linux DTS.

It's useful to mention which version/commit of Linux you got it from.

>
> Signed-off-by: Philipp Tomsich 
> ---
>
>  arch/arm/dts/rk3399.dtsi | 55 
> 
>  1 file changed, 55 insertions(+)

Acked-by: Simon Glass 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 5/6] dts: rk3399: add gmac for the rk3399

2017-03-24 Thread Philipp Tomsich
This change adds the gmac node (i.e. the GMAC Ethernet controller) as
defined in the Linux DTS.

Signed-off-by: Philipp Tomsich 
---

 arch/arm/dts/rk3399.dtsi | 55 
 1 file changed, 55 insertions(+)

diff --git a/arch/arm/dts/rk3399.dtsi b/arch/arm/dts/rk3399.dtsi
index 456fdb6..754d34a 100644
--- a/arch/arm/dts/rk3399.dtsi
+++ b/arch/arm/dts/rk3399.dtsi
@@ -600,6 +600,25 @@
interrupts = ;
};
 
+gmac: eth@fe30 {
+compatible = "rockchip,rk3399-gmac";
+reg = <0x0 0xfe30 0x0 0x1>;
+rockchip,grf = <>;
+interrupts = ;
+interrupt-names = "macirq";
+clocks = < SCLK_MAC>, < SCLK_MAC_RX>,
+ < SCLK_MAC_TX>, < SCLK_MACREF>,
+ < SCLK_MACREF_OUT>, < ACLK_GMAC>,
+ < PCLK_GMAC>;
+clock-names = "stmmaceth", "mac_clk_rx",
+  "mac_clk_tx", "clk_mac_ref",
+  "clk_mac_refout", "aclk_mac",
+  "pclk_mac";
+resets = < SRST_A_GMAC>;
+reset-names = "stmmaceth";
+status = "disabled";
+};
+
spdif: spdif@ff87 {
compatible = "rockchip,rk3399-spdif";
reg = <0x0 0xff87 0x0 0x1000>;
@@ -865,6 +884,42 @@
};
};
 
+   gmac {
+   rgmii_pins: rgmii-pins {
+   rockchip,pins =
+   /* mac_txclk */
+   <3 17 RK_FUNC_1 _pull_none_13ma>,
+   /* mac_rxclk */
+   <3 14 RK_FUNC_1 _pull_none>,
+   /* mac_mdio */
+   <3 13 RK_FUNC_1 _pull_none>,
+   /* mac_txen */
+   <3 12 RK_FUNC_1 _pull_none_13ma>,
+   /* mac_clk */
+   <3 11 RK_FUNC_1 _pull_none>,
+   /* mac_rxdv */
+   <3 9 RK_FUNC_1 _pull_none>,
+   /* mac_mdc */
+   <3 8 RK_FUNC_1 _pull_none>,
+   /* mac_rxd1 */
+   <3 7 RK_FUNC_1 _pull_none>,
+   /* mac_rxd0 */
+   <3 6 RK_FUNC_1 _pull_none>,
+   /* mac_txd1 */
+   <3 5 RK_FUNC_1 _pull_none_13ma>,
+   /* mac_txd0 */
+   <3 4 RK_FUNC_1 _pull_none_13ma>,
+   /* mac_rxd3 */
+   <3 3 RK_FUNC_1 _pull_none>,
+   /* mac_rxd2 */
+   <3 2 RK_FUNC_1 _pull_none>,
+   /* mac_txd3 */
+   <3 1 RK_FUNC_1 _pull_none_13ma>,
+   /* mac_txd2 */
+   <3 0 RK_FUNC_1 _pull_none_13ma>;
+   };
+   };
+
sdmmc {
sdmmc_bus1: sdmmc-bus1 {
rockchip,pins =
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot