]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/log
mirror_ubuntu-eoan-kernel.git
6 years agoARM: tegra: apalis-tk1: drop obsolete spidev nodes
Marcel Ziswiler [Sat, 1 Sep 2018 13:05:00 +0000 (15:05 +0200)]
ARM: tegra: apalis-tk1: drop obsolete spidev nodes

Drop obsolete spidev device tree nodes as nowadays one should do this
by binding the spidev driver to specific instances/chip selects at
runtime.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: drop module level model and compatible
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:59 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: drop module level model and compatible

Drop model and compatible nodes from the module level device tree as
they get overridden by the carrier board device tree anyway.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: reorder SD card properties
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:58 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: reorder SD card properties

Reorder SD card properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: reorder cpu dfll clock properties
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:57 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: reorder cpu dfll clock properties

Reorder CPU DFLL clock properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: add toradex, apalis-tk1-v1.2 compatible
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:56 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: add toradex, apalis-tk1-v1.2 compatible

Add toradex,apalis-tk1-v1.2 compatible.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: enable emmc ddr52 mode
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:55 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: enable emmc ddr52 mode

Add mmc-ddr-1_8v property enabling eMMC DDR52 mode.

root@apalis-tk1-mainline:~# cat /sys/kernel/debug/mmc2/ios
clock:          52000000 Hz
actual clock:   52000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      3 (8 bits)
timing spec:    8 (mmc DDR52)
signal voltage: 1 (1.80 V)
driver type:    0 (driver type B)
root@apalis-tk1-mainline:~# hdparm -t /dev/mmcblk2

/dev/mmcblk2:
 Timing buffered disk reads: 256 MB in  3.02 seconds =  84.83 MB/sec

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: add proper emmc vmmc and vqmmc supplies
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:54 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: add proper emmc vmmc and vqmmc supplies

Add proper eMMC vmmc and vqmmc supplies e.g. fixing signalling voltage.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: reorder backlight properties
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:53 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: reorder backlight properties

Reorder backlight properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: white-space clean-up
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:52 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: white-space clean-up

White-space clean-up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: drop unused pinmux label
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:51 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: drop unused pinmux label

Drop unused pinmux label.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: add missing regulators
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:50 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: add missing regulators

Add missing regulators:
- reg_module_3v3_audio being VDDA supply of SGTL5000
- VDDD supply of SGTL5000 actually being reg_1v8_vio
- TMP451 temperature sensor vcc supply being reg_module_3v3
- usb3-0 vbus supply being reg_usbh_vbus
- usb3-1 vbus supply being reg_usbo1_vbus
- carrier board HDMI supply being reg_5v0
- carrier board sata target 5v supply being reg_5v0
- carrier board sata target 12v supply being reg_12v0
- carrier board reg_3v3 actually being backlight power supply

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: regulator clean-up
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:49 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: regulator clean-up

Just cosmetic regulator clean-up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: reorder padctl properties
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:48 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: reorder padctl properties

Reorder padctl properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: reorder host1x/hdmi properties
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:47 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: reorder host1x/hdmi properties

Reorder Host1x/HDMI properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis-tk1: add local-mac-address property
Marcel Ziswiler [Sat, 1 Sep 2018 13:04:46 +0000 (15:04 +0200)]
ARM: tegra: apalis-tk1: add local-mac-address property

Add empty local-mac-address property to be filled in by boot loader
(e.g. U-Boot).

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: annotate power I2C being on-module
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:48 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: annotate power I2C being on-module

The power I2C bus aka PWR_I2C which connects to the audio codec, PMIC,
temperature sensor and touch screen controller is really on-module only.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: annotate unused i2c busses
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:47 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: annotate unused i2c busses

Both GEN2_I2C as well as CAM_I2C (I2C3) are unused in our design.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: add mcp2515 vdd and xceiver supplies
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:46 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: add mcp2515 vdd and xceiver supplies

Add the MCP2515 SPI CAN controller's vdd-supply being the regular
carrier board's reg_3v3 and xceiver-supply being reg_5v0.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: remove unused mcp2515 can0 label
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:45 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: remove unused mcp2515 can0 label

Get rid of the unused MCP2515 SPI CAN controller can0 label.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: fix mcp2515 can controller interrupt polarity
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:44 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: fix mcp2515 can controller interrupt polarity

Fix the MCP2515 SPI CAN controller interrupt polarity which according
to its datasheet defaults to low-active aka falling edge.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: rename tps65911@2d, stmpe811@41 and tps62362@60
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:43 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: rename tps65911@2d, stmpe811@41 and tps62362@60

Rename a few nodes using more common names:
- rename tps65911@2d to pmic@2d
- rename stmpe811@41 to touchscreen@41
- rename tps62362@60 to regulator@60

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: rename hdmiddc to hdmi_ddc
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:42 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: rename hdmiddc to hdmi_ddc

