platform/kernel/linux-rpi.git
5 years agoARM: dts: imx7d-pico-pi: Move SoM related part to imx7d-pico.dtsi
Fabio Estevam [Thu, 6 Dec 2018 10:08:59 +0000 (08:08 -0200)]
ARM: dts: imx7d-pico-pi: Move SoM related part to imx7d-pico.dtsi

imx7d-pico-pi board contains:

- One SoM board (imx7d pico)
- One base board (pi).

In order to make it easier for adding support for other board variants,
move the commom SoM part to the imx7d-pico.dtsi file.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7d-pico: Switch to SPDX identifier
Fabio Estevam [Thu, 6 Dec 2018 10:08:58 +0000 (08:08 -0200)]
ARM: dts: imx7d-pico: Switch to SPDX identifier

Adopt the SPDX license identifier headers to ease license compliance
management.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7d-pico: Do not harcode the memory size
Fabio Estevam [Thu, 6 Dec 2018 10:08:57 +0000 (08:08 -0200)]
ARM: dts: imx7d-pico: Do not harcode the memory size

Currently the memory size described in dts is 2GB, which is incorrect.

There are 512MB and 1GB versions of imx7d-pico boards, so remove
the hardcoded memory size and let the bootloader pass the correct
value to the kernel.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoMerge tag 'imx-fixes-4.20-3' into imx7d/pico
Shawn Guo [Mon, 10 Dec 2018 02:32:51 +0000 (10:32 +0800)]
Merge tag 'imx-fixes-4.20-3' into imx7d/pico

i.MX fixes for 4.20, round 3:
 - A couple of fixes on imx7d-pico and imx7d-nitrogen7 boards to correct
   the description of the Wifi clock.
 - Change SW2ISO count to get a safer ARM LDO ramp-up time, so that
   different boards can be covered. This fixes the ARM LDO failure seen
   on some customer boards.

5 years agoARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1
Andrey Smirnov [Thu, 6 Dec 2018 23:41:17 +0000 (21:41 -0200)]
ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1

TPA6130A2 SD pin on RDU1 is not really controlled by SoC and instead
is only meant to notify the system that audio was "muted" by external
actors. To accommodate that, drop "power-gpio" property of hpa1 node as
well as specify a name for that GPIO so that userspace can access it.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul: Remove extra space between node name and brace
Leonard Crestez [Thu, 6 Dec 2018 19:22:16 +0000 (19:22 +0000)]
ARM: dts: imx6ul: Remove extra space between node name and brace

Fixes: 7d1cd2978664 ("ARM: dts: imx6ul: add gpmi support")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabresd: Use GPIO_ACTIVE_HIGH for regulators
Fabio Estevam [Thu, 6 Dec 2018 10:36:41 +0000 (08:36 -0200)]
ARM: dts: imx6qdl-sabresd: Use GPIO_ACTIVE_HIGH for regulators

Passing GPIO_ACTIVE_HIGH as GPIO flags for the GPIO controlled
regulator improves the readability, so use it instead of the
hardcoded number.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul: add flexcan support
Dong Aisheng [Thu, 6 Dec 2018 03:51:27 +0000 (03:51 +0000)]
ARM: dts: imx6ul: add flexcan support

Add flexcan support for i.MX6UL board. Change the place of CAN node delete
due to i.MX6ULZ include i.MX6UL dts but not support flexcan.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx5: add gpu nodes
Jonathan Marek [Tue, 4 Dec 2018 15:17:00 +0000 (10:17 -0500)]
ARM: dts: imx5: add gpu nodes

This adds the gpu nodes for the adreno 200 GPU on iMX51 and iMX53, now
supported by the freedreno driver.

The compatible for the iMX51 uses a patchid of 1, which is used by drm/msm
driver to identify the smaller 128KiB GMEM size.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabresd: add accelerometer sensor support
Anson Huang [Thu, 6 Dec 2018 01:42:42 +0000 (01:42 +0000)]
ARM: dts: imx6qdl-sabresd: add accelerometer sensor support

Add accelerometer sensor mma8451 support on i2c1 bus.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabresd: add magnetometer sensor support
Anson Huang [Thu, 6 Dec 2018 01:42:38 +0000 (01:42 +0000)]
ARM: dts: imx6qdl-sabresd: add magnetometer sensor support

Add magnetometer sensor mag3110 support on i2c3 bus.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabresd: add light sensor support
Anson Huang [Thu, 6 Dec 2018 01:42:34 +0000 (01:42 +0000)]
ARM: dts: imx6qdl-sabresd: add light sensor support

Add isl29023 light sensor support on i2c3 bus, the light
sensor's power is controlled by a fixed regulator, since
the isl29023 driver and most of other sensors on same
board like mag3110 and mma8451 do NOT support regulator
operation currently, they are all controlled by this
regulator, so this patch also adds the fixed regulator
support and make it always on.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabresd: Move regulators outside of "simple-bus"
Fabio Estevam [Thu, 6 Dec 2018 01:42:30 +0000 (01:42 +0000)]
ARM: dts: imx6qdl-sabresd: Move regulators outside of "simple-bus"

It is not recommended to place regulators inside "simple-bus", so move
them out to make it cleaner the addition of new regulators.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl: Fix memory node duplication
Marco Franchi [Wed, 5 Dec 2018 18:10:03 +0000 (16:10 -0200)]
ARM: dts: imx6qdl: Fix memory node duplication

