platform/kernel/linux-rpi.git
5 years agoMerge tag 'omap-for-v5.5/dt-signed' of git://git.kernel.org/pub/scm/linux/kernel...
Olof Johansson [Thu, 24 Oct 2019 20:25:30 +0000 (13:25 -0700)]
Merge tag 'omap-for-v5.5/dt-signed' of git://git./linux/kernel/git/tmlind/linux-omap into arm/dt

Device tree changes for omaps for v5.5

This series of changes adds support for few new boards, moves
remaining ti wilink bluetooth users to use the serdev driver,
and improves support for existing devices:

- Add support for NetCAN Plus devices

- Configure wilink bluetooth for logicpd-torpedo and omap3-igep

- Switch to using generic LCD panel for logicpd-torpedo and
  increase camera pixel clock

- Configure droid4 for 300mA USB host mode and move to a common file
  to start adding support for droid bionic

- Rename ocmcram node to sram

* tag 'omap-for-v5.5/dt-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: dts: add DTS for NetCom Plus 4xx and 8xx device series
  ARM: dts: add DTS for NetCom Plus 1xx and 2xx device series
  ARM: dts: add DTS for NetCAN Plus devices
  ARM: dts: omap: Rename "ocmcram" node to "sram"
  ARM: dts: logicpd-torpedo-37xx-devkit: Increase camera pixel clock
  ARM: dts: am: Rename "ocmcram" node to "sram"
  ARM: dts: logicpd-torpedo: Disable Bluetooth Serial DMA
  ARM: dts: IGEP: Add WiLink UART node
  ARM: dts: LogicPD Torpedo: Add WiLink UART node
  ARM: dts: logicpd-torpedo-37xx-devkit-28: Reference new DRM panel
  ARM: dts: logicpd-torpedo-baseboard: Reduce video regulator chatter
  ARM: dts: Add minimal support for Droid Bionic xt875
  ARM: dts: omap4-droid4: Allow 300mA current for USB peripherals
  ARM: dts: Use level interrupt for omap4 & 5 wlcore

Link: https://lore.kernel.org/r/pull-1571934890-285615@atomide.com-2
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'arm-soc/for-5.5/devicetree' of https://github.com/Broadcom/stblinux into...
Olof Johansson [Thu, 24 Oct 2019 02:59:54 +0000 (19:59 -0700)]
Merge tag 'arm-soc/for-5.5/devicetree' of https://github.com/Broadcom/stblinux into arm/dt

This pull request contains Broadcom ARM-based SoCs Device Tree updates
for 5.5, please pull the following:

- Stefan paves the way for supporting the Raspberry Pi 4 and gets rid of
  a bunch of dtc checker warnings by removing incorrect
  nodes/properties, moving BCM2835/6/7 specific nodes into the
  appropriate DTS, converts Raspberry Pi boards to JSON schema, and
  finally adds minimal Raspberry Pi 4 model B support

- Dan adds support for the Luxul XWC-2000 router based on the BCM47094 SoC

- Chris adds a proper label to the Hurricane 2 watchdog controller node

* tag 'arm-soc/for-5.5/devicetree' of https://github.com/Broadcom/stblinux:
  ARM: dts: bcm: HR2: add label to sp805 watchdog
  ARM: dts: BCM5301X: Add DT for Luxul XWC-2000
  arm64: dts: broadcom: Add reference to RPi 4 B
  ARM: dts: Add minimal Raspberry Pi 4 support
  dt-bindings: arm: bcm2835: Add Raspberry Pi 4 to DT schema
  dt-bindings: arm: Convert BCM2835 board/soc bindings to json-schema
  ARM: dts: bcm283x: Move BCM2835/6/7 specific to bcm2835-common.dtsi
  ARM: dts: bcm283x: Remove brcm,bcm2835-pl011 compatible
  ARM: dts: bcm283x: Remove simple-bus from fixed clocks

Link: https://lore.kernel.org/r/20191023212814.30622-1-f.fainelli@gmail.com
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoARM: dts: bcm: HR2: add label to sp805 watchdog
Chris Packham [Tue, 22 Oct 2019 22:19:56 +0000 (11:19 +1300)]
ARM: dts: bcm: HR2: add label to sp805 watchdog

This allows boards the option of adding properties or disabling the
watchdog entirely.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
5 years agoMerge branch 'omap-for-v5.5/droid4' into omap-for-v5.5/dt
Tony Lindgren [Wed, 23 Oct 2019 17:34:28 +0000 (10:34 -0700)]
Merge branch 'omap-for-v5.5/droid4' into omap-for-v5.5/dt

5 years agoARM: dts: add DTS for NetCom Plus 4xx and 8xx device series
Yegor Yefremov [Tue, 22 Oct 2019 07:21:30 +0000 (09:21 +0200)]
ARM: dts: add DTS for NetCom Plus 4xx and 8xx device series

This DTS file covers all four and eight port NetCom Plus devices.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: add DTS for NetCom Plus 1xx and 2xx device series
Yegor Yefremov [Tue, 22 Oct 2019 07:21:29 +0000 (09:21 +0200)]
ARM: dts: add DTS for NetCom Plus 1xx and 2xx device series

This DTS file covers all one and two port NetCom Plus devices.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: add DTS for NetCAN Plus devices
Yegor Yefremov [Tue, 22 Oct 2019 07:21:28 +0000 (09:21 +0200)]
ARM: dts: add DTS for NetCAN Plus devices

This DTS file covers both NetCAN Plus 110 and 120 WLAN models.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: mmp3: add Dell Wyse 3020 machine
Lubomir Rintel [Tue, 22 Oct 2019 15:28:37 +0000 (17:28 +0200)]
ARM: dts: mmp3: add Dell Wyse 3020 machine

This is a Dell Wyse thin client, variously referred to as "Ariel",
"3020" or "Tx0D" where "x" stands for the software it was shipped with.
I somewhat arbitrarily chose "ariel".

There are bits missing, because the drivers are not in and bindings are not
settled yet:

* Things missing from mmp3.dtsi:
  HSIC controller and its PHY (only the internal Ethernet is connected
  here, the hub with external USB2 ports is connected to the U2O controller
  that works well), Vivante GC2000 GPU

* &twsi1/regulator@19
  Marvell 88pm867 power regulator

* &twsi3/vga-dvi-encoder@76
  Chrontel CH7033B-BF VGA & DVI encoder

* &twsi3/sound-codec@30
  Sound chip, probably a Marvell 88ce156

* &twsi4/embedded-controller@58
  ENE KB3930QF Embedded Controller, also seems to be connected to &ssp4.
  Might not need a driver -- about the only useful thing it can do is to
  reboot the machine when tickled via some GPIO lines.

Also there seems to be something at &twsi1 address 0x50.

Link: https://lore.kernel.org/r/20191022152837.3553524-1-lkundrak@v3.sk
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'actions-arm64-dt-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel...
Olof Johansson [Tue, 22 Oct 2019 19:28:26 +0000 (12:28 -0700)]
Merge tag 'actions-arm64-dt-for-v5.5' of git://git./linux/kernel/git/mani/linux-actions into arm/dt

Actions Semi ARM64 changes for v5.5:

Most of the basic infrastructure is completed for the ARM64 S900 SoC.
It can now boot a distro from eMMC/uSD with mainline kernel. Below are
the changes for this cycle (only S900):

- Added MMC controller support for S900 SoC. There are 4 controllers in
  this SoC, each capable of accessing MMC cards as well as SDIO.
