blob: a6d5ff73c163074b03f21ea77aed21103f84d096 [file] [log] [blame]
Adam Fordff4fc592018-07-09 19:52:48 -05001/*
2 * Copyright (C) 2016 Derald D. Woods <woods.technical@gmail.com>
3 *
4 * Based on am3517-evm.dts
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11/ {
12 cpus {
13 cpu@0 {
14 cpu0-supply = <&vdd_core_reg>;
15 };
16 };
17};
18
19&gpmc {
20 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
21
22 nand@0,0 {
23 compatible = "ti,omap2-nand";
24 linux,mtd-name = "micron,mt29f4g16abchch";
25 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
26 nand-bus-width = <16>;
27 ti,nand-ecc-opt = "bch8";
28 gpmc,sync-clk-ps = <0>;
29 gpmc,cs-on-ns = <0>;
30 gpmc,cs-rd-off-ns = <44>;
31 gpmc,cs-wr-off-ns = <44>;
32 gpmc,adv-on-ns = <6>;
33 gpmc,adv-rd-off-ns = <34>;
34 gpmc,adv-wr-off-ns = <44>;
35 gpmc,we-off-ns = <40>;
36 gpmc,oe-off-ns = <54>;
37 gpmc,access-ns = <64>;
38 gpmc,rd-cycle-ns = <82>;
39 gpmc,wr-cycle-ns = <82>;
40 gpmc,wr-access-ns = <40>;
41 gpmc,wr-data-mux-bus-ns = <0>;
42 gpmc,device-width = <2>;
43 #address-cells = <1>;
44 #size-cells = <1>;
45 };
46};
47
48&i2c1 {
49 clock-frequency = <400000>;
50
51 s35390a: s35390a@30 {
52 compatible = "sii,s35390a";
53 reg = <0x30>;
54
55 pinctrl-names = "default";
56 pinctrl-0 = <&rtc_pins>;
57 interrupts-extended = <&gpio2 23 IRQ_TYPE_EDGE_FALLING>; /* gpio_55 */
58 };
59
60 tps: tps65023@48 {
61 compatible = "ti,tps65023";
62 reg = <0x48>;
63
64 regulators {
65 vdd_core_reg: VDCDC1 {
66 regulator-name = "vdd_core";
67 compatible = "regulator-fixed";
68 regulator-always-on;
69 regulator-min-microvolt = <1200000>;
70 regulator-max-microvolt = <1200000>;
71 };
72
73 vdd_io_reg: VDCDC2 {
74 regulator-name = "vdd_io";
75 compatible = "regulator-fixed";
76 regulator-always-on;
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
79 };
80
81 vdd_1v8_reg: VDCDC3 {
82 regulator-name = "vdd_1v8";
83 compatible = "regulator-fixed";
84 regulator-always-on;
85 regulator-min-microvolt = <1800000>;
86 regulator-max-microvolt = <1800000>;
87 };
88
89 vdd_usb18_reg: LDO1 {
90 regulator-name = "vdd_usb18";
91 compatible = "regulator-fixed";
92 regulator-always-on;
93 regulator-min-microvolt = <1800000>;
94 regulator-max-microvolt = <1800000>;
95 };
96
97 vdd_usb33_reg: LDO2 {
98 regulator-name = "vdd_usb33";
99 compatible = "regulator-fixed";
100 regulator-always-on;
101 regulator-min-microvolt = <3300000>;
102 regulator-max-microvolt = <3300000>;
103 };
104 };
105 };
106
107 touchscreen: tsc2004@4b {
108 compatible = "ti,tsc2004";
109 reg = <0x4b>;
110
111 vio-supply = <&vdd_io_reg>;
112
113 pinctrl-names = "default";
114 pinctrl-0 = <&tsc2004_pins>;
115 interrupts-extended = <&gpio3 1 IRQ_TYPE_EDGE_RISING>; /* gpio_65 */
116
117 touchscreen-fuzz-x = <4>;
118 touchscreen-fuzz-y = <7>;
119 touchscreen-fuzz-pressure = <2>;
120 touchscreen-size-x = <480>;
121 touchscreen-size-y = <272>;
122 touchscreen-max-pressure = <2048>;
123
124 ti,x-plate-ohms = <280>;
125 ti,esd-recovery-timeout-ms = <8000>;
126 };
127};
128
129&omap3_pmx_core {
130
131 rtc_pins: pinmux_rtc_pins {
132 pinctrl-single,pins = <
133 OMAP3_CORE1_IOPAD(0x20b6, PIN_INPUT_PULLUP | MUX_MODE4) /* gpmc_ncs4.gpio_55 */
134 >;
135 };
136
137 tsc2004_pins: pinmux_tsc2004_pins {
138 pinctrl-single,pins = <
139 OMAP3_CORE1_IOPAD(0x20d2, PIN_INPUT | MUX_MODE4) /* gpmc_wait3.gpio_65 */
140 >;
141 };
142};