platform/kernel/linux-rpi.git
4 years agopackaging: Change the kernel version of the spec file 94/229594/1 submit/tizen/20200402.094258
Junghoon Kim [Thu, 2 Apr 2020 05:49:13 +0000 (14:49 +0900)]
packaging: Change the kernel version of the spec file

Change the kernel version to 4.19.113.

Change-Id: I43bc5f71beeb5603db2baa7a58f2811fe4b4a177
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoconfigs: tizen_bcm2711_defconfig: Enable REGULATOR_FIXED_VOLTAGE option 93/229593/1
Junghoon Kim [Thu, 2 Apr 2020 04:56:26 +0000 (13:56 +0900)]
configs: tizen_bcm2711_defconfig: Enable REGULATOR_FIXED_VOLTAGE option

Later revisions of the Raspberry Pi 4B have a separate control over the
SD card power and the related dts file declares it. To support this in
Tizen, enable a fixed voltage regulator option.

Change-Id: I446c0494b761b9ca70535b5713f4f4b431719cb1
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agorpi4: boot: Update the firmware with the latest version 92/229592/1
Junghoon Kim [Thu, 2 Apr 2020 04:48:35 +0000 (13:48 +0900)]
rpi4: boot: Update the firmware with the latest version

Update the firmware with the latest version from the vendor git repo.
The firmware base matches the kernel version 4.19.113. The base commit
of vendor firmware is c2c6ce8d.

Change-Id: I6cf755ff35ece740384e6bfd2125bf53b63e82af
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agostaging: bcm2835-camera: Fix duplicate definition of module information 91/229591/1
Junghoon Kim [Thu, 2 Apr 2020 04:44:42 +0000 (13:44 +0900)]
staging: bcm2835-camera: Fix duplicate definition of module information

Fix duplicate definition of module information, in order to build the
camera module correctly.

Change-Id: Ibd3d166d4565533d5f222bad3541161513739db4
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: add a brcmf wifi node
Jaehoon Chung [Fri, 27 Mar 2020 09:15:53 +0000 (18:15 +0900)]
ARM: dts: bcm2711-rpi-4-b: add a brcmf wifi node

Add brcmf wifi node to use a below property.
- brcm,featuer-disable

"0x2000" is a bit to disable "sup_wpa" feature.
Tizen doesn't need to use this feature. So disable it by default.

Change-Id: I1ff34f88bbf9d8ac4aad54b6bd68eb4065757138
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agobrcmfamc: add the feature-disable property
Jaehoon Chung [Fri, 27 Mar 2020 09:07:28 +0000 (18:07 +0900)]
brcmfamc: add the feature-disable property

Add the feature-disable property.
It will be parsed when brcmfmac is probed.
If someone want to disable some features by default, it's possible to
use this property.

Change-Id: Id9062624d5bc87055295209a329a817103fd11f5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agobrcmfmac: fix wrong location to get firmware feature
Jaehoon Chung [Fri, 27 Mar 2020 07:51:04 +0000 (16:51 +0900)]
brcmfmac: fix wrong location to get firmware feature

sup_wpa feature is getting after setting feature_disable flag.
If firmware is supported sup_wpa feature,  it's always enabled
regardless of feature_disable flag.

Fixes: b8a64f0e96c2 ("brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK")

Change-Id: I501643bb3559e60e201da910e3dbd15a7bbbc8e3
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agopackaging: Remove bootcode.bin from the boot image
Junghoon Kim [Fri, 27 Mar 2020 06:49:54 +0000 (15:49 +0900)]
packaging: Remove bootcode.bin from the boot image

The RPI4 has an SPI-attached EEPROM, which contains code to boot up the
system and replaces bootcode.bin previously found in the boot partition
of the SD card. So, remove the unnecessary bootcode.bin from the rpi4
boot image.

Change-Id: I3a7a783ccdbf81e367eb8cbbd2ce49c248976385
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agobrcmfmac: support firmware reporting 160 MHz channels
Rafał Miłecki [Mon, 11 Feb 2019 22:04:54 +0000 (23:04 +0100)]
brcmfmac: support firmware reporting 160 MHz channels

So far 160 MHz channels were treated as 20 MHz ones which was breaking
support for 40/80 MHz due to the brcmf_construct_chaninfo() logic and
its assumptions.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
[sw0312.kim: backport mainline commit 30519cbe339a to show more 5G channels properly]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I62ca12dfd97d0cd3233840d5b569e768dc4a1672

4 years agoARM: configs: tizen_bcm2711: disable BCM2835_SDHOST
Jaehoon Chung [Tue, 24 Mar 2020 03:16:40 +0000 (12:16 +0900)]
ARM: configs: tizen_bcm2711: disable BCM2835_SDHOST

Disable BCM2835_SDHOST. It doesn't use anywhere.
To prevent confusion which mmc driver is used, disabled BCM2835_SDHOST.

Change-Id: I3c56c8290b6d52135a2cdecfdc45cbc4d4cb7639
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoscripts: Make the kernel build and image creation in one step
Junghoon Kim [Thu, 12 Mar 2020 03:28:26 +0000 (12:28 +0900)]
scripts: Make the kernel build and image creation in one step

Add the image creation to the build script, in order to process two
separate steps at once. This makes it easier to test the built kernel
with the related kernel modules together on the rpi4 target.

Change-Id: I1ac78f109a35dff038855a16c62830a2cb083337
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agousb: dwc2: gadget: Expand buffer size of control endpoint
Dongwoo Lee [Fri, 6 Mar 2020 05:04:13 +0000 (14:04 +0900)]
usb: dwc2: gadget: Expand buffer size of control endpoint

We found the case that buffer of control endpoint, which was allocated
with 8 bytes previously, is corrupted when the host races for setting
up interfaces. Even worse, it overwrites memory for other structure
such as usb_request for control endpoint and it causes kernel panic.
Especially in Tizen, it often happens when the target is configured as
multi-functional device: sdb + mtp.