- Added onboard eMMC and uSD support for 96Boards Bubblegum96 board based
  on S900. Since the MMC driver is not capable of supporting SDIO currently,
  it is not enabled for now. And with the absence of PMIC support, fixed
  regulators are used to model the power supply.

* tag 'actions-arm64-dt-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/linux-actions:
  arm64: dts: actions: Add uSD and eMMC support for Bubblegum96
  arm64: dts: actions: Add MMC controller support for S900

Link: https://lore.kernel.org/r/20191022145012.GB3601@Mani-XPS-13-9360
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoARM: dts: omap: Rename "ocmcram" node to "sram"
Krzysztof Kozlowski [Wed, 2 Oct 2019 16:43:16 +0000 (18:43 +0200)]
ARM: dts: omap: Rename "ocmcram" node to "sram"

The device node name should reflect generic class of a device so rename
the "ocmcram" node to "sram".  This will be also in sync with upcoming DT
schema.  No functional change.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: logicpd-torpedo-37xx-devkit: Increase camera pixel clock
Adam Ford [Mon, 21 Oct 2019 21:05:32 +0000 (16:05 -0500)]
ARM: dts: logicpd-torpedo-37xx-devkit: Increase camera pixel clock

The default settings used on the baseboard are good for the
OMAP3530 and are compatible with the DM3730.  However, the
DM3730 has a faster L3 clock which means the camera pixel clock
can also be pushed faster as well.

This patch increase the Pixel clock to 90MHz which is the
maximum the current ISP driver permits for an L3 clock
of 200MHz.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: am: Rename "ocmcram" node to "sram"
Krzysztof Kozlowski [Mon, 21 Oct 2019 16:17:52 +0000 (18:17 +0200)]
ARM: dts: am: Rename "ocmcram" node to "sram"

The device node name should reflect generic class of a device so rename
the "ocmcram" node and its children to "sram".  This will be also in
sync with upcoming DT schema.  No functional change.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: logicpd-torpedo: Disable Bluetooth Serial DMA
Adam Ford [Wed, 9 Oct 2019 19:20:53 +0000 (14:20 -0500)]
ARM: dts: logicpd-torpedo: Disable Bluetooth Serial DMA

The default serial driver for omap2plus is the 8250_omap driver.
Unfortunately, this driver does not yet appear to have fully
functional DMA on OMAP3630/DM3730 which causes some timeouts and
frame errors.

This patch removes the DMA entry from the device tree which allow
the UART to operate without Bluetooth frame errors. If/when DMA
is working on OMAP3630, this should be reverted.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: IGEP: Add WiLink UART node
Sebastian Reichel [Thu, 3 Oct 2019 13:41:45 +0000 (15:41 +0200)]
ARM: dts: IGEP: Add WiLink UART node

Add a node for the UART part of WiLink chip.

Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: LogicPD Torpedo: Add WiLink UART node
Sebastian Reichel [Thu, 3 Oct 2019 13:41:44 +0000 (15:41 +0200)]
ARM: dts: LogicPD Torpedo: Add WiLink UART node

Add a node for the UART part of WiLink chip.

This is compile tested only!

Cc: Adam Ford <aford173@gmail.com>
Acked-by: Adam Ford <aford173@gmail.com>
Tested-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoarm64: dts: actions: Add uSD and eMMC support for Bubblegum96
Manivannan Sadhasivam [Sat, 8 Jun 2019 19:16:54 +0000 (00:46 +0530)]
arm64: dts: actions: Add uSD and eMMC support for Bubblegum96

Add uSD and eMMC support for Bubblegum96 board based on Actions Semi
S900 SoC. SD0 is connected to uSD slot and SD2 is connected to eMMC.
Since there is no PMIC support added yet, fixed regulator has been
used as a regulator node.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
5 years agoarm64: dts: actions: Add MMC controller support for S900
Manivannan Sadhasivam [Sat, 8 Jun 2019 19:14:54 +0000 (00:44 +0530)]
arm64: dts: actions: Add MMC controller support for S900

Add MMC controller support for Actions Semi S900 SoC. There are 4 MMC
controllers in this SoC which can be used for accessing SD/MMC/SDIO cards.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
5 years agoMerge tag 'mmp-dt-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak...
Olof Johansson [Mon, 21 Oct 2019 22:27:31 +0000 (15:27 -0700)]
Merge tag 'mmp-dt-for-v5.5' of git://git./linux/kernel/git/lkundrak/linux-mmp into arm/dt

ARM: Marvell MMP Device Tree patches for v5.5

This tag includes binding documentation for various hardware found on Marvell
MMP3 SoC along a DTS file for said hardware.

* tag 'mmp-dt-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp:
  ARM: dts: mmp3: Add MMP3 SoC dts file
  dt-bindings: phy-mmp3-usb: Add bindings
  dt-bindings: mrvl,intc: Add a MMP3 interrupt controller
  dt-bindings: arm: mrvl: Document MMP3 compatible string
  dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema
  dt-bindings: arm: cpu: Add Marvell MMP3 SMP enable method

Link: https://lore.kernel.org/r/d4897c4a92319527c46147244282803cd9f5a1ff.camel@v3.sk
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'samsung-dt-dmc-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Mon, 21 Oct 2019 21:38:03 +0000 (14:38 -0700)]
Merge tag 'samsung-dt-dmc-5.5' of https://git./linux/kernel/git/krzk/linux into arm/dt

Samsung DTS changes for DMC driver for v5.5

Add bindings and update device tree sources of Exynos5422 platforms with
new Dynamic Memory Controller nodes and properties.

* tag 'samsung-dt-dmc-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  dt-bindings: memory-controllers: exynos5422-dmc: Correct example syntax and memory region
  ARM: dts: exynos: Add interrupts to DMC controller in Exynos5422
  ARM: dts: exynos: Extend mapped region for DMC on Exynos5422
  dt-bindings: memory-controllers: exynos5422-dmc: Add interrupt mode
  dt-bindings: ddr: Add bindings for Samsung LPDDR3 memories
  ARM: dts: exynos: Add DMC device to Exynos5422 and Odroid XU3-family boards
  ARM: dts: exynos: Add syscon compatible to clock controller on Exynos542x
  dt-bindings: memory-controllers: Add Exynos5422 DMC device description
  dt-bindings: ddr: Add bindings for LPDDR3 memories
  dt-bindings: ddr: Rename lpddr2 directory

Link: https://lore.kernel.org/r/20191021180453.29455-6-krzk@kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'samsung-dt64-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk...
Olof Johansson [Mon, 21 Oct 2019 21:37:33 +0000 (14:37 -0700)]
Merge tag 'samsung-dt64-5.5' of https://git./linux/kernel/git/krzk/linux into arm/dt

Samsung DTS ARM64 changes for v5.5

1. Fix boot of Exynos7 due to wrong address/size of memory node,
2. Move GPU under /soc node,
3. Minor of DT bindings.

* tag 'samsung-dt64-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  arm64: dts: exynos: Rename Multi Core Timer node to "timer" on Exynos5433
  arm64: dts: exynos: Split phandle in dmas property on Exynos5433
  arm64: dts: exynos: Swap clock order of sysmmu on Exynos5433
  arm64: dts: exynos: Revert "Remove unneeded address space mapping for soc node"
  arm64: dts: exynos: Move GPU under /soc node for Exynos7
  arm64: dts: exynos: Move GPU under /soc node for Exynos5433

