Age | Commit message (Collapse) | Author |
|
To access the keypad port registers the IPG clocks need to be on,
specify the clock accordingly.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Currently DMA CMA is set to 320MB which is rather large and cannot
be allocated on Colibri iMX7S. Lower the reserved amount to 128MB
which should be enouth for most use cases and works with systems
which have only 256MiB memory available.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The iMX7 wakeup pin currently has a 47k pullup configured. Thus
one has to pull the pin to 0V to generate the wakeup event. All
other Colibri modules use pull downs and require 3.3V to generate
an event. Also on the Colibri Evaluation Board an external 100kOhm
pulldown is connected, thus the pin is neither at 0V nor 3.3V but
at 2.2V potentially increasing power consumption.
Change logic to use pulldown and require 3.3V to generate wakeup
event.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The SPI CAN controller MCP2515 was set up to use the wrong interrupt source.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The pad SAI1_RX_DATA can be used as second chip select for dual-die
NAND. However, with an assembly option the pad is available as GPIO
on SODIMM 169. All current version of Colibri iMX7 modules have the
pad available as GPIO hence mux it as GPIO by default.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The SPI CAN controller MCP2515 uses a dedicated interrupt line.
Assign the interrupt line to the CAN controller node explicitly.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Revisit default pinmux configuration, use pull-ups instead of
pull-downs where there is already an external pull-up by default.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
We traditionally have all standard pinctrl in the module level
device tree. Move pinctrl accordingly.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The PWM<A> and PWM<D> have multiplexed pins which by default have a
pull-up enabled. Take them into the same pinmux group as the PWM
pin and disable pull-ups.
This also makes sure that there is no conflicting usage of the same
pin...
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Use USBC_DET feature of standard Colibri SODIMM pin 137 for USB
device/host switching using the generic extcon USB gpio implementation.
Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com>
[remove pin from FEC and fixed pinmux assignment]
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Use VGA (640x480) timings by default.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Disable internal RTC on i.MX 7Solo since writing to it is currently
not possible. This leads to freezes/lockups especially on carrier
boards which do not come with an external RTC (where the system
tries to use the internal RTC automatically).
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Update #pwm-cells to 3 in order to support PWM signal polarity
control.
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Use pwm-backlight driver 'enable-gpios' property for backlight
on/off control.
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Add sleep state for FEC pins to avoid pull-ups feeding the Ethernet
PMIC while the Ethernet rail is turned off.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Add wakeup GPIO key which is able to wake the system from sleep
modes (e.g. Suspend-to-Memory). Also rename the intermediate node
to imx7d-colibri.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Use the disable-wp property since we don't have a concept of write
protect. This also gets rid of the following warning:
mmc0: host does not support reading read-only switch, assuming write-enable
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Rename display node to avoid node name duplication:
device-tree: Duplicate name in lcdif@30730000, renamed to "display#1"
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
We can store multiple modes now and select the mode used by the
driver by default using the native-mode property.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
On some carrier boards (namely Aster, Viola and Orchid) the second
USB port (USBC) is used in host only mode. In this case, the USBH_PEN
signal is also used to enable USB power. This change makes sure that
USBH_PEN is also set in case only one USB port is available (as it is
the case on Colibri iMX7 Solo).
Strictly speaking we should not add the regulator in the Evaluation
Board device tree. However, we use the Evaluation Board device tree
as our "Colibri Standard" device tree and it does not really hurt on
the Evaluation Board...
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The SGTL5000 requires a MCLK frequency in the range of 8 to 27MHz to
work properly. Make sure the clocking requirements are met by setting
the clock within the codecs node.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The SAI1 MCLK pad is connected to the Codecs MCLK and essential for
the codec to function. This allows to probe the Codec before the DAI
which happens to happen by default.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
toradex_imx_4.1.15_1.0.0_ga-next
|
|
Change the hardware reset gpio to 'GPIO6_IO15' for mipi dsi to
allow fec2 and mipi dsi can run at the same time. This needs
some hardware rework as follows:
"
1. Replace R631 with 100K resistor;
2. Remove D14, D24;
3. Solder the Cathode of the diode to R471,
you can use BAT54HT1(ONSEMI) or NSR0320MW2T1G(ONSEMI);
4. Solder the wire to the Anode end of the diode;
5. Scrape the solder mask(Green oil) of the MIPI Reset via,
then solder the end of the wire to the via.
"
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 0af28564e73f006f742a9af0db4bc5b8588e3490)
|
|
Add TouchRevolution multitouch controller driver which is connectable
over I2C bus. The driver supports the 7" and 10" multitouch variant
available from TouchRev.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
MCP2515 is available on colibri evaluation board, include it in
the device tree for Colibri iMX7.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
According to the datasheet the SPI clock (for read) must not exceed
1 / 43ns for i.MX7.
Reflect that correctly in the device tree.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Use the newly invented device evalspi.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The SDHC stack uses the GPIO flags to determine whether the card
detect gpio is active-low or high. Zero means GPIO_ACTIVE_HIGH,
which is actually wrong. Specify the card detect to be active-low.
Also remove the tunning step property, this is a board specific
parameter which seems to come from Sabre, where NXP actually
deleted it too.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
For imx6sx-sabreauto board, the usdhc4 is used for the sd slot locate on the
base board, so need to improve the pad drive strength, otherwise we will meet
many CRC error or timeout error when insert a sd card.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 1cbfce01e4e076d7f7e3b879c2c41d217d8afa48)
|
|
SRTC needs to be kept enabled during system poweroff,
SNVS_LP control register bit 0 SRTC_ENV must be set
to enable RTC, for software poweroff, kernel just
read the register offset and value from dtb and write
to SNVS_LP control register to poweroff system, need
to make sure bit 0 SRTC_ENV is set to enable RTC during
system poweroff.
Previous setting did NOT enable it which will cause
RTC stop running if using software poweroff.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
|
|
According to the latest datasheet(Rev. 0, 12/2015),
When the chip is run at LDO enabled mode, the highest
setpoint can be set to 700MHz in overdrive mode.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit 9838ff4b9dfaaacdea01b2bf5f54020ccf991f23)
|
|
Split up the colibri device tree into two device tree files for
COM and Carrier Board. Use the usual SoC/COM/Board tripplet and
follow including scheme used for Vybrid.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Now that we have a base device tree per SoC we can make use of them
by including only imx7s.dtsi for the Colibri iMX7S modules.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The i.MX 7Solo supports a subset of the features which i.MX 7Dual
does, hence make imx7s.dtsi to be the base device tree.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The i.MX 7Solo device tree currently builds on the i.MX 7Dual
device tree, which specifies two CPU's. This leads to a delay
during boot and the following error message:
CPU1: failed to come online
Unfortunately the CPU driver code seems not to honor the status
property, but we can "disable" the second CPU node by clearing
the device_type property.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The AD7879 interrupt GPIO is a wakeup pin. On poweroff, the external
pull-up is not holding the GPIO high, hence causing a falling edge
on the pad. Since the GPIO is a wakeup pin, this causes the SNVS Dumb
PMIC to switch to on again (hence causing a reboot instead of a power-
off).
Make sure the interrupt line stays high during poweroff by configuring
a pull-up on the IOMUXC LPSR GPR.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The LPSR IOMUXC also has a general purpose (GPR) part which is able
to define pad settings for GPIO8-15. Implement it as yet another
pinctrl driver.
Note: 4 GPIO's share one register, the values are currently over-
written, hence the current code only allows one GPIO per register
to be configured...
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Disable SNVS power key functionality by default for Colibri i.MX 7
modules. The SNVS power key uses the ONOFF signal, which is directly
controlled by reset and therefor not really a power key available
to the user.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Add workaround for M4 NMI issue.
Set the Ethernet PHY reference clock to be generated externaly from
the i.MX 7 by default (Colibri i.MX 7 V1.1 sample batch)
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Add device tree node for resistive touch screen controller AD7879.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Add TCM and OCRAM specifications required by the PM code,
otherwise booting Linux will fail in imx7d_pm_init.
Also add mcctest, mcctty and rpmsg nodes required to enable
rpmsg based communciation examples between the two cores.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
MX7D_PAD_UART2_TX_DATA__UART2_DTE_RX was missing the daisychain register
address and value resulting in a non working RX path.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Added imx7d-12x12-lpddr3-arm2-pcie.dtb to makefile
Signed-off-by: Frank Li <Frank.Li@nxp.com>
|