Rename hdmiddc to hdmi_ddc to be more in-line with other device trees.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: drop obsolete spidev node
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:41 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: drop obsolete spidev node

Drop obsolete spidev device tree node as nowadays one should do this
by binding the spidev driver to specific instances/chip selects at
runtime.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: drop module level model and compatible
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:40 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: drop module level model and compatible

Drop model and compatible nodes from the module level device tree as
they get overridden by the carrier board device tree anyway.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: update compatibility comment
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:39 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: update compatibility comment

Update compatibility comment.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: annotate ehci instance 1
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:38 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: annotate ehci instance 1

Annotate EHCI instance 1 (USB2_DP/N) connecting to ASIX AX88772B USB to
Ethernet chip being on-module.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: annotate sd card detect
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:37 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: annotate sd card detect

Annotate SD card detect.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: enable hda over hdmi
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:36 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: enable hda over hdmi

Enable HDA over HDMI.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: add gpio hog to unreset usb ethernet chip
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:35 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: add gpio hog to unreset usb ethernet chip

Add GPIO hog to unreset ASIX AX88772B USB Ethernet chip.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: remove unused nvidia, is-wired property
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:34 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: remove unused nvidia, is-wired property

Remove unused nvidia,is-wired property.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: move input include to carrier board
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:33 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: move input include to carrier board

Move input include to carrier board.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: line break long compatible property line
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:32 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: line break long compatible property line

Line break long compatible property line.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: get rid of fake clocks simple bus
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:31 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: get rid of fake clocks simple bus

Get rid of the fake clocks simple bus and use node names as per the
actual schematics.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: enable emmc ddr52 mode
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:30 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: enable emmc ddr52 mode

Add mmc-ddr-1_8v property enabling eMMC DDR52 mode.

root@colibri-t30:~# cat /sys/kernel/debug/mmc1/ios
clock:          52000000 Hz
actual clock:   52000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      3 (8 bits)
timing spec:    8 (mmc DDR52)
signal voltage: 1 (1.80 V)
driver type:    0 (driver type B)
root@colibri-t30:~# hdparm -t /dev/mmcblk1

/dev/mmcblk1:
 Timing buffered disk reads: 222 MB in  3.00 seconds =  73.92 MB/sec

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: add proper emmc vmmc and vqmmc supplies
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:29 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: add proper emmc vmmc and vqmmc supplies

Add proper eMMC vmmc and vqmmc supplies e.g. fixing signalling voltage.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: add i2c-thermtrip
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:28 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: add i2c-thermtrip

Add i2c-thermtrip which would set the DEV_OFF bit in the DCDC control
register of the TPS65911 PMIC.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: further lm95245 temperature sensor annotation
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:27 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: further lm95245 temperature sensor annotation

Further LM95245 temperature sensor annotation.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: use proper irq-gpio for stmpe811
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:26 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: use proper irq-gpio for stmpe811

Use proper irq-gpio for stmpe811 touch controller.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: add missing pinmux
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:25 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: add missing pinmux