Link: https://lore.kernel.org/r/20191021180453.29455-5-krzk@kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'samsung-dt-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk...
Olof Johansson [Mon, 21 Oct 2019 21:37:07 +0000 (14:37 -0700)]
Merge tag 'samsung-dt-5.5' of https://git./linux/kernel/git/krzk/linux into arm/dt

Samsung DTS ARM changes for v5.5

1. Add ARM architected timers on Exynos5 for KVM-based virtualization,
2. Extend chip identification needed for future Adaptive Supply Voltage,
3. Add audio support to Arndale board,
4. Fix init order of clock providers on s3c64xx,
5. A lot of cleanups and adjustments of DTS with DT schema.

* tag 'samsung-dt-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  ARM: dts: s3c64xx: Fix init order of clock providers
  ARM: dts: exynos: Rename SysRAM node to "sram"
  ARM: dts: exynos: Rename power domain nodes to "power-domain" in Exynos4
  ARM: dts: exynos: Add audio support (WM1811 CODEC boards) to Arndale board
  ARM: dts: exynos: Use defines for MCT interrupt GIC SPI/PPI specifier
  ARM: dts: exynos: Remove MCT subnode for interrupt map on Exynos54xx
  ARM: dts: exynos: Remove MCT subnode for interrupt map on Exynos5250
  ARM: dts: exynos: Remove MCT subnode for interrupt map on Exynos4412
  ARM: dts: exynos: Remove MCT subnode for interrupt map on Exynos4210
  ARM: dts: exynos: Rename Multi Core Timer node to "timer"
  ARM: dts: exynos: Split phandle in dmas property
  ARM: dts: exynos: Remove obsolete IRQ lines on Exynos3250
  ARM: dts: exynos: Add samsung,asv-bin property to Odroid XU3 Lite
  ARM: dts: exynos: Add "syscon" compatible string to chipid node on Exynos5
  ARM: dts: exynos: Add support ARM architected timers on Exynos5

Link: https://lore.kernel.org/r/20191021180453.29455-4-krzk@kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'v5.5-rockchip-dts64-1' of git://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Mon, 21 Oct 2019 21:36:45 +0000 (14:36 -0700)]
Merge tag 'v5.5-rockchip-dts64-1' of git://git./linux/kernel/git/mmind/linux-rockchip into arm/dt

A lot of improvements for the (till now) somewhat dormant px30 soc,
power-tree improvements ofr the roc-rk3399-pc, after a long wait
also support for the CR50 TPM device found on some RK3399-Gru devices,
some audio and gmac improvements for NanoPi4 and Rockpro64 as well
as marking the redundant RK_FUNC_x -> x mapping as deprecated and
fixing a missing #msi-cells on rk3399.

* tag 'v5.5-rockchip-dts64-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
  include: dt-bindings: rockchip: mark RK_FUNC defines as deprecated
  arm64: dts: rockchip: restyle rockchip,pins on rk3399-rock-pi-4
  arm64: dts: rockchip: Update nanopi4 phy reset properties
  arm64: dts: rockchip: Enable nanopi4 HDMI audio
  arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob
  arm64: dts: rockchip: add analog audio nodes on rk3399-rockpro64
  arm64: dts: rockchip: add missing #msi-cells to rk3399
  arm64: dts: rockchip: Fix roc-rk3399-pc regulator input rails
  arm64: dts: rockchip: Rename vcc12v_sys into dc_12v for roc-rk3399-pc
  dt-bindings: document PX30 usb2phy General Register Files
  arm64: dts: rockchip: add px30-evb i2c1 devices
  arm64: dts: rockchip: document explicit px30 cru dependencies
  arm64: dts: rockchip: remove unused pin settings from px30
  arm64: dts: rockchip: move px30-evb console output to uart 5
  arm64: dts: rockchip: add emmc-powersequence to px30-evb
  arm64: dts: rockchip: fix the px30-evb power tree
  arm64: dts: rockchip: add default px30 emmc pinctrl
  arm64: dts: rockchip: remove px30 emmc_pwren pinctrl
  arm64: dts: rockchip: remove static xin32k from px30
  arm64: dts: rockchip: fix iface clock-name on px30 iommus

Link: https://lore.kernel.org/r/1650793.YZj09CGBNl@phil
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'v5.5-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Mon, 21 Oct 2019 21:36:32 +0000 (14:36 -0700)]
Merge tag 'v5.5-rockchip-dts32-1' of git://git./linux/kernel/git/mmind/linux-rockchip into arm/dt

New rk3288 features are Gamma support for the VOPs as well as declaring
the cpuid found in the efuses. Veyron display got a cleanup to use the
interpolated backlight values instead of declaring huge tables
and finally a cleanup fixing some tabs/spaces issues in the dts files.

* tag 'v5.5-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
  ARM: dts: rockchip: remove some tabs and spaces from dtsi files
  ARM: dts: rockchip: Add RK3288 VOP gamma LUT address
  ARM: dts: rockchip: Use interpolated brightness tables for veyron
  ARM: dts: rockchip: Add cpu id to rk3288 efuse node

Link: https://lore.kernel.org/r/1770986.Em1ahGqaF7@phil
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'renesas-dt-bindings-for-v5.5-tag1' of git://git.kernel.org/pub/scm/linux...
Olof Johansson [Mon, 21 Oct 2019 21:36:12 +0000 (14:36 -0700)]
Merge tag 'renesas-dt-bindings-for-v5.5-tag1' of git://git./linux/kernel/git/geert/renesas-devel into arm/dt

Renesas DT binding updates for v5.5

  - RZ/G2M update for the Renesas Timer Unit bindings,
  - Support for the new RZ/G2N (r8a774b1) SoC and the HiHope RZ/G2N
    board.

* tag 'renesas-dt-bindings-for-v5.5-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
  dt-bindings: reset: rcar-rst: Document r8a774b1 reset module
  dt-bindings: power: rcar-sysc: Document r8a774b1 sysc
  dt-bindings: arm: renesas: Add HopeRun RZ/G2N boards
  dt-bindings: arm: renesas: Document RZ/G2N SoC DT bindings
  dt-bindings: timer: renesas: tmu: Document r8a774a1 bindings

Link: https://lore.kernel.org/r/20191018101136.26350-6-geert+renesas@glider.be
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'renesas-arm64-dt-for-v5.5-tag1' of git://git.kernel.org/pub/scm/linux...
Olof Johansson [Mon, 21 Oct 2019 21:35:51 +0000 (14:35 -0700)]
Merge tag 'renesas-arm64-dt-for-v5.5-tag1' of git://git./linux/kernel/git/geert/renesas-devel into arm/dt

Renesas ARM64 DT updates for v5.5

  - Support for the RZ/G2N (r8a774b1) SoC and the HiHope RZ/G2N board,
  - CPU idle support for R-Car H3 and M3-W,
  - LVDS and backlight support on the HiHope RZ/G2M and RZ/G2N boards,
    with Advantech idk-1110wr LVDS panel,
  - Minor fixes and improvements.

