From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: linux-arm-kernel@lists.infradead.org
Cc: kevin@allwinnertech.com, sunny@allwinnertech.com,
shuge@allwinnertech.com, netdev@vger.kernel.org,
Stefan Roese <sr@denx.de>, Alejandro Mery <amery@geeks.cl>,
Russell King <linux@arm.linux.org.uk>,
linux-kernel@vger.kernel.org
Subject: [PATCH 5/5] ARM: hackberry: dt: Add Ethernet controller to the Hackberry device tree
Date: Sat, 23 Mar 2013 23:30:14 +0100 [thread overview]
Message-ID: <1364077814-2233-6-git-send-email-maxime.ripard@free-electrons.com> (raw)
In-Reply-To: <1364077814-2233-1-git-send-email-maxime.ripard@free-electrons.com>
The Hackberry has a PHY that needs to be powered up through a GPIO, so
we need to use a fixed regulator here.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/sun4i-a10-hackberry.dts | 32 +++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/sun4i-a10-hackberry.dts b/arch/arm/boot/dts/sun4i-a10-hackberry.dts
index f84549a..072d51f 100644
--- a/arch/arm/boot/dts/sun4i-a10-hackberry.dts
+++ b/arch/arm/boot/dts/sun4i-a10-hackberry.dts
@@ -23,8 +23,40 @@
};
soc {
+ pio: pinctrl@01c20800 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&hackberry_hogs>;
+
+ hackberry_hogs: hogs@0 {
+ allwinner,pins = "PH19";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <0>;
+ allwinner,pull = <0>;
+ };
+ };
+
uart0: uart@01c28000 {
status = "okay";
};
+
+ emac: ethernet@01c0b000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&emac_pins_a>;
+ phy-supply = <®_emac_3v3>;
+ status = "okay";
+ };
+ };
+
+ regulators {
+ compatible = "simple-bus";
+
+ reg_emac_3v3: emac-3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "emac-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ enable-active-high;
+ gpio = <&pio 7 19 0>;
+ };
};
};
--
1.7.10.4
next prev parent reply other threads:[~2013-03-23 22:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1364077814-2233-1-git-send-email-maxime.ripard@free-electrons.com>
2013-03-23 22:30 ` [PATCH 1/5] net: Add EMAC ethernet driver found on Allwinner A10 SoC's Maxime Ripard
2013-03-24 19:03 ` Florian Fainelli
2013-04-04 15:37 ` Stefan Roese
2013-03-23 22:30 ` [PATCH 2/5] ARM: sunxi: Add EMAC controller node to sun4i DTSI Maxime Ripard
2013-03-23 22:30 ` [PATCH 3/5] ARM: sun4i: Add muxing options for the ethernet controller Maxime Ripard
2013-03-23 22:30 ` [PATCH 4/5] ARM: cubieboard: Enable ethernet (WEMAC) support in dts Maxime Ripard
2013-03-23 22:30 ` Maxime Ripard [this message]
[not found] <1363380605-6577-1-git-send-email-maxime.ripard@free-electrons.com>
2013-03-15 20:50 ` [PATCH 5/5] ARM: hackberry: dt: Add Ethernet controller to the Hackberry device tree Maxime Ripard
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=1364077814-2233-6-git-send-email-maxime.ripard@free-electrons.com \
--to=maxime.ripard@free-electrons.com \
--cc=amery@geeks.cl \
--cc=kevin@allwinnertech.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=shuge@allwinnertech.com \
--cc=sr@denx.de \
--cc=sunny@allwinnertech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®