Explicitly mux all T30 SoC balls now:
- Colibri Address/Data Bus (GMI)
- Colibri DDC
- Colibri EXT_IO*
- Colibri GPIO
- Colibri HOTPLUG_DETECT (HDMI)
- Colibri I2C
- Colibri LCD (L_* resp. LDD<*>)
- Colibri MMC_CD
- Colibri nRESET_OUT
- Colibri Parallel Camera (Optional)
- Colibri PWM<B>, <C>, <D>
- Colibri VGA
- Colibri USBC_DET
- Colibri USBH_PEN
- Colibri USBH_OC
- on-module AX88772B LAN control signals
- Colibri nBATT_FAULT(SENSE) and nVDD_FAULT(SENSE
- not connected and therefore disabled signals

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: pinmux clean-up
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:24 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: pinmux clean-up

Clean-up pinmuxing:
- white-space clean-up
- explicitly disable LCD_M1 in favour of LCD_DE on L_BIAS
- explicitly disable multiplexed SSPFRM and SSPTXD
- get rid of nvidia,lock property
- add missing eMMC sdmmc4_cmd_pt7 and explicitly enable input
- explicitly disable lcd_dc1_pd2 (e.g. LM95245 I2C address pin)
- annotate TOUCH_PEN_INT# being on-module
- As underscores in node names are not recommended replace them all
  where possible with dashes.
- Replace underscores in UART annotations (e.g. UART_A) with dashes
  (e.g. UART-A) to be more in-line with our Colibri standard.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: drop pwmleds
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:23 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: drop pwmleds

Drop pwmleds in favour of using regular PWMs.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: reorder backlight properties
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:22 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: reorder backlight properties

Reorder backlight properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: move dr_mode property from phy to controller
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:21 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: move dr_mode property from phy to controller

Move dr_mode property from USB PHY node to controller.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: white-space clean-up
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:20 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: white-space clean-up

White-space clean-up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: annotate uarts and move compatible to board
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:19 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: annotate uarts and move compatible to board

Annotate UARTs and move the serial UART "nvidia,tegra30-hsuart"
compatible definitions from the carrier board to the module level device
trees. One could still override this in a custom carrier board device
tree if required.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: add missing regulators
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:18 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: add missing regulators

Add missing regulators:
- reg_module_3v3_audio being VDDA supply of SGTL5000
- VDDD supply of SGTL5000 actually being reg_1v8_vio
- reg_lan_v_bus being USB Ethernet chip vbus supply
- carrier board HDMI supply being reg_5v0
- carrier board reg_3v3 actually being backlight and panel power supply

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: regulator clean-up
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:17 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: regulator clean-up

Just cosmetic regulator clean-up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: reorder host1x/hdmi properties
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:16 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: reorder host1x/hdmi properties

Reorder Host1x/HDMI properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: colibri_t30: add local-mac-address property
Marcel Ziswiler [Sat, 1 Sep 2018 08:12:15 +0000 (10:12 +0200)]
ARM: tegra: colibri_t30: add local-mac-address property

Add empty local-mac-address property to be filled in by boot loader
(e.g. U-Boot).

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: support v1.1 hardware revision
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:16 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: support v1.1 hardware revision

Support the V1.1 hardware revisions with the following change:

Changed power rail for MMC1 interface to a 3.3V/1.8V switchable rail in
order to be able to run UHS SD cards in ultra high speed 1.8V mode.

[  207.502011] mmc2: host does not support reading read-only switch,
 assuming write-enable
[  207.517011] mmc2: new ultra high speed SDR104 SDHC card at address
 aaaa
[  207.534190] mmcblk2: mmc2:aaaa SE32G 29.7 GiB
[  207.545096]  mmcblk2: p1

root@apalis-t30:~# cat /sys/kernel/debug/mmc2/ios
clock:          208000000 Hz
actual clock:   204000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      2 (4 bits)
timing spec:    6 (sd uhs SDR104)
signal voltage: 1 (1.80 V)
driver type:    0 (driver type B)
root@apalis-t30:~# hdparm -t /dev/mmcblk2

/dev/mmcblk2:
 Timing buffered disk reads: 256 MB in  3.02 seconds =  84.71 MB/sec

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: move hda node from carrier to module
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:15 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: move hda node from carrier to module

Move the hda node from the carrier board to the module level device
tree.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: fix mcp2515 can controller interrupt polarity
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:14 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: fix mcp2515 can controller interrupt polarity

Fix the MCP2515 SPI CAN controller interrupt polarity which according
to its datasheet defaults to low-active aka falling edge.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: rename tps65911@2d, stmpe811@41 and tps62362@60
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:13 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: rename tps65911@2d, stmpe811@41 and tps62362@60

Rename a few nodes using more common names:
- rename tps65911@2d to pmic@2d
- rename stmpe811@41 to touchscreen@41
- rename tps62362@60 to regulator@60

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: rename hdmiddc to hdmi_ddc
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:12 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: rename hdmiddc to hdmi_ddc

Rename hdmiddc to hdmi_ddc to be more in-line with other device trees.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: hog group for pcie switch reset gpio
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:11 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: hog group for pcie switch reset gpio

The Apalis Evaluation Board uses Apalis GPIO7 on MXM3 pin 15 as reset
signal for its PLX PEX 8605 PCIe Switch.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: drop obsolete spidev nodes
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:10 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: drop obsolete spidev nodes

Drop obsolete spidev device tree nodes as nowadays one should do this
by binding the spidev driver to specific instances/chip selects at
runtime.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: drop module level model and compatible
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:09 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: drop module level model and compatible

Drop model and compatible nodes from the module level device tree as
they get overridden by the carrier board device tree anyway.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agodt-bindings: add broadcom (formerly plx technology) vendor prefix
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:08 +0000 (18:38 +0200)]
dt-bindings: add broadcom (formerly plx technology) vendor prefix

PLX Technology meanwhile got bought by Broadcom Corporation but the
vendor prefix plx is still used in 8 current device trees. This silences
the following checkpatch.pl warning:

WARNING: DT compatible string vendor "plx" appears un-documented
 -- check ./Documentation/devicetree/bindings/vendor-prefixes.txt

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: line break long compatible property line
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:07 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: line break long compatible property line

Line break long compatible property line.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: get rid of fake clocks simple bus
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:06 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: get rid of fake clocks simple bus

Get rid of the fake clocks simple bus and use node names as per the
actual schematics.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: enable emmc ddr52 mode
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:05 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: enable emmc ddr52 mode