* tag 'renesas-arm64-dt-for-v5.5-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel: (50 commits)
  arm64: dts: renesas: r8a774b1: Add CAN and CAN FD support
  arm64: dts: renesas: Add iommus to R-Car Gen3 SDHI/MMC nodes
  arm64: dts: renesas: r8a774b1: Add INTC-EX device node
  arm64: dts: renesas: r8a774b1: Add USB3.0 device nodes
  arm64: dts: renesas: r8a774b1: Add USB-DMAC and HSUSB device nodes
  arm64: dts: renesas: r8a774b1: Add USB2.0 phy and host (EHCI/OHCI) device nodes
  arm64: dts: renesas: r8a774b1: Add Sound and Audio DMAC device nodes
  arm64: dts: renesas: hihope-rzg2-ex: Let the board specific DT decide about pciec1
  arm64: dts: renesas: r8a774b1: Add PCIe device nodes
  arm64: dts: renesas: r8a774b1: Add all MSIOF nodes
  arm64: dts: renesas: r8a774b1: Add RWDT node
  arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel
  arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support
  arm64: dts: renesas: hihope-rzg2-ex: Enable backlight
  arm64: dts: renesas: r8a774b1: Add PWM device nodes
  arm64: dts: renesas: r8a774b1: Add FDP1 device nodes
  arm64: dts: renesas: r8a774b1-hihope-rzg2n: Add display clock properties
  arm64: dts: renesas: r8a774b1: Add HDMI encoder instance
  arm64: dts: renesas: r8a774b1: Add DU device to DT
  arm64: dts: renesas: hihope-common: Move du clk properties out of common dtsi
  ...

Link: https://lore.kernel.org/r/20191018101136.26350-4-geert+renesas@glider.be
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoMerge tag 'renesas-arm-dt-for-v5.5-tag1' of git://git.kernel.org/pub/scm/linux/kernel...
Olof Johansson [Mon, 21 Oct 2019 21:35:32 +0000 (14:35 -0700)]
Merge tag 'renesas-arm-dt-for-v5.5-tag1' of git://git./linux/kernel/git/geert/renesas-devel into arm/dt

Renesas ARM DT updates for v5.5

  - Whitespace cleanups.

* tag 'renesas-arm-dt-for-v5.5-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
  ARM: dts: emev2: Add whitespace for GPIO nodes
  ARM: dts: lager: Replace spaces by TABs
  ARM: dts: gose: Replace spaces by TABs

Link: https://lore.kernel.org/r/20191018101136.26350-2-geert+renesas@glider.be
Signed-off-by: Olof Johansson <olof@lixom.net>
5 years agoARM: dts: logicpd-torpedo-37xx-devkit-28: Reference new DRM panel
Adam Ford [Wed, 16 Oct 2019 13:51:47 +0000 (08:51 -0500)]
ARM: dts: logicpd-torpedo-37xx-devkit-28: Reference new DRM panel

With the removal of the panel-dpi from the omap drivers, the
LCD no longer works.  This patch points the device tree to
a newly created panel named "logicpd,type28"

Fixes: 8bf4b1621178 ("drm/omap: Remove panel-dpi driver")

Signed-off-by: Adam Ford <aford173@gmail.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: logicpd-torpedo-baseboard: Reduce video regulator chatter
Adam Ford [Tue, 17 Sep 2019 15:49:23 +0000 (10:49 -0500)]
ARM: dts: logicpd-torpedo-baseboard: Reduce video regulator chatter

The dss driver wants two regulators or it dump some splat while
initializing.  This patch adds a reference to the second regulator
which to avoid the warnings that the regulator is missing.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: mmp3: Add MMP3 SoC dts file
Lubomir Rintel [Fri, 7 Jun 2019 20:27:35 +0000 (22:27 +0200)]
ARM: dts: mmp3: Add MMP3 SoC dts file

Describes most of the hardware found on Marvell MMP3, aka PXA2128, aka
Armada 620. Missing bits are the LCD controller, HSIC controllers,
Audio and GPU. Will be completed once bindings and drivers settle.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
5 years agodt-bindings: phy-mmp3-usb: Add bindings
Lubomir Rintel [Fri, 21 Jun 2019 12:31:06 +0000 (14:31 +0200)]
dt-bindings: phy-mmp3-usb: Add bindings

This is the PHY chip for USB OTG on MMP3 platform.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Rob Herring <robh@kernel.org>
5 years agodt-bindings: mrvl,intc: Add a MMP3 interrupt controller
Lubomir Rintel [Fri, 12 Jul 2019 09:45:40 +0000 (11:45 +0200)]
dt-bindings: mrvl,intc: Add a MMP3 interrupt controller

Similar to MMP2 one, but has an extra range for the other core. The
muxes stay the same.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Rob Herring <robh@kernel.org>
5 years agodt-bindings: arm: mrvl: Document MMP3 compatible string
Lubomir Rintel [Fri, 21 Jun 2019 12:20:59 +0000 (14:20 +0200)]
dt-bindings: arm: mrvl: Document MMP3 compatible string

Marvel MMP3 is a successor to MMP2, containing similar peripherals with two
PJ4B cores.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Rob Herring <robh@kernel.org>
5 years agodt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema
Lubomir Rintel [Thu, 22 Aug 2019 08:34:23 +0000 (10:34 +0200)]
dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

Convert Marvell MMP SoC bindings to DT schema format using json-schema.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Rob Herring <robh@kernel.org>
5 years agodt-bindings: arm: cpu: Add Marvell MMP3 SMP enable method
Lubomir Rintel [Fri, 12 Jul 2019 09:52:30 +0000 (11:52 +0200)]
dt-bindings: arm: cpu: Add Marvell MMP3 SMP enable method

Add the enable method for the second PJ4B core of the Marvell MMP3 SoC.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Rob Herring <robh@kernel.org>
5 years agoMerge tag 'tags/bcm2835-dt-next-2019-10-15' into devicetree/next
Florian Fainelli [Wed, 16 Oct 2019 22:14:25 +0000 (15:14 -0700)]
Merge tag 'tags/bcm2835-dt-next-2019-10-15' into devicetree/next

This pull request introduce initial Raspberry Pi 4 support. But all the fancy
stuff like GENET, PCIe, xHCI, 40 bit DMA and V3D is missing.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
5 years agoinclude: dt-bindings: rockchip: mark RK_FUNC defines as deprecated
Johan Jonker [Tue, 15 Oct 2019 20:58:52 +0000 (22:58 +0200)]
include: dt-bindings: rockchip: mark RK_FUNC defines as deprecated

The defines RK_FUNC_1, RK_FUNC_2, RK_FUNC_3 and RK_FUNC_4
are no longer used. Mark them as "deprecated"
to prevent that someone start using them again.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Link: https://lore.kernel.org/r/20191015205852.4200-2-jbx6244@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
5 years agoarm64: dts: rockchip: restyle rockchip,pins on rk3399-rock-pi-4
Johan Jonker [Tue, 15 Oct 2019 20:58:51 +0000 (22:58 +0200)]
arm64: dts: rockchip: restyle rockchip,pins on rk3399-rock-pi-4

The define RK_FUNC_1 is no longer used,
so restyle the rockchip,pins definitions.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Link: https://lore.kernel.org/r/20191015205852.4200-1-jbx6244@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
5 years agoARM: dts: rockchip: remove some tabs and spaces from dtsi files
Johan Jonker [Mon, 14 Oct 2019 21:06:19 +0000 (23:06 +0200)]
ARM: dts: rockchip: remove some tabs and spaces from dtsi files

Cleanup the Rockchip dtsi files a little bit
by removing some tabs and spaces.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Link: https://lore.kernel.org/r/20191014210619.12778-1-jbx6244@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
5 years agoARM: dts: BCM5301X: Add DT for Luxul XWC-2000
Dan Haab [Wed, 2 Oct 2019 15:57:26 +0000 (09:57 -0600)]
ARM: dts: BCM5301X: Add DT for Luxul XWC-2000