In our emprical examination the buffer can be corrupted upto size of
456 bytes. With this result, the size of buffer will be enlarged to
512 bytes to prevent kernel panic even if it happens.

Change-Id: I20eb1283f3c82e09453960b72787175f734e7ec4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agousb: dwc2: Defer forcing peripheral mode
Dongwoo Lee [Wed, 26 Feb 2020 10:39:04 +0000 (19:39 +0900)]
usb: dwc2: Defer forcing peripheral mode

dwc2 forces the mode as following dr_mode when it is finally
determined. In the case of peripheral mode, however, this causes the
notification to host without any preparation about gadget driver.
In host, hcd requests device descriptor for enumeration, but it does
never get response. See log below:

 usb 2-2: new high-speed USB device number 6 using xhci_hcd
 usb 2-2: device descriptor read/64, error -110
 usb 2-2: device descriptor read/64, error -110
 usb 2-2: new high-speed USB device number 7 using xhci_hcd
 usb 2-2: device descriptor read/64, error -110
 usb 2-2: device descriptor read/64, error -110
 usb usb2-port2: attempt power cycle
 usb 2-2: new high-speed USB device number 8 using xhci_hcd
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 usb 2-2: device not accepting address 8, error -62
 usb 2-2: new high-speed USB device number 9 using xhci_hcd
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 usb 2-2: device not accepting address 9, error -62
 usb usb2-port2: unable to enumerate USB device

Even worse, all ports on host can get disabled at least xhci case in
this situation. To prevent this, forcing peripheral mode will be
defered until the gadget driver is prepared.

Change-Id: Ifa0ffe7f28f32fd595c6c2ca54918667b34b95fb
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agoARM: configs: tizen_bcm2711_boot_defconfig: config for RPi4 bootloader
Łukasz Stelmach [Wed, 26 Feb 2020 12:00:08 +0000 (13:00 +0100)]
ARM: configs: tizen_bcm2711_boot_defconfig: config for RPi4 bootloader

Change-Id: I11b7d169060ae86066a9853d02549440a5c8ae80
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
4 years agousb: gadget: f_fs: Give chance to retry malloc for large size buffer
Dongwoo Lee [Fri, 26 Oct 2018 01:41:41 +0000 (10:41 +0900)]
usb: gadget: f_fs: Give chance to retry malloc for large size buffer

The f_fs daemons usually use large size buffer for increasing transfer
performance, but it can cause memory allocation failure in case of
that buddy space is fragmented. Since this, instead of just returning
error in this case, give the chance to retry to allocate memory with
a half length in order to prevent daemon crash due to failure of
buffer allocation.

Change-Id: I2171932b8cb565102d63eb82c114987b85d26ed9
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agousb: dwc2: gadget: set the quirk_ep_out_alinged_size as true
Jaehoon Chung [Mon, 22 Oct 2018 04:44:11 +0000 (13:44 +0900)]
usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true

Set the quirk_ep_out_aligned_size as true.
This patch is fixed about occurring kernel panic after failed memory
allocation.

Change-Id: Iafb6ccaa6f7d7dac4eb0593291166ab13cd8256d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[dwoo08.lee: bring commit from linux-artik7 of public tizen repository]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agopcie-brcmstb: Fix non-SMP build
Łukasz Stelmach [Fri, 21 Feb 2020 10:51:41 +0000 (11:51 +0100)]
pcie-brcmstb: Fix non-SMP build

Use affinity setting helpers to enable non-SMP builds

Change-Id: I75d8ef52cc07b26db77b8b3e3c28f3addd877304
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: Set extcon state for dwc2 cable as always true
Dongwoo Lee [Tue, 18 Feb 2020 05:23:00 +0000 (14:23 +0900)]
ARM: dts: bcm2711-rpi-4-b: Set extcon state for dwc2 cable as always true

Since this, extcon state for dwc2 udc becomes always 'USB=1'.