Add mmc-ddr-1_8v property enabling eMMC DDR52 mode.

root@apalis-t30:~# cat /sys/kernel/debug/mmc1/ios
clock:          52000000 Hz
actual clock:   52000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      3 (8 bits)
timing spec:    8 (mmc DDR52)
signal voltage: 1 (1.80 V)
driver type:    0 (driver type B)
root@apalis-t30:~# hdparm -t /dev/mmcblk1

/dev/mmcblk1:
 Timing buffered disk reads: 232 MB in  3.01 seconds =  77.10 MB/sec

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: add proper emmc vmmc and vqmmc supplies
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:04 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: add proper emmc vmmc and vqmmc supplies

Add proper eMMC vmmc and vqmmc supplies e.g. fixing signalling voltage.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: add i2c-thermtrip
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:03 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: add i2c-thermtrip

Add i2c-thermtrip which would set the DEV_OFF bit in the DCDC control
register of the TPS65911 PMIC.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: further lm95245 temperature sensor annotation
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:02 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: further lm95245 temperature sensor annotation

Further LM95245 temperature sensor annotation.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: use proper irq-gpio for stmpe811
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:01 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: use proper irq-gpio for stmpe811

Use proper irq-gpio for stmpe811 touch controller.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: add missing pinmux
Marcel Ziswiler [Fri, 31 Aug 2018 16:38:00 +0000 (18:38 +0200)]
ARM: tegra: apalis_t30: add missing pinmux

Explicitly mux all T30 SoC balls now:
- Apalis GPIO
- Apalis HDMI1
- Apalis I2C1
- Apalis I2C2 (DDC)
- Apalis LCD1
- Apalis Parallel Camera
- Apalis SATA1_ACT#
- Apalis SPDIF1
- Apalis TS (Low-speed type specific)
- Apalis USBH_EN
- Apalis USBH_OC#
- Apalis VGA1
- on-module i210/i211 LAN control signals
- not connected and therefore disabled signals

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: pinmux clean-up
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:59 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: pinmux clean-up

Clean-up pinmuxing:
- white-space clean-up
- explicitly disable input of BKL1_ON, BKL1_PWM and BKL1_PWM_EN#
- annotate Apalis I2C3 usage for CAM
- get rid of nvidia,lock property
- add missing eMMC sdmmc4_cmd_pt7 and explicitly enable input
- explicitly disable lcd_dc1_pd2 (e.g. LM95245 I2C address pin)
- annotate TOUCH_PEN_INT# being on-module
- As underscores in node names are not recommended replace them all
  where possible with dashes.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: drop pwmleds
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:58 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: drop pwmleds

Drop pwmleds in favour of using regular PWMs.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: reorder backlight properties
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:57 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: reorder backlight properties

Reorder backlight properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: move dr_mode property from phy to controller
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:56 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: move dr_mode property from phy to controller

Move dr_mode property from USB PHY node to controller.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: annotate mmc1/sd1
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:55 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: annotate mmc1/sd1

Annotate MMC1/SD1.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: drop unused mmc1/sd1 labels
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:54 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: drop unused mmc1/sd1 labels

Drop unused mmc1/sd1 labels.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: white-space/newline clean-up
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:53 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: white-space/newline clean-up

White-space and newline clean-up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: drop unused cami2c label
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:52 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: drop unused cami2c label

Drop unused cami2c label.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: annotate uarts and move compatible to board
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:51 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: annotate uarts and move compatible to board

Annotate UARTs and move the serial UART "nvidia,tegra30-hsuart"
compatible definitions from the carrier board to the module level device
trees. One could still override this in a custom carrier board device
tree if required.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: add missing regulators
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:50 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: add missing regulators

Add missing regulators:
- reg_module_3v3_audio being VDDA supply of SGTL5000
- VDDD supply of SGTL5000 actually being reg_1v8_vio
- carrier board HDMI supply being reg_5v0
- carrier board reg_3v3 actually being backlight and panel power supply

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: regulator clean-up
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:49 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: regulator clean-up

Just cosmetic regulator clean-up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: reorder host1x/hdmi properties
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:48 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: reorder host1x/hdmi properties

Reorder Host1x/HDMI properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: annotate/clean-up pcie controller/port nodes
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:47 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: annotate/clean-up pcie controller/port nodes

Annotate PCIe port nodes and clean-up PCIe controller/port status' with
respect to carrier board vs. module level device trees. As port 3
connects to the on-module Gigabit Ethernet MACPHY it is always enabled
together with the PCIe controller itself.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: reorder pcie properties
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:46 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: reorder pcie properties

Reorder PCIe properties.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: add local-mac-address property
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:45 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: add local-mac-address property

