Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013,2014 Russell King |
| 3 | * |
| 4 | * This describes the hookup for an AR8035 to the iMX6 on the SolidRun |
| 5 | * MicroSOM. |
| 6 | */ |
| 7 | &fec { |
| 8 | pinctrl-names = "default"; |
| 9 | pinctrl-0 = <&pinctrl_microsom_enet_ar8035>; |
| 10 | phy-mode = "rgmii"; |
| 11 | phy-reset-duration = <2>; |
| 12 | phy-reset-gpios = <&gpio4 15 0>; |
| 13 | status = "okay"; |
| 14 | }; |
| 15 | |
| 16 | &iomuxc { |
| 17 | enet { |
| 18 | pinctrl_microsom_enet_ar8035: microsom-enet-ar8035 { |
| 19 | fsl,pins = < |
Rabeeh Khoury | bf81472 | 2014-08-23 10:11:21 +0100 | [diff] [blame] | 20 | MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b8b0 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 21 | MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0 |
| 22 | /* AR8035 reset */ |
| 23 | MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x130b0 |
| 24 | /* AR8035 interrupt */ |
| 25 | MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x80000000 |
| 26 | /* GPIO16 -> AR8035 25MHz */ |
| 27 | MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0xc0000000 |
| 28 | MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x80000000 |
Russell King | 2e3b965 | 2014-04-06 23:32:25 +0100 | [diff] [blame] | 29 | MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030 |
| 30 | MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030 |
| 31 | MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030 |
| 32 | MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030 |
| 33 | MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 34 | /* AR8035 CLK_25M --> ENET_REF_CLK (V22) */ |
| 35 | MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x0a0b1 |
| 36 | /* AR8035 pin strapping: IO voltage: pull up */ |
Russell King | 2e3b965 | 2014-04-06 23:32:25 +0100 | [diff] [blame] | 37 | MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 38 | /* AR8035 pin strapping: PHYADDR#0: pull down */ |
Russell King | 2e3b965 | 2014-04-06 23:32:25 +0100 | [diff] [blame] | 39 | MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x13030 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 40 | /* AR8035 pin strapping: PHYADDR#1: pull down */ |
Russell King | 2e3b965 | 2014-04-06 23:32:25 +0100 | [diff] [blame] | 41 | MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x13030 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 42 | /* AR8035 pin strapping: MODE#1: pull up */ |
Russell King | 2e3b965 | 2014-04-06 23:32:25 +0100 | [diff] [blame] | 43 | MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 44 | /* AR8035 pin strapping: MODE#3: pull up */ |
Russell King | 2e3b965 | 2014-04-06 23:32:25 +0100 | [diff] [blame] | 45 | MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 46 | /* AR8035 pin strapping: MODE#0: pull down */ |
Russell King | 2e3b965 | 2014-04-06 23:32:25 +0100 | [diff] [blame] | 47 | MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x13030 |
Russell King | 208d7baf | 2013-09-27 20:07:26 +0100 | [diff] [blame] | 48 | |
| 49 | /* |
| 50 | * As the RMII pins are also connected to RGMII |
| 51 | * so that an AR8030 can be placed, set these |
| 52 | * to high-z with the same pulls as above. |
| 53 | * Use the GPIO settings to avoid changing the |
| 54 | * input select registers. |
| 55 | */ |
| 56 | MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x03000 |
| 57 | MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x03000 |
| 58 | MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x03000 |
| 59 | >; |
| 60 | }; |
| 61 | }; |
| 62 | }; |