Commit 6063498be896589ba8761e98479885557369cb5f

Authored by Masahiro Yamada
1 parent 4976f48275

ARM: dts: uniphier: add device tree for Micro Support Card

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>

Showing 6 changed files with 58 additions and 0 deletions Side-by-side Diff

arch/arm/dts/uniphier-ph1-ld4-ref.dts
... ... @@ -9,6 +9,7 @@
9 9 /dts-v1/;
10 10 /include/ "uniphier-ph1-ld4.dtsi"
11 11 /include/ "uniphier-ref-daughter.dtsi"
  12 +/include/ "uniphier-support-card.dtsi"
12 13  
13 14 / {
14 15 model = "UniPhier PH1-LD4 Reference Board";
... ... @@ -33,6 +34,10 @@
33 34 i2c2 = &i2c2;
34 35 i2c3 = &i2c3;
35 36 };
  37 +};
  38 +
  39 +&ethsc {
  40 + interrupts = <0 49 4>;
36 41 };
37 42  
38 43 &serial0 {
arch/arm/dts/uniphier-ph1-ld6b-ref.dts
... ... @@ -9,6 +9,7 @@
9 9 /dts-v1/;
10 10 /include/ "uniphier-ph1-ld6b.dtsi"
11 11 /include/ "uniphier-ref-daughter.dtsi"
  12 +/include/ "uniphier-support-card.dtsi"
12 13  
13 14 / {
14 15 model = "UniPhier PH1-LD6b Reference Board";
... ... @@ -35,6 +36,10 @@
35 36 i2c5 = &i2c5;
36 37 i2c6 = &i2c6;
37 38 };
  39 +};
  40 +
  41 +&ethsc {
  42 + interrupts = <0 52 4>;
38 43 };
39 44  
40 45 &serial0 {
arch/arm/dts/uniphier-ph1-pro4-ref.dts
... ... @@ -9,6 +9,7 @@
9 9 /dts-v1/;
10 10 /include/ "uniphier-ph1-pro4.dtsi"
11 11 /include/ "uniphier-ref-daughter.dtsi"
  12 +/include/ "uniphier-support-card.dtsi"
12 13  
13 14 / {
14 15 model = "UniPhier PH1-Pro4 Reference Board";
... ... @@ -36,6 +37,10 @@
36 37 i2c6 = &i2c6;
37 38 usb0 = &usb0;
38 39 };
  40 +};
  41 +
  42 +&ethsc {
  43 + interrupts = <0 50 4>;
39 44 };
40 45  
41 46 &serial0 {
arch/arm/dts/uniphier-ph1-sld3-ref.dts
... ... @@ -9,6 +9,7 @@
9 9 /dts-v1/;
10 10 /include/ "uniphier-ph1-sld3.dtsi"
11 11 /include/ "uniphier-ref-daughter.dtsi"
  12 +/include/ "uniphier-support-card.dtsi"
12 13  
13 14 / {
14 15 model = "UniPhier PH1-sLD3 Reference Board";
... ... @@ -34,6 +35,10 @@
34 35 i2c3 = &i2c3;
35 36 i2c4 = &i2c4;
36 37 };
  38 +};
  39 +
  40 +&ethsc {
  41 + interrupts = <0 49 4>;
37 42 };
38 43  
39 44 &serial0 {
arch/arm/dts/uniphier-ph1-sld8-ref.dts
... ... @@ -9,6 +9,7 @@
9 9 /dts-v1/;
10 10 /include/ "uniphier-ph1-sld8.dtsi"
11 11 /include/ "uniphier-ref-daughter.dtsi"
  12 +/include/ "uniphier-support-card.dtsi"
12 13  
13 14 / {
14 15 model = "UniPhier PH1-sLD8 Reference Board";
... ... @@ -33,6 +34,10 @@
33 34 i2c2 = &i2c2;
34 35 i2c3 = &i2c3;
35 36 };
  37 +};
  38 +
  39 +&ethsc {
  40 + interrupts = <0 48 4>;
36 41 };
37 42  
38 43 &serial0 {
arch/arm/dts/uniphier-support-card.dtsi
  1 +/*
  2 + * Device Tree Source for UniPhier Support Card (Expansion Board)
  3 + *
  4 + * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  5 + *
  6 + * SPDX-License-Identifier: GPL-2.0+ X11
  7 + */
  8 +
  9 +&system_bus {
  10 + status = "okay";
  11 + ranges = <1 0x00000000 0x42000000 0x02000000>;
  12 +
  13 + support_card: support_card {
  14 + compatible = "simple-bus";
  15 + #address-cells = <1>;
  16 + #size-cells = <1>;
  17 + ranges = <0x00000000 1 0x01f00000 0x00100000>;
  18 +
  19 + ethsc: ethernet@00000000 {
  20 + compatible = "smsc,lan9118", "smsc,lan9115";
  21 + reg = <0x00000000 0x1000>;
  22 + phy-mode = "mii";
  23 + reg-io-width = <4>;
  24 + };
  25 +
  26 + serialsc: uart@000b0000 {
  27 + compatible = "ns16550a";
  28 + reg = <0x000b0000 0x20>;
  29 + clock-frequency = <12288000>;
  30 + reg-shift = <1>;
  31 + };
  32 + };
  33 +};