Accepting request 665771 from home:nsaenzjulienne:branches:hardware:boot

- Add overlay to support upstream touchscreen driver (FATE#326921)

OBS-URL: https://build.opensuse.org/request/show/665771
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=13
This commit is contained in:
Andreas Färber 2019-01-14 16:14:35 +00:00 committed by Git OBS Bridge
parent f18419acba
commit a47e46733c
3 changed files with 35 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 11 17:28:58 UTC 2019 - Nicolas Patricio Saenz Julienne <nsaenzjulienne@suse.com>
- Add overlay to support upstream touchscreen driver (FATE#326921)
-------------------------------------------------------------------
Fri Nov 30 09:29:26 UTC 2018 - Nicolas Patricio Saenz Julienne <nsaenzjulienne@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package raspberrypi-firmware-dt
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,7 @@ Group: System/Boot
Url: https://github.com/raspberrypi/linux/
Source: raspberrypi-firmware-dt-%{version}.tar.xz
Source1: upstream-aux-interrupt-overlay.dts
Source2: upstream-rpi-ft5406-overlay.dts
Source100: get-from-git.sh
Requires: raspberrypi-firmware
BuildRequires: dtc
@ -52,7 +53,7 @@ for dts in arch/arm/boot/dts/bcm27*dts arch/arm64/boot/dts/broadcom/bcm27*dts; d
done
export DTC_FLAGS="-R 0 -p 0 -@ -H epapr"
for dts in arch/arm/boot/dts/overlays/*dts %{SOURCE1}; do
for dts in arch/arm/boot/dts/overlays/*dts %{SOURCE1} %{SOURCE2}; do
target=$(basename ${dts%*.dts})
target=${target%*-overlay}
mkdir -p $PPDIR/overlays

View File

@ -0,0 +1,27 @@
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target-path = "/soc/firmware";
__overlay__ {
compatible = "raspberrypi,bcm2835-firmware", "simple-bus";
ts: touchscreen {
compatible = "raspberrypi,firmware-ts";
touchscreen-size-x = <800>;
touchscreen-size-y = <480>;
};
};
};
__overrides__ {
touchscreen-size-x = <&ts>,"touchscreen-size-x:0";
touchscreen-size-y = <&ts>,"touchscreen-size-y:0";
touchscreen-inverted-x = <&ts>,"touchscreen-inverted-x:?";
touchscreen-inverted-y = <&ts>,"touchscreen-inverted-y:?";
touchscreen-swapped-x-y = <&ts>,"touchscreen-swapped-x-y:?";
};
};