From: Mugunthan V N <mugunthanvnm@ti.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
linux-omap@vger.kernel.org
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Tony Lindgren <tony@atomide.com>, Felipe Balbi <balbi@ti.com>,
Praveen Rao <prao@ti.com>
Subject: Re: [PATCH 2/3] arm: dts: dra7: Enable CPSW and MDIO for dra7xx EVM
Date: Wed, 9 Jul 2014 15:11:18 +0530 [thread overview]
Message-ID: <53BD0E3E.60405@ti.com> (raw)
In-Reply-To: <1404844852-19980-2-git-send-email-bigeasy@linutronix.de>
On Wednesday 09 July 2014 12:10 AM, Sebastian Andrzej Siewior wrote:
> From: Mugunthan V N <mugunthanvnm@ti.com>
>
> Adding CPSW phy-id, CPSW and MDIO pinmux configuration for active
> and sleep states and enable them in board evm dts file.
>
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> [Resolved merge conflict and rebased on 3.8 kernel.
> Update the pinmux configuration for CPSW and MDIO by removing the
> macro definitons to match the 3.8 implementation.]
> Signed-off-by: Praveen Rao <prao@ti.com>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> arch/arm/boot/dts/dra7-evm.dts | 61 ++++++++++++++++++++++++++++++++++++++++++
> arch/arm/boot/dts/dra7.dtsi | 48 +++++++++++++++++++++++++++++++++
> 2 files changed, 109 insertions(+)
>
> diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
> index 4adc280..956a7bd 100644
> --- a/arch/arm/boot/dts/dra7-evm.dts
> +++ b/arch/arm/boot/dts/dra7-evm.dts
> @@ -94,6 +94,46 @@
> >;
> };
>
> + cpsw_default_pins: pinmux_cpsw_default_pins {
> + pinctrl-single,pins = <
> + /* Slave 1 */
> + 0x250 0x0 /* rgmii1_tclk PIN_OUTPUT | MUX_MODE0 */
> + 0x254 0x0 /* rgmii1_tctl PIN_OUTPUT | MUX_MODE0 */
> + 0x258 0x0 /* rgmii1_td3 PIN_OUTPUT | MUX_MODE0 */
> + 0x25c 0x0 /* rgmii1_td2 PIN_OUTPUT | MUX_MODE0 */
> + 0x260 0x0 /* rgmii1_td1 PIN_OUTPUT | MUX_MODE0 */
> + 0x264 0x0 /* rgmii1_td0 PIN_OUTPUT | MUX_MODE0 */
> + 0x268 0x00040000 /* rgmii1_rclk PIN_INPUT | MUX_MODE0 */
> + 0x26c 0x00040000 /* rgmii1_rctl PIN_INPUT | MUX_MODE0 */
> + 0x270 0x00040000 /* rgmii1_rd3 PIN_INPUT | MUX_MODE0 */
> + 0x274 0x00040000 /* rgmii1_rd2 PIN_INPUT | MUX_MODE0 */
> + 0x278 0x00040000 /* rgmii1_rd1 PIN_INPUT | MUX_MODE0 */
> + 0x27c 0x00040000 /* rgmii1_rd0 PIN_INPUT | MUX_MODE0 */
> +
> + /* Slave 2 */
> + 0x198 0x4 /* rgmii2_tclk PIN_OUTPUT | MUX_MODE4 */
> + 0x19c 0x4 /* rgmii2_tctl PIN_OUTPUT | MUX_MODE4 */
> + 0x1a0 0x4 /* rgmii2_td3 PIN_OUTPUT | MUX_MODE4 */
> + 0x1a4 0x4 /* rgmii2_td2 PIN_OUTPUT | MUX_MODE4 */
> + 0x1a8 0x4 /* rgmii2_td1 PIN_OUTPUT | MUX_MODE4 */
> + 0x1ac 0x4 /* rgmii2_td0 PIN_OUTPUT | MUX_MODE4 */
> + 0x1b0 0x00040004 /* rgmii2_rclk PIN_INPUT | MUX_MODE4 */
> + 0x1b4 0x00040004 /* rgmii2_rctl PIN_INPUT | MUX_MODE4 */
> + 0x1b8 0x00040004 /* rgmii2_rd3 PIN_INPUT | MUX_MODE4 */
> + 0x1bc 0x00040004 /* rgmii2_rd2 PIN_INPUT | MUX_MODE4 */
> + 0x1c0 0x00040004 /* rgmii2_rd1 PIN_INPUT | MUX_MODE4 */
> + 0x1c4 0x00040004 /* rgmii2_rd0 PIN_INPUT | MUX_MODE4 */
> + >;
> + };
> +
> + davinci_mdio_default_pins: pinmux_davinci_mdio_default_pins {
> + pinctrl-single,pins = <
> + /* MDIO */
> + 0x23c 0x30000 /* mdio_data PIN_OUTPUT_PULLUP | MUX_MODE0 */
> + 0x240 0x70000 /* mdio_clk PIN_INPUT_PULLUP | MUX_MODE0 */
> + >;
> + };
> +
> qspi1_pins: pinmux_qspi1_pins {
> pinctrl-single,pins = <
> 0x4c (PIN_INPUT | MUX_MODE1) /* gpmc_a3.qspi1_cs2 */
> @@ -332,6 +372,27 @@
> cpu0-supply = <&smps123_reg>;
> };
>
> +&gmac {
> + status="okay";
> + pinctrl-names = "default";
> + pinctrl-0 = <&cpsw_default_pins>;
> +};
> +
> +&davinci_mdio {
> + pinctrl-names = "default";
> + pinctrl-0 = <&davinci_mdio_default_pins>;
> +};
> +
> +&cpsw_emac0 {
> + phy_id = <&davinci_mdio>, <2>;
> + phy-mode = "rgmii-txid";
> +};
> +
> +&cpsw_emac1 {
> + phy_id = <&davinci_mdio>, <3>;
> + phy-mode = "rgmii-txid";
> +};
> +
> &qspi {
> status = "okay";
> pinctrl-names = "default";
> diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
> index c29945e..daf7d36 100644
> --- a/arch/arm/boot/dts/dra7.dtsi
> +++ b/arch/arm/boot/dts/dra7.dtsi
> @@ -763,6 +763,54 @@
> status = "disabled";
> };
>
> + gmac: ethernet@48484000 {
> + compatible = "ti,cpsw";
> + ti,hwmods = "gmac";
> + cpdma_channels = <8>;
> + ale_entries = <1024>;
> + bd_ram_size = <0x2000>;
> + no_bd_ram = <0>;
> + rx_descs = <64>;
> + mac_control = <0x20>;
> + slaves = <2>;
> + active_slave = <0>;
> + cpts_clock_mult = <0x80000000>;
> + cpts_clock_shift = <29>;
> + reg = <0x48484000 0x800
> + 0x48485200 0x100>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + /*
> + * rx_thresh_pend
> + * rx_pend
> + * tx_pend
> + * misc_pend
> + */
> + interrupts = <0 50 0x4>,
> + <0 51 0x4>,
> + <0 52 0x4>,
> + <0 53 0x4>;
These interrupts are not correct, I have already posted and are waiting
for crossbar to be merged.
Hence NAK
Regards
Mugunthan V N
> + ranges;
> + status = "disabled";
> +
> + davinci_mdio: mdio@48485000 {
> + compatible = "ti,davinci_mdio";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + ti,hwmods = "davinci_mdio";
> + bus_freq = <1000000>;
> + reg = <0x48485000 0x100>;
> + };
> +
> + cpsw_emac0: slave@48484200 {
> + mac-address = [ 00 00 00 00 00 00 ];
> + };
> +
> + cpsw_emac1: slave@48484300 {
> + mac-address = [ 00 00 00 00 00 00 ];
> + };
> + };
> +
> qspi: qspi@4b300000 {
> compatible = "ti,dra7xxx-qspi";
> reg = <0x4b300000 0x100>;
WARNING: multiple messages have this Message-ID (diff)
From: mugunthanvnm@ti.com (Mugunthan V N)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] arm: dts: dra7: Enable CPSW and MDIO for dra7xx EVM
Date: Wed, 9 Jul 2014 15:11:18 +0530 [thread overview]
Message-ID: <53BD0E3E.60405@ti.com> (raw)
In-Reply-To: <1404844852-19980-2-git-send-email-bigeasy@linutronix.de>
On Wednesday 09 July 2014 12:10 AM, Sebastian Andrzej Siewior wrote:
> From: Mugunthan V N <mugunthanvnm@ti.com>
>
> Adding CPSW phy-id, CPSW and MDIO pinmux configuration for active
> and sleep states and enable them in board evm dts file.
>
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> [Resolved merge conflict and rebased on 3.8 kernel.
> Update the pinmux configuration for CPSW and MDIO by removing the
> macro definitons to match the 3.8 implementation.]
> Signed-off-by: Praveen Rao <prao@ti.com>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> arch/arm/boot/dts/dra7-evm.dts | 61 ++++++++++++++++++++++++++++++++++++++++++
> arch/arm/boot/dts/dra7.dtsi | 48 +++++++++++++++++++++++++++++++++
> 2 files changed, 109 insertions(+)
>
> diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
> index 4adc280..956a7bd 100644
> --- a/arch/arm/boot/dts/dra7-evm.dts
> +++ b/arch/arm/boot/dts/dra7-evm.dts
> @@ -94,6 +94,46 @@
> >;
> };
>
> + cpsw_default_pins: pinmux_cpsw_default_pins {
> + pinctrl-single,pins = <
> + /* Slave 1 */
> + 0x250 0x0 /* rgmii1_tclk PIN_OUTPUT | MUX_MODE0 */
> + 0x254 0x0 /* rgmii1_tctl PIN_OUTPUT | MUX_MODE0 */
> + 0x258 0x0 /* rgmii1_td3 PIN_OUTPUT | MUX_MODE0 */
> + 0x25c 0x0 /* rgmii1_td2 PIN_OUTPUT | MUX_MODE0 */
> + 0x260 0x0 /* rgmii1_td1 PIN_OUTPUT | MUX_MODE0 */
> + 0x264 0x0 /* rgmii1_td0 PIN_OUTPUT | MUX_MODE0 */
> + 0x268 0x00040000 /* rgmii1_rclk PIN_INPUT | MUX_MODE0 */
> + 0x26c 0x00040000 /* rgmii1_rctl PIN_INPUT | MUX_MODE0 */
> + 0x270 0x00040000 /* rgmii1_rd3 PIN_INPUT | MUX_MODE0 */
> + 0x274 0x00040000 /* rgmii1_rd2 PIN_INPUT | MUX_MODE0 */
> + 0x278 0x00040000 /* rgmii1_rd1 PIN_INPUT | MUX_MODE0 */
> + 0x27c 0x00040000 /* rgmii1_rd0 PIN_INPUT | MUX_MODE0 */
> +
> + /* Slave 2 */
> + 0x198 0x4 /* rgmii2_tclk PIN_OUTPUT | MUX_MODE4 */
> + 0x19c 0x4 /* rgmii2_tctl PIN_OUTPUT | MUX_MODE4 */
> + 0x1a0 0x4 /* rgmii2_td3 PIN_OUTPUT | MUX_MODE4 */
> + 0x1a4 0x4 /* rgmii2_td2 PIN_OUTPUT | MUX_MODE4 */
> + 0x1a8 0x4 /* rgmii2_td1 PIN_OUTPUT | MUX_MODE4 */
> + 0x1ac 0x4 /* rgmii2_td0 PIN_OUTPUT | MUX_MODE4 */
> + 0x1b0 0x00040004 /* rgmii2_rclk PIN_INPUT | MUX_MODE4 */
> + 0x1b4 0x00040004 /* rgmii2_rctl PIN_INPUT | MUX_MODE4 */
> + 0x1b8 0x00040004 /* rgmii2_rd3 PIN_INPUT | MUX_MODE4 */
> + 0x1bc 0x00040004 /* rgmii2_rd2 PIN_INPUT | MUX_MODE4 */
> + 0x1c0 0x00040004 /* rgmii2_rd1 PIN_INPUT | MUX_MODE4 */
> + 0x1c4 0x00040004 /* rgmii2_rd0 PIN_INPUT | MUX_MODE4 */
> + >;
> + };
> +
> + davinci_mdio_default_pins: pinmux_davinci_mdio_default_pins {
> + pinctrl-single,pins = <
> + /* MDIO */
> + 0x23c 0x30000 /* mdio_data PIN_OUTPUT_PULLUP | MUX_MODE0 */
> + 0x240 0x70000 /* mdio_clk PIN_INPUT_PULLUP | MUX_MODE0 */
> + >;
> + };
> +
> qspi1_pins: pinmux_qspi1_pins {
> pinctrl-single,pins = <
> 0x4c (PIN_INPUT | MUX_MODE1) /* gpmc_a3.qspi1_cs2 */
> @@ -332,6 +372,27 @@
> cpu0-supply = <&smps123_reg>;
> };
>
> +&gmac {
> + status="okay";
> + pinctrl-names = "default";
> + pinctrl-0 = <&cpsw_default_pins>;
> +};
> +
> +&davinci_mdio {
> + pinctrl-names = "default";
> + pinctrl-0 = <&davinci_mdio_default_pins>;
> +};
> +
> +&cpsw_emac0 {
> + phy_id = <&davinci_mdio>, <2>;
> + phy-mode = "rgmii-txid";
> +};
> +
> +&cpsw_emac1 {
> + phy_id = <&davinci_mdio>, <3>;
> + phy-mode = "rgmii-txid";
> +};
> +
> &qspi {
> status = "okay";
> pinctrl-names = "default";
> diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
> index c29945e..daf7d36 100644
> --- a/arch/arm/boot/dts/dra7.dtsi
> +++ b/arch/arm/boot/dts/dra7.dtsi
> @@ -763,6 +763,54 @@
> status = "disabled";
> };
>
> + gmac: ethernet at 48484000 {
> + compatible = "ti,cpsw";
> + ti,hwmods = "gmac";
> + cpdma_channels = <8>;
> + ale_entries = <1024>;
> + bd_ram_size = <0x2000>;
> + no_bd_ram = <0>;
> + rx_descs = <64>;
> + mac_control = <0x20>;
> + slaves = <2>;
> + active_slave = <0>;
> + cpts_clock_mult = <0x80000000>;
> + cpts_clock_shift = <29>;
> + reg = <0x48484000 0x800
> + 0x48485200 0x100>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + /*
> + * rx_thresh_pend
> + * rx_pend
> + * tx_pend
> + * misc_pend
> + */
> + interrupts = <0 50 0x4>,
> + <0 51 0x4>,
> + <0 52 0x4>,
> + <0 53 0x4>;
These interrupts are not correct, I have already posted and are waiting
for crossbar to be merged.
Hence NAK
Regards
Mugunthan V N
> + ranges;
> + status = "disabled";
> +
> + davinci_mdio: mdio at 48485000 {
> + compatible = "ti,davinci_mdio";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + ti,hwmods = "davinci_mdio";
> + bus_freq = <1000000>;
> + reg = <0x48485000 0x100>;
> + };
> +
> + cpsw_emac0: slave at 48484200 {
> + mac-address = [ 00 00 00 00 00 00 ];
> + };
> +
> + cpsw_emac1: slave at 48484300 {
> + mac-address = [ 00 00 00 00 00 00 ];
> + };
> + };
> +
> qspi: qspi at 4b300000 {
> compatible = "ti,dra7xxx-qspi";
> reg = <0x4b300000 0x100>;
next prev parent reply other threads:[~2014-07-09 9:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 18:40 [PATCH 1/3] arm: dra7xx: Add hwmod data for MDIO and CPSW Sebastian Andrzej Siewior
2014-07-08 18:40 ` Sebastian Andrzej Siewior
2014-07-08 18:40 ` [PATCH 2/3] arm: dts: dra7: Enable CPSW and MDIO for dra7xx EVM Sebastian Andrzej Siewior
2014-07-08 18:40 ` Sebastian Andrzej Siewior
2014-07-09 9:41 ` Mugunthan V N [this message]
2014-07-09 9:41 ` Mugunthan V N
2014-07-08 18:40 ` [PATCH 3/3] arm: dts: dra7: fixup qspi entry Sebastian Andrzej Siewior
2014-07-08 18:40 ` Sebastian Andrzej Siewior
2014-07-09 10:07 ` sourav
2014-07-09 10:07 ` sourav
2014-07-09 10:18 ` Sebastian Andrzej Siewior
2014-07-09 10:18 ` Sebastian Andrzej Siewior
2014-07-09 10:26 ` Tony Lindgren
2014-07-09 10:26 ` Tony Lindgren
2014-07-09 9:08 ` [PATCH 1/3] arm: dra7xx: Add hwmod data for MDIO and CPSW Tony Lindgren
2014-07-09 9:08 ` Tony Lindgren
2014-07-09 9:38 ` Mugunthan V N
2014-07-09 9:38 ` Mugunthan V N
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53BD0E3E.60405@ti.com \
--to=mugunthanvnm@ti.com \
--cc=balbi@ti.com \
--cc=bigeasy@linutronix.de \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=prao@ti.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.