diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2016-08-09 13:43:10 +0200 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-01-11 18:53:10 +0100 |
commit | 19722d4d90e711d7826ec7f6461216aa61f2f937 (patch) | |
tree | f610bf38c4af07be896b07744df15b49a88382e1 /arch/arm/boot/dts/tegra124-apalis-eval.dts | |
parent | bf1f68e0df4004c81de6b27886f6132f9804ec05 (diff) |
apalis_tk1: Support for K20 based MFDApalis_TK1_LinuxImageV2.7Beta1_20170112
On Apalis TK1 boards K20 MCU is used
for CAN, GPIO, ADC and touch screen.
This patch includes support for core MFD device, GPIO, ADC
and touch screen.
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'arch/arm/boot/dts/tegra124-apalis-eval.dts')
-rw-r--r-- | arch/arm/boot/dts/tegra124-apalis-eval.dts | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/tegra124-apalis-eval.dts b/arch/arm/boot/dts/tegra124-apalis-eval.dts index 231d0913e92e..c5ecf9301229 100644 --- a/arch/arm/boot/dts/tegra124-apalis-eval.dts +++ b/arch/arm/boot/dts/tegra124-apalis-eval.dts @@ -136,16 +136,34 @@ status = "okay"; spi-max-frequency = <25000000>; - spidev1: spidev@1 { - compatible = "spidev"; + k20mcu: apalis-tk1-k20@1 { + compatible = "toradex,apalis-tk1-k20"; reg = <1>; - spi-max-frequency = <12000000>; + spi-max-frequency = <10000000>; + interrupt-parent =<&gpio>; + interrupts = <TEGRA_GPIO(K, 2) IRQ_TYPE_EDGE_FALLING>; + rst-gpio = <&gpio TEGRA_GPIO(BB, 6) GPIO_ACTIVE_HIGH>; + + /* GPIO based CS used to enter K20 EzPort mode */ + ezport-cs-gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; + /* SPI CS under GPIO controll due to K20 quirks */ + spi-cs-gpio = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_HIGH>; + /* extra INT lines between K20 and TK1 */ + int2-gpio = <&gpio TEGRA_GPIO(J, 2) GPIO_ACTIVE_HIGH>; + int3-gpio = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_HIGH>; + int4-gpio = <&gpio TEGRA_GPIO(J, 0) GPIO_ACTIVE_HIGH>; + + toradex,apalis-tk1-k20-uses-gpio; + toradex,apalis-tk1-k20-uses-adc; + toradex,apalis-tk1-k20-uses-tsc; }; + /* spidev on K20 bus, can be used with custom firmware for userspace + * K20 applications */ spidev2: spidev@2 { compatible = "spidev"; reg = <2>; - spi-max-frequency = <2000000>; + spi-max-frequency = <3500000>; }; }; |