It's a simple network device based on BCM47094 with just a single
Ethernet port.

Signed-off-by: Dan Haab <dan.haab@legrand.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
5 years agoarm64: dts: renesas: r8a774b1: Add CAN and CAN FD support
Fabrizio Castro [Thu, 10 Oct 2019 14:26:00 +0000 (15:26 +0100)]
arm64: dts: renesas: r8a774b1: Add CAN and CAN FD support

Add CAN and CAN FD support to the RZ/G2N SoC specific dtsi.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570717560-7431-4-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: Add iommus to R-Car Gen3 SDHI/MMC nodes
Yoshihiro Shimoda [Mon, 7 Oct 2019 08:40:05 +0000 (17:40 +0900)]
arm64: dts: renesas: Add iommus to R-Car Gen3 SDHI/MMC nodes

This patch adds iommus properties to the R-Car Gen3 SoCs' SDHI/MMC
nodes.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/1570437605-15804-1-git-send-email-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoARM: dts: rockchip: Add RK3288 VOP gamma LUT address
Ezequiel Garcia [Thu, 10 Oct 2019 19:43:51 +0000 (16:43 -0300)]
ARM: dts: rockchip: Add RK3288 VOP gamma LUT address

RK3288 SoC VOPs have optional support Gamma LUT setting,
which requires specifying the Gamma LUT address in the devicetree.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20191010194351.17940-4-ezequiel@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
5 years agoarm64: dts: rockchip: Update nanopi4 phy reset properties
Robin Murphy [Mon, 7 Oct 2019 11:33:26 +0000 (12:33 +0100)]
arm64: dts: rockchip: Update nanopi4 phy reset properties

Use the now-preferred generic phy reset properties instead of the
dwmac-specific ones.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/4d16c24ae3651a2119cf5bb1213f46a9fce4b39a.1570444773.git.robin.murphy@arm.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
5 years agoarm64: dts: rockchip: Enable nanopi4 HDMI audio
Robin Murphy [Mon, 7 Oct 2019 11:33:25 +0000 (12:33 +0100)]
arm64: dts: rockchip: Enable nanopi4 HDMI audio

All the nanopi4 boards have HDMI, so let them make noise on it.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/7fe6e94e4b9f5986f19f2637b7b716f0cb54de1b.1570444701.git.robin.murphy@arm.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
5 years agoARM: dts: rockchip: Use interpolated brightness tables for veyron
Matthias Kaehlcke [Thu, 3 Oct 2019 16:41:52 +0000 (09:41 -0700)]
ARM: dts: rockchip: Use interpolated brightness tables for veyron