Boards based on imx6qdl have duplicate memory nodes:
- One coming from the board device tree file: memory@
- One coming from the imx6qdl.dtsi file.

Fix the duplication by removing the memory node from
the imx6qdl.dtsi file and by adding 'device_type = "memory";'
in the board Device Tree.

Converted using the following command:
perl -p0777i -e 's/memory\@10000000 \{\n/memory\@10000000 \{\n\t\tdevice_type = \"memory\";\n/m' `find ./arch/arm/boot/dts -name "imx6*"``

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Marco Franchi <marco.franchi@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6dl-mamoj: Add a memory node
Fabio Estevam [Wed, 5 Dec 2018 18:10:02 +0000 (16:10 -0200)]
ARM: dts: imx6dl-mamoj: Add a memory node

Add a memory node, with an empty memory size, which will be filled
by the bootloader.

This is done in preparation for removing the memory node from
imx6qdl.dtsi.

Reported-by: Marco Franchi <marco.franchi@nxp.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Marco Franchi <marco.franchi@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx53-voipac-dmm-668: Fix memory node duplication
Fabio Estevam [Wed, 5 Dec 2018 18:10:01 +0000 (16:10 -0200)]
ARM: dts: imx53-voipac-dmm-668: Fix memory node duplication

imx53-voipac-dmm-668 has two memory nodes, but the correct representation
would be to use a single one with two reg entries - one for each RAM chip
select, so fix it accordingly.

Reported-by: Marco Franchi <marco.franchi@nxp.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Marco Franchi <marco.franchi@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: vf610-zii-scu4-aib: Add HI8435 support
Fabio Estevam [Wed, 5 Dec 2018 11:19:35 +0000 (09:19 -0200)]
ARM: dts: vf610-zii-scu4-aib: Add HI8435 support

On the vf610-zii-scu4-aib board there is a hi8435 (32-channel
discrete-to-digital SPI sensor device) in the DSPI0 bus.

Add support for it.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabresd: add egalax touch screen support on i2c2 bus
Anson Huang [Wed, 5 Dec 2018 01:14:25 +0000 (01:14 +0000)]
ARM: dts: imx6qdl-sabresd: add egalax touch screen support on i2c2 bus

Add egalax touch screen support on i2c2 bus, it is connected
to LVDS0, while the existing one on i2c3 bus is connected to
LVDS1.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7s: Add flexcan stop mode wakeup support
Aisheng Dong [Mon, 3 Dec 2018 05:20:31 +0000 (05:20 +0000)]
ARM: dts: imx7s: Add flexcan stop mode wakeup support

Add stop-mode property which is required by stop mode wakeup
feature.

Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul: Add flexcan stop mode wakeup support
Aisheng Dong [Mon, 3 Dec 2018 05:20:27 +0000 (05:20 +0000)]
ARM: dts: imx6ul: Add flexcan stop mode wakeup support

Add stop-mode property which is required by stop mode wakeup
feature.

Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl: Add flexcan stop mode wakeup support
Aisheng Dong [Mon, 3 Dec 2018 05:20:23 +0000 (05:20 +0000)]
ARM: dts: imx6qdl: Add flexcan stop mode wakeup support

Add stop-mode property which is required by stop mode wakeup
feature.

Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sx: Add flexcan stop mode wakeup support
Aisheng Dong [Mon, 3 Dec 2018 05:20:19 +0000 (05:20 +0000)]
ARM: dts: imx6sx: Add flexcan stop mode wakeup support

Add stop-mode property which is required by stop mode wakeup
feature.

Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul-pico: Add the imx6ul-pico-pi variant
Fabio Estevam [Sun, 2 Dec 2018 21:18:09 +0000 (19:18 -0200)]
ARM: dts: imx6ul-pico: Add the imx6ul-pico-pi variant

The imx6ul-pico-pi contains a imx6ul-pico SoM and a pi baseboard:
https://www.technexion.com/products/pico-baseboards/detail/PICO-PI

Add support for it.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul-pico-hobbit: Extend peripherals support
Fabio Estevam [Sun, 2 Dec 2018 21:18:08 +0000 (19:18 -0200)]
ARM: dts: imx6ul-pico-hobbit: Extend peripherals support

This adds following peripherals support:

 - ADC
 - GPIO LED
 - GPIOs

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul-pico-hobbit: Make the child led nodes standard
Fabio Estevam [Sun, 2 Dec 2018 21:18:07 +0000 (19:18 -0200)]
ARM: dts: imx6ul-pico-hobbit: Make the child led nodes standard

Use the same child led node and label name as used in the
imx7d-pico-hobbit board.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul-pico-hobbit: Move SoM related part to imx6ul-pico.dtsi
Fabio Estevam [Sun, 2 Dec 2018 21:18:06 +0000 (19:18 -0200)]
ARM: dts: imx6ul-pico-hobbit: Move SoM related part to imx6ul-pico.dtsi

imx6ul-pico-hobbit board contains:

- One SoM board (imx6ul pico)
- One base board (hobbit).

In order to make it easier for adding support for other board variants,
move the commom SoM part to the imx6ul-pico.dtsi file.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul-pico-hobbit: Switch to SPDX identifier
Fabio Estevam [Sun, 2 Dec 2018 21:18:05 +0000 (19:18 -0200)]
ARM: dts: imx6ul-pico-hobbit: Switch to SPDX identifier

Adopt the SPDX license identifier headers to ease license compliance
management.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: ls1021a: add qdma device tree nodes
Peng Ma [Tue, 30 Oct 2018 02:36:01 +0000 (10:36 +0800)]
ARM: dts: ls1021a: add qdma device tree nodes

add the qDMA device tree nodes for LS1021A devices.

Signed-off-by: Wen He <wen.he_1@nxp.com>
Signed-off-by: Peng Ma <peng.ma@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: vf: Fix memory node duplication
Fabio Estevam [Sat, 1 Dec 2018 00:44:52 +0000 (22:44 -0200)]
ARM: dts: vf: Fix memory node duplication

Boards based on vf500/vf600 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the vf500.dtsi/vf610m4.dtsi files.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7: Correct mask for GIC PPI interrupts
Fabio Estevam [Mon, 3 Dec 2018 17:40:20 +0000 (15:40 -0200)]
ARM: dts: imx7: Correct mask for GIC PPI interrupts

The GIC_CPU_MASK_SIMPLE() macro should take as its argument the actual
number of CPU cores the interrupt controller is wired to.

i.MX7S contains a single Cortex-A7, hence the second interrupt specifier
cell for Private Peripheral Interrupts should use "GIC_CPU_MASK_SIMPLE(1)".

Likewise, i.MX7D contains two Cortex-A7 cores, so it should use
"GIC_CPU_MASK_SIMPLE(2)" instead.

Tested on a imx7s-warp.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul: Correct mask for GIC PPI interrupts
Fabio Estevam [Mon, 3 Dec 2018 17:40:19 +0000 (15:40 -0200)]
ARM: dts: imx6ul: Correct mask for GIC PPI interrupts

The GIC_CPU_MASK_SIMPLE() macro should take as its argument the actual
number of CPU cores the interrupt controller is wired to.

i.MX6UL contains a single Cortex-A7, hence the second interrupt specifier
cell for Private Peripheral Interrupts should use "GIC_CPU_MASK_SIMPLE(1)".

Tested on a imx6ul-evk.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx53: Switch to SPDX identifier
Fabio Estevam [Thu, 29 Nov 2018 11:18:14 +0000 (09:18 -0200)]
ARM: dts: imx53: Switch to SPDX identifier

Adopt the SPDX license identifier headers to ease license compliance
management.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx50: Switch to SPDX identifier
Fabio Estevam [Thu, 29 Nov 2018 11:18:13 +0000 (09:18 -0200)]
ARM: dts: imx50: Switch to SPDX identifier

Adopt the SPDX license identifier headers to ease license compliance
management.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabreauto: add flexcan support
Aisheng Dong [Wed, 28 Nov 2018 11:03:56 +0000 (11:03 +0000)]
ARM: dts: imx6qdl-sabreauto: add flexcan support

The flexcan1 is pin conflict with fec. User would make flexcan1 enabled
with fec disabled to use CAN.

Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sx-sabreauto: add flexcan support
Aisheng Dong [Wed, 28 Nov 2018 11:03:52 +0000 (11:03 +0000)]
ARM: dts: imx6sx-sabreauto: add flexcan support

The CAN transceiver on MX6SX Sabreauto board seems in sleep mode by default
after power up the board. User has to press the wakeup key on ARD baseboard
before using the transceiver, or it may not work properly when power up the
board at the first time(warm reset does not have such issue).

This patch operates the wake pin too besides stby/en pins by chaining them
together in regulator mode.

Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sx-sdb: add flexcan support
Aisheng Dong [Wed, 28 Nov 2018 11:03:48 +0000 (11:03 +0000)]
ARM: dts: imx6sx-sdb: add flexcan support

CAN transceiver is different on RevA and RevB board.
It's active high on RevA while active low on Rev B.

Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: ls1021a: add nodes for PWMs
Patrick Havelange [Tue, 27 Nov 2018 14:09:44 +0000 (15:09 +0100)]
ARM: dts: ls1021a: add nodes for PWMs

The LS1021A has 8 possible PWMs, so adding them (disabled by default)

Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: ccimx6ulsbcpro: Add support for Goodix touch controller
Alex Gonzalez [Thu, 25 Oct 2018 15:09:33 +0000 (17:09 +0200)]
ARM: dts: ccimx6ulsbcpro: Add support for Goodix touch controller

The ConnectCore 6UL SBC Pro has an AUO/Goodix LCD accessory kit that is
connected on the LVDS interface through an on-board LVDS transceiver.

This change adds support for the touch interface.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: ccimx6ulsbcpro: Enable AUO G101EVN010 lcdif panel
Alex Gonzalez [Thu, 25 Oct 2018 15:09:31 +0000 (17:09 +0200)]
ARM: dts: ccimx6ulsbcpro: Enable AUO G101EVN010 lcdif panel

This change adds support for the AUO G101EVN010 lcdif panel for the
mxsfb DRM driver.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx25: Fix memory node duplication
Fabio Estevam [Mon, 26 Nov 2018 12:40:54 +0000 (10:40 -0200)]
ARM: dts: imx25: Fix memory node duplication

Boards based on imx25 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx25.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx27: Fix memory node duplication
Fabio Estevam [Mon, 26 Nov 2018 12:40:53 +0000 (10:40 -0200)]
ARM: dts: imx27: Fix memory node duplication

Boards based on imx27 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx27.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx1: Fix memory node duplication
Fabio Estevam [Mon, 26 Nov 2018 12:40:52 +0000 (10:40 -0200)]
ARM: dts: imx1: Fix memory node duplication

Boards based on imx1 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx1.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx28: Fix memory node duplication
Fabio Estevam [Mon, 26 Nov 2018 12:08:56 +0000 (10:08 -0200)]
ARM: dts: imx28: Fix memory node duplication

Boards based on imx28 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx28.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx23: Fix memory node duplication
Fabio Estevam [Mon, 26 Nov 2018 12:08:55 +0000 (10:08 -0200)]
ARM: dts: imx23: Fix memory node duplication

Boards based on imx23 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx23.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6: Switch NXP board dts to SPDX identifier
Fabio Estevam [Sun, 25 Nov 2018 20:02:45 +0000 (18:02 -0200)]
ARM: dts: imx6: Switch NXP board dts to SPDX identifier

Adopt the SPDX license identifier headers to ease license compliance
management.

Most of the i.MX NXP reference board dts files have already been
converted, so switch the remaining ones.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-wandboard: Switch to SPDX identifier
Fabio Estevam [Sun, 25 Nov 2018 20:02:44 +0000 (18:02 -0200)]
ARM: dts: imx6qdl-wandboard: Switch to SPDX identifier

Adopt the SPDX license identifier headers to ease license compliance
management.

Most of the wandboard dts files have already been converted, so switch
the remaining ones.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx50: Fix memory node duplication
Fabio Estevam [Fri, 23 Nov 2018 13:25:19 +0000 (11:25 -0200)]
ARM: dts: imx50: Fix memory node duplication

imx50-evk has duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx50.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sll-evk: use WDOG_B pin reset
Anson Huang [Thu, 22 Nov 2018 02:55:45 +0000 (02:55 +0000)]
ARM: dts: imx6sll-evk: use WDOG_B pin reset

i.MX6SLL EVK board has WDOG_B pin connected to the PMIC;

Add the WDOG_B pinctrl entry and 'fsl,ext-reset-output'
property to wdog node to let watchdog trigger a system
POR reset via the PMIC.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sll-evk: add debug LED support
Anson Huang [Wed, 21 Nov 2018 07:03:44 +0000 (07:03 +0000)]
ARM: dts: imx6sll-evk: add debug LED support

On i.MX6SLL EVK board, there is a debug LED controlled
by MX6SLL_PAD_EPDC_VCOM1__GPIO2_IO04 pin, add support
for it.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6qdl-sabreauto: Enable pcie
Leonard Crestez [Tue, 20 Nov 2018 18:57:06 +0000 (18:57 +0000)]
ARM: dts: imx6qdl-sabreauto: Enable pcie

The imx6qdl-sabreauto boards have a pcie slot so let's enable it.

Tested on imx6dl-sabreauto with an atk9k wifi card; scanning works.

There are unhandled differences for imx6qp but imx6qp-sabreauto.dts
already contains a snippet explicitly disabling the &pcie node so that
can be dealt with later.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sl: Fix memory node duplication
Fabio Estevam [Tue, 20 Nov 2018 15:59:45 +0000 (13:59 -0200)]
ARM: dts: imx6sl: Fix memory node duplication

Boards based on imx6sl have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx6sl.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sx: Fix memory node duplication
Fabio Estevam [Tue, 20 Nov 2018 15:59:44 +0000 (13:59 -0200)]
ARM: dts: imx6sx: Fix memory node duplication

Boards based on imx6sx have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx6sx.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul: Fix memory node duplication
Fabio Estevam [Tue, 20 Nov 2018 15:59:43 +0000 (13:59 -0200)]
ARM: dts: imx6ul: Fix memory node duplication

Boards based on imx6ul have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx6ul.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6ul-ccimx6ulsom: Add memory node to board dts
Fabio Estevam [Tue, 20 Nov 2018 15:59:42 +0000 (13:59 -0200)]
ARM: dts: imx6ul-ccimx6ulsom: Add memory node to board dts

Add memory node to board dts.

This is done in preparation of removing the memory node from imx6ul.dtsi.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7d-sdb: add rev-a board support
Anson Huang [Tue, 20 Nov 2018 01:35:34 +0000 (01:35 +0000)]
ARM: dts: imx7d-sdb: add rev-a board support

Current imx7d-sdb.dts has some incorrect settings about
Rev-A and Rev-B boards, some of the settings are based on
Rev-A board but some are based on Rev-B board, clean up it
by adding i.MX7D SDB Rev-A board support, make default
imx7d-sdb.dts for Rev-B board as usual, and introduce
imx7d-sdb-reva.dts for Rev-A board. Below are the affected
differences of Rev-A and Rev-B board:

                Rev-A           Rev-B
USB_OTG2_PWR:   UART3_CTS_B     GPIO1_IO07
ENET_EN_B:      None            GPIO1_IO04
TP_INT_B:       EPDC_DATA13     EPDC_BDR1

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: ls1021a: Add all CPUs in cooling maps
Viresh Kumar [Fri, 16 Nov 2018 10:01:11 +0000 (15:31 +0530)]
ARM: dts: ls1021a: Add all CPUs in cooling maps

Each CPU can (and does) participate in cooling down the system but the
DT only captures a handful of them, normally CPU0, in the cooling maps.
Things work by chance currently as under normal circumstances its the
first CPU of each cluster which is used by the operating systems to
probe the cooling devices. But as soon as this CPU ordering changes and
any other CPU is used to bring up the cooling device, we will start
seeing failures.

Also the DT is rather incomplete when we list only one CPU in the
cooling maps, as the hardware doesn't have any such limitations.

Update cooling maps to include all devices affected by individual trip
points.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: Add support for emtrion emCON-MX6 series
Jan Tuerk [Tue, 27 Nov 2018 15:04:03 +0000 (16:04 +0100)]
ARM: dts: Add support for emtrion emCON-MX6 series

This patch adds support for the emtrion GmbH emCON-MX6 modules.
They are available with imx.6 Solo, Dual-Lite, Dual and Quad
equipped with Memory from 512MB to 2GB (configured by U-Boot).

Our default developer-Kit ships with the Avari baseboard and the
EDT ETM0700G0BDH6 Display (imx6[q|dl]-emcon-avari).

The devicetree is split into the common part providing all module
components and the basic support for all SoC versions
(imx6qdl-emcon.dtsi) and parts which are i.mx6 S|DL and D|Q relevant.
Finally the support for the avari baseboard in the developer-kit
configuration is provided by the emcon-avari dts files.

Signed-off-by: Jan Tuerk <jan.tuerk@emtrion.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agodt-bindings: arm: Document emtrion emCON-MX6 bindings
Jan Tuerk [Tue, 27 Nov 2018 15:04:02 +0000 (16:04 +0100)]
dt-bindings: arm: Document emtrion emCON-MX6 bindings

Document the compatible strings for emtrion emCON-MX6 SoM's.

Signed-off-by: Jan Tuerk <jan.tuerk@emtrion.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx: Add an cpu0 label for imx6dl devices
Jan Tuerk [Tue, 27 Nov 2018 15:04:01 +0000 (16:04 +0100)]
ARM: dts: imx: Add an cpu0 label for imx6dl devices

Adding the label cpu0 allows the adjustment of cpu-parameters
by reference in overlaying dtsi files in the same way as it
is possible for imx6q devices.

Signed-off-by: Jan Tuerk <jan.tuerk@emtrion.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx: Add dummy PHYs for HSIC-only USB controllers
Frieder Schrempf [Thu, 18 Oct 2018 07:45:04 +0000 (09:45 +0200)]
ARM: dts: imx: Add dummy PHYs for HSIC-only USB controllers

Some SOCs in the i.MX6 family have a USB host controller that is
only capable of the HSIC interface and has no on-board PHY.

To be able to use these controllers, we need to add "usb-nop-xceiv"
dummy PHYs.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sx: specify proper clock for nodes with dummy clock
Anson Huang [Wed, 7 Nov 2018 08:51:07 +0000 (08:51 +0000)]
ARM: dts: imx6sx: specify proper clock for nodes with dummy clock

From i.MX6SX reference manual CCM chapter, KPP and
WDOGn use IPG clock as their clock, specify IPG
clock for KPP and WDOGn instead of DUMMY clock.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: ls1021a: removed compatible string "snps,dw-pcie"
Hou Zhiqiang [Wed, 7 Nov 2018 05:35:27 +0000 (05:35 +0000)]
ARM: dts: ls1021a: removed compatible string "snps,dw-pcie"

Removed the wrong compatible string "snps,dw-pcie", in case
match incorrect driver.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agodt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"
Hou Zhiqiang [Wed, 7 Nov 2018 05:35:22 +0000 (05:35 +0000)]
dt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"

Removed the compatible string "snps,dw-pcie", it is for the reference
platform driver for PCI RC IP Protoyping Kits based on the ARC SDP,
so it is not suitable for all platform with designware PCIe controller,
and platform vendors have themselves' drivers.

The compatible string "snsp,dw-pcie" was added by mistake and it's not
matched that time, but it is matched because PCIe drivers has been
collected recently.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agodt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie"
Hou Zhiqiang [Wed, 7 Nov 2018 05:35:17 +0000 (05:35 +0000)]
dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie"

The PCIe compatible string for LS1043A was lost, so add it.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7: Fix memory node duplication
Fabio Estevam [Tue, 6 Nov 2018 15:40:47 +0000 (13:40 -0200)]
ARM: dts: imx7: Fix memory node duplication

Boards based on imx7 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx7s.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx35: Fix memory node duplication
Fabio Estevam [Tue, 6 Nov 2018 15:40:46 +0000 (13:40 -0200)]
ARM: dts: imx35: Fix memory node duplication

Boards based on imx35 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx35.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx31: Fix memory node duplication
Fabio Estevam [Tue, 6 Nov 2018 15:40:45 +0000 (13:40 -0200)]
ARM: dts: imx31: Fix memory node duplication

Boards based on imx31 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx31.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sx: Complete the PXP support
Fabio Estevam [Tue, 6 Nov 2018 12:03:42 +0000 (10:03 -0200)]
ARM: dts: imx6sx: Complete the PXP support

According to Documentation/devicetree/bindings/media/fsl-pxp.txt,
only one PXP clock needs to be described and it should be named
"axi".

Also pass the compatible string as suggested in the bindings doc.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sl: vddpu is NOT an always-on regulator
Anson Huang [Tue, 6 Nov 2018 09:19:41 +0000 (09:19 +0000)]
ARM: dts: imx6sl: vddpu is NOT an always-on regulator

Remove "regulator-always-on" property for vddpu regulator
since it can be OFF when GPU power domain is OFF.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx6sll: remove unused property in gpc node
Anson Huang [Tue, 6 Nov 2018 09:19:36 +0000 (09:19 +0000)]
ARM: dts: imx6sll: remove unused property in gpc node

The "fsl,mf-mix-wakeup-irq" is ONLY used as a temporary
solution in NXP's internal tree for Mega/Fast Mix off
feature after suspend, upstream kernel does NOT need it,
remove it.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx53: Fix memory node duplication
Fabio Estevam [Mon, 5 Nov 2018 21:14:46 +0000 (19:14 -0200)]
ARM: dts: imx53: Fix memory node duplication

Boards based on imx53 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx53.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx51: Fix memory node duplication
Fabio Estevam [Mon, 5 Nov 2018 21:14:45 +0000 (19:14 -0200)]
ARM: dts: imx51: Fix memory node duplication

Boards based on imx51 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx51.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7d-nitrogen7: Fix the description of the Wifi clock
Fabio Estevam [Wed, 5 Dec 2018 11:05:30 +0000 (09:05 -0200)]
ARM: dts: imx7d-nitrogen7: Fix the description of the Wifi clock

According to bindings/regulator/fixed-regulator.txt the 'clocks' and
'clock-names' properties are not valid ones.

In order to turn on the Wifi clock the correct location for describing
the CLKO2 clock is via a mmc-pwrseq handle, so do it accordingly.

Fixes: 56354959cfec ("ARM: dts: imx: add Boundary Devices Nitrogen7 board")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: imx: update the cpu power up timing setting on i.mx6sx
Anson Huang [Tue, 4 Dec 2018 03:17:45 +0000 (03:17 +0000)]
ARM: imx: update the cpu power up timing setting on i.mx6sx

The sw2iso count should cover ARM LDO ramp-up time,
the MAX ARM LDO ramp-up time may be up to more than
100us on some boards, this patch sets sw2iso to 0xf
(~384us) which is the reset value, and it is much
more safe to cover different boards, since we have
observed that some customer boards failed with current
setting of 0x2.

Fixes: 05136f0897b5 ("ARM: imx: support arm power off in cpuidle for i.mx6sx")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx7d-pico: Describe the Wifi clock
Fabio Estevam [Fri, 30 Nov 2018 10:31:29 +0000 (08:31 -0200)]
ARM: dts: imx7d-pico: Describe the Wifi clock

The Wifi chip should be clocked by a 32kHz clock coming from i.MX7D
CLKO2 output pin, so describe the pinmux and clock hierarchy in the
device tree to allow the Wifi chip to be properly clocked.

Managed to successfully test Wifi with such change. Used the standard
nvram.txt file provided by TechNexion, which selects an external 32kHz
clock for the Wifi chip by default.

Fixes: 99a52450c707 ("ARM: dts: imx7d-pico: Add Wifi support")
Suggested-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Tested-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
5 years agoARM: dts: imx51-zii-rdu1: Remove EEPROM node
Fabio Estevam [Sat, 10 Nov 2018 17:53:59 +0000 (15:53 -0200)]
ARM: dts: imx51-zii-rdu1: Remove EEPROM node

The EEPROM under I2C2 was put by mistake in the dts.

Remove it as it is not really present on the real hardware.

Fixes: ceef0396f367 ("ARM: dts: imx: add ZII RDU1 board")
Reported-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6: add thermal sensor and cooling cells
Lucas Stach [Mon, 5 Nov 2018 17:34:02 +0000 (18:34 +0100)]
ARM: dts: imx6: add thermal sensor and cooling cells

This allows a board to specify a custom thermal zone configuration
involving the SoC internal sensor, CPU and GPU nodes without having
to change those nodes.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6: RDU2: fix eGalax touchscreen node
Lucas Stach [Mon, 5 Nov 2018 17:31:56 +0000 (18:31 +0100)]
ARM: dts: imx6: RDU2: fix eGalax touchscreen node

Use the correct compatible for the new protocol used by the firmware
on the touch controller, the GPIO wakeup isn't used in that case.
Also eGalax touch needs axis swapping, just as with the RMI4 touch.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6ul: ccimx6ulsom: Fix indentation on iomuxc nodes
Alex Gonzalez [Mon, 5 Nov 2018 10:48:04 +0000 (11:48 +0100)]
ARM: dts: imx6ul: ccimx6ulsom: Fix indentation on iomuxc nodes

This patch corrects indentation problems in the gpmigrp and i2c1grp nodes.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6ul: ccimx6ulsom: Add support for wireless SOM variant
Alex Gonzalez [Mon, 5 Nov 2018 10:43:42 +0000 (11:43 +0100)]
ARM: dts: imx6ul: ccimx6ulsom: Add support for wireless SOM variant

The wireless variants of the ConnecCore 6UL SOM include a Qualcomm
QCA6564 wireless chip with dual WiFi and Bluetooth.

Both the ConnectCore 6UL SBC Express and Pro boards fit a wireless SOM.

The Wifi is connected through the SDIO interface on usdhc1 and the
Bluetooth is connected via uart1.

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: ls1021a: Add the status property disable PCIe
Xiaowei Bao [Mon, 5 Nov 2018 08:46:49 +0000 (16:46 +0800)]
ARM: dts: ls1021a: Add the status property disable PCIe

Add the status property disable the PCIe, the property will be enable
by bootloader.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6q-bx50v3: user-space watchdog GPIO configuration
Ian Ray [Sun, 4 Nov 2018 06:19:38 +0000 (08:19 +0200)]
ARM: dts: imx6q-bx50v3: user-space watchdog GPIO configuration

Leave b{4,6}50v3 GPIO expander pca953x pins P05,P10,P11 unconfigured as
they are now used to implement an additional watchdog mechanism in user
space.  P10,P11 pins remain unused (and therefore hogged) on b850v3.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: i.MX25: add the clocks for the EPIT blocks
Martin Kaiser [Thu, 1 Nov 2018 17:32:47 +0000 (18:32 +0100)]
ARM: dts: i.MX25: add the clocks for the EPIT blocks

The i.MX25 contains two EPIT (Enhanced Periodic Interrupt Timer)
function blocks. Add their ipg and per clocks to the device tree.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Acked-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6: add mmdc ipg clock
Anson Huang [Fri, 31 Aug 2018 07:53:18 +0000 (15:53 +0800)]
ARM: dts: imx6: add mmdc ipg clock

i.MX6 SoCs has MMDC clock gates in CCM CCGR, add
clock property for MMDC driver's clock operation.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6qdl-sabreauto: Remove reg property from fixed regulator
Joakim Zhang [Wed, 24 Oct 2018 10:25:12 +0000 (10:25 +0000)]
ARM: dts: imx6qdl-sabreauto: Remove reg property from fixed regulator

Drop reg property from fixed regulator and remove the unncessary bus
node.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6qdl-icore: Add missing stdout-path property
Shyam Saini [Thu, 18 Oct 2018 15:03:05 +0000 (20:33 +0530)]
ARM: dts: imx6qdl-icore: Add missing stdout-path property

This would help us to get early boot logs by passing "earlycon" to
kernel bootargs.

Further, by adding this we don't have to depend on complex earlyprintk
configs for early boot logs.

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6ull: Add dcp node
Leonard Crestez [Wed, 17 Oct 2018 12:37:54 +0000 (12:37 +0000)]
ARM: dts: imx6ull: Add dcp node

The DCP block on 6ull has no major differences other than requiring
explicit clock enabling.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: Add support for Liebherr's BK4 device (vf610 based)
Lukasz Majewski [Tue, 9 Oct 2018 10:50:28 +0000 (12:50 +0200)]
ARM: dts: Add support for Liebherr's BK4 device (vf610 based)

This commit adds DTS support for BK4 device from Liebherr. It
uses vf610 SoC from NXP.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6qdl-udoo: Add Pincfgs for UART4
Markus Kueffner [Wed, 10 Oct 2018 06:32:09 +0000 (08:32 +0200)]
ARM: dts: imx6qdl-udoo: Add Pincfgs for UART4

Add Pincfgs for UART4 to enable Communication with the onboard SAM3X

Signed-off-by: Markus Kueffner <kueffner.markus@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: vf610: Add ZII SCU4 AIB board
Fabio Estevam [Thu, 27 Sep 2018 15:47:46 +0000 (12:47 -0300)]
ARM: dts: vf610: Add ZII SCU4 AIB board

Add support for the ZII SCU 4 board, which has lots of switches and
SFF ports.

Based on the work from Andrew Lunn.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6sx-sdb: Fix enet phy regulator
Leonard Crestez [Mon, 8 Oct 2018 15:28:01 +0000 (15:28 +0000)]
ARM: dts: imx6sx-sdb: Fix enet phy regulator

Bindings for "fixed-regulator" only explicitly support "gpio" property,
not "gpios". Fix by correcting the property name.

The enet PHYs on imx6sx-sdb needs to be explicitly reset after a power
cycle, this can be handled by the phy-reset-gpios property. Sadly this
is not handled on suspend: the fec driver turns phy-supply off but
doesn't assert phy-reset-gpios again on resume.

Since additional phy-level work is required to support powering off the
phy in suspend fix the problem by just marking the regulator as
"boot-on" "always-on" so that it's never turned off. This behavior is
equivalent to older releases.

Keep the phy-reset-gpios property on fec anyway because it is a correct
description of board design.

This issue was exposed by commit efdfeb079cc3 ("regulator: fixed:
Convert to use GPIO descriptor only") which causes the "gpios" property
to also be parsed. Before that commit the "gpios" property had no
effect, PHY reset was only handled in the the bootloader.

This fixes linux-next boot failures previously reported here:
 https://lore.kernel.org/patchwork/patch/982437/#1177900
 https://lore.kernel.org/patchwork/patch/994091/#1178304

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: fsl: Fix improperly quoted stdout-path values
Rob Herring [Wed, 31 Oct 2018 01:02:30 +0000 (20:02 -0500)]
ARM: dts: fsl: Fix improperly quoted stdout-path values

A quoted label reference doesn't expand to the node path and is taken as
a literal string. Dropping the quotes can fix this unless the baudrate
string is appended in which case we have to use the alias.

At least on VF610, the problem was masked by setting the console in
bootargs. Use the alias syntax with baudrate parameter so we can drop
setting the console in bootargs.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoARM: dts: imx6sll: fix typo for fsl,imx6sll-i2c node
Oleksij Rempel [Thu, 18 Oct 2018 11:26:13 +0000 (13:26 +0200)]
ARM: dts: imx6sll: fix typo for fsl,imx6sll-i2c node

Fix the type of compatible string "fs,imx6sll-i2c" which should be
"fsl,imx6sll-i2c".

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
6 years agoLinux 4.20-rc1
Linus Torvalds [Sun, 4 Nov 2018 23:37:52 +0000 (15:37 -0800)]
Linux 4.20-rc1

6 years agoMerge tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs
Linus Torvalds [Sun, 4 Nov 2018 22:46:04 +0000 (14:46 -0800)]
Merge tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs

Pull UBIFS updates from Richard Weinberger:

 - Full filesystem authentication feature, UBIFS is now able to have the
   whole filesystem structure authenticated plus user data encrypted and
   authenticated.

 - Minor cleanups

* tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs: (26 commits)
  ubifs: Remove unneeded semicolon
  Documentation: ubifs: Add authentication whitepaper
  ubifs: Enable authentication support
  ubifs: Do not update inode size in-place in authenticated mode
  ubifs: Add hashes and HMACs to default filesystem
  ubifs: authentication: Authenticate super block node
  ubifs: Create hash for default LPT
  ubfis: authentication: Authenticate master node
  ubifs: authentication: Authenticate LPT
  ubifs: Authenticate replayed journal
  ubifs: Add auth nodes to garbage collector journal head
  ubifs: Add authentication nodes to journal
  ubifs: authentication: Add hashes to index nodes
  ubifs: Add hashes to the tree node cache
  ubifs: Create functions to embed a HMAC in a node
  ubifs: Add helper functions for authentication support
  ubifs: Add separate functions to init/crc a node
  ubifs: Format changes for authentication support
  ubifs: Store read superblock node
  ubifs: Drop write_node
  ...

6 years agoMerge tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Linus Torvalds [Sun, 4 Nov 2018 16:20:09 +0000 (08:20 -0800)]
Merge tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs

Pull NFS client bugfixes from Trond Myklebust:
 "Highlights include:

  Bugfix:
   - Fix build issues on architectures that don't provide 64-bit cmpxchg

  Cleanups:
   - Fix a spelling mistake"

* tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
  NFS: fix spelling mistake, EACCESS -> EACCES
  SUNRPC: Use atomic(64)_t for seq_send(64)

6 years agoMerge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 4 Nov 2018 16:15:15 +0000 (08:15 -0800)]
Merge branch 'timers-urgent-for-linus' of git://git./linux/kernel/git/tip/tip

Pull more timer updates from Thomas Gleixner:
 "A set of commits for the new C-SKY architecture timers"

* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  dt-bindings: timer: gx6605s SOC timer
  clocksource/drivers/c-sky: Add gx6605s SOC system timer
  dt-bindings: timer: C-SKY Multi-processor timer
  clocksource/drivers/c-sky: Add C-SKY SMP timer

6 years agoMerge tag 'ntb-4.20' of git://github.com/jonmason/ntb
Linus Torvalds [Sun, 4 Nov 2018 16:12:44 +0000 (08:12 -0800)]
Merge tag 'ntb-4.20' of git://github.com/jonmason/ntb

Pull NTB updates from Jon Mason:
 "Fairly minor changes and bug fixes:

  NTB IDT thermal changes and hook into hwmon, ntb_netdev clean-up of
  private struct, and a few bug fixes"

* tag 'ntb-4.20' of git://github.com/jonmason/ntb:
  ntb: idt: Alter the driver info comments
  ntb: idt: Discard temperature sensor IRQ handler
  ntb: idt: Add basic hwmon sysfs interface
  ntb: idt: Alter temperature read method
  ntb_netdev: Simplify remove with client device drvdata
  NTB: transport: Try harder to alloc an aligned MW buffer
  ntb: ntb_transport: Mark expected switch fall-throughs
  ntb: idt: Set PCIe bus address to BARLIMITx
  NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks
  ntb: intel: fix return value for ndev_vec_mask()
  ntb_netdev: fix sleep time mismatch

6 years agoMerge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 4 Nov 2018 01:37:09 +0000 (18:37 -0700)]
Merge branch 'sched-urgent-for-linus' of git://git./linux/kernel/git/tip/tip

Pull scheduler fixes from Ingo Molnar:
 "A memory (under-)allocation fix and a comment fix"

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched/topology: Fix off by one bug
  sched/rt: Update comment in pick_next_task_rt()

6 years agoMerge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 4 Nov 2018 01:25:17 +0000 (18:25 -0700)]
Merge branch 'x86-urgent-for-linus' of git://git./linux/kernel/git/tip/tip

Pull x86 fixes from Ingo Molnar:
 "A number of fixes and some late updates:

   - make in_compat_syscall() behavior on x86-32 similar to other
     platforms, this touches a number of generic files but is not
     intended to impact non-x86 platforms.

   - objtool fixes

   - PAT preemption fix

   - paravirt fixes/cleanups

   - cpufeatures updates for new instructions

   - earlyprintk quirk

   - make microcode version in sysfs world-readable (it is already
     world-readable in procfs)

   - minor cleanups and fixes"

* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  compat: Cleanup in_compat_syscall() callers
  x86/compat: Adjust in_compat_syscall() to generic code under !COMPAT
  objtool: Support GCC 9 cold subfunction naming scheme
  x86/numa_emulation: Fix uniform-split numa emulation
  x86/paravirt: Remove unused _paravirt_ident_32
  x86/mm/pat: Disable preemption around __flush_tlb_all()
  x86/paravirt: Remove GPL from pv_ops export
  x86/traps: Use format string with panic() call
  x86: Clean up 'sizeof x' => 'sizeof(x)'
  x86/cpufeatures: Enumerate MOVDIR64B instruction
  x86/cpufeatures: Enumerate MOVDIRI instruction
  x86/earlyprintk: Add a force option for pciserial device
  objtool: Support per-function rodata sections
  x86/microcode: Make revision and processor flags world-readable