Commit Graph

787652 Commits

Author SHA1 Message Date
Dave Stevenson
026aae9125 media: bcm2835-unicam: Driver for CCP2/CSI2 camera interface
Add driver for the Unicam camera receiver block on
BCM283x processors.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:37 +01:00
Dave Stevenson
4a1a1b2a9e dt-bindings: Document BCM283x CSI2/CCP2 receiver
Document the DT bindings for the CSI2/CCP2 receiver peripheral
(known as Unicam) on BCM283x SoCs.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Acked-by: Rob Herring <robh@kernel.org>
2019-04-02 12:55:37 +01:00
Dave Stevenson
bea2d312eb media: videodev2: Add helper defines for printing FOURCCs
New helper defines that allow printing of a FOURCC using
printf(V4L2_FOURCC_CONV, V4L2_FOURCC_CONV_ARGS(fourcc));

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:37 +01:00
Dave Stevenson
9946a096aa media: adv7180: Add YPrPb support for ADV7282M
The ADV7282M can support YPbPr on AIN1-3, but this was
not selectable from the driver. Add it to the list of
supported input modes.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:37 +01:00
Dave Stevenson
b87c36346e media: adv7180: Default to the first valid input
The hardware default is differential CVBS on AIN1 & 2, which
isn't very useful.

Select the first input that is defined as valid for the
chip variant (typically CVBS_AIN1).

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:36 +01:00
Dave Stevenson
0e82536de9 media: tc358743: Check I2C succeeded during probe.
The probe for the TC358743 reads the CHIPID register from
the device and compares it to the expected value of 0.
If the I2C request fails then that also returns 0, so
the driver loads thinking that the device is there.

Generally I2C communications are reliable so there is
limited need to check the return value on every transfer,
therefore only amend the one read during probe to check
for I2C errors.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:36 +01:00
Dave Stevenson
afec0c9e4d media: tc358743: Add support for 972Mbit/s link freq.
Adds register setups for running the CSI lanes at 972Mbit/s,
which allows 1080P50 UYVY down 2 lanes.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:36 +01:00
Philipp Zabel
edfbfec7d2 media: tc358743: fix connected/active CSI-2 lane reporting
g_mbus_config was supposed to indicate all supported lane numbers, not
only the number of those currently in active use. Since the TC358743
can dynamically reduce the number of active lanes if the required
bandwidth allows for it, report all lane numbers up to the connected
number of lanes as supported in pdata mode.
In device tree mode, do not report lane count and clock mode at all, as
the receiver driver can determine these from the device tree.

To allow communicating the number of currently active lanes, add a new
bitfield to the v4l2_mbus_config flags. This is a temporary fix, to be
used only until a better solution is found.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2019-04-02 12:55:36 +01:00
Dave Stevenson
3c8b360c43 media: tc358743: Increase FIFO level to 374.
The existing fixed value of 16 worked for UYVY 720P60 over
2 lanes at 594MHz, or UYVY 1080P60 over 4 lanes. (RGB888
1080P60 needs 6 lanes at 594MHz).
It doesn't allow for lower resolutions to work as the FIFO
underflows.

374 is required for 1080P24-30 UYVY over 2 lanes @ 972Mbit/s, but
>374 means that the FIFO underflows on 1080P50 UYVY over 2 lanes
@ 972Mbit/s.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:35 +01:00
Dave Stevenson
93c5ed75c3 media: ov5647: Add support for non-continuous clock mode
The driver was only supporting continuous clock mode
although this was not stated anywhere.
Non-continuous clock saves a small amount of power and
on some SoCs is easier to interface with.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:35 +01:00
Dave Stevenson
3f17b1a64d media: ov5647: Add support for PWDN GPIO.
Add support for an optional GPIO connected to PWDN on the sensor.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:35 +01:00
Dave Stevenson
9b8bd6165f [media] Documentation: DT: add device tree for PWDN control
Add optional GPIO pwdn to connect to the PWDN line on the sensor.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:35 +01:00
Dave Stevenson
cb60647fdd media: ov5647: Add set_fmt and get_fmt calls.
There's no way to query the subdevice for the supported
resolutions.
Add set_fmt and get_fmt implementations.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
2019-04-02 12:55:35 +01:00
Phil Elwell
db69134b04 Fix warning in bcm2835-smi-nand
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:34 +01:00
Phil Elwell
4b3570c64f mmc: bcm2835-sdhost: Fix warnings on arm64
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:34 +01:00
Phil Elwell
71b5376838 overlays: uart0 - return GPIOs 14 and 15 to inputs
In the event that alternate pins are used (only useful on Compute
Modules), return the standard pins to inputs to avoid double-mapping
them.