Use interpolated brightness tables (added by commit 573fe6d1c25
("backlight: pwm_bl: Linear interpolation between
brightness-levels") for veyron, instead of specifying every single
step. Some devices/panels have intervals that are smaller than
the specified 'num-interpolated-steps', the driver interprets
these intervals as a single step.

Another option would be to switch to a perceptual brightness curve
(CIE 1931), with the caveat that it would change the behavior of
the backlight. Also the concept of a minimum brightness level is
currently not supported for CIE 1931 curves.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20191003094137.v2.1.Ic9fd698810ea569c465350154da40b85d24f805b@changeid
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
5 years agoarm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob
Heiko Stuebner [Wed, 22 Aug 2018 12:09:25 +0000 (14:09 +0200)]
arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob

Scarlet and Bob use the Google-developed cr50 chip to do things
like TPM and closed-case-debugging.

Add the nodes describing the cr50 and its spi-connection.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20180822120925.12388-1-heiko@sntech.de
5 years agoarm64: dts: broadcom: Add reference to RPi 4 B
Stefan Wahren [Sun, 21 Jul 2019 19:53:43 +0000 (21:53 +0200)]
arm64: dts: broadcom: Add reference to RPi 4 B

This adds a reference to the dts of the Raspberry Pi 4 B,
so we don't need to maintain the content in arm64.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
5 years agoARM: dts: Add minimal Raspberry Pi 4 support
Stefan Wahren [Sun, 6 Oct 2019 13:41:25 +0000 (15:41 +0200)]
ARM: dts: Add minimal Raspberry Pi 4 support

This adds minimal support for the new Raspberry Pi 4 without the
fancy stuff like GENET, PCIe, xHCI, 40 bit DMA and V3D. The RPi 4 is
available in 3 different variants (1, 2 and 4 GB RAM), so leave the memory
size to zero and let the bootloader take care of it. The DWC2 is still
usable as peripheral via the USB-C port.

Other differences to the Raspberry Pi 3:
- additional GIC 400 Interrupt controller
- new thermal IP and HWRNG
- additional MMC interface (emmc2)
- additional UART, I2C, SPI and PWM interfaces
- clock stretching bug in I2C IP has been fixed

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Florian Fanelli <f.fainelli@gmail.com>
5 years agodt-bindings: arm: bcm2835: Add Raspberry Pi 4 to DT schema
Stefan Wahren [Fri, 16 Aug 2019 20:09:20 +0000 (22:09 +0200)]
dt-bindings: arm: bcm2835: Add Raspberry Pi 4 to DT schema

Add new Raspberry Pi 4 to DT schema.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Herring <robh@kernel.org>
5 years agodt-bindings: arm: Convert BCM2835 board/soc bindings to json-schema
Stefan Wahren [Fri, 16 Aug 2019 19:01:08 +0000 (21:01 +0200)]
dt-bindings: arm: Convert BCM2835 board/soc bindings to json-schema

Convert the BCM2835/6/7 SoC bindings to DT schema format using json-schema.
All the other Broadcom boards are maintained by Florian Fainelli.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Herring <robh@kernel.org>
5 years agoARM: dts: bcm283x: Move BCM2835/6/7 specific to bcm2835-common.dtsi
Stefan Wahren [Sat, 17 Aug 2019 16:08:09 +0000 (18:08 +0200)]
ARM: dts: bcm283x: Move BCM2835/6/7 specific to bcm2835-common.dtsi

As preparation we want all common BCM2711 + BCM2835/6/7 functions in
bcm283x.dtsi and all BCM2835/6/7 specific in the new
bcm2835-common.dtsi. Since i2c2 is BCM2835 specific, we also need
to move it to bcm2835-common.dtsi.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Eric Anholt <eric@anholt.net>
5 years agoARM: dts: bcm283x: Remove brcm,bcm2835-pl011 compatible
Stefan Wahren [Fri, 16 Aug 2019 20:44:36 +0000 (22:44 +0200)]
ARM: dts: bcm283x: Remove brcm,bcm2835-pl011 compatible

The downstream compatible brcm,bcm2835-pl011 hasn't been upstreamed yet.
So remove it.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
5 years agoARM: dts: bcm283x: Remove simple-bus from fixed clocks
Stefan Wahren [Fri, 16 Aug 2019 20:32:02 +0000 (22:32 +0200)]
ARM: dts: bcm283x: Remove simple-bus from fixed clocks

The fixed clocks doesn't form some kind of bus. So let's remove it.
This fixes the follow DT schema warnings:

clocks: clock@3:reg:0: [3] is too short
clocks: clock@4:reg:0: [4] is too short
clocks: $nodename:0: 'clocks' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
clocks: #size-cells:0:0: 0 is not one of [1, 2]
clocks: 'ranges' is a required property
clock@3: 'reg' does not match any of the regexes: 'pinctrl-[0-9]+'
clock@4: 'reg' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
5 years agoarm64: dts: renesas: r8a774b1: Add INTC-EX device node
Fabrizio Castro [Tue, 8 Oct 2019 10:38:52 +0000 (11:38 +0100)]
arm64: dts: renesas: r8a774b1: Add INTC-EX device node

Add support for the Interrupt Controller for External Devices
(INTC-EX) on RZ/G2N.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570531132-21856-11-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add USB3.0 device nodes
Fabrizio Castro [Tue, 8 Oct 2019 10:38:51 +0000 (11:38 +0100)]
arm64: dts: renesas: r8a774b1: Add USB3.0 device nodes

Add usb3.0 phy, host and function device nodes on RZ/G2N SoC dtsi.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570531132-21856-10-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add USB-DMAC and HSUSB device nodes
Fabrizio Castro [Tue, 8 Oct 2019 10:38:50 +0000 (11:38 +0100)]
arm64: dts: renesas: r8a774b1: Add USB-DMAC and HSUSB device nodes

Add usb dmac and hsusb device nodes to the RZ/G2N SoC dtsi.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570531132-21856-9-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add USB2.0 phy and host (EHCI/OHCI) device nodes
Fabrizio Castro [Tue, 8 Oct 2019 10:38:49 +0000 (11:38 +0100)]
arm64: dts: renesas: r8a774b1: Add USB2.0 phy and host (EHCI/OHCI) device nodes

Add USB2.0 phy and host (EHCI/OHCI) device nodes on RZ/G2N SoC dtsi.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570531132-21856-8-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add Sound and Audio DMAC device nodes
Biju Das [Fri, 4 Oct 2019 14:52:41 +0000 (15:52 +0100)]
arm64: dts: renesas: r8a774b1: Add Sound and Audio DMAC device nodes

Based on a similar patch of the R8A7796 device tree
by Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1570200761-884-2-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: hihope-rzg2-ex: Let the board specific DT decide about pciec1
Fabrizio Castro [Fri, 4 Oct 2019 08:35:33 +0000 (09:35 +0100)]
arm64: dts: renesas: hihope-rzg2-ex: Let the board specific DT decide about pciec1

The plan for the HiHope RZ/G2N board is to enable pciec0 by default,
and use pciec1 physical interface for SATA (as SATA and PCIE1 share
the same physical interface), therefore move pciec1 enabling away
from hihope-rzg2-ex.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570178133-21532-8-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add PCIe device nodes
Fabrizio Castro [Fri, 4 Oct 2019 08:35:32 +0000 (09:35 +0100)]
arm64: dts: renesas: r8a774b1: Add PCIe device nodes

This patch adds PCIe{0,1} device nodes for R8A774B1 SoC.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Link: https://lore.kernel.org/r/1570178133-21532-7-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add all MSIOF nodes
Fabrizio Castro [Fri, 4 Oct 2019 08:35:31 +0000 (09:35 +0100)]
arm64: dts: renesas: r8a774b1: Add all MSIOF nodes

Add the device nodes for all MSIOF SPI controllers on the RZ/G2N
SoC (a.k.a. r8a774b1).

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570178133-21532-6-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add RWDT node
Fabrizio Castro [Fri, 4 Oct 2019 08:35:30 +0000 (09:35 +0100)]
arm64: dts: renesas: r8a774b1: Add RWDT node

Populate the device tree node for the Watchdog Timer (RWDT)
controller on the Renesas RZ/G2N (r8a774b1) SoC.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Link: https://lore.kernel.org/r/1570178133-21532-5-git-send-email-fabrizio.castro@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel
Biju Das [Wed, 2 Oct 2019 15:20:19 +0000 (16:20 +0100)]
arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel

This patch adds support for Advantech idk-1110wr LVDS panel.
The HiHope RZ/G2[MN] is advertised as compatible with panel
idk-1110wr from Advantech, however the panel isn't sold alongside
the board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-10-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: hihope-rzg2-ex: Add LVDS support
Biju Das [Wed, 2 Oct 2019 15:20:18 +0000 (16:20 +0100)]
arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support

This patch adds LVDS support for RZ/G2[MN] boards.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-9-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: hihope-rzg2-ex: Enable backlight
Biju Das [Wed, 2 Oct 2019 15:20:17 +0000 (16:20 +0100)]
arm64: dts: renesas: hihope-rzg2-ex: Enable backlight

This patch enables backlight support.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-8-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add PWM device nodes
Biju Das [Wed, 2 Oct 2019 15:20:16 +0000 (16:20 +0100)]
arm64: dts: renesas: r8a774b1: Add PWM device nodes

This patch adds PWM device nodes to r8a774b1 SoC DT.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-7-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add FDP1 device nodes
Biju Das [Wed, 2 Oct 2019 15:20:15 +0000 (16:20 +0100)]
arm64: dts: renesas: r8a774b1: Add FDP1 device nodes

The r8a774b1 has a single FDP1 instance.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-6-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1-hihope-rzg2n: Add display clock properties
Biju Das [Wed, 2 Oct 2019 15:20:14 +0000 (16:20 +0100)]
arm64: dts: renesas: r8a774b1-hihope-rzg2n: Add display clock properties

Add display clock properties for the HiHope RZ/G2N board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-5-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add HDMI encoder instance
Biju Das [Wed, 2 Oct 2019 15:20:13 +0000 (16:20 +0100)]
arm64: dts: renesas: r8a774b1: Add HDMI encoder instance

Add the HDMI encoder to the R8A774B1 DT in disabled state.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-4-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add DU device to DT
Biju Das [Wed, 2 Oct 2019 15:20:12 +0000 (16:20 +0100)]
arm64: dts: renesas: r8a774b1: Add DU device to DT

Add the DU device to r8a774b1 SoC DT.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-3-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: hihope-common: Move du clk properties out of common dtsi
Biju Das [Wed, 2 Oct 2019 15:20:11 +0000 (16:20 +0100)]
arm64: dts: renesas: hihope-common: Move du clk properties out of common dtsi

RZ/G2N board is pin compatible with RZ/G2M board. However on the SoC
side RZ/G2N uses DU3 where as RZ/G2M uses DU2 for the DPAD. In order to
reuse the common dtsi for both the boards, it is required to move du clock
properties from common dtsi to board specific dts.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-2-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Connect Ethernet-AVB to IPMMU-DS0
Biju Das [Tue, 24 Sep 2019 08:22:55 +0000 (09:22 +0100)]
arm64: dts: renesas: r8a774b1: Connect Ethernet-AVB to IPMMU-DS0

Add IPMMU-DS0 to the Ethernet-AVB device node.

Based on work by Magnus Damm for the r8a7795.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569313375-53428-8-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Tie SYS-DMAC to IPMMU-DS0/1
Biju Das [Tue, 24 Sep 2019 08:22:54 +0000 (09:22 +0100)]
arm64: dts: renesas: r8a774b1: Tie SYS-DMAC to IPMMU-DS0/1

Hook up r8a774b1 DMAC nodes to the IPMMUs. In particular SYS-DMAC0
gets tied to IPMMU-DS0, and SYS-DMAC1 and SYS-DMAC2 get tied to IPMMU-DS1.

Based on work for the r8a7796 by Magnus Damm.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569313375-53428-7-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add VSP instances
Biju Das [Tue, 24 Sep 2019 08:22:53 +0000 (09:22 +0100)]
arm64: dts: renesas: r8a774b1: Add VSP instances

The r8a774b1 has 4 VSP instances.

Based on the work done for r8a77965 SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569313375-53428-6-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add FCPF and FCPV instances
Biju Das [Tue, 24 Sep 2019 08:22:52 +0000 (09:22 +0100)]
arm64: dts: renesas: r8a774b1: Add FCPF and FCPV instances

Add FCPF and FCPV instances to the r8a774b1 dtsi.

Based on the work done for r8a77965 SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569313375-53428-5-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add IPMMU device nodes
Biju Das [Tue, 24 Sep 2019 08:22:51 +0000 (09:22 +0100)]
arm64: dts: renesas: r8a774b1: Add IPMMU device nodes

Add RZ/G2N (R8A774B1) IPMMU nodes.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569313375-53428-4-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add I2C and IIC-DVFS support
Biju Das [Tue, 24 Sep 2019 08:22:50 +0000 (09:22 +0100)]
arm64: dts: renesas: r8a774b1: Add I2C and IIC-DVFS support

Add the I2C[0-6] and IIC Bus Interface for DVFS (IIC for DVFS)
devices nodes to the r8a774b1 device tree.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569313375-53428-3-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add SDHI support
Biju Das [Tue, 24 Sep 2019 08:22:49 +0000 (09:22 +0100)]
arm64: dts: renesas: r8a774b1: Add SDHI support

Add SDHI support for the r8a774b1 SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569313375-53428-2-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add TMU device nodes
Biju Das [Mon, 23 Sep 2019 14:57:28 +0000 (15:57 +0100)]
arm64: dts: renesas: r8a774b1: Add TMU device nodes

This patch adds TMU[01234] device tree nodes to the
r8a774b1 SoC specific DT.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569250648-33857-5-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add CMT device nodes
Biju Das [Mon, 23 Sep 2019 14:57:27 +0000 (15:57 +0100)]
arm64: dts: renesas: r8a774b1: Add CMT device nodes

This patch adds the CMT[0123] device tree nodes to the
r8a774b1 SoC specific DT.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569250648-33857-4-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add RZ/G2N thermal support
Biju Das [Mon, 23 Sep 2019 14:57:26 +0000 (15:57 +0100)]
arm64: dts: renesas: r8a774b1: Add RZ/G2N thermal support

Add thermal support for R8A774B1 (RZ/G2N) SoC.

Based on the work done for r8a77965 SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569250648-33857-3-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add OPPs table for cpu devices
Biju Das [Mon, 23 Sep 2019 14:57:25 +0000 (15:57 +0100)]
arm64: dts: renesas: r8a774b1: Add OPPs table for cpu devices

This patch adds OPPs table for CA57{0,1} cpu devices.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569250648-33857-2-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: Add HiHope RZ/G2N sub board support
Biju Das [Mon, 30 Sep 2019 08:18:47 +0000 (09:18 +0100)]
arm64: dts: renesas: Add HiHope RZ/G2N sub board support

The HiHope RZ/G2N sub board sits below the HiHope RZ/G2N main board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569831527-1250-6-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add Ethernet AVB node
Biju Das [Mon, 30 Sep 2019 08:18:46 +0000 (09:18 +0100)]
arm64: dts: renesas: r8a774b1: Add Ethernet AVB node

This patch adds the SoC specific part of the Ethernet AVB
device tree node.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569831527-1250-5-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add GPIO device nodes
Biju Das [Mon, 30 Sep 2019 08:18:45 +0000 (09:18 +0100)]
arm64: dts: renesas: r8a774b1: Add GPIO device nodes

Add GPIO device nodes to the DT of the r8a774b1 SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569831527-1250-4-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add SCIF and HSCIF nodes
Biju Das [Mon, 30 Sep 2019 08:18:44 +0000 (09:18 +0100)]
arm64: dts: renesas: r8a774b1: Add SCIF and HSCIF nodes

Add the device nodes for RZ/G2N SCIF and HSCIF serial ports,
including clocks, power domains and DMAs.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569831527-1250-3-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1: Add SYS-DMAC device nodes
Biju Das [Mon, 30 Sep 2019 08:18:43 +0000 (09:18 +0100)]
arm64: dts: renesas: r8a774b1: Add SYS-DMAC device nodes

Add sys-dmac[0-2] device nodes for RZ/G2N (R8A774B1) SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569831527-1250-2-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774b1-hihope-rzg2n: Enable HS400 mode
Biju Das [Mon, 30 Sep 2019 10:02:58 +0000 (11:02 +0100)]
arm64: dts: renesas: r8a774b1-hihope-rzg2n: Enable HS400 mode

This patch enables HS400 mode on HiHope RZ/G2N board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1569837778-55874-1-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoarm64: dts: renesas: r8a774a1: Remove audio port node
Biju Das [Fri, 4 Oct 2019 14:52:40 +0000 (15:52 +0100)]
arm64: dts: renesas: r8a774a1: Remove audio port node

This patch removes audio port node from SoC device tree and
fixes the below dtb warning

    Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property

Fixes: e2f04248fcd4 ("arm64: dts: renesas: r8a774a1: Add audio support")
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Link: https://lore.kernel.org/r/1570200761-884-1-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
5 years agoARM: dts: Add minimal support for Droid Bionic xt875
Tony Lindgren [Wed, 9 Oct 2019 22:07:54 +0000 (15:07 -0700)]
ARM: dts: Add minimal support for Droid Bionic xt875

We already have folks booting Droid Bionic with Droid 4 dts, but it is
a different hardware with no keyboard.

Let's start adding device specific support for Droid bionic by making
current omap4-droid4-xt894 a common file and including it.

Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: omap4-droid4: Allow 300mA current for USB peripherals
Tony Lindgren [Thu, 3 Oct 2019 16:59:03 +0000 (09:59 -0700)]
ARM: dts: omap4-droid4: Allow 300mA current for USB peripherals

Looks like we can use some USB Ethernet dongles for example if we increase
the allowed power limit.

A similar PMIC MC13783 documents maximum current limit as 300 mA in in
"Table 10-4. VBUS Regulator Main Characteristics". Since we have no
other documentation, let's use that value as the limit.

Cc: Jacopo Mondi <jacopo@jmondi.org>
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Michael Scott <hashcode0f@gmail.com>
Cc: NeKit <nekit1000@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: Use level interrupt for omap4 & 5 wlcore
Tony Lindgren [Wed, 9 Oct 2019 22:11:27 +0000 (15:11 -0700)]
ARM: dts: Use level interrupt for omap4 & 5 wlcore

Commit 572cf7d7b07d ("ARM: dts: Improve omap l4per idling with wlcore edge
sensitive interrupt") changed wlcore interrupts to use edge interrupt based
on what's specified in the wl1835mod.pdf data sheet.

However, there are still cases where we can have lost interrupts as
described in omap_gpio_unidle(). And using a level interrupt instead of edge
interrupt helps as we avoid the check for untriggered GPIO interrupts in
omap_gpio_unidle().

And with commit e6818d29ea15 ("gpio: gpio-omap: configure edge detection
for level IRQs for idle wakeup") GPIOs idle just fine with level interrupts.

Let's change omap4 and 5 wlcore users back to using level interrupt
instead of edge interrupt. Let's not change the others as I've only seen
this on omap4 and 5, probably because the other SoCs don't have l4per idle
independent of the CPUs.

Fixes: 572cf7d7b07d ("ARM: dts: Improve omap l4per idling with wlcore edge sensitive interrupt")
Depends-on: e6818d29ea15 ("gpio: gpio-omap: configure edge detection for level IRQs for idle wakeup")
Cc: Anders Roxell <anders.roxell@linaro.org>
Cc: Eyal Reizer <eyalr@ti.com>
Cc: Guy Mishol <guym@ti.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
5 years agoARM: dts: s3c64xx: Fix init order of clock providers
Lihua Yao [Tue, 10 Sep 2019 13:22:28 +0000 (13:22 +0000)]
ARM: dts: s3c64xx: Fix init order of clock providers

fin_pll is the parent of clock-controller@7e00f000, specify
the dependency to ensure proper initialization order of clock
providers.

without this patch:
[    0.000000] S3C6410 clocks: apll = 0, mpll = 0
[    0.000000]  epll = 0, arm_clk = 0

with this patch:
[    0.000000] S3C6410 clocks: apll = 532000000, mpll = 532000000
[    0.000000]  epll = 24000000, arm_clk = 532000000

Cc: <stable@vger.kernel.org>
Fixes: 3f6d439f2022 ("clk: reverse default clk provider initialization order in of_clk_init()")
Signed-off-by: Lihua Yao <ylhuajnu@outlook.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
5 years agoLinux 5.4-rc2 v5.4-rc2
Linus Torvalds [Sun, 6 Oct 2019 21:27:30 +0000 (14:27 -0700)]
Linux 5.4-rc2

5 years agoelf: don't use MAP_FIXED_NOREPLACE for elf executable mappings
Linus Torvalds [Sun, 6 Oct 2019 20:53:27 +0000 (13:53 -0700)]
elf: don't use MAP_FIXED_NOREPLACE for elf executable mappings

In commit 4ed28639519c ("fs, elf: drop MAP_FIXED usage from elf_map") we
changed elf to use MAP_FIXED_NOREPLACE instead of MAP_FIXED for the
executable mappings.

Then, people reported that it broke some binaries that had overlapping
segments from the same file, and commit ad55eac74f20 ("elf: enforce
MAP_FIXED on overlaying elf segments") re-instated MAP_FIXED for some
overlaying elf segment cases.  But only some - despite the summary line
of that commit, it only did it when it also does a temporary brk vma for
one obvious overlapping case.

Now Russell King reports another overlapping case with old 32-bit x86
binaries, which doesn't trigger that limited case.  End result: we had
better just drop MAP_FIXED_NOREPLACE entirely, and go back to MAP_FIXED.

Yes, it's a sign of old binaries generated with old tool-chains, but we
do pride ourselves on not breaking existing setups.

This still leaves MAP_FIXED_NOREPLACE in place for the load_elf_interp()
and the old load_elf_library() use-cases, because nobody has reported
breakage for those. Yet.

Note that in all the cases seen so far, the overlapping elf sections
seem to be just re-mapping of the same executable with different section
attributes.  We could possibly introduce a new MAP_FIXED_NOFILECHANGE
flag or similar, which acts like NOREPLACE, but allows just remapping
the same executable file using different protection flags.

It's not clear that would make a huge difference to anything, but if
people really hate that "elf remaps over previous maps" behavior, maybe
at least a more limited form of remapping would alleviate some concerns.

Alternatively, we should take a look at our elf_map() logic to see if we
end up not mapping things properly the first time.

In the meantime, this is the minimal "don't do that then" patch while
people hopefully think about it more.

Reported-by: Russell King <linux@armlinux.org.uk>
Fixes: 4ed28639519c ("fs, elf: drop MAP_FIXED usage from elf_map")
Fixes: ad55eac74f20 ("elf: enforce  MAP_FIXED on overlaying elf segments")
Cc: Michal Hocko <mhocko@suse.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
5 years agoMerge tag 'dma-mapping-5.4-1' of git://git.infradead.org/users/hch/dma-mapping
Linus Torvalds [Sun, 6 Oct 2019 18:10:15 +0000 (11:10 -0700)]
Merge tag 'dma-mapping-5.4-1' of git://git.infradead.org/users/hch/dma-mapping

Pull dma-mapping regression fix from Christoph Hellwig:
 "Revert an incorret hunk from a patch that caused problems on various
  arm boards (Andrey Smirnov)"

* tag 'dma-mapping-5.4-1' of git://git.infradead.org/users/hch/dma-mapping:
  dma-mapping: fix false positive warnings in dma_common_free_remap()

5 years agodt-bindings: memory-controllers: exynos5422-dmc: Correct example syntax and memory...
Krzysztof Kozlowski [Wed, 2 Oct 2019 17:44:01 +0000 (19:44 +0200)]
dt-bindings: memory-controllers: exynos5422-dmc: Correct example syntax and memory region

After adding the interrupt properties to Exynos5422 DMC bindings
example, the mapped memory region must be big enough to access
performance counters registers.

Fix also syntax errors (semicolons) and adjust indentation.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Lukasz Luba <l.luba@partner.samsung.com>
5 years agoARM: dts: exynos: Rename SysRAM node to "sram"
Krzysztof Kozlowski [Wed, 2 Oct 2019 16:43:09 +0000 (18:43 +0200)]
ARM: dts: exynos: Rename SysRAM node to "sram"

The device node name should reflect generic class of a device so rename
the SysRAM node from "sysram" to "sram".  The child nodes stay as before
as "smp-sysram" to match their real purpose.  This will be also in sync
with upcoming DT schema.  No functional change.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
5 years agoARM: dts: exynos: Rename power domain nodes to "power-domain" in Exynos4
Krzysztof Kozlowski [Wed, 2 Oct 2019 16:06:32 +0000 (18:06 +0200)]
ARM: dts: exynos: Rename power domain nodes to "power-domain" in Exynos4

The device node name should reflect generic class of a device so rename
power domain nodes to "power-domain".  No functional change.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
5 years agoMerge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Linus Torvalds [Sun, 6 Oct 2019 00:18:43 +0000 (17:18 -0700)]
Merge tag 'armsoc-fixes' of git://git./linux/kernel/git/soc/soc

Pull ARM SoC fixes from Olof Johansson:
 "A few fixes this time around:

   - Fixup of some clock specifications for DRA7 (device-tree fix)

   - Removal of some dead/legacy CPU OPP/PM code for OMAP that throws
     warnings at boot

   - A few more minor fixups for OMAPs, most around display

   - Enable STM32 QSPI as =y since their rootfs sometimes comes from
     there

   - Switch CONFIG_REMOTEPROC to =y since it went from tristate to bool

   - Fix of thermal zone definition for ux500 (5.4 regression)"

* tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
  ARM: multi_v7_defconfig: Fix SPI_STM32_QSPI support
  ARM: dts: ux500: Fix up the CPU thermal zone
  arm64/ARM: configs: Change CONFIG_REMOTEPROC from m to y
  ARM: dts: am4372: Set memory bandwidth limit for DISPC
  ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage()
  ARM: OMAP2+: Add missing LCDC midlemode for am335x
  ARM: OMAP2+: Fix missing reset done flag for am3 and am43
  ARM: dts: Fix gpio0 flags for am335x-icev2
  ARM: omap2plus_defconfig: Enable more droid4 devices as loadable modules
  ARM: omap2plus_defconfig: Enable DRM_TI_TFP410
  DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again
  ARM: dts: Fix wrong clocks for dra7 mcasp
  clk: ti: dra7: Fix mcasp8 clock bits