/* * Copyright (C) 2015 AC Squared Enterprises, Inc. * Author: Allen Curtis */ /dts-v1/; /*#include "am335x-phycore-som.dtsi"*/ #include "am33xx.dtsi" / { model = "Avenu Ellipsys X5"; compatible = "avenu,ellipsys", "phytec,am335x-phycore-som", "ti,am33xx"; aliases { rtc2 = &i2c_em3027; /* also part of the kernel configuration */ }; cpus { cpu@0 { cpu0-supply = <&vcc3v3>; }; }; memory { device_type = "memory"; reg = <0x80000000 0x20000000>; /* 512 MB */ }; backlight: lcd_backlight { compatible = "gpio-leds"; }; user_leds: leds { compatible = "gpio-leds"; }; panel: panel { compatible = "ti,tilcdc,panel"; pinctrl-names = "default"; pinctrl-0 = <&lcd_pins>; status = "okay"; panel-info { ac-bias = <255>; ac-bias-intrpt = <0>; dma-burst-sz = <16>; bpp = <32>; fdd = <0x80>; sync-edge = <0>; sync-ctrl = <1>; raster-order = <0>; fifo-th = <0>; invert-pxl-clk = <1>; }; display-timings { native-mode = <&timing0>; timing0: ETM0700G0DH6 { clock-frequency = <30000000>; hactive = <800>; vactive = <480>; hfront-porch = <40>; hback-porch = <88>; hsync-len = <48>; vback-porch = <32>; vfront-porch = <13>; vsync-len = <3>; hsync-active = <0>; vsync-active = <0>; }; }; }; vbat: fixedregulator@0 { compatible = "regulator-fixed"; regulator-name = "vbat"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-boot-on; }; vcc3v3: fixedregulator@1 { compatible = "regulator-fixed"; regulator-name = "vcc3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; regulator-boot-on; }; lcd_3v3: fixedregulator-lcd { compatible = "regulator-fixed"; regulator-name = "lcd_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-boot-on; }; }; /* I2C Busses */ &am33xx_pinmux { i2c0_pins: pinmux_i2c0 { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */ 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */ >; }; }; &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; clock-frequency = <400000>; status = "okay"; tps: pmic@2d { reg = <0x2d>; }; i2c_eeprom: eeprom@52 { compatible = "at,24c32"; pagesize = <32>; reg = <0x52>; status = "disabled"; }; i2c_rtc: rtc@68 { compatible = "mc,rv4162c7"; reg = <0x68>; status = "disabled"; }; }; /* Ellipsys RTC */ &i2c0 { i2c_em3027: rtc2@56 { compatible = "em,em3027"; reg = <0x56>; status = "ok"; }; }; /* SPI Busses */ &am33xx_pinmux { spi0_pins: pinmux_spi0 { pinctrl-single,pins = < 0x150 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* spi0_clk.spi0_clk */ 0x154 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* spi0_d0.spi0_d0 */ 0x158 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */ 0x15c (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ 0x160 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs1.spi0_cs1 */ >; }; }; &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spi0_pins>; status = "okay"; serial_flash: m25p80@0 { compatible = "m25p80"; spi-max-frequency = <48000000>; reg = <0x0>; #address-cells = <1>; #size-cells = <1>; m25p,fast-read; }; ellipsys_spi: stm32f100@1 { compatible = "spidev"; /* compatible = "avenu,ellipsys";*/ spi-max-frequency = <1000000>; reg = <0x1>; #address-cells = <1>; #size-cells = <1>; }; }; /* UARTs */ &am33xx_pinmux { uart0_pins: pinmux_uart0 { pinctrl-single,pins = < 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ >; }; uart1_pins: pinmux_uart1 { pinctrl-single,pins = < 0x180 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */ 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */ 0x178 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */ 0x17c (PIN_INPUT | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */ >; }; }; &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins>; status = "okay"; }; &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>; status = "okay"; }; &serial_flash { label = "user"; /* status = "disabled";*/ }; /* NAND */ &am33xx_pinmux { nandflash_pins: pinmux_nandflash { pinctrl-single,pins = < 0x0 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */ 0x4 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */ 0x8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */ 0xc (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */ 0x10 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */ 0x14 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */ 0x18 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */ 0x1c (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */ 0x70 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */ 0x7c (PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */ 0x90 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */ 0x94 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */ 0x98 (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */ 0x9c (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */ >; }; }; &elm { status = "okay"; }; &gpmc { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&nandflash_pins>; ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */ nandflash: nand@0,0 { reg = <0 0 0>; /* CS0, offset 0 */ nand-bus-width = <8>; ti,nand-ecc-opt = "bch8"; gpmc,device-nand = "true"; gpmc,device-width = <1>; gpmc,sync-clk-ps = <0>; gpmc,cs-on-ns = <0>; gpmc,cs-rd-off-ns = <30>; gpmc,cs-wr-off-ns = <30>; gpmc,adv-on-ns = <0>; gpmc,adv-rd-off-ns = <30>; gpmc,adv-wr-off-ns = <30>; gpmc,we-on-ns = <0>; gpmc,we-off-ns = <20>; gpmc,oe-on-ns = <10>; gpmc,oe-off-ns = <30>; gpmc,access-ns = <30>; gpmc,rd-cycle-ns = <30>; gpmc,wr-cycle-ns = <30>; gpmc,wait-on-read = "true"; gpmc,wait-on-write = "true"; gpmc,bus-turnaround-ns = <0>; gpmc,cycle2cycle-delay-ns = <50>; gpmc,cycle2cycle-diffcsen; gpmc,clk-activation-ns = <0>; gpmc,wait-monitoring-ns = <0>; gpmc,wr-access-ns = <30>; gpmc,wr-data-mux-bus-ns = <0>; elm_id = <&elm>; #address-cells = <1>; #size-cells = <1>; }; }; &nandflash { partition@0 { label = "spl"; reg = <0x0 0x200000>; }; partition@1 { label = "u-boot"; reg = <0x200000 0x100000>; }; partition@2 { label = "u-boot-env"; reg = <0x300000 0x100000>; }; partition@3 { label = "dtb"; reg = <0x400000 0x100000>; }; partition@4 { label = "splash"; reg = <0x500000 0x400000>; }; partition@5 { label = "kernel"; reg = <0x900000 0x600000>; }; partition@6 { label = "rootfs"; /* * setting size to 0x0 here, size will be extended to * end of nand flash while booting. */ reg = <0xf00000 0x0>; }; }; /* MCU GPIOs */ &am33xx_pinmux { pinctrl-names = "default"; /* pinctrl-0 = <&interlock_gpio_pins &user_buttons_pins &spi_flowctl_gpio_pins>; */ pinctrl-0 = <&interlock_gpio_pins &spi_flowctl_gpio_pins>; mcu_reset_gpio_pins: pinmux_mcu_reset_gpio { pinctrl-single,pins = < /* only drive this when rebooting the MCU */ 0x16C (PIN_INPUT_PULLUP | MUX_MODE7) /* BootMode0.gpio1_9 */ 0x194 (PIN_INPUT_PULLUP | MUX_MODE7) /* BootMode0.gpio3_19 */ >; }; mcu_boot0_gpio_pins: pinmux_mcu_boot0_gpio { pinctrl-single,pins = < /* only drive this when rebooting the MCU */ 0x16C (PIN_INPUT_PULLUP | MUX_MODE7) /* uart0_rtsn.gpio1_9 */ >; }; spi_flowctl_gpio_pins: pinmux_spi_flowctl_gpio { pinctrl-single,pins = < 0x134 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpio2_18 */ 0x12C (PIN_INPUT_PULLUP | MUX_MODE7) /* gpio3_9 */ >; }; interlock_gpio_pins: pinmux_interlock_gpio { pinctrl-single,pins = < 0x11C (PIN_INPUT_PULLUP | MUX_MODE7) /* From MCU,gpio0_16 */ 0x80 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* To MCU,gpio1_30 */ >; }; /* Buttons are handled by the MCU right now user_buttons_pins: pinmux_user_buttons { pinctrl-single,pins = < 0x1E4 (PIN_INPUT_PULLUP | MUX_MODE7) // emu0.gpio3_7 0x1E8 (PIN_INPUT_PULLUP | MUX_MODE7) // emu1.gpio3_8 >; }; */ }; /* USB */ &usb { pinctrl-names = "default"; pinctrl-0 = <&usb_pins>; status = "okay"; }; &am33xx_pinmux { usb_pins: pinmux_usb_pins { pinctrl-single,pins = < 0x21c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */ /* 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) usb1_drvvbus.usb1_drvvbus */ /* NOT SURE WHAT THESE GPIOs are USED FOR */ /* 0x80 (PIN_INPUT_PULLUP | MUX_MODE7) gpmc_csn1.gpio1_30 */ /* 0x84 (PIN_INPUT_PULLUP | MUX_MODE7) gpmc_csn2.gpio1_31 */ >; }; }; &cppi41dma { status = "okay"; }; &ctrl_mod { status = "okay"; }; &usb0 { dr_mode = "host"; status = "okay"; }; &usb0_phy { status = "okay"; }; /* MMC */ &am33xx_pinmux { mmc1_pins: pinmux_mmc1_pins { pinctrl-single,pins = < 0x0f0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3 */ 0x0f4 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2 */ 0x0f8 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1 */ 0x0fc (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0 */ 0x100 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk */ 0x104 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd */ /* pullup already wired, function: SD0_WP write protect */ 0x1a0 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mcasp0_aclkr.mmc0_sdwp_mux1 */ /* pullup already wired, function: nSD0_CD card detect */ 0x044 (PIN_INPUT | MUX_MODE7) /* gpmc_a1.gpio1[17] */ >; }; }; &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; vmmc-supply = <&vcc3v3>; bus-width = <4>; cd-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; status = "okay"; }; /* LCD Panel */ &am33xx_pinmux { lcd_pins: pinmux_lcd { pinctrl-single,pins = < 0xA0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */ 0xA4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */ 0xA8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */ 0xAC (PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */ 0xB0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */ 0xB4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */ 0xB8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */ 0xBC (PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */ 0xC0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */ 0xC4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */ 0xC8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */ 0xCC (PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */ 0xD0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */ 0xD4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */ 0xD8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */ 0xDC (PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */ 0x3C (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data16 */ 0x38 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data17 */ 0x34 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data18 */ 0x30 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data19 */ 0x2C (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data20 */ 0x28 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data21 */ 0x24 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data22 */ 0x20 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data23 */ 0xE0 (PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */ 0xE4 (PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */ 0xE8 (PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */ 0xEC (PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */ >; }; }; &lcdc { status = "okay"; }; &epwmss2 { status = "okay"; }; &ecap2 { status = "okay"; }; /* Backlight */ &am33xx_pinmux { backlight_pins: pinmux_backlight { pinctrl-single,pins = < 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio0_28 */ >; }; }; &backlight { pinctrl-0 = <&backlight_pins>; led0 { label = "backlight:user0"; gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; /* default trigger should be changed to "backlight" */ linux,default-trigger = "none"; default-state = "off"; }; };