Add empty local-mac-address property to be filled in by boot loader
(e.g. U-Boot).

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: pull-up sd card detect pins
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:44 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: pull-up sd card detect pins

In order to avoid any floating SD card detect pins as may e.g. happen on
Ixora V1.1A pull them all up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: tegra: apalis_t30: fix mmc1 cmd pull-up
Marcel Ziswiler [Fri, 31 Aug 2018 16:37:43 +0000 (18:37 +0200)]
ARM: tegra: apalis_t30: fix mmc1 cmd pull-up

Fix MMC1 cmd pin pull-up causing issues on carrier boards without
external pull-up.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: dts: tegra20/tegra30: add pmu interrupt-affinity
Marcel Ziswiler [Thu, 16 Aug 2018 08:06:04 +0000 (10:06 +0200)]
ARM: dts: tegra20/tegra30: add pmu interrupt-affinity

This is similar to tegra124 and avoids the following being reported
upon boot:

hw perfevents: no interrupt-affinity property for /pmu, guessing.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: dts: tegra20: restore address order
Marcel Ziswiler [Thu, 16 Aug 2018 08:06:03 +0000 (10:06 +0200)]
ARM: dts: tegra20: restore address order

Commit 6c468f109884 ("ARM: dts: tegra: add Tegra20 NAND flash
controller node") introduced the nand-controller node. However, it got
added at the wrong spot not honoring the address order. Fix this.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoARM: dts: tegra30: fix xcvr-setup-use-fuses
Marcel Ziswiler [Fri, 31 Aug 2018 12:42:33 +0000 (14:42 +0200)]
ARM: dts: tegra30: fix xcvr-setup-use-fuses

There was a dot instead of a comma. Fix this.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
6 years agoLinux 4.19-rc1
Linus Torvalds [Sun, 26 Aug 2018 21:11:59 +0000 (14:11 -0700)]
Linux 4.19-rc1

6 years agoMerge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 26 Aug 2018 20:39:05 +0000 (13:39 -0700)]
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull timer update from Thomas Gleixner:
 "New defines for the compat time* types so they can be shared between
  32bit and 64bit builds. Not used yet, but merging them now allows the
  actual conversions to be merged through different maintainer trees
  without dependencies

  We still have compat interfaces for 32bit on 64bit even with the new
  2038 safe timespec/val variants because pointer size is different. And
  for the old style timespec/val interfaces we need yet another 'compat'
  interface for both 32bit native and 32bit on 64bit"

* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  y2038: Provide aliases for compat helpers

6 years agoMerge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-dax
Linus Torvalds [Sun, 26 Aug 2018 18:48:42 +0000 (11:48 -0700)]
Merge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-dax

Pull IDA updates from Matthew Wilcox:
 "A better IDA API:

      id = ida_alloc(ida, GFP_xxx);
      ida_free(ida, id);

  rather than the cumbersome ida_simple_get(), ida_simple_remove().

  The new IDA API is similar to ida_simple_get() but better named.  The
  internal restructuring of the IDA code removes the bitmap
  preallocation nonsense.

  I hope the net -200 lines of code is convincing"

* 'ida-4.19' of git://git.infradead.org/users/willy/linux-dax: (29 commits)
  ida: Change ida_get_new_above to return the id
  ida: Remove old API
  test_ida: check_ida_destroy and check_ida_alloc
  test_ida: Convert check_ida_conv to new API
  test_ida: Move ida_check_max
  test_ida: Move ida_check_leaf
  idr-test: Convert ida_check_nomem to new API
  ida: Start new test_ida module
  target/iscsi: Allocate session IDs from an IDA
  iscsi target: fix session creation failure handling
  drm/vmwgfx: Convert to new IDA API
  dmaengine: Convert to new IDA API
  ppc: Convert vas ID allocation to new IDA API
  media: Convert entity ID allocation to new IDA API
  ppc: Convert mmu context allocation to new IDA API
  Convert net_namespace to new IDA API
  cb710: Convert to new IDA API
  rsxx: Convert to new IDA API
  osd: Convert to new IDA API
  sd: Convert to new IDA API
  ...

6 years agoMerge tag 'gcc-plugins-v4.19-rc1-fix' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 26 Aug 2018 18:41:08 +0000 (11:41 -0700)]
Merge tag 'gcc-plugins-v4.19-rc1-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull gcc plugin fix from Kees Cook:
 "Lift gcc test into Kconfig. This is for better behavior when the
  kernel is built with Clang, reported by Stefan Agner"

* tag 'gcc-plugins-v4.19-rc1-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  gcc-plugins: Disable when building under Clang