See: https://www.raspberrypi.org/forums/viewtopic.php?p=1388713#p1316977

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:34 +01:00
James Hughes
ec44fd3f75 Update issue templates (#2736) 2019-04-02 12:55:34 +01:00
Phil Elwell
0716fbcb05 Revert "rtc: pcf8523: properly handle oscillator stop bit"
This reverts commit ede44c908d.

See: https://github.com/raspberrypi/firmware/issues/1065

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:33 +01:00
Phil Elwell
a2b860d3c2 overlays: pi3-disable-bt: Clear out bt_pins node
The pi3-disable-bt overlay does not (and cannot) delete the bt_pins
node, but emptying its properties (including brcm,pins) is a way of
signalling to the hciuart systemd service that Bluetooth has been
disabled.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:33 +01:00
Phil Elwell
e2e01871a7 mmc/bcm2835-sdhost: Recover from MMC_SEND_EXT_CSD
If the user issues an "mmc extcsd read", the SD controller receives
what it thinks is a SEND_IF_COND command with an unexpected data block.
The resulting operations leave the FSM stuck in READWAIT, a state which
persists until the MMC framework resets the controller, by which point
the root filesystem is likely to have been unmounted.

A less heavyweight solution is to detect the condition and nudge the
FSM by asserting the (self-clearing) FORCE_DATA_MODE bit.

N.B. This workaround was essentially discovered by accident and without
a full understanding the inner workings of the controller, so it is
fortunate that the "fix" only modifies error paths.

See: https://github.com/raspberrypi/linux/issues/2728

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:33 +01:00
popcornmix
7adc787ba2 config: Add CONFIG_USBIP_VUDC
See: https://github.com/raspberrypi/firmware/issues/353
2019-04-02 12:55:33 +01:00
Hans-Wilhelm Warlo
60b7a7c6c2 Add hy28b 2017 model device tree overlay (#2721)
The 2017 version of the hy28b display requires a different
initialisation sequence.

Signed-off-by: Hans-Wilhelm Warlo <hw@warlo.no>
2019-04-02 12:55:32 +01:00
Phil Elwell
e6b1b917b5 overlays: Add gpio-no-bank0-irq overlay
See: https://github.com/raspberrypi/linux/issues/2590

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:32 +01:00
Serge Schneider
bfafd35f44 overlays: add overrides for PoE HAT fan control
Signed-off-by: Serge Schneider <serge@raspberrypi.org>
2019-04-02 12:55:32 +01:00
Serge Schneider
e259f026a9 hwmon: adjust rpi-poe-fan overlay trip points
Signed-off-by: Serge Schneider <serge@raspberrypi.org>
2019-04-02 12:55:32 +01:00
Serge Schneider
a7e993dd01 drivers: thermal: step_wise: avoid throttling at hysteresis temperature after dropping below it
Signed-off-by: Serge Schneider <serge@raspberrypi.org>
2019-04-02 12:55:31 +01:00
Ram Chandrasekar
53ce04e35c drivers: thermal: step_wise: add support for hysteresis
From: Ram Chandrasekar <rkumbako@codeaurora.org>

Step wise governor increases the mitigation level when the temperature
goes above a threshold and will decrease the mitigation when the
temperature falls below the threshold. If it were a case, where the
temperature hovers around a threshold, the mitigation will be applied
and removed at every iteration. This reaction to the temperature is
inefficient for performance.

The use of hysteresis temperature could avoid this ping-pong of
mitigation by relaxing the mitigation to happen only when the
temperature goes below this lower hysteresis value.

Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-04-02 12:55:31 +01:00
Paul
334a1cedd3 Update gpio-fan-overlay.dts (#2711)
Add references, links, clear details, some typo correction.
2019-04-02 12:55:31 +01:00
Matt Flax
c71a6c3589 ASoC: cs4265: Add a MIC pre. route (#2696)
Commit 	b0ef5011b9 upstream.

The cs4265 driver is missing a microphone preamp enable.
This patch enables/disables the microphone preamp when mic
selection is made using the kcontrol.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-04-02 12:55:31 +01:00
Phil Elwell
e983a70b24 configs: Add CONFIG_HID_BIGBEN_FF=m
See: https://github.com/raspberrypi/linux/issues/2690

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:31 +01:00
Hanno Zulla
fa6e4f8320 HID: hid-bigbenff: driver for BigBen Interactive PS3OFMINIPAD gamepad
commit 256a90ed9e upstream.

This is a driver to fix input mapping and add LED & force feedback
support for the "BigBen Interactive Kid-friendly Wired Controller
PS3OFMINIPAD SONY" gamepad with USB id 146b:0902. It was originally
sold as a PS3 accessory and makes a very nice gamepad for Retropie.

Signed-off-by: Hanno Zulla <kontakt@hanno.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2019-04-02 12:55:30 +01:00
Phil Elwell
3b87167997 BCM270X_DT: Add gpio-fan overlay
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:30 +01:00
Phil Elwell
693fc36cff configs: Add SENSOR_GPIO_FAN=m
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:30 +01:00
Matt Flax
eb654af714 ASoC: cs4265: Add native 32bit I2S transport
commit be47e75eb1 upstream.

The cs4265 uses 32 bit transport on the I2S bus. This patch enables native
32 bit mode for machine drivers which use this sound card driver.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-04-02 12:55:30 +01:00
Matt Flax
40c9854d2d ASoC: cs4265: Add a S/PDIF enable switch
commit f853d6b3ba upstream.

This patch adds a S/PDIF enable switch as a SOC_SINGLE.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-04-02 12:55:29 +01:00
Matt Flax
48a5d22a6e Add support for audioinjector.net ultra soundcard. (#2664)
Uses the simple-audio-card ALSA machine driver. Sets up the machine
driver in the device tree overlay file. The overlays/Makefile is
altered to add the audioinjector-ultra.dtbo dtb overlay.

Adds CONFIG_SND_SOC_CS4265 to the defconfig files.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
2019-04-02 12:55:29 +01:00
Steve Pavao
47760431b1 devicetree: add RPi CM3 dts to arm64; mimic the RPi 3B arm64 dts implementation, by referring to the actual dts file in the arm directory 2019-04-02 12:55:29 +01:00
Phil Elwell
b5a7ddf2ba spi: Make GPIO CSs honour the SPI_NO_CS flag
The SPI configuration state includes an SPI_NO_CS flag that disables
all CS line manipulation, for applications that want to manage their
own chip selects. However, this flag is ignored by the GPIO CS code
in the SPI framework.

Correct this omission with a trivial patch.

See: https://github.com/raspberrypi/linux/issues/2169

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:29 +01:00
Eric Anholt
0735e7c4cd overlays: Remove stale notes about vc4's CMA alignment in the README.
We haven't needed alignment since
553c942f8b, and the current overlays
don't specify any.

Signed-off-by: Eric Anholt <eric@anholt.net>
2019-04-02 12:55:28 +01:00
Eric Anholt
daec392209 overlays: Add an overlay for the Adafruit Kippah with their 7" panel
Signed-off-by: Eric Anholt <eric@anholt.net>
2019-04-02 12:55:28 +01:00
Eric Anholt
92490cdb9e ARM: BCM270X: Add the 18-bit DPI pinmux to the RPI DTs.
This doesn't do anything by default, but trying to put the node in an
overlay failed for me.

Signed-off-by: Eric Anholt <eric@anholt.net>
2019-04-02 12:55:28 +01:00
Phil Elwell
48c6d4b621 overlays: Add addr parameter to i2c-rtc (& -gpio)
See: https://github.com/raspberrypi/linux/issues/2611

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:28 +01:00
Jasper Boomer
50461d38c7 Add hd44780 module to defconfig 2019-04-02 12:55:27 +01:00
Jasper Boomer
5f2718fd90 Add device tree overlay for HD44780 2019-04-02 12:55:27 +01:00
Phil Elwell
300377e27c config: Add I2C_TINY_USB=m
Enable the I2C Tiny USB module.

See: https://github.com/raspberrypi/linux/issues/2535

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:27 +01:00
popcornmix
6c12de3068 config: Add IPVLAN module 2019-04-02 12:55:27 +01:00
Matthias Reichl
8108af5ebd config: enable Audio Graph Card module
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-04-02 12:55:26 +01:00
Phil Elwell
55e1cc30d0 brcmfmac: Disable ARP offloading when promiscuous
This is a test patch for brcmfmac from Franky Lin at Broadcom to disable
ARP offloading when in promiscuous mode, re-enabling the ability to
sniff ARP packets over WiFi.

See: https://github.com/raspberrypi/linux/issues/2171

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:26 +01:00
Phil Elwell
3a02ddc64b configs: Rebuild bcmrpi3_defconfig to fix warnings
Also disable CONFIG_MMC_BCM2835 to avoid a runtime conflict.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:26 +01:00
Phil Elwell
c57656b113 sc16is7xx: Don't spin if no data received
See: https://github.com/raspberrypi/linux/issues/2676

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
2019-04-02 12:55:26 +01:00