OSDN Git Service

ARM: dts: sbc-t3x: refactor DT support
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / arm / boot / dts / omap3-cm-t3x30.dtsi
1 /*
2  * Common support for CompuLab CM-T3x30 CoMs
3  */
4
5 #include "omap3-cm-t3x.dtsi"
6
7 / {
8         cpus {
9                 cpu@0 {
10                         cpu0-supply = <&vcc>;
11                 };
12         };
13
14         vddvario: regulator-vddvario {
15                 compatible = "regulator-fixed";
16                 regulator-name = "vddvario";
17                 regulator-always-on;
18         };
19
20         vdd33a: regulator-vdd33a {
21                 compatible = "regulator-fixed";
22                 regulator-name = "vdd33a";
23                 regulator-always-on;
24         };
25 };
26
27 &omap3_pmx_core {
28
29         smsc1_pins: pinmux_smsc1_pins {
30                 pinctrl-single,pins = <
31                         OMAP3_CORE1_IOPAD(0x20b8, PIN_OUTPUT | MUX_MODE0)       /* gpmc_ncs5.gpmc_ncs5 */
32                         OMAP3_CORE1_IOPAD(0x219a, PIN_INPUT_PULLUP | MUX_MODE4) /* uart3_cts_rctx.gpio_163 */
33                 >;
34         };
35 };
36
37 &gpmc {
38         ranges = <5 0 0x2c000000 0x01000000>;
39
40         smsc1: ethernet@5,0 {
41                 compatible = "smsc,lan9221", "smsc,lan9115";
42                 pinctrl-names = "default";
43                 pinctrl-0 = <&smsc1_pins>;
44                 interrupt-parent = <&gpio6>;
45                 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
46                 reg = <5 0 0xff>;
47                 bank-width = <2>;
48                 gpmc,mux-add-data;
49                 gpmc,cs-on-ns = <0>;
50                 gpmc,cs-rd-off-ns = <186>;
51                 gpmc,cs-wr-off-ns = <186>;
52                 gpmc,adv-on-ns = <12>;
53                 gpmc,adv-rd-off-ns = <48>;
54                 gpmc,adv-wr-off-ns = <48>;
55                 gpmc,oe-on-ns = <54>;
56                 gpmc,oe-off-ns = <168>;
57                 gpmc,we-on-ns = <54>;
58                 gpmc,we-off-ns = <168>;
59                 gpmc,rd-cycle-ns = <186>;
60                 gpmc,wr-cycle-ns = <186>;
61                 gpmc,access-ns = <114>;
62                 gpmc,page-burst-access-ns = <6>;
63                 gpmc,bus-turnaround-ns = <12>;
64                 gpmc,cycle2cycle-delay-ns = <18>;
65                 gpmc,wr-data-mux-bus-ns = <90>;
66                 gpmc,wr-access-ns = <186>;
67                 gpmc,cycle2cycle-samecsen;
68                 gpmc,cycle2cycle-diffcsen;
69                 vddvario-supply = <&vddvario>;
70                 vdd33a-supply = <&vdd33a>;
71                 reg-io-width = <4>;
72                 smsc,save-mac-address;
73         };
74 };
75
76 &i2c1 {
77         twl: twl@48 {
78                 reg = <0x48>;
79                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
80                 interrupt-parent = <&intc>;
81         };
82 };
83
84 #include "twl4030.dtsi"
85 #include "twl4030_omap3.dtsi"
86
87 &mmc1 {
88         vmmc-supply = <&vmmc1>;
89 };
90
91 &twl_gpio {
92         ti,use-leds;
93 };