Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1261332

[PATCH v5 4/4] ARM: dts: Add Ethernet chip to SMDK5410

From Pavel Fedin <p.fedin@samsung.com>
Newsgroups linux.kernel
Subject [PATCH v5 4/4] ARM: dts: Add Ethernet chip to SMDK5410
Date 2015-11-03 10:30 +0100
Message-ID <qqG4G-OO-23@gated-at.bofh.it> (permalink)
References <qqG4F-OO-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The chip is smsc9115, connected via SROMc bank 3. Additionally, some GPIO
initialization is required.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
---
 arch/arm/boot/dts/exynos5410-smdk5410.dts | 40 +++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts b/arch/arm/boot/dts/exynos5410-smdk5410.dts
index cebeaab..f41952f 100644
--- a/arch/arm/boot/dts/exynos5410-smdk5410.dts
+++ b/arch/arm/boot/dts/exynos5410-smdk5410.dts
@@ -61,6 +61,27 @@
 	disable-wp;
 };
 
+&pinctrl_0 {
+	srom_ctl: srom-ctl {
+		samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5",
+			       "gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3";
+		samsung,pin-function = <2>;
+		samsung,pin-drv = <0>;
+	};
+
+	srom_ebi: srom-ebi {
+		samsung,pins = "gpy3-0", "gpy3-1", "gpy3-2", "gpy3-3",
+			       "gpy3-4", "gpy3-5", "gpy3-6", "gpy3-7",
+			       "gpy5-0", "gpy5-1", "gpy5-2", "gpy5-3",
+			       "gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7",
+			       "gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3",
+			       "gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7";
+		samsung,pin-function = <2>;
+		samsung,pin-pud = <3>;
+		samsung,pin-drv = <0>;
+	};
+};
+
 &uart0 {
 	status = "okay";
 };
@@ -72,3 +93,22 @@
 &uart2 {
 	status = "okay";
 };
+
+&sromc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
+
+	ethernet@3 {
+		compatible = "smsc,lan9115";
+		reg = <3 0 0x10000>;
+		phy-mode = "mii";
+		interrupt-parent = <&gpx0>;
+		interrupts = <5 8>;
+		reg-io-width = <2>;
+		smsc,irq-push-pull;
+		smsc,force-internal-phy;
+
+		samsung,srom-page-mode = <1>;
+		samsung,srom-timing = <9 12 1 9 1 1>;
+	};
+};
-- 
2.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for  SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-03 10:30 +0100
  [PATCH v5 3/4] drivers: exynos-srom: Add support for bank configuration Pavel Fedin <p.fedin@samsung.com> - 2015-11-03 10:30 +0100
    Re: [PATCH v5 3/4] drivers: exynos-srom: Add support for bank  configuration Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-04 09:30 +0100
      RE: [PATCH v5 3/4] drivers: exynos-srom: Add support for bank  configuration Pavel Fedin <p.fedin@samsung.com> - 2015-11-05 11:50 +0100
        Re: [PATCH v5 3/4] drivers: exynos-srom: Add support for bank  configuration Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-05 12:10 +0100
  [PATCH v5 2/4] ARM: dts: Add SROMc to Exynos 5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-03 10:30 +0100
    Re: [PATCH v5 2/4] ARM: dts: Add SROMc to Exynos 5410 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-04 09:20 +0100
  [PATCH v5 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-03 10:30 +0100
    Re: [PATCH v5 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-04 09:30 +0100
      RE: [PATCH v5 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-05 12:20 +0100
        Re: [PATCH v5 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-05 12:30 +0100
          RE: [PATCH v5 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-05 12:40 +0100
  [PATCH v5 1/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin <p.fedin@samsung.com> - 2015-11-03 10:30 +0100
    Re: [PATCH v5 1/4] Documentation: dt-bindings: Describe SROMc  configuration Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-04 09:20 +0100
  Re: [PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for  SMDK5410 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-04 08:40 +0100
    Re: [PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for  SMDK5410 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-05 09:10 +0100
      RE: [PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for  SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-05 09:50 +0100
        Re: [PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for  SMDK5410 Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-05 10:00 +0100
          RE: [PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for  SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-05 10:10 +0100
    RE: [PATCH v5 0/4] Exynos SROMc configuration and Ethernet support for  SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-11-05 09:10 +0100

csiph-web