]> git.sur5r.net Git - u-boot/commitdiff
ARM: dts: uniphier: add device tree for Micro Support Card
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 18 Mar 2016 07:41:40 +0000 (16:41 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 23 Mar 2016 16:36:55 +0000 (01:36 +0900)
Import uniphier-support-card.dtsi from Linux Kernel and make it
available on the UniPhier reference boards.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/dts/uniphier-ph1-ld4-ref.dts
arch/arm/dts/uniphier-ph1-ld6b-ref.dts
arch/arm/dts/uniphier-ph1-pro4-ref.dts
arch/arm/dts/uniphier-ph1-sld3-ref.dts
arch/arm/dts/uniphier-ph1-sld8-ref.dts
arch/arm/dts/uniphier-support-card.dtsi [new file with mode: 0644]

index d7b000796e1e6d7c5d8d0ffbb1f9b4a70be9806b..6cae452d7da010d443bf36c1e83e1c94014b960a 100644 (file)
@@ -9,6 +9,7 @@
 /dts-v1/;
 /include/ "uniphier-ph1-ld4.dtsi"
 /include/ "uniphier-ref-daughter.dtsi"
+/include/ "uniphier-support-card.dtsi"
 
 / {
        model = "UniPhier PH1-LD4 Reference Board";
        };
 };
 
+&ethsc {
+       interrupts = <0 49 4>;
+};
+
 &serial0 {
        status = "okay";
 };
index 13a29fdfaa1a1531f1024296cdc8df7ab3c12a51..e2a2a8c5ce18785c8d7e08ccccac44c8c69f8377 100644 (file)
@@ -9,6 +9,7 @@
 /dts-v1/;
 /include/ "uniphier-ph1-ld6b.dtsi"
 /include/ "uniphier-ref-daughter.dtsi"
+/include/ "uniphier-support-card.dtsi"
 
 / {
        model = "UniPhier PH1-LD6b Reference Board";
        };
 };
 
+&ethsc {
+       interrupts = <0 52 4>;
+};
+
 &serial0 {
        status = "okay";
 };
index 07a9783357f5649dcca43502354e1a4d61d9487d..5be76e2d66e84025548736aa4fce314b6ae17d0a 100644 (file)
@@ -9,6 +9,7 @@
 /dts-v1/;
 /include/ "uniphier-ph1-pro4.dtsi"
 /include/ "uniphier-ref-daughter.dtsi"
+/include/ "uniphier-support-card.dtsi"
 
 / {
        model = "UniPhier PH1-Pro4 Reference Board";
        };
 };
 
+&ethsc {
+       interrupts = <0 50 4>;
+};
+
 &serial0 {
        status = "okay";
 };
index c7213c9ff4c49e48ede85602ca7599f4ef694151..c4601cf7bea56b190a44dfecee38df2bd2b6375c 100644 (file)
@@ -9,6 +9,7 @@
 /dts-v1/;
 /include/ "uniphier-ph1-sld3.dtsi"
 /include/ "uniphier-ref-daughter.dtsi"
+/include/ "uniphier-support-card.dtsi"
 
 / {
        model = "UniPhier PH1-sLD3 Reference Board";
        };
 };
 
+&ethsc {
+       interrupts = <0 49 4>;
+};
+
 &serial0 {
        status = "okay";
 };
index ec5c5bdadca47dcef890790b7cc556040fda297a..8ceb93e9f5d4867f4fa917e27bedf53b023d7f5b 100644 (file)
@@ -9,6 +9,7 @@
 /dts-v1/;
 /include/ "uniphier-ph1-sld8.dtsi"
 /include/ "uniphier-ref-daughter.dtsi"
+/include/ "uniphier-support-card.dtsi"
 
 / {
        model = "UniPhier PH1-sLD8 Reference Board";
        };
 };
 
+&ethsc {
+       interrupts = <0 48 4>;
+};
+
 &serial0 {
        status = "okay";
 };
diff --git a/arch/arm/dts/uniphier-support-card.dtsi b/arch/arm/dts/uniphier-support-card.dtsi
new file mode 100644 (file)
index 0000000..be0f1d6
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Device Tree Source for UniPhier Support Card (Expansion Board)
+ *
+ * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
+ *
+ * SPDX-License-Identifier:    GPL-2.0+        X11
+ */
+
+&system_bus {
+       status = "okay";
+       ranges = <1 0x00000000 0x42000000 0x02000000>;
+
+       support_card: support_card {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0x00000000 1 0x01f00000 0x00100000>;
+
+               ethsc: ethernet@00000000 {
+                       compatible = "smsc,lan9118", "smsc,lan9115";
+                       reg = <0x00000000 0x1000>;
+                       phy-mode = "mii";
+                       reg-io-width = <4>;
+               };
+
+               serialsc: uart@000b0000 {
+                       compatible = "ns16550a";
+                       reg = <0x000b0000 0x20>;
+                       clock-frequency = <12288000>;
+                       reg-shift = <1>;
+               };
+       };
+};