6 years agoMerge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 26 Aug 2018 18:25:21 +0000 (11:25 -0700)]
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf updates from Thomas Gleixner:
 "Kernel:
   - Improve kallsyms coverage
   - Add x86 entry trampolines to kcore
   - Fix ARM SPE handling
   - Correct PPC event post processing

  Tools:
   - Make the build system more robust
   - Small fixes and enhancements all over the place
   - Update kernel ABI header copies
   - Preparatory work for converting libtraceevnt to a shared library
   - License cleanups"

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (100 commits)
  tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'
  tools arch x86: Update tools's copy of cpufeatures.h
  perf python: Fix pyrf_evlist__read_on_cpu() interface
  perf mmap: Store real cpu number in 'struct perf_mmap'
  perf tools: Remove ext from struct kmod_path
  perf tools: Add gzip_is_compressed function
  perf tools: Add lzma_is_compressed function
  perf tools: Add is_compressed callback to compressions array
  perf tools: Move the temp file processing into decompress_kmodule
  perf tools: Use compression id in decompress_kmodule()
  perf tools: Store compression id into struct dso
  perf tools: Add compression id into 'struct kmod_path'
  perf tools: Make is_supported_compression() static
  perf tools: Make decompress_to_file() function static
  perf tools: Get rid of dso__needs_decompress() call in __open_dso()
  perf tools: Get rid of dso__needs_decompress() call in symbol__disassemble()
  perf tools: Get rid of dso__needs_decompress() call in read_object_code()
  tools lib traceevent: Change to SPDX License format
  perf llvm: Allow passing options to llc in addition to clang
  perf parser: Improve error message for PMU address filters
  ...

6 years agoMerge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 26 Aug 2018 17:13:21 +0000 (10:13 -0700)]
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Thomas Gleixner:

 - Correct the L1TF fallout on 32bit and the off by one in the 'too much
   RAM for protection' calculation.

 - Add a helpful kernel message for the 'too much RAM' case

 - Unbreak the VDSO in case that the compiler desides to use indirect
   jumps/calls and emits retpolines which cannot be resolved because the
   kernel uses its own thunks, which does not work for the VDSO. Make it
   use the builtin thunks.

 - Re-export start_thread() which was unexported when the 32/64bit
   implementation was unified. start_thread() is required by modular
   binfmt handlers.

 - Trivial cleanups

* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/speculation/l1tf: Suggest what to do on systems with too much RAM
  x86/speculation/l1tf: Fix off-by-one error when warning that system has too much RAM
  x86/kvm/vmx: Remove duplicate l1d flush definitions
  x86/speculation/l1tf: Fix overflow in l1tf_pfn_limit() on 32bit
  x86/process: Re-export start_thread()
  x86/mce: Add notifier_block forward declaration
  x86/vdso: Fix vDSO build if a retpoline is emitted

6 years agoMerge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 26 Aug 2018 16:55:28 +0000 (09:55 -0700)]
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull irq update from Thomas Gleixner:
 "A small set of updats/fixes for the irq subsystem:

   - Allow GICv3 interrupts to be configured as wake-up sources to
     enable wakeup from suspend

   - Make the error handling of the STM32 irqchip init function work

   - A set of small cleanups and improvements"

* 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  irqchip/gic-v3: Allow interrupt to be configured as wake-up sources
  irqchip/tango: Set irq handler and data in one go
  dt-bindings: irqchip: renesas-irqc: Document r8a774a1 support
  irqchip/s3c24xx: Remove unneeded comparison of unsigned long to 0
  irqchip/stm32: Fix init error handling
  irqchip/bcm7038-l1: Hide cpu offline callback when building for !SMP

6 years agoMerge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 26 Aug 2018 16:47:00 +0000 (09:47 -0700)]
Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull licking update from Thomas Gleixner:
 "Mark the switch cases which fall through to the next case with the
  proper comment so the fallthrough compiler checks can be enabled"

* 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  futex: Mark expected switch fall-throughs

6 years agoMerge tag 'libnvdimm-for-4.19_dax-memory-failure' of gitolite.kernel.org:pub/scm...
Linus Torvalds [Sun, 26 Aug 2018 01:43:59 +0000 (18:43 -0700)]
Merge tag 'libnvdimm-for-4.19_dax-memory-failure' of gitolite.kernel.org:pub/scm/linux/kernel/git/nvdimm/nvdimm