Change-Id: Ic76b6fbab2068861c374162461382ca223798d3d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agoARM: configs: tizen_bcm2711_defconfig: Enable extcon feature
Dongwoo Lee [Tue, 18 Feb 2020 08:11:43 +0000 (17:11 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Enable extcon feature

To support external connection notification, enable extcon feature.

Change-Id: I178f414b85a054d73ff9fda6346fce9c36c5e6df
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agousb: dwc2: gadget: Set extcon state for usb cable as always true
Dongwoo Lee [Tue, 18 Feb 2020 04:36:40 +0000 (13:36 +0900)]
usb: dwc2: gadget: Set extcon state for usb cable as always true

To inform to userspace as enable usb features always, set extcon
state for usb cable as connected permanently. To enable this, add
"g-extcon-always-on" property on dt.

Change-Id: I5bcc1b7560278dab8bde6fc80549bc145179574c
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agoARM: configs: tizen_bcm2711_defconfig: Disable CONFIG_CFG80211_CRDA_SUPPORT
Chanwoo Choi [Fri, 14 Feb 2020 07:15:38 +0000 (16:15 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Disable CONFIG_CFG80211_CRDA_SUPPORT

If CONFIG_CFG80211_CRDA_SUPPORT is enabled, kernel has been sending
the uevent until setting the regulatory domain from userspace.
But RPI4 doesn't use CRDA (Central Regulatory Domain Agent)
for wireless device. In result, CONFIG_CFG80211_CRDA_SUPPORT makes
the unneeded uevent. So that disable CONFIG_CFG80211_CRDA_SUPPORT
for removing the unuseful uevent.

Change-Id: I3ea8369ba97c9804a99bdf27f008ba4664469286
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agoARM: configs: tizen_bcm2711_defconfig: Use schedutil as default governor
Chanwoo Choi [Thu, 6 Feb 2020 02:03:57 +0000 (11:03 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Use schedutil as default governor

In order to improve the CPU performance, use schedutil cpufreq governor
as the default governor instead of powersave governor.

RPI4 supports only two CPU frequencies of 600MHz and 1500MHz.
After changed the default governor, can check the usage information
of two frequencies by schedutil governor.

[Example]
$ cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
600000 4347
1500000 2146

Change-Id: Id2e82dbbefbd4753bc6a0689d089427ee03ece97
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: Add support backlight
Hoegeun Kwon [Thu, 6 Feb 2020 05:28:11 +0000 (14:28 +0900)]
ARM: dts: bcm2711-rpi-4-b: Add support backlight

Add DTs to support the official RPI touchscreen backlight.

Change-Id: I8bc242124575dc4c57b0d71e68415fd3485799a0
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agopackaging: Add kernel-headers package
Seung-Woo Kim [Thu, 6 Feb 2020 01:36:50 +0000 (10:36 +0900)]
packaging: Add kernel-headers package

For device related developement, user needs device kernel headers
package. Add kernel-headers package for rpi4.

Change-Id: I7970e02f2b10cae31e1d8899f460fc15a8bdf496
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Disable RAID6_PQ_BENCHMARK
Junghoon Kim [Mon, 20 Jan 2020 06:06:40 +0000 (15:06 +0900)]
ARM: tizen_bcm2711_defconfig: Disable RAID6_PQ_BENCHMARK

Skip the algorithm benchmarking process of RAID6. This is helpful for
systems where fast kernel startup is important. Also, The option is not
crucial for the rpi boards.

Change-Id: I68a9cc82b1320cb47442456f3f408cf7e8609c64
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agolib/raid6: add option to skip algo benchmarking
Daniel Verkamp [Mon, 12 Nov 2018 23:26:52 +0000 (15:26 -0800)]
lib/raid6: add option to skip algo benchmarking

This is helpful for systems where fast startup time is important.
It is especially nice to avoid benchmarking RAID functions that are
never used (for example, BTRFS selects RAID6_PQ even if the parity RAID
mode is not in use).

This saves 250+ milliseconds of boot time on modern x86 and ARM systems
with a dozen or more available implementations.

The new option is defaulted to 'y' to match the previous behavior of
always benchmarking on init.

Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Signed-off-by: Shaohua Li <shli@fb.com>
[jhoon20.kim: backport from mainline for the fast kernel startup]

Change-Id: I38c270c413d60de65f27cf9c95d44bb2e2d07ac2
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2711_defconfig: Enable missing NETFILTER options for nether
Seung-Woo Kim [Mon, 6 Jan 2020 08:10:27 +0000 (17:10 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Enable missing NETFILTER options for nether

To properly support nether rules, netfilter options are required
including udplite, raw, mangle and others. Enable the missing
NETFILTER options for nether.

Ref: nether rule in https://git.tizen.org/cgit/platform/core/security/nether/tree/conf/nether.rules?h=tizen

Change-Id: I99eaa86a00b5cc79ba07b88988a81a6b37b2f663
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2711_defconfig: Enable USB SERIAL drivers for modem
Seung-Woo Kim [Mon, 6 Jan 2020 01:39:15 +0000 (10:39 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Enable USB SERIAL drivers for modem

To support usb modem dongle and related devices, enable USB SERIAL
drivers and ppp network interface to support the modem.

Change-Id: I755504aabd4fbcb2d6de5ec71274209c8f092ed2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Make USB configfs as built-in
Dongwoo Lee [Wed, 18 Dec 2019 03:59:21 +0000 (12:59 +0900)]
ARM: tizen_bcm2711_defconfig: Make USB configfs as built-in

To utilize USB-C port as USB peripheral mode, this patch enables
configfs and related functions including f_fs, f_acm, and f_rndis.

Change-Id: Ib60e4566470bbbfd2ef95a7f19cbc6e280bfff3e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agoRevert "ARM: tizen_bcm2711_defconfig: Adds USB_AUDIO configure"
jaechul lee [Fri, 27 Dec 2019 04:08:39 +0000 (04:08 +0000)]
Revert "ARM: tizen_bcm2711_defconfig: Adds USB_AUDIO configure"

This reverts commit 3407164554d001b78d934b5dc0b5526f2b1b541c.

Change-Id: I423d5fcfe761c96a8905de78feb000f458254908

4 years agoARM: configs: tizen_bcm2711_defconfig: Enable tethering config options
Seung-Woo Kim [Fri, 20 Dec 2019 06:30:13 +0000 (15:30 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Enable tethering config options

In Tizen 6.0, network framework supports tethering from ethernet
to wifi. Enable required config options for tethering.

Ref: section 6-3 of https://git.tizen.org/cgit/platform/kernel/tizen-kernel-configs/tree/tizen/tizen_defconfig?h=tizen

Change-Id: I162d6eb89ce8d25d85659c7a2e632dbfe0909dc6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2711_defconfig: Enable NETFILTER_XT_MATCH_LIMIT
Seung-Woo Kim [Fri, 20 Dec 2019 07:13:36 +0000 (16:13 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Enable NETFILTER_XT_MATCH_LIMIT

From Tizen network security, NETFILTER_XT_MATCH_LIMIT is used for
ipv6. So enable NETFILTER_XT_MATCH_LIMIT config option.

Change-Id: Ife75ee0a766c64fb38a0e261f41a45678ab49bd4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2711_defconfig: Enable HID_MULTITOUCH
Seung-Woo Kim [Fri, 20 Dec 2019 07:08:28 +0000 (16:08 +0900)]
ARM: configs: tizen_bcm2711_defconfig: Enable HID_MULTITOUCH

To support usb multi-touch device, enable CONFIG_HID_MULTITOUCH.

Change-Id: Icafd08ffa00f7c399f7fe4040551c83184c50a75
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: config: tizen_bcm2711: Enable config relevant to DM-verity
Jaehoon Chung [Wed, 18 Dec 2019 23:42:11 +0000 (08:42 +0900)]
ARM: config: tizen_bcm2711: Enable config relevant to DM-verity

Enable config relevant to DM-verity by default.
It doesn't affect anything until control dm-verity on System side.

Change-Id: Ia1121b170c12748ed09797188c8bb166a6efec2c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoscripts: mkbootimg_rpi4.sh: Create boot tarball for the lthor flashing
Junghoon Kim [Wed, 18 Dec 2019 00:49:11 +0000 (09:49 +0900)]
scripts: mkbootimg_rpi4.sh: Create boot tarball for the lthor flashing

This patch is to create boot tarball for the lthor flashing. With this,
we can easily test the rpi4 kernel in the local environment.

Change-Id: Iaf16cf1ae22f8b882fac7156c6ca499593f9539d
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Enable btrfs filesystem
Junghoon Kim [Tue, 17 Dec 2019 05:28:08 +0000 (14:28 +0900)]
ARM: tizen_bcm2711_defconfig: Enable btrfs filesystem

Enable btrfs filesystem to use it as the rootfs mount for the RPI4 board.

Change-Id: I19a9b0acfa25c906ddc557c0f191958aa29f8636
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: Enable usb node to use peripheral mode
Jaehoon Chung [Tue, 17 Dec 2019 00:48:54 +0000 (09:48 +0900)]
ARM: dts: bcm2711-rpi-4-b: Enable usb node to use peripheral mode

Enable usb node to use peripheral mode.
It's also used on U-boot side when thor mode is run.

Change-Id: I2e915ef05edfac493ab4c71f648b6daf509d867f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agodrm/vc4: fix wrong filp usage in gem_info debugfs node
Seung-Woo Kim [Thu, 5 Dec 2019 07:52:29 +0000 (16:52 +0900)]
drm/vc4: fix wrong filp usage in gem_info debugfs node

After the mainline commit 65101d8c9108 ("drm/vc4: Expose
performance counters to userspace") applied in v4.17, vc4 drm
has its own filp. So gem_info filp usage is not proper. Fix the
wrong filp usage in gem_info debugfs node.

Change-Id: I526a888f345378d66f96e9d6cd3d19527e56ddaa
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: mkbootimg_rpi4.sh: Remove cmdline.txt
Hoegeun Kwon [Mon, 2 Dec 2019 00:50:36 +0000 (09:50 +0900)]
scripts: mkbootimg_rpi4.sh: Remove cmdline.txt

The cmdline.txt file is unnecessary so remove it in the script also
delete real file.

Change-Id: Ia02af211e9e46df1de413c3c9724cc54d82fcd10
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoscripts: mkbootimg_rpi4.sh: Add u-boot-rpi4 package to boot image
Hoegeun Kwon [Mon, 2 Dec 2019 00:46:43 +0000 (09:46 +0900)]
scripts: mkbootimg_rpi4.sh: Add u-boot-rpi4 package to boot image

Add u-boot-rpi4 package to boot.img for u-boot boot

Change-Id: Iba486d729b5aa6c8a570db2b0854c922b5b909f6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: Add support for touchscreen touch
Hoegeun Kwon [Wed, 27 Nov 2019 07:41:21 +0000 (16:41 +0900)]
ARM: dts: bcm2711-rpi-4-b: Add support for touchscreen touch

Add dts to support the official RPI touchscreen LCD.

Change-Id: I78baf521954a3929dd17f29bac9a2a34c66e71ff
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: Add cts pin setting for bluetooth uart
Jaehoon Chung [Tue, 26 Nov 2019 08:06:28 +0000 (17:06 +0900)]
ARM: dts: bcm2711-rpi-4-b: Add cts pin setting for bluetooth uart

This patch is referred to bcm2710-rpi-3-b-plus.dts.

The below is its commit-msg:
There is missing cts pin for uart0 used by bluetooth. Add the cts pin
setting as like bcm2837-rpi-3-b-plus.

Change-Id: I3e206b00145c24ddc86ad9dc57bef6f683622285
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agorpi4: boot: Enable u-boot booting
Hoegeun Kwon [Fri, 8 Nov 2019 01:53:40 +0000 (10:53 +0900)]
rpi4: boot: Enable u-boot booting

Use u-boot for booting, enable u-boot.

Change-Id: I0c82be9e06b3d74a091f730ee3339a50582debe8
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Adds USB_AUDIO configure
Jaechul Lee [Wed, 6 Nov 2019 05:37:17 +0000 (14:37 +0900)]
ARM: tizen_bcm2711_defconfig: Adds USB_AUDIO configure

Change-Id: Icc1084325200ff7ef8e9d1ff3d9469bdc51c4b51
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agorpi4: boot: Update the firmwares for kernel v4.19.81
Hoegeun Kwon [Mon, 4 Nov 2019 09:19:38 +0000 (18:19 +0900)]
rpi4: boot: Update the firmwares for kernel v4.19.81

Update the firmwares with the latest version from the vendor git repo.

The commit base is "b79618b5db4 kernel: Bump to 4.19.81"

Change-Id: Ica3af05ac507e3834a013d135149542723218cba
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agopackaging: Change the kernel version of the spec file
Hoegeun Kwon [Mon, 4 Nov 2019 09:10:59 +0000 (18:10 +0900)]
packaging: Change the kernel version of the spec file

This patch changes the kernel version of the spec file to 4.19.81.

Change-Id: Ic7789806d6418ba0cf66e3e93bc48eeb39289a7b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoarm: dts: bcm2711-rpi-4-b: Adds buttons for speaker profile
Jaechul Lee [Mon, 4 Nov 2019 07:16:17 +0000 (16:16 +0900)]
arm: dts: bcm2711-rpi-4-b: Adds buttons for speaker profile

Tizen Speaker Profile uses a keypad that consists of 5 buttons for
up/down/left/right/center. The buttons are connected to GPIO pins as
follows.

GPIO16 : KEY_VOLUMEUP
GPIO13 : KEY_VOLUMEDOWN
GPIO6 : KEY_FASTFORWARD
GPIO12 : KEY_REWIND
GPIO25 : KEY_PLAYPAUSE

Change-Id: Iadaa10478c32517ae09c1c10f1d29d0f2518bfb5
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoarm: dts: bcm2711-rpi-4-b: Adds respeaker 4mic nodes
Jaechul Lee [Mon, 4 Nov 2019 07:09:25 +0000 (16:09 +0900)]
arm: dts: bcm2711-rpi-4-b: Adds respeaker 4mic nodes

adds respeaker 4mic nodes.

Change-Id: Ibf8ad7f7f8afbaf3cd9f994eb21f0d8a5a9033c2
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: Enable dt nodes for audio, i2c1, spi0
Jaechul Lee [Tue, 29 Oct 2019 02:29:27 +0000 (11:29 +0900)]
ARM: dts: bcm2711-rpi-4-b: Enable dt nodes for audio, i2c1, spi0

audio, i2c1, spi0 nodes should be enabled as RPI3.

Change-Id: I8ea244b188ac8d1787c1340369f7aa90486f44d6
Reference: 5cf4f3e4 ("ARM: dts: bcm2710-rpi-3-b-plus: Enable dt nodes for audio, i2c1, spi0")
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agorpi4: boot: Fix hdmi group to DMT
Hoegeun Kwon [Tue, 29 Oct 2019 03:25:24 +0000 (12:25 +0900)]
rpi4: boot: Fix hdmi group to DMT

There is a problem using the hdmi small monitors causes monitor to
freeze. So defines the HDMI output group DMT, set defualt mode 720p.

Change-Id: I070549ed36423755b7e8742b923f2ac18b8ccc5b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoscripts: mkbootimg_rpi4.sh: Fix to install modules on non sudo
Hoegeun Kwon [Mon, 28 Oct 2019 08:18:09 +0000 (17:18 +0900)]
scripts: mkbootimg_rpi4.sh: Fix to install modules on non sudo

On sudo status, env variable is possible not to be preserved and
it causes failure on modules_install. So fix to install modules on
non sudo status and then move the directories and files to image
area.

[From repo of tizen rpi3: 89dcbe9b298c scripts: mkbootimg_rpi3.sh: Fix to install modules on non sudo status]
Change-Id: Ie7047c23762b668a08abf387dd76cf9cc8571937
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agorpi4: boot: Add to support mipi-csi camera module
Seung-Woo Kim [Mon, 28 Oct 2019 06:14:49 +0000 (15:14 +0900)]
rpi4: boot: Add to support mipi-csi camera module

Add to support mipi-csi camera module with the options, start_x=1
and disable_camera_led=1, in config.txt.

Change-Id: I450c291599031437a9fe58cac94a0d18c6cf58a9
Reference: https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md
Reference: https://www.raspberrypi.org/documentation/configuration/config-txt/camera.md
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: dts: bcm2711-rpi-4-b: Add support hdmi
Hoegeun Kwon [Fri, 11 Oct 2019 08:01:22 +0000 (17:01 +0900)]
ARM: dts: bcm2711-rpi-4-b: Add support hdmi

Support for using hdmi based on v3d.

Change-Id: I1ea3551167d713f0ac64fe5cacbeefc2a439331e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoscripts: mkbootimg_rpi4.sh: Remove rename for kernel7l.img.
Hoegeun Kwon [Tue, 17 Sep 2019 08:54:39 +0000 (17:54 +0900)]
scripts: mkbootimg_rpi4.sh: Remove rename for kernel7l.img.

Use origin kernel image name(zImage) because of specified kernel in
the config.txt file.

Change-Id: If4a255fb3b89a892a1e7305b6ae6a33829730ae5
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi4: boot: add kernel name in config.txt
Jaehoon Chung [Wed, 11 Sep 2019 00:13:18 +0000 (09:13 +0900)]
rpi4: boot: add kernel name in config.txt

Add kernel name in config.txt.

Change-Id: Iff5b38da853a54296c2eef7b6d5eaf24761b22cf
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoRevert "packaging/rpi4: Add cmdline.txt, kernel image to spec file"
Jaehoon Chung [Wed, 11 Sep 2019 00:06:00 +0000 (09:06 +0900)]
Revert "packaging/rpi4: Add cmdline.txt, kernel image to spec file"

This reverts commit e0d9fb53f6a30d29dad6bd965fa10b3753f8697b.

It doesn't need to use kernel.img. Tizen doesn't use as like kernel.
Just keep zImage as kernel image name.
Instead, add "kernel=zImage" config.txt file.
- Local build script is only generating zImage.

Change-Id: I2dbff125194491d5579b6e65412ec5a6306eb7fb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agousb: dwc_otg: Fix invalid pointer casting
Hoegeun Kwon [Wed, 4 Sep 2019 00:09:13 +0000 (09:09 +0900)]
usb: dwc_otg: Fix invalid pointer casting

Fix build warning about pointer cast.

Change-Id: I29b84d07152f9c1745685e156a53275b1e15b6eb
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoscripts: Remove the scripts for RPI3
Hoegeun Kwon [Wed, 4 Sep 2019 00:10:25 +0000 (09:10 +0900)]
scripts: Remove the scripts for RPI3

Remove any RPI3 scripts, we don't need now.

Change-Id: I2b5f365fa363edd43abf35a740373ebdf03bf5ab
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi3: Remove the boot firmwares for RPI3
Junghoon Kim [Tue, 3 Sep 2019 11:11:02 +0000 (20:11 +0900)]
rpi3: Remove the boot firmwares for RPI3

They also do not currently need to be kept in this repo. When the
linux-rpi3 repo is deprecated, it needs to be redefined.

Change-Id: I2025d32f7762ddf29860a8597cbc12dfae1d5019
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agopackaging: remove linux-rpi3 spec file
Jaehoon Chung [Tue, 3 Sep 2019 01:58:27 +0000 (10:58 +0900)]
packaging: remove linux-rpi3 spec file

It doesn't need to keep rpi3 spec.
If linux-rpi3 git is deprecated, it will be added at that time.
- To prevent confusion when packaging is generating.

Change-Id: Ifc87a8f4f022889a70366feb09d0e9bf37340222
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agopackaging: remove unnecessary requirement
Jaehoon Chung [Tue, 3 Sep 2019 01:48:57 +0000 (10:48 +0900)]
packaging: remove unnecessary requirement

Remove unnecessary requirement instead of comment.

Change-Id: I891326a384fffd192d3cac4435116c82c95bc1e3
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agopackaging/rpi4: Add cmdline.txt, kernel image to spec file
Hoegeun Kwon [Mon, 2 Sep 2019 07:49:57 +0000 (16:49 +0900)]
packaging/rpi4: Add cmdline.txt, kernel image to spec file

Add cmdline.txt to spec file and rename kernel image to kernel7l.img.

Change-Id: I5dd2adf9a54c826f52d50b6950c8a95115c4b70e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi4: Remove unused files
Hoegeun Kwon [Mon, 2 Sep 2019 02:24:41 +0000 (11:24 +0900)]
rpi4: Remove unused files

Remove unused files in rpi4.

Change-Id: I29525779cf28c33e68da9ac22abd895b2711be8c
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoscripts: Add mkbootimg_rpi4.sh
Hoegeun Kwon [Sun, 1 Sep 2019 23:53:48 +0000 (08:53 +0900)]
scripts: Add mkbootimg_rpi4.sh

This script is to make boot.img and modules.img for rpi4.

Change-Id: I1a57e86070b631ba032e9cd35282f192adc6f379
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi4: Add cmdline.txt file
Hoegeun Kwon [Sun, 1 Sep 2019 23:50:45 +0000 (08:50 +0900)]
rpi4: Add cmdline.txt file

The cmdline.txt file is need for boot.

Change-Id: I2a6030c2beb5dae0f8607e9e22065aaa7bf5c81d
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agopackaging: Add spec file for rpi4
Hoegeun Kwon [Thu, 29 Aug 2019 07:59:28 +0000 (16:59 +0900)]
packaging: Add spec file for rpi4

This adds linux-rpi4.spec file for armv7l rpm packaging.

Change-Id: Ic9aef54edc5f1c718ba2c301e70a4d9ee79af35d
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Fix modules cleanup
Hoegeun Kwon [Thu, 29 Aug 2019 06:50:07 +0000 (15:50 +0900)]
ARM: tizen_bcm2711_defconfig: Fix modules cleanup

Always used modules changed to built-in, also remove unused modules.

Change-Id: I9304cf746e5a7559659f11dd875e7c4eb2d54175
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Fix I2C config to built-in
Hoegeun Kwon [Tue, 20 Aug 2019 05:35:10 +0000 (14:35 +0900)]
ARM: tizen_bcm2711_defconfig: Fix I2C config to built-in

Fix i2c configuration to built-in.

Change-Id: I91870db7c34635e623b8ae1a1c102c55f746d180
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Fix drm-vc4 to built-in
Hoegeun Kwon [Tue, 20 Aug 2019 02:17:43 +0000 (11:17 +0900)]
ARM: tizen_bcm2711_defconfig: Fix drm-vc4 to built-in

Fix drm-vc4 configuration to built-in and dependent configuration to
built-in.

Change-Id: I36ee27e9c42a9baccba4b6e022a78acbbe5ba025
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agotools: Add build script for ARM kernel of rpi4
Hoegeun Kwon [Wed, 14 Aug 2019 09:58:44 +0000 (18:58 +0900)]
tools: Add build script for ARM kernel of rpi4

Add build script for ARM kernel of rpi4.

Change-Id: I96cf3d55235a0a67d610bf87aa9ddf4f5e972411
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Disable bcm2708_fb
Hoegeun Kwon [Wed, 14 Aug 2019 09:51:47 +0000 (18:51 +0900)]
ARM: tizen_bcm2711_defconfig: Disable bcm2708_fb

This driver is not used at tizen.

Change-Id: Ia524fc59c17ec11578a4366d173879fb40e0ab49
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Enable SMACK
Hoegeun Kwon [Wed, 14 Aug 2019 09:44:09 +0000 (18:44 +0900)]
ARM: tizen_bcm2711_defconfig: Enable SMACK

It needs to enable configs related with SMACK for booting tizen
platform.

Change-Id: Ia304c703afc55d13dd2a8a7d14ad8de2c208c22b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2711_defconfig: Remove unused module
Hoegeun Kwon [Wed, 14 Aug 2019 09:36:30 +0000 (18:36 +0900)]
ARM: tizen_bcm2711_defconfig: Remove unused module

This module is unused.

Change-Id: Ie3524be3337a590bfe53fa93830067318150ef56
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: defconfig: Add tizen_bcm2711_defconfig
Hoegeun Kwon [Wed, 14 Aug 2019 02:28:15 +0000 (11:28 +0900)]
ARM: defconfig: Add tizen_bcm2711_defconfig

tizen_bcm2711_defconfig is from bcm2711_defconfig.

Change-Id: I21d1d2c7e46e8ea4cfb34b5a4465a1c4eb62967b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi4: config: Enable serial
Hoegeun Kwon [Wed, 14 Aug 2019 09:58:24 +0000 (18:58 +0900)]
rpi4: config: Enable serial

Add configration to enable serial in config.txt file.

Change-Id: Ibe5971e1f068a8ef13ec7bb4e16aa9cfe1ab5feb
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi4: Add config.txt extracted from raspbian full binary
Hoegeun Kwon [Wed, 14 Aug 2019 09:58:03 +0000 (18:58 +0900)]
rpi4: Add config.txt extracted from raspbian full binary

The config.txt file is needed at boot time. And this file from binary
(https://downloads.raspberrypi.org/raspbian_full)

Change-Id: I841b11a4b400e5b44a5ca75f2f14819a35997e5e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi4: Add boot files from github
Hoegeun Kwon [Wed, 14 Aug 2019 09:55:53 +0000 (18:55 +0900)]
rpi4: Add boot files from github

We can get boot binaries that are necessary for booting from master
branch of https://github.com/raspberrypi/firmware.

The git base is the commit "66bafab0055 kernel: Bump to 4.19.65"

Change-Id: Iba608e75426efcc1e45240ca532ec91807b4ce16
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agorpi3: boot: Update the firmwares for kernel v4.19.65
Hoegeun Kwon [Mon, 5 Aug 2019 01:49:32 +0000 (10:49 +0900)]
rpi3: boot: Update the firmwares for kernel v4.19.65

Update the firmwares with the latest version from the vendor git repo.

The commit base is "66bafab0055 kernel: Bump to 4.19.65"

Change-Id: I3265ba8630f4bdb8a5cf4151c2662a6e12c51084
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agopackaging: Change the kernel version of the spec file
Hoegeun Kwon [Mon, 5 Aug 2019 01:49:25 +0000 (10:49 +0900)]
packaging: Change the kernel version of the spec file

This patch changes the kernel version of the spec file to 4.19.65.

Change-Id: I9b5c18180d19ba68c150342dc8772e3cf12856ec
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_LIMIT
Seung-Woo Kim [Wed, 28 Aug 2019 08:13:22 +0000 (17:13 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_LIMIT

From Tizen network security, NETFILTER_XT_MATCH_LIMIT is used for
ipv6. So enable NETFILTER_XT_MATCH_LIMIT config option.

Change-Id: Ife75ee0a766c64fb38a0e261f41a45678ab49bd4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_LIMIT
Seung-Woo Kim [Wed, 28 Aug 2019 08:11:56 +0000 (17:11 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_LIMIT

From Tizen network security, NETFILTER_XT_MATCH_LIMIT is used for
ipv6. So enable NETFILTER_XT_MATCH_LIMIT config option.

Change-Id: Ieeba2c67481e299fb3d91ee4378f8b2a2baffc7b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_OWNER config
Seung-Woo Kim [Wed, 31 Jul 2019 08:01:06 +0000 (17:01 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable NETFILTER_XT_MATCH_OWNER config

Enable the NETFILTER_XT_MATCH_OWNER config option to use xt_owner
supplementary groups.

Change-Id: I10a8277e2c42cae8cd02eb892e2dac5124681a71
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_OWNER config
Seung-Woo Kim [Wed, 31 Jul 2019 08:00:32 +0000 (17:00 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable NETFILTER_XT_MATCH_OWNER config

Enable the NETFILTER_XT_MATCH_OWNER config option to use xt_owner
supplementary groups.

Change-Id: I1baf6d78dc7c28d7235bb1cce9b6132b2fba7148
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: dts: bcm2710-rpi-3-b-plus: remove duplicated uart0_ctsrts_gpio30 node
Seung-Woo Kim [Thu, 25 Jul 2019 07:34:59 +0000 (16:34 +0900)]
ARM: dts: bcm2710-rpi-3-b-plus: remove duplicated uart0_ctsrts_gpio30 node

The commit ad3b011329c8 ("ARM: dts: bcm2710-rpi-3-b-plus: Add cts
pin setting for bluetooth uart") introduced duplicated dt node,
uart0_ctsrts_gpio30, because it is already defined in bcm283x.dtsi.
Remove the duplicated dt node.

Change-Id: Ic9a39b88662198f30b585f48f2f0e896b62ab8f3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoRevert "Bluetooth : Set the optimized operation speed for BCM Uart"
DoHyun Pyun [Thu, 25 Jul 2019 03:45:21 +0000 (12:45 +0900)]
Revert "Bluetooth : Set the optimized operation speed for BCM Uart"

This reverts commit 5cc55680fc9fe5bfd7590905c56e55dfa4aefbd5.

The proper operation speed of the RPI3 Uart is different for
each HW revision. So we will set the value in the user space's
firmware downloading tool after checking the HW version.

Change-Id: I95d80f3598015a27fbdc1375b3d6c089be67b8d0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoARM: dts: bcm2710-rpi-3-b-plus: Add cts pin setting for bluetooth uart
Seung-Woo Kim [Tue, 23 Jul 2019 09:31:05 +0000 (18:31 +0900)]
ARM: dts: bcm2710-rpi-3-b-plus: Add cts pin setting for bluetooth uart

There is missing cts pin for uart0 used by bluetooth. Add the cts
pin setting as like bcm2837-rpi-3-b-plus.

Change-Id: Iefdf80ec0d523b85f7a6e579e1544a67b9139212
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agopackaging: Add _wrong_version_format_terminate_build macro
Seung-Woo Kim [Tue, 23 Jul 2019 01:28:13 +0000 (10:28 +0900)]
packaging: Add _wrong_version_format_terminate_build macro

Newer version of rpmbuild rejects double dash, "-", in version.
To support the style, add _worng_version_format_terminate_build
as 0.

Change-Id: Ieed243fb4ad7059b83d5328f0c38b15e4c74dc0e
Reference: https://github.com/rpm-software-management/rpm/commit/5e94633660d0e2b97
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agopackaging: remove macro in package Name
Seung-Woo Kim [Mon, 22 Jul 2019 06:00:12 +0000 (15:00 +0900)]
packaging: remove macro in package Name

Some build system cannot recognize macro in package Name. Remove
the macro by replacing with same string.

Change-Id: I34c853be82476db3b32d49aadc77809a2f493436
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoBluetooth : Set the optimized operation speed for BCM Uart
DoHyun Pyun [Wed, 17 Jul 2019 07:08:46 +0000 (16:08 +0900)]
Bluetooth : Set the optimized operation speed for BCM Uart

When ACL data packet transfers via Uart on the RPI3 board,
the packet loss or overflow issue is occured. After adjusting
the operation speed value, we can reduce these problems.

Change-Id: Id072102e173e0338c4ae3cb7a1a541fbf7f8066e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoBluetooth: fix wrong indent in __hci_req_update_{scan/adv}_rsp_data()
Seung-Woo Kim [Wed, 17 Jul 2019 01:56:16 +0000 (10:56 +0900)]
Bluetooth: fix wrong indent in __hci_req_update_{scan/adv}_rsp_data()

The commit ac160e08af69 ("Bluetooth: Add Advertising Packet
Configuration") introduces wrong indent which causes build warning for
gcc-7. Fix the wrong indent.

Change-Id: Ia0bde8a8f9660ccf8fa312e3c3ec6c8cb76863f1
Fixes: ac160e08af69 ("Bluetooth: Add Advertising Packet Configuration")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: configs: tizen_bcmrpi3_defconfig: Enable BCM Uart protocol
Seung-Woo Kim [Fri, 12 Jul 2019 05:13:37 +0000 (14:13 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Enable BCM Uart protocol

RPI3 target uses the BCM BT chip of the Uart type. To avoid the
reassembly failed problem, we should enable BCM Uart protocol
and need to use it. It is enabled with CONFIG_SERIAL_DEV_BUS.

Change-Id: I960ddb6f6b3cb64261ebcdc750771943697948ae
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2709_defconfig: Enable BCM Uart protocol
DoHyun Pyun [Fri, 12 Jul 2019 04:45:10 +0000 (13:45 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Enable BCM Uart protocol

RPI3 target uses the BCM BT chip of the Uart type. To avoid the
reassembly failed problem, we should enable BCM Uart protocol
and need to use it. It is enabled with CONFIG_SERIAL_DEV_BUS.

Change-Id: I3cf97b032e1ce92898f2329fae3691d4d5870726
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
[sw0312.kim: adjust defconfig with savedefconfig and update commit-msg]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: dts: bcm27xx: Fix to of_graph from bridge node for touchscreen
Hoegeun Kwon [Thu, 4 Jul 2019 08:42:52 +0000 (17:42 +0900)]
ARM: dts: bcm27xx: Fix to of_graph from bridge node for touchscreen

Beginning with kernel v4.15, the i2c management of the touchscreen
panel driver has been changed to use of_graph from brdge node. So
change to of_graph and remove the unnecessary nodes.

Change-Id: I6ef786ed472ef2b350eb8683568d0ecb407182c0
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agodrm/vc4: Fix change to find_panel in the dsi_attach func
Hoegeun Kwon [Thu, 4 Jul 2019 08:40:58 +0000 (17:40 +0900)]
drm/vc4: Fix change to find_panel in the dsi_attach func

There is a problem that crtc does not bind while continuously
requesting EPROBE_DEFER, if dsi_bind does not successfully bind.
We need to change the part of find_panel in bind to dsi_attach
function.

Change-Id: Ifce518f047f496079eb8fbe112dabbd9bc7488bb
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agonetfilter: xt_owner: bail out with EINVAL in case of unsupported flags
Pablo Neira Ayuso [Fri, 7 Jun 2019 14:37:30 +0000 (16:37 +0200)]
netfilter: xt_owner: bail out with EINVAL in case of unsupported flags

Reject flags that are not supported with EINVAL.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[sw0312.kim: backport from mainline to apply supplementary groups on netfilter]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Id867ca48290a8e6627ad7d1b1f159669fc5c44a1

4 years agonetfilter: xt_owner: Add supplementary groups option
Lukasz Pawelczyk [Fri, 10 May 2019 11:46:22 +0000 (13:46 +0200)]
netfilter: xt_owner: Add supplementary groups option

The XT_OWNER_SUPPL_GROUPS flag causes GIDs specified with XT_OWNER_GID
to be also checked in the supplementary groups of a process.

f_cred->group_info cannot be modified during its lifetime and f_cred
holds a reference to it so it's safe to use.

Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@samsung.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[sw0312.kim: backport from mainline to apply supplementary groups on netfilter]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I7a21fc112cde77ae708b84d4b48c8aee339a7642

4 years agoARM: configs: tizen_bcm2709_defconfig: Remove unused modules
Hoegeun Kwon [Wed, 3 Jul 2019 05:16:46 +0000 (14:16 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Remove unused modules

Remove unused modules from the backlight.

Change-Id: I1fd5267690efd4a7bd5137b64dfadba5111dc2dd
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoBluetooth: Fix the potential crash issue
DoHyun Pyun [Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)]
Bluetooth: Fix the potential crash issue

There is a logic error in the event function. We should
check the callback function's parameter before calling.

Change-Id: I06a4a8c50317e5ec4ae8fe35e4b788105e090196
Fixes: bde01c80dd51 ("Bluetooth: Set le data length command and event")
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agotools: Add build script for ARM kernel of rpi3
Hoegeun Kwon [Wed, 3 Jul 2019 05:18:50 +0000 (14:18 +0900)]
tools: Add build script for ARM kernel of rpi3

Add build script for ARM kernel of rpi3.

Change-Id: I35a7dd2148350f775d3d96a478dac66190079d68
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoRevert "ARM: dts: bcm27xx: Fix to of_graph from bridge node for panel"
Hoegeun Kwon [Wed, 3 Jul 2019 10:22:11 +0000 (19:22 +0900)]
Revert "ARM: dts: bcm27xx: Fix to of_graph from bridge node for panel"

This reverts commit b2f6ad21a0bab8e59926666f717a4f6c53066a2d.

There is a problem with the hdmi and revert the patch.

Change-Id: Ia69d10c067ff69d192162b0598f43028c4a05f9b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>