platform/kernel/linux-rpi.git
2 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>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
 Conflicts:
arch/arm/boot/dts/bcm2711-rpi-4-b.dts

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 years agoscripts: mkbootimg_rpi4.sh: Create boot tarball for the lthor flashing
Junghoon Kim [Mon, 9 Dec 2019 07:22:54 +0000 (16:22 +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: I33413d641a18122612d23f3f110b7eed0997c2ea
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 years agoBluetooth: Set le data length command and event
Sudha Bheemanna [Fri, 16 Sep 2016 10:07:22 +0000 (15:37 +0530)]
Bluetooth: Set le data length command and event

Sets the data length for the le data packet with in the
advised limits. MGMT command and event are added to handle
the setting of data length.

Change-Id: Ia5c2167743cc9a29190e5631973e9d52d41caa1d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Read host suggested default le data length
Sudha Bheemanna [Fri, 16 Sep 2016 07:24:31 +0000 (12:54 +0530)]
Bluetooth: Read host suggested default le data length

This patch adds MGMT command and code for supporting reading
default le data length value set at the controller.

Change-Id: I2b81982dc26ed5af4a8f8a3d3913db5d64625260
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Write host suggested default le data length
Sudha Bheemanna [Fri, 16 Sep 2016 06:39:57 +0000 (12:09 +0530)]
Bluetooth: Write host suggested default le data length

This patch adds MGMT command and code for supporting write
default le data length command to the controller.

Change-Id: I3d2c8b622b7913a3ed542342e3ba8076c30dc279
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Read LE Max data length command
Sudha Bheemanna [Fri, 16 Sep 2016 05:08:30 +0000 (10:38 +0530)]
Bluetooth: Read LE Max data length command

This patch adds the MGMT command and code to support reading
the maximum data length supported command for LE.

Change-Id: I4dc0041f2070de2ccb6a4164c8823612863c941e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Fix IPSP connection callback event issue.
h.sandeep [Fri, 16 Sep 2016 09:15:24 +0000 (14:45 +0530)]
Bluetooth: Fix IPSP connection callback event issue.

This patch fixes the IPSP connection callback event issue
between kernel and bluez layer.

Change-Id: Ia4d625aa8a6dbc9da89a7d9f12308af9c90d0594
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: IPSP Connect/Disconnect apis
Sudha Bheemanna [Thu, 15 Sep 2016 07:23:03 +0000 (12:53 +0530)]
Bluetooth: IPSP Connect/Disconnect apis

This patch adds MGMT code to support IPSP connect and
disconnect apis and handle connection state changed event.

Change-Id: I1c41ec4f38cf9a108e443def3bc23c1b964e2985
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add support to enable/disable IPSP
Sudha Bheemanna [Thu, 15 Sep 2016 04:42:09 +0000 (10:12 +0530)]
Bluetooth: Add support to enable/disable IPSP

This patch supports MGMT commands and code to enable or disable
IPSP 6LowPan features.

Change-Id: Ia866ecfa517c7d7e4320f17d94d80dfeb9261e59
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Fix issue in the Set LE privacy function.
Sudha Bheemanna [Thu, 8 Sep 2016 10:51:01 +0000 (16:21 +0530)]
Bluetooth: Fix issue in the Set LE privacy function.

This patch fixes not to check the hdev power before setting
LE Privacy.

Change-Id: I344ea13b1d90527e3e7554ec616cdc640b85159c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Store the key if auth type is P192
Sudha Bheemanna [Mon, 12 Sep 2016 07:16:44 +0000 (12:46 +0530)]
Bluetooth: Store the key if auth type is P192

This patch allows to store the key after authentication
if auth type is "HCI_LK_AUTH_COMBINATION_P192"

Change-Id: Ie44dbe7dfec361edab61aceaf9b2ca4057b88fa5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Cancel the Sniff timer
Sudha Bheemanna [Thu, 8 Sep 2016 11:31:39 +0000 (17:01 +0530)]
Bluetooth: Cancel the Sniff timer

This patch adds code to cancel the sniff timer.

Change-Id: I756d3b08acf6462044d1fb204064fe12ce1238c1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Enable sniff mode for incoming connection
Sudha Bheemanna [Thu, 8 Sep 2016 11:10:50 +0000 (16:40 +0530)]
Bluetooth: Enable sniff mode for incoming connection

Add provision to set the link poilicy to enable sniff mode
for incoming connection.

Change-Id: Ifff9e9f0838f26a6c96d81f4cbaae43429aa231f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Modify fast connectable type.
Sudha Bheemanna [Thu, 8 Sep 2016 10:31:23 +0000 (16:01 +0530)]
Bluetooth: Modify fast connectable type.

This patch modifies the fast connectable function
to just set the type.

Change-Id: I0cce96f85d823f9798ae7f147c4e33ce7b18e0e3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Send Authentication Request command on pairing failure
Sudha Bheemanna [Thu, 8 Sep 2016 09:41:28 +0000 (15:11 +0530)]
Bluetooth: Send Authentication Request command on pairing failure

This patch allows to send HCI_OP_AUTH_REQUESTED command
to the remote device if pairing failure happens because
of pin or key missing error.

Change-Id: I9c28394dc06b22fd5fe9e58ac0b7d728c086bde4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Enable inquiry and page scan
Sudha Bheemanna [Thu, 8 Sep 2016 09:24:54 +0000 (14:54 +0530)]
Bluetooth: Enable inquiry and page scan

This patch enables the inquiry and page scan after ACL
disconnection with one device and if there are no other
devices connected.

Change-Id: Ifb28be7d23f237d35112b2e0739ed55169baacf7
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Change authentication requirement.
Sudha Bheemanna [Thu, 8 Sep 2016 07:34:11 +0000 (13:04 +0530)]
Bluetooth: Change authentication requirement.

This patch updates the authentication requirement to general
MITM if local and remote device IO capabilities are not
NO_INPUT_NO_OUTPUT.

Change-Id: Ie3955c3f8287418e74af20d40bdf30d0f1963e31
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Set link Supervision timeout for a connection
Sudha Bheemanna [Thu, 8 Sep 2016 06:54:43 +0000 (12:24 +0530)]
Bluetooth: Set link Supervision timeout for a connection

This patch allows to set the supervision timeout for a connection
if the device role is master.

Change-Id: I7897167ec07803f3059f2ab4d3314b0b7a951533
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Set filter policy for LE connection
Sudha Bheemanna [Thu, 8 Sep 2016 05:51:06 +0000 (11:21 +0530)]
Bluetooth: Set filter policy for LE connection

This patch sets the filter policy to a default value 0x01 during
LE auto connection if the destination address is not set. And it
updates the destination address once the LE connection complete
event is recieved during LE auto connection. And for it checks
valid destination address before cancelling LE connection when
connection timeout occurs.

Change-Id: I9877556c0b0ab4826f5f4934ead4d85b7837036d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[squash patches, LE connection policy, set dest address and check dest address before cancelling connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Get Advertising TX power
Sudha Bheemanna [Wed, 7 Sep 2016 09:52:08 +0000 (15:22 +0530)]
Bluetooth: Get Advertising TX power

This patch adds MGMT command to read the advertising TX power.

Change-Id: Ide9e5d332f034928d2eae2cbd68a025a0d42be1b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Set the link for SCO connection
Sudha Bheemanna [Thu, 8 Sep 2016 07:07:45 +0000 (12:37 +0530)]
Bluetooth: Set the link for SCO connection

This patch sets the link policy for SCO/eSCO connection.

Change-Id: I71caef5a3887f73a10329b6886c8cf52b80e8d37
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[add link policy setting in sco connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add MGMT command to set SCO settings
Sudha Bheemanna [Tue, 6 Sep 2016 11:08:36 +0000 (16:38 +0530)]
Bluetooth: Add MGMT command to set SCO settings

Added code to set sco settings.

Change-Id: I37aa572436241b06e00d1e9e75964aac747eeba5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[remove sco link policy part]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add multiple LE advertise state change event
Sudha Bheemanna [Thu, 8 Sep 2016 05:01:17 +0000 (10:31 +0530)]
Bluetooth: Add multiple LE advertise state change event

This patch adds code for providing multiple LE advertisement state
changed event to upper layer.

Change-Id: I58fb8044e74402376ec30b121081edce7c8709d1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci_vendor_mutli_adv_state_change_evt and remove hci event structure from mgmt]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add LE device found MGMT event
Sudha Bheemanna [Thu, 8 Sep 2016 04:40:03 +0000 (10:10 +0530)]
Bluetooth: Add LE device found MGMT event

This patch adds new MGMT event for LE device discovery and allows
the handling of all advertisement packets in platform.

Change-Id: I1927acb75eff0b60a5899898c6d7a000e1a108ef
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: fix vendor ext rssi link alert event
Seung-Woo Kim [Wed, 28 Sep 2016 16:59:05 +0000 (01:59 +0900)]
Bluetooth: fix vendor ext rssi link alert event

This patch fixes style for rssi link alert event from vendor
specific group ext.

Change-Id: I0e7003e417c5f5a590cce8264caccad515dd3c10
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add H/W TX timeout error MGMT event
Sudha Bheemanna [Wed, 7 Sep 2016 11:17:58 +0000 (16:47 +0530)]
Bluetooth: Add H/W TX timeout error MGMT event

This patch sends the H/W TX timeout error MGMT event if HCI command
timeout occurs after sending HCI commands.

Change-Id: I5eb593f2fe4d31c404dd94ef582790e47d03b10a
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add hardware error MGMT event
Sudha Bheemanna [Wed, 7 Sep 2016 10:12:22 +0000 (15:42 +0530)]
Bluetooth: Add hardware error MGMT event

Add code to handle hardware error MGMT event.

Change-Id: I5875ea2aeae7aba95c1f8e15b456704dc6bcdee4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add LE vendor specific event handler
Sudha Bheemanna [Thu, 8 Sep 2016 05:26:15 +0000 (10:56 +0530)]
Bluetooth: Add LE vendor specific event handler

This patch adds the vendor specific LE meta event handler.
It handles the vendor specific handles like,
LE_MULTI_ADV_STATE_CHANGE_SUB_EVENT, LE_RSSI_LINK_ALERT.

Change-Id: I1f344a31e36f9c7442fe0bd8b598e67d9f5fb9bf
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci vendor speicif group event function]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add set LE scan parameter feature
Sudha Bheemanna [Thu, 25 Aug 2016 07:16:07 +0000 (12:46 +0530)]
Bluetooth: Add set LE scan parameter feature

Added new MGMT command to set LE scan parameters

Change-Id: I5ea660f97e93dfcc72273971ad0250e7f582f718
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Set Manufacturer data feature
Sudha Bheemanna [Thu, 25 Aug 2016 06:43:09 +0000 (12:13 +0530)]
Bluetooth: Set Manufacturer data feature

Added new MGMT command to set the manufacturer data
in the BR/EDR packet.

Change-Id: Ie08062f4cad0c676deab94fd95fdc1a8c5602135
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add LE connection parameter update procedure
Sudha Bheemanna [Thu, 25 Aug 2016 06:28:22 +0000 (11:58 +0530)]
Bluetooth: Add LE connection parameter update procedure

Added new MGMT command to update LE connection parameters

Change-Id: I6ae16513437cd42d40e75958aa8415baa1cbedbb
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add stop LE auto connection feature
Sudha Bheemanna [Thu, 25 Aug 2016 06:11:34 +0000 (11:41 +0530)]
Bluetooth: Add stop LE auto connection feature

Added new MGMT command to disable LE auto connection.

Change-Id: I1f5f61b83227501ad54019008b405fd47fd722a3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add BT LE discovery feature
Sudha Bheemanna [Thu, 25 Aug 2016 05:53:02 +0000 (11:23 +0530)]
Bluetooth: Add BT LE discovery feature

This patch adds new MGMT commands to start LE discovery separately
and handles LE discovery state.

Change-Id: I85958b8c2b5c7e28f57c69e86037ab1e61a75db0
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Update device name on remote_name_event
Sudha Bheemanna [Thu, 25 Aug 2016 04:47:19 +0000 (10:17 +0530)]
Bluetooth: Update device name on remote_name_event

This patch updates the device name on receiving the HCI event
remote_name_event during connection establishment.

Change-Id: I9a217e6760b1803a70af201a3f6903e722079749
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add RSSI Monitor feature
Sudha Bheemanna [Wed, 24 Aug 2016 11:51:15 +0000 (17:21 +0530)]
Bluetooth: Add RSSI Monitor feature

Added feature support for monitoring the RSSI value.
Commands and events for enabling, disabling and setting
rssi threshold values are added.

Change-Id: I850643a9228afc017e54217a11826b9c6a68a96b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Functions to modify WhiteList
Sudha Bheemanna [Wed, 24 Aug 2016 09:32:56 +0000 (15:02 +0530)]
Bluetooth: Functions to modify WhiteList

This patch provides MGMT commands to manage the white
list which includes, adding, removing and clearing the
devices from white list.

Change-Id: If71107129d3a090ae81448a8122b76accd4f5522
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add Advertising Packet Configuration
Sudha Bheemanna [Wed, 24 Aug 2016 06:47:16 +0000 (12:17 +0530)]
Bluetooth: Add Advertising Packet Configuration

This patch provides new MGMT commands to configure
the advertising data and scan response data packets for
LE peripheral devices.

Change-Id: I914d13795f4fb58e5f2e1cadb55086f4bcbc82df
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
[jhoon20.kim: adjust some codes to apply it in 5.4 kernel]
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2 years agoBluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.
h.sandeep [Thu, 1 Sep 2016 06:30:57 +0000 (12:00 +0530)]
Bluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.

Added the basic skeleton code for tizen_mgmt_handlers and
mgmt_tizen.h header file.

Change-Id: I8f3100aa79e6673840ba561f0a9c50238ca0880b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoBluetooth: Add "TIZEN_BT" flag
Sudha Bheemanna [Tue, 23 Aug 2016 11:37:10 +0000 (17:07 +0530)]
Bluetooth: Add "TIZEN_BT" flag

Added the tizen specific flag for use in adding tizen patches.

Change-Id: Ia391644fddbe600c8d845e0bf0808f587aa73e0c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
2 years agoASoC: ac108: Fixes kernel bug message when starting to capture
Jaechul Lee [Thu, 9 May 2019 00:26:53 +0000 (09:26 +0900)]
ASoC: ac108: Fixes kernel bug message when starting to capture

The code in the trigger function is moved to prepare function that is
called right before trigger function. clock operation would be ran by
parepare function without disabling preemption.

BUG: scheduling while atomic: arecord/1244/0x00000004
Preemption disabled at:
[<ffffff80087c4a08>] snd_pcm_stream_lock+0x30/0x68

Call trace:
[<ffffff800808b250>] dump_backtrace+0x0/0x270
[<ffffff800808b4e4>] show_stack+0x24/0x30
[<ffffff8008ae87c4>] dump_stack+0xac/0xe8
[<ffffff80080cc814>] __schedule_bug+0x7c/0xd8
[<ffffff8008afb558>] __schedule+0x718/0x880
[<ffffff8008afb6fc>] schedule+0x3c/0xa0
[<ffffff8008aff028>] schedule_timeout+0x190/0x408
[<ffffff8008afc4b8>] wait_for_common+0xa8/0x150
[<ffffff8008afc5c4>] wait_for_completion_timeout+0x2c/0x38
[<ffffff80086e5a0c>] bcm2835_i2c_xfer+0x16c/0x400
[<ffffff80086deedc>] __i2c_transfer+0x12c/0x570
[<ffffff80086df38c>] i2c_transfer+0x6c/0xc0
[<ffffff80086df430>] i2c_master_send+0x50/0x68
[<ffffff8008584454>] regmap_i2c_write+0x34/0x70
[<ffffff800857fe34>] _regmap_raw_write+0x7cc/0x7e0
[<ffffff800857feb8>] _regmap_bus_raw_write+0x70/0x88
[<ffffff800857ea48>] _regmap_write+0x70/0x160
[<ffffff800857ec10>] _regmap_update_bits+0xd8/0xf8
[<ffffff80085800b0>] regmap_update_bits_base+0x68/0x98
[<ffffff8008805838>] ac10x_update_bits+0x48/0x88
[<ffffff8008805c00>] ac108_trigger+0x118/0x130

Change-Id: I73ef21247e1dfbd0acd3272b6a73311377eb000d
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
2 years agomisc: tizen-inform-reboot: Use ksys_open() and ksys_close() wrappers
Junghoon Kim [Mon, 29 Apr 2019 22:43:58 +0000 (07:43 +0900)]
misc: tizen-inform-reboot: Use ksys_open() and ksys_close() wrappers

Using ksys_open() and ksys_close() wrappers allow us to avoid the
in-kernel calls to the sys_open() and sys_close() syscalls.

Change-Id: Iea33654daef917f88cede31675c66e8b5becad77
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2 years agoASoC: ac108: Adds default 4channels mic volume
Jaechul Lee [Thu, 18 Apr 2019 06:02:37 +0000 (15:02 +0900)]
ASoC: ac108: Adds default 4channels mic volume

It needs to be set default volume to max value.

Change-Id: Icdcf255e3a57bb5dffb225116723a3d9a4cf11fe
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
2 years agoARM64: dts: bcm2710-rpi-3-b: Adds respeaker 4mic nodes
Jaechul Lee [Tue, 2 Apr 2019 01:30:46 +0000 (10:30 +0900)]
ARM64: dts: bcm2710-rpi-3-b: Adds respeaker 4mic nodes

adds respeaker 4mic nodes.

Change-Id: I8145a93dfebe716be61cb4cad30b7174a1e4bea1
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
 Conflicts:
arch/arm/boot/dts/bcm2710-rpi-3-b.dts

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
2 years agoASoC: ac108: Adds ac108 codec and machine code
Jaechul Lee [Mon, 1 Apr 2019 02:08:55 +0000 (11:08 +0900)]
ASoC: ac108: Adds ac108 codec and machine code

adds respeaker machine code and ac101/ac108 codec code.

ReSpeaker driver
https://github.com/respeaker/seeed-voicecard

Change-Id: Idc034aafd39157ccfe19b2dae6c80ba6afd8e60c
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
2 years agodrm/vc4: Fix with pm_runtime synchronization on DSI
Hoegeun Kwon [Fri, 22 Mar 2019 07:00:27 +0000 (16:00 +0900)]
drm/vc4: Fix with pm_runtime synchronization on DSI

There is a problem when often dpms goes from off to on. pm idle is not
in sync and the problem occurs. Modify pm_runtime_put from
asynchronous to synchronous.

Change-Id: I7b39e01d452623190d9ead28477e4b0e6122d71b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
2 years agoLOCAL / mm, page_alloc: Add print page allocation failure reason
Hoegeun Kwon [Thu, 7 Mar 2019 02:18:21 +0000 (11:18 +0900)]
LOCAL / mm, page_alloc: Add print page allocation failure reason

There is an unclear problem when page alloc failed. So clearly print
the cause of the failure.

Change-Id: Ie59e1d4e34deabb8733268edfb433754f43766a8
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
2 years agosound: bcm: allo: Fix duplicate-decl-specifier build warnings
Seung-Woo Kim [Thu, 7 Mar 2019 02:02:10 +0000 (11:02 +0900)]
sound: bcm: allo: Fix duplicate-decl-specifier build warnings

SOC_ENUM_### macros has const specifier, but there are declaration
with const again. Fix the duplicate-decl-specifier build warnings.

Change-Id: If2fe42936cb4766d73067433dd6d1029dfe4ff61
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agomisc: bcm2835_smi: use proper enum in dma_map_single
Seung-Woo Kim [Wed, 6 Mar 2019 08:53:48 +0000 (17:53 +0900)]
misc: bcm2835_smi: use proper enum in dma_map_single

With llvm/clang, there are implicit conversion build warnings.
Use proper enum in dma_map_single/dma_unmap_single.

Change-Id: Id241d8f2d5fec16946bb34184af7b6053b6f9ca6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agodrm/vc4: Fix reduce interrupt timeout 'workaround'
Hoegeun Kwon [Thu, 14 Feb 2019 02:22:19 +0000 (11:22 +0900)]
drm/vc4: Fix reduce interrupt timeout 'workaround'

Since flag 'ignore_lcd=0' is set in config.txt, dsi interrupt is
disabled so that interrupt does not occur even when dsi_write is
operated. The waiting time causes a boot delay. So it reduces the
timeout to 100msecs until it is resolved. As a result, the boot delay
has been reduced from 22,000 to 2,200 msecs.

Change-Id: I2c27397102f38128ffd3599405d57198fd0f16f6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
2 years agodrm/panel: Add error handling for write of dsi
Hoegeun Kwon [Mon, 18 Feb 2019 05:40:49 +0000 (14:40 +0900)]
drm/panel: Add error handling for write of dsi

There is a problem that dsi write timeout even when dsi interrupt is
activated by adding 'ignore_lcd=1' flag to config.txt. Add error
handling to write once more when timeout occurs.

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