Pull libnvdimm memory-failure update from Dave Jiang:
 "As it stands, memory_failure() gets thoroughly confused by dev_pagemap
  backed mappings. The recovery code has specific enabling for several
  possible page states and needs new enabling to handle poison in dax
  mappings.

  In order to support reliable reverse mapping of user space addresses:

   1/ Add new locking in the memory_failure() rmap path to prevent races
      that would typically be handled by the page lock.

   2/ Since dev_pagemap pages are hidden from the page allocator and the
      "compound page" accounting machinery, add a mechanism to determine
      the size of the mapping that encompasses a given poisoned pfn.

   3/ Given pmem errors can be repaired, change the speculatively
      accessed poison protection, mce_unmap_kpfn(), to be reversible and
      otherwise allow ongoing access from the kernel.

  A side effect of this enabling is that MADV_HWPOISON becomes usable
  for dax mappings, however the primary motivation is to allow the
  system to survive userspace consumption of hardware-poison via dax.
  Specifically the current behavior is:

     mce: Uncorrected hardware memory error in user-access at af34214200
     {1}[Hardware Error]: It has been corrected by h/w and requires no further action
     mce: [Hardware Error]: Machine check events logged
     {1}[Hardware Error]: event severity: corrected
     Memory failure: 0xaf34214: reserved kernel page still referenced by 1 users
     [..]
     Memory failure: 0xaf34214: recovery action for reserved kernel page: Failed
     mce: Memory error not recovered
     <reboot>

  ...and with these changes:

     Injecting memory failure for pfn 0x20cb00 at process virtual address 0x7f763dd00000
     Memory failure: 0x20cb00: Killing dax-pmd:5421 due to hardware memory corruption
     Memory failure: 0x20cb00: recovery action for dax page: Recovered

  Given all the cross dependencies I propose taking this through
  nvdimm.git with acks from Naoya, x86/core, x86/RAS, and of course dax
  folks"

* tag 'libnvdimm-for-4.19_dax-memory-failure' of gitolite.kernel.org:pub/scm/linux/kernel/git/nvdimm/nvdimm:
  libnvdimm, pmem: Restore page attributes when clearing errors
  x86/memory_failure: Introduce {set, clear}_mce_nospec()
  x86/mm/pat: Prepare {reserve, free}_memtype() for "decoy" addresses
  mm, memory_failure: Teach memory_failure() about dev_pagemap pages
  filesystem-dax: Introduce dax_lock_mapping_entry()
  mm, memory_failure: Collect mapping size in collect_procs()
  mm, madvise_inject_error: Let memory_failure() optionally take a page reference
  mm, dev_pagemap: Do not clear ->mapping on final put
  mm, madvise_inject_error: Disable MADV_SOFT_OFFLINE for ZONE_DEVICE pages
  filesystem-dax: Set page->index
  device-dax: Set page->index
  device-dax: Enable page_mapping()
  device-dax: Convert to vmf_insert_mixed and vm_fault_t

6 years agoMerge tag 'libnvdimm-for-4.19_misc' of gitolite.kernel.org:pub/scm/linux/kernel/git...
Linus Torvalds [Sun, 26 Aug 2018 01:13:10 +0000 (18:13 -0700)]
Merge tag 'libnvdimm-for-4.19_misc' of gitolite.kernel.org:pub/scm/linux/kernel/git/nvdimm/nvdimm

Pull libnvdimm updates from Dave Jiang:
 "Collection of misc libnvdimm patches for 4.19 submission:

   - Adding support to read locked nvdimm capacity.

   - Change test code to make DSM failure code injection an override.

   - Add support for calculate maximum contiguous area for namespace.

   - Add support for queueing a short ARS when there is on going ARS for
     nvdimm.

   - Allow NULL to be passed in to ->direct_access() for kaddr and pfn
     params.

   - Improve smart injection support for nvdimm emulation testing.

   - Fix test code that supports for emulating controller temperature.

   - Fix hang on error before devm_memremap_pages()

   - Fix a bug that causes user memory corruption when data returned to
     user for ars_status.

   - Maintainer updates for Ross Zwisler emails and adding Jan Kara to
     fsdax"

* tag 'libnvdimm-for-4.19_misc' of gitolite.kernel.org:pub/scm/linux/kernel/git/nvdimm/nvdimm:
  libnvdimm: fix ars_status output length calculation
  device-dax: avoid hang on error before devm_memremap_pages()
  tools/testing/nvdimm: improve emulation of smart injection
  filesystem-dax: Do not request kaddr and pfn when not required
  md/dm-writecache: Don't request pointer dummy_addr when not required
  dax/super: Do not request a pointer kaddr when not required
  tools/testing/nvdimm: kaddr and pfn can be NULL to ->direct_access()
  s390, dcssblk: kaddr and pfn can be NULL to ->direct_access()
  libnvdimm, pmem: kaddr and pfn can be NULL to ->direct_access()
  acpi/nfit: queue issuing of ars when an uc error notification comes in
  libnvdimm: Export max available extent
  libnvdimm: Use max contiguous area for namespace size
  MAINTAINERS: Add Jan Kara for filesystem DAX
  MAINTAINERS: update Ross Zwisler's email address
  tools/testing/nvdimm: Fix support for emulating controller temperature
  tools/testing/nvdimm: Make DSM failure code injection an override
  acpi, nfit: Prefer _DSM over _LSR for namespace label reads
  libnvdimm: Introduce locked DIMM capacity support

