0001 // SPDX-License-Identifier: GPL-2.0-only
0002
0003 / {
0004 gpio_keys {
0005 compatible = "gpio-keys";
0006 pinctrl-names = "default";
0007 pinctrl-0 = <&gpio_key_pins &gpio_key_pins_wkup>;
0008
0009 sysboot2 {
0010 label = "sysboot2";
0011 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; /* gpio2 */
0012 linux,code = <BTN_0>;
0013 wakeup-source;
0014 };
0015
0016 sysboot5 {
0017 label = "sysboot5";
0018 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; /* gpio7 */
0019 linux,code = <BTN_1>;
0020 wakeup-source;
0021 };
0022
0023 gpio1 {
0024 label = "gpio1";
0025 gpios = <&gpio6 21 GPIO_ACTIVE_LOW>; /* gpio181 */
0026 linux,code = <BTN_2>;
0027 wakeup-source;
0028 };
0029
0030 gpio2 {
0031 label = "gpio2";
0032 gpios = <&gpio6 18 GPIO_ACTIVE_LOW>; /* gpio178 */
0033 linux,code = <BTN_3>;
0034 wakeup-source;
0035 };
0036 };
0037
0038 sound {
0039 compatible = "ti,omap-twl4030";
0040 ti,model = "omap3logic";
0041 ti,mcbsp = <&mcbsp2>;
0042 };
0043
0044 leds {
0045 compatible = "gpio-leds";
0046 pinctrl-names = "default";
0047 pinctrl-0 = <&led_pins>;
0048
0049 led1 {
0050 label = "led1";
0051 gpios = <&gpio6 20 GPIO_ACTIVE_HIGH>; /* gpio180 */
0052 linux,default-trigger = "cpu0";
0053 };
0054
0055 led2 {
0056 label = "led2";
0057 gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>; /* gpio179 */
0058 linux,default-trigger = "none";
0059 };
0060 };
0061
0062 pwm10: dmtimer-pwm {
0063 compatible = "ti,omap-dmtimer-pwm";
0064 pinctrl-names = "default";
0065 pinctrl-0 = <&pwm_pins>;
0066 ti,timers = <&timer10>;
0067 #pwm-cells = <3>;
0068 ti,clock-source = <0x01>;
0069 };
0070
0071 };
0072
0073 &vaux1 {
0074 regulator-min-microvolt = <3000000>;
0075 regulator-max-microvolt = <3000000>;
0076 };
0077
0078 &vaux4 {
0079 regulator-min-microvolt = <1800000>;
0080 regulator-max-microvolt = <1800000>;
0081 };
0082
0083 &mcbsp2 {
0084 pinctrl-names = "default";
0085 pinctrl-0 = <&mcbsp2_pins>;
0086 status = "okay";
0087 };
0088
0089 &charger {
0090 ti,bb-uvolt = <3200000>;
0091 ti,bb-uamp = <150>;
0092 };
0093
0094 &gpmc {
0095 ranges = <0 0 0x30000000 0x1000000 /* CS0: 16MB for NAND */
0096 1 0 0x2c000000 0x1000000 /* CS1: 16MB for LAN9221 */
0097 6 0 0x28000000 0x1000000>; /* CS6: 16MB for ISP1763 */
0098
0099 ethernet@gpmc {
0100 pinctrl-names = "default";
0101 pinctrl-0 = <&lan9221_pins>;
0102 interrupt-parent = <&gpio5>;
0103 interrupts = <1 IRQ_TYPE_LEVEL_LOW>; /* gpio129 */
0104 reg = <1 0 0xff>;
0105 };
0106
0107 usb@6,0 {
0108 pinctrl-names = "default";
0109 pinctrl-0 = <&isp1763_pins>;
0110 compatible = "nxp,usb-isp1763";
0111 reg = <0x6 0x0 0xff>;
0112 interrupt-parent = <&gpio5>;
0113 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
0114 interrupt-names = "host";
0115 bus-width = <16>;
0116 dr_mode = "host";
0117 gpmc,mux-add-data = <0>;
0118 gpmc,device-width = <2>;
0119 gpmc,wait-pin = <0>;
0120 gpmc,burst-length = <4>;
0121 gpmc,cycle2cycle-samecsen;
0122 gpmc,cycle2cycle-diffcsen;
0123 gpmc,cs-on-ns = <0>;
0124 gpmc,cs-rd-off-ns = <45>;
0125 gpmc,cs-wr-off-ns = <45>;
0126 gpmc,adv-on-ns = <0>;
0127 gpmc,adv-rd-off-ns = <0>;
0128 gpmc,adv-wr-off-ns = <0>;
0129 gpmc,oe-on-ns = <0>;
0130 gpmc,oe-off-ns = <45>;
0131 gpmc,we-on-ns = <0>;
0132 gpmc,we-off-ns = <25>;
0133 gpmc,rd-cycle-ns = <60>;
0134 gpmc,wr-cycle-ns = <45>;
0135 gpmc,access-ns = <35>;
0136 gpmc,page-burst-access-ns = <0>;
0137 gpmc,bus-turnaround-ns = <0>;
0138 gpmc,cycle2cycle-delay-ns = <60>;
0139 gpmc,wait-monitoring-ns = <0>;
0140 gpmc,clk-activation-ns = <0>;
0141 gpmc,wr-data-mux-bus-ns = <5>;
0142 gpmc,wr-access-ns = <20>;
0143 };
0144 };
0145
0146 &hdqw1w {
0147 pinctrl-names = "default";
0148 pinctrl-0 = <&hdq_pins>;
0149 };
0150
0151
0152 &vpll2 {
0153 regulator-always-on;
0154 };
0155
0156 &dss {
0157 status = "okay";
0158 vdds_dsi-supply = <&vpll2>;
0159 vdda_video-supply = <&vpll2>;
0160 pinctrl-names = "default";
0161 pinctrl-0 = <&dss_dpi_pins1>;
0162 port {
0163 dpi_out: endpoint {
0164 remote-endpoint = <&lcd_in>;
0165 data-lines = <16>;
0166 };
0167 };
0168 };
0169
0170 / {
0171 aliases {
0172 display0 = &lcd0;
0173 };
0174
0175 lcd0: display {
0176 /* This isn't the exact LCD, but the timings meet spec */
0177 compatible = "newhaven,nhd-4.3-480272ef-atxl";
0178 label = "15";
0179 pinctrl-names = "default";
0180 pinctrl-0 = <&panel_pwr_pins>;
0181 backlight = <&bl>;
0182 enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;
0183 port {
0184 lcd_in: endpoint {
0185 remote-endpoint = <&dpi_out>;
0186 };
0187 };
0188 };
0189
0190 bl: backlight {
0191 compatible = "pwm-backlight";
0192 pinctrl-names = "default";
0193 pinctrl-0 = <&backlight_pins>;
0194 pwms = <&pwm10 0 5000000 0>;
0195 brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
0196 default-brightness-level = <7>;
0197 enable-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>; /* gpio_154 */
0198 };
0199 };
0200
0201 &mmc1 {
0202 interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
0203 pinctrl-names = "default";
0204 pinctrl-0 = <&mmc1_pins &mmc1_cd>;
0205 cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio127 */
0206 vmmc-supply = <&vmmc1>;
0207 bus-width = <4>;
0208 cap-power-off-card;
0209 };
0210
0211 &omap3_pmx_core {
0212 gpio_key_pins: pinmux_gpio_key_pins {
0213 pinctrl-single,pins = <
0214 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_clk.gpio_178 */
0215 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_cs0.gpio_181 */
0216 >;
0217 };
0218
0219 hdq_pins: hdq_pins {
0220 pinctrl-single,pins = <
0221 OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* hdq_sio */
0222 >;
0223 };
0224
0225 pwm_pins: pinmux_pwm_pins {
0226 pinctrl-single,pins = <
0227 OMAP3_CORE1_IOPAD(0x20B8, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* gpmc_ncs5.gpt_10_pwm_evt */
0228 >;
0229 };
0230
0231 led_pins: pinmux_led_pins {
0232 pinctrl-single,pins = <
0233 OMAP3_CORE1_IOPAD(0x21d8, PIN_OUTPUT | MUX_MODE4) /* gpio_179 */
0234 OMAP3_CORE1_IOPAD(0x21da, PIN_OUTPUT | MUX_MODE4) /* gpio_180 */
0235 >;
0236 };
0237
0238 mmc1_pins: pinmux_mmc1_pins {
0239 pinctrl-single,pins = <
0240 OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
0241 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
0242 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
0243 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
0244 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
0245 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
0246 >;
0247 };
0248
0249 tsc2004_pins: pinmux_tsc2004_pins {
0250 pinctrl-single,pins = <
0251 OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE4) /* mcbsp4_dr.gpio_153 */
0252 >;
0253 };
0254
0255 backlight_pins: pinmux_backlight_pins {
0256 pinctrl-single,pins = <
0257 OMAP3_CORE1_IOPAD(0x2188, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* mcbsp4_dx.gpio_154 */
0258 >;
0259 };
0260
0261 isp_pins: pinmux_isp_pins {
0262 pinctrl-single,pins = <
0263 OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT | MUX_MODE0) /* cam_hs.cam_hs */
0264 OMAP3_CORE1_IOPAD(0x210e, PIN_INPUT | MUX_MODE0) /* cam_vs.cam_vs */
0265 OMAP3_CORE1_IOPAD(0x2110, PIN_INPUT | MUX_MODE0) /* cam_xclka.cam_xclka */
0266 OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT | MUX_MODE0) /* cam_pclk.cam_pclk */
0267
0268 OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE0) /* cam_d0.cam_d0 */
0269 OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE0) /* cam_d1.cam_d1 */
0270 OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE0) /* cam_d2.cam_d2 */
0271 OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE0) /* cam_d3.cam_d3 */
0272 OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE0) /* cam_d4.cam_d4 */
0273 OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE0) /* cam_d5.cam_d5 */
0274 OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT | MUX_MODE0) /* cam_d6.cam_d6 */
0275 OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT | MUX_MODE0) /* cam_d7.cam_d7 */
0276 >;
0277 };
0278
0279 panel_pwr_pins: pinmux_panel_pwr_pins {
0280 pinctrl-single,pins = <
0281 OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* mcbsp4_fs.gpio_155 */
0282 >;
0283 };
0284
0285 dss_dpi_pins1: pinmux_dss_dpi_pins1 {
0286 pinctrl-single,pins = <
0287 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_pclk.dss_pclk */
0288 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_hsync.dss_hsync */
0289 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_vsync.dss_vsync */
0290 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_acbias.dss_acbias */
0291
0292 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data6.dss_data6 */
0293 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data7.dss_data7 */
0294 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data8.dss_data8 */
0295 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data9.dss_data9 */
0296 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data10.dss_data10 */
0297 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data11.dss_data11 */
0298 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data12.dss_data12 */
0299 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data13.dss_data13 */
0300 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data14.dss_data14 */
0301 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data15.dss_data15 */
0302 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data16.dss_data16 */
0303 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data17.dss_data17 */
0304
0305 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data18.dss_data0 */
0306 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data19.dss_data1 */
0307 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data20.dss_data2 */
0308 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data21.dss_data3 */
0309 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data22.dss_data4 */
0310 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data23.dss_data5 */
0311 >;
0312 };
0313 };
0314
0315 &omap3_pmx_wkup {
0316 gpio_key_pins_wkup: pinmux_gpio_key_pins_wkup {
0317 pinctrl-single,pins = <
0318 OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot0.gpio_2 */
0319 OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot5.gpio_7 */
0320 >;
0321 };
0322
0323 lan9221_pins: pinmux_lan9221_pins {
0324 pinctrl-single,pins = <
0325 OMAP3_WKUP_IOPAD(0x2a5a, PIN_INPUT | MUX_MODE4) /* reserved.gpio_129 */
0326 >;
0327 };
0328
0329 mmc1_cd: pinmux_mmc1_cd {
0330 pinctrl-single,pins = <
0331 OMAP3_WKUP_IOPAD(0x2a54, PIN_INPUT_PULLUP | MUX_MODE4) /* reserved.gpio_127 */
0332 >;
0333 };
0334 };
0335
0336 &i2c2 {
0337 mt9p031@48 {
0338 compatible = "aptina,mt9p031";
0339 reg = <0x48>;
0340 clocks = <&isp 0>;
0341 vaa-supply = <&vaux4>;
0342 vdd-supply = <&vaux4>;
0343 vdd_io-supply = <&vaux4>;
0344 port {
0345 mt9p031_out: endpoint {
0346 input-clock-frequency = <24000000>;
0347 pixel-clock-frequency = <72000000>;
0348 remote-endpoint = <&ccdc_ep>;
0349 };
0350 };
0351 };
0352 };
0353
0354 &i2c3 {
0355 touchscreen: tsc2004@48 {
0356 compatible = "ti,tsc2004";
0357 reg = <0x48>;
0358 vio-supply = <&vaux1>;
0359 pinctrl-names = "default";
0360 pinctrl-0 = <&tsc2004_pins>;
0361 interrupts-extended = <&gpio5 25 IRQ_TYPE_EDGE_RISING>; /* gpio 153 */
0362
0363 touchscreen-fuzz-x = <4>;
0364 touchscreen-fuzz-y = <7>;
0365 touchscreen-fuzz-pressure = <2>;
0366 touchscreen-size-x = <4096>;
0367 touchscreen-size-y = <4096>;
0368 touchscreen-max-pressure = <2048>;
0369
0370 ti,x-plate-ohms = <280>;
0371 ti,esd-recovery-timeout-ms = <8000>;
0372 };
0373 };
0374
0375 &mcspi1 {
0376 at25@0 {
0377 compatible = "atmel,at25";
0378 reg = <0>;
0379 spi-max-frequency = <5000000>;
0380 spi-cpha;
0381 spi-cpol;
0382
0383 pagesize = <64>;
0384 size = <32768>;
0385 address-width = <16>;
0386 };
0387 };
0388
0389 &isp {
0390 pinctrl-names = "default";
0391 pinctrl-0 = <&isp_pins>;
0392 ports {
0393 port@0 {
0394 reg = <0>;
0395 ccdc_ep: endpoint {
0396 remote-endpoint = <&mt9p031_out>;
0397 bus-width = <8>;
0398 hsync-active = <1>;
0399 vsync-active = <1>;
0400 pclk-sample = <0>;
0401 };
0402 };
0403 };
0404 };
0405
0406 &uart1 {
0407 interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
0408 };
0409
0410 /* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
0411 &usb_otg_hs {
0412 pinctrl-names = "default";
0413 pinctrl-0 = <&hsusb_otg_pins>;
0414 interface-type = <0>;
0415 usb-phy = <&usb2_phy>;
0416 phys = <&usb2_phy>;
0417 phy-names = "usb2-phy";
0418 mode = <3>;
0419 power = <50>;
0420 };