Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: Add Ethernet chip to exynos5410-smdk5410

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

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

authored by

Pavel Fedin and committed by
Krzysztof Kozlowski
a0904357 2c2012b4

+47
+41
arch/arm/boot/dts/exynos5410-smdk5410.dts
··· 11 11 12 12 /dts-v1/; 13 13 #include "exynos5410.dtsi" 14 + #include <dt-bindings/interrupt-controller/irq.h> 14 15 / { 15 16 model = "Samsung SMDK5410 board based on EXYNOS5410"; 16 17 compatible = "samsung,smdk5410", "samsung,exynos5410", "samsung,exynos5"; ··· 60 59 samsung,dw-mshc-ddr-timing = <1 2>; 61 60 bus-width = <4>; 62 61 disable-wp; 62 + }; 63 + 64 + &pinctrl_0 { 65 + srom_ctl: srom-ctl { 66 + samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5", 67 + "gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3"; 68 + samsung,pin-function = <2>; 69 + samsung,pin-drv = <0>; 70 + }; 71 + 72 + srom_ebi: srom-ebi { 73 + samsung,pins = "gpy3-0", "gpy3-1", "gpy3-2", "gpy3-3", 74 + "gpy3-4", "gpy3-5", "gpy3-6", "gpy3-7", 75 + "gpy5-0", "gpy5-1", "gpy5-2", "gpy5-3", 76 + "gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7", 77 + "gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3", 78 + "gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7"; 79 + samsung,pin-function = <2>; 80 + samsung,pin-pud = <3>; 81 + samsung,pin-drv = <0>; 82 + }; 83 + }; 84 + 85 + &sromc { 86 + pinctrl-names = "default"; 87 + pinctrl-0 = <&srom_ctl>, <&srom_ebi>; 88 + 89 + ethernet@3,0 { 90 + compatible = "smsc,lan9115"; 91 + reg = <3 0 0x10000>; 92 + phy-mode = "mii"; 93 + interrupt-parent = <&gpx0>; 94 + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; 95 + reg-io-width = <2>; 96 + smsc,irq-push-pull; 97 + smsc,force-internal-phy; 98 + 99 + samsung,srom-page-mode = <1>; 100 + samsung,srom-timing = <9 12 1 9 1 1>; 101 + }; 63 102 }; 64 103 65 104 &uart0 {
+6
arch/arm/boot/dts/exynos5410.dtsi
··· 104 104 sromc: sromc@12250000 { 105 105 compatible = "samsung,exynos-srom"; 106 106 reg = <0x12250000 0x14>; 107 + #address-cells = <2>; 108 + #size-cells = <1>; 109 + ranges = <0 0 0x04000000 0x20000 110 + 1 0 0x05000000 0x20000 111 + 2 0 0x06000000 0x20000 112 + 3 0 0x07000000 0x20000>; 107 113 }; 108 114 109 115 pmu_system_controller: system-controller@10040000 {