6 years agoMerge tag 'armsoc-late' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Linus Torvalds [Sat, 25 Aug 2018 21:12:36 +0000 (14:12 -0700)]
Merge tag 'armsoc-late' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc

Pull ARM SoC late updates from Olof Johansson:
 "A couple of late-merged changes that would be useful to get in this
  merge window:

   - Driver support for reset of audio complex on Meson platforms. The
     audio driver went in this merge window, and these changes have been
     in -next for a while (just not in our tree).

   - Power management fixes for IOMMU on Rockchip platforms, getting
     closer to kexec working on them, including Chromebooks.

   - Another pass updating "arm,psci" -> "psci" for some properties that
     have snuck in since last time it was done"

* tag 'armsoc-late' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  iommu/rockchip: Move irq request past pm_runtime_enable
  iommu/rockchip: Handle errors returned from PM framework
  arm64: rockchip: Force CONFIG_PM on Rockchip systems
  ARM: rockchip: Force CONFIG_PM on Rockchip systems
  arm64: dts: Fix various entry-method properties to reflect documentation
  reset: imx7: Fix always writing bits as 0
  reset: meson: add meson audio arb driver
  reset: meson: add dt-bindings for meson-axg audio arb

6 years agoMerge tag 'kbuild-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
Linus Torvalds [Sat, 25 Aug 2018 20:40:38 +0000 (13:40 -0700)]
Merge tag 'kbuild-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull more Kbuild updates from Masahiro Yamada:

 - add build_{menu,n,g,x}config targets for compile-testing Kconfig

 - fix and improve recursive dependency detection in Kconfig

 - fix parallel building of menuconfig/nconfig

 - fix syntax error in clang-version.sh

 - suppress distracting log from syncconfig

 - remove obsolete "rpm" target

 - remove VMLINUX_SYMBOL(_STR) macro entirely

 - fix microblaze build with CONFIG_DYNAMIC_FTRACE

 - move compiler test for dead code/data elimination to Kconfig

 - rename well-known LDFLAGS variable to KBUILD_LDFLAGS

 - misc fixes and cleanups

* tag 'kbuild-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
  kbuild: rename LDFLAGS to KBUILD_LDFLAGS
  kbuild: pass LDFLAGS to recordmcount.pl
  kbuild: test dead code/data elimination support in Kconfig
  initramfs: move gen_initramfs_list.sh from scripts/ to usr/
  vmlinux.lds.h: remove stale <linux/export.h> include
  export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR()
  Coccinelle: remove pci_alloc_consistent semantic to detect in zalloc-simple.cocci
  kbuild: make sorting initramfs contents independent of locale
  kbuild: remove "rpm" target, which is alias of "rpm-pkg"
  kbuild: Fix LOADLIBES rename in Documentation/kbuild/makefiles.txt
  kconfig: suppress "configuration written to .config" for syncconfig
  kconfig: fix "Can't open ..." in parallel build
  kbuild: Add a space after `!` to prevent parsing as file pattern
  scripts: modpost: check memory allocation results
  kconfig: improve the recursive dependency report
  kconfig: report recursive dependency involving 'imply'
  kconfig: error out when seeing recursive dependency
  kconfig: add build-only configurator targets
  scripts/dtc: consolidate include path options in Makefile

6 years agoMerge tag 'for-linus-20180825' of git://git.kernel.dk/linux-block
Linus Torvalds [Sat, 25 Aug 2018 20:30:23 +0000 (13:30 -0700)]
Merge tag 'for-linus-20180825' of git://git.kernel.dk/linux-block

Pull block fixes from Jens Axboe:
 "A few small fixes for this merge window:

   - Locking imbalance fix for bcache (Shan Hai)

   - A few small fixes for wbt. One is a cleanup/prep, one is a fix for
     an existing issue, and the last two are fixes for changes that went
     into this merge window (me)"

* tag 'for-linus-20180825' of git://git.kernel.dk/linux-block:
  blk-wbt: don't maintain inflight counts if disabled
  blk-wbt: fix has-sleeper queueing check
  blk-wbt: use wq_has_sleeper() for wq active check
  blk-wbt: move disable check into get_limit()
  bcache: release dc->writeback_lock properly in bch_writeback_thread()

6 years agoMerge tag 'upstream-4.19-rc1-fix' of git://git.infradead.org/linux-ubifs
Linus Torvalds [Sat, 25 Aug 2018 20:27:35 +0000 (13:27 -0700)]
Merge tag 'upstream-4.19-rc1-fix' of git://git.infradead.org/linux-ubifs

Pull UBIFS fix from Richard Weinberger:
 "Remove an empty file from UBIFS source"

* tag 'upstream-4.19-rc1-fix' of git://git.infradead.org/linux-ubifs:
  ubifs: Remove empty file.h