Jaehoon Chung [Thu, 6 Jul 2023 06:24:59 +0000 (15:24 +0900)]
sound: soc: ac108: Remove unused function and fix fallthrough warning
Fix the unused-function and implicit-fallthrough warning.
Change-Id: I84b7203c3ca864ecb89c562058037dd0630e5c25
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Hoegeun Kwon [Tue, 4 Jul 2023 08:34:52 +0000 (17:34 +0900)]
Bluetooth: Fix build warning
Occur build warning for unused variable, Fix warning
net/bluetooth/hci_event.c: In function ‘process_adv_report’:
net/bluetooth/hci_event.c:6470:7: warning: unused variable ‘match’ [-Wunused-variable]
bool match;
^~~~~
net/bluetooth/hci_event.c:6469:26: warning: unused variable ‘d’ [-Wunused-variable]
struct discovery_state *d = &hdev->discovery;
Change-Id: I5c6778aea827e6d138009541991409834ea9cc07
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Jaehoon Chung [Mon, 3 Jul 2023 05:32:15 +0000 (14:32 +0900)]
packaging: Update build required openssl version from 1.1 to 3
Openssl 1.1.1 is supported until September 2023, so Tizen 8.0 upgrades
Openssl 3.0.x. To meet this, change build required openssl version. Also
required with pkgconfig.
Change-Id: Ia66aa62a7ddb6517b83d89d4b87fe6cebb452e46
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Khem Raj [Mon, 23 Jan 2023 21:04:10 +0000 (13:04 -0800)]
perf cpumap: Make counter as unsigned ints
These are loop counters which is inherently unsigned. Therefore make
them unsigned. Moreover it also fixes alloc-size-larger-than
error with gcc-13, where malloc can be called with (-1) due to tmp_len
being an int type.
Fixes
| cpumap.c:366:20: error: argument 1 range [
18446744065119617024,
18446744073709551612] exceeds maximum object size
9223372036854775807 [-Werror=alloc-size-larger-than=]
| 366 | tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu));
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Upstream-Status: Submitted [https://lore.kernel.org/linux-perf-users/
20230123211310.127532-1-raj.khem@gmail.com/T/#u]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Change-Id: I7ecc661339efd49179dd4c1823f4969cee0b0515
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 26 Jun 2023 03:48:44 +0000 (12:48 +0900)]
pwm: pwm-starfive-ptc: Fix imcompatible poiter type
The get_state of pwm_ops is 'int' type, but starfive_pwm_ptc_get_state
function is 'void' type.
It needs to fix correct pointer type.
Change-Id: I8560bb1c0d9571fc0d4e66aa593d257e474f033f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Keith Zhao [Wed, 21 Jun 2023 08:23:10 +0000 (17:23 +0900)]
drm/verisilicon: Add Innosilicon HDMI driver
Add support Innosilicon HDMI driver of starfive JH7110. This driver is
from [1]. We modified to select and use stable inno_hdmi driver or
mainline posted hdmi driver.
[1] https://github.com/starfive-tech/linux
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Change-Id: I5c72e2d9fe7cc9f231926f624f459547d73e0f1e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 21 Jun 2023 05:59:01 +0000 (14:59 +0900)]
drm/verisilicon: hdmi: Add feature to check cea mode
There is a problem with output for modes that are not supported, and
due to this, the hdmi sound is not played. Add feature to check cea
mode.
Change-Id: I55e3daa4e6e98f6df26bf91de84c099077e7f339
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Tue, 20 Jun 2023 10:10:44 +0000 (19:10 +0900)]
ASoC: SOC: Fix fmt with dai naming
Kernel v6.y does not support the legacy_dai_naming format, so there is
a problem that i2s does not work due to dai_name. Fix that issue.
Change-Id: I9aae5c683b4b5d803c12959ca2994e8cc3e6c577
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Tue, 20 Jun 2023 07:54:22 +0000 (16:54 +0900)]
RISCV: dts: starfive: Add hdmi audio snd card
Add HDMI audio snd-card, The snd-card1 is use i2s and hdmi.
Change-Id: I64102445ffad0a072d5d8f62a886bbc9945fd1f1
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 21 Jun 2023 06:47:35 +0000 (15:47 +0900)]
drm/verisilicon: hdmi: Add audio_init feature
Add hdmi_audio_init to use audio in hdmi driver.
Change-Id: If878ee4ee4a1665d91a34ef4f5c5f6d2ab60840e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Xingyu Wu [Mon, 19 Jun 2023 08:57:37 +0000 (17:57 +0900)]
drm/verisilicon: hdmi: Add support audio hdmi driver
Add support hdmi audio driver of starfive JH7110. This driver is from
[1], and the imported patch list[2]. We modified to use struct
starfive_hmdi instead of struct inno_hdmi also added to use
legacy_dai_naming.
[1] https://github.com/starfive-tech/linux
[2] patch list from v5.15.y
5bec3220a8be drm:verisilicon:hdmi-audio:Adjust when to configure registers
5a302a7a25fe gpu:drm:Add audio function in inno hdmi
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Change-Id: Iae0ec57f2cf588c7ca177f7e284968ca9e68c674
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 14 Jun 2023 08:06:14 +0000 (17:06 +0900)]
drm/verisilicon: hdmi: Fix to timming for hdmi_setup
When changing the mode, a problem occurs because we try to write a
value to reg in a state that is not resumed after suspend. Move the
timing of writing values to reg to enable.
Change-Id: I49db485e947c164129b1412cdff2a16d6306895e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Tue, 13 Jun 2023 10:40:25 +0000 (19:40 +0900)]
RISCV: config: Enable sifive flush config
Enable SIFIVE_CCACHE and SIFIVE_FLUSH configuration.
Change-Id: I008c302e89896a0ea14f065365526e4b490b5af2
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Tue, 13 Jun 2023 10:39:30 +0000 (19:39 +0900)]
drm/verisilicon: Add starfive_flush_dcache
There is a problem that the garbage cache value comes out when the
screen is displayed. Flush the cache by adding the flush feature.
The feature referred to v5.15 kernel.
Change-Id: I183eb0c1640c17b5ac27dcb1ce82555a5c651571
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Thu, 8 Jun 2023 11:26:29 +0000 (20:26 +0900)]
soc: sifive: ccache: Add flush feature
Add the ccache flush feature applied to kernel v5.15.
This feature flushes the garbage cache when output the screen.
Change-Id: I855fd37416f028f6d7c9b9e1459462e4da7e1740
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Tue, 13 Jun 2023 07:41:20 +0000 (16:41 +0900)]
RISCV: config: Enable starfive drm and hdmi config
Enable DRM_VERISILICON and STARFIVE_HDMI configuration.
Change-Id: If26c6c98b84d3e9cddbc6b696e8332882b9f3b31
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Tue, 13 Jun 2023 07:38:32 +0000 (16:38 +0900)]
drm/verisilicon: Fix to build error for drm hdmi
Modify for the 6.1 kernel interface.
Change-Id: I24b652c2c1ab102649586c3cdb6eca63256dc3ce
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Keith Zhao [Tue, 13 Jun 2023 06:19:56 +0000 (15:19 +0900)]
drm/verisilicon: Add starfive hdmi driver
Add HDMI dirver for StarFive SoC JH7110.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I328dcf0c0adf7bc2817675278034d6a2520a536b
Keith Zhao [Tue, 13 Jun 2023 04:54:30 +0000 (13:54 +0900)]
drm/verisilicon: Add verisilicon dc controller driver
Add DC8200 display controller driver for StarFive JH7110 SoC.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I6efc987c092249e1eff2cd5a12cd32c4ed83056c
Keith Zhao [Tue, 13 Jun 2023 04:45:44 +0000 (13:45 +0900)]
drm/verisilicon: Add drm plane funcs
Implement plane functions for the DRM driver.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I0b0680590b3f301afc316565c7321015d2177745
Keith Zhao [Tue, 13 Jun 2023 04:44:19 +0000 (13:44 +0900)]
idrm/verisilicon: Add drm crtc funcs
Add crtc driver which implements crtc related operation functions.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I63d0234a3ac985f7f7c74c0dc3b679add2c12759
Keith Zhao [Tue, 13 Jun 2023 04:42:33 +0000 (13:42 +0900)]
drm/verisilicon: Add mode config funcs
Add mode setting functions for JH7110 SoC.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I42ab5eaf511a339a9e13e47e395ea47eb1f3c0fd
Keith Zhao [Tue, 13 Jun 2023 04:40:16 +0000 (13:40 +0900)]
drm/verisilicon: Add gem driver for JH7110 SoC
This patch implements gem related APIs for JH7100 SoC.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: Ic2a60aacc4fc1d7aa83cb663fe689053e5dd0040
Keith Zhao [Tue, 13 Jun 2023 04:33:50 +0000 (13:33 +0900)]
drm/verisilicon: Add basic drm driver
Add a basic platform driver of the DRM driver for JH7110 SoC.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I58d5b12467e87355175f24ed02ff5c675df7e7d8
Keith Zhao [Tue, 13 Jun 2023 04:28:34 +0000 (13:28 +0900)]
riscv: dts: starfive: jh7110: add dc&hdmi controller node
Add the dc controller and hdmi node for the Starfive JH7110 SoC.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I66e234aaa823baee37f211b36b661716ff8af483
Keith Zhao [Tue, 13 Jun 2023 04:21:44 +0000 (13:21 +0900)]
dt-bindings: display: Add yamls for JH7110 display subsystem
Add bindings for JH7110 display subsystem which
has a display controller verisilicon dc8200
and an HDMI interface.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: Icb7b9d267d6e8545556acf92a1adf84d3ad2e248
Seung-Woo Kim [Fri, 16 Jun 2023 01:54:18 +0000 (10:54 +0900)]
packaging: Setup with source0 name
In packaging spec, source0 name is different from package name,
so setup also needs to be with source0 name explictly. Do setup
with source0 name.
Change-Id: I3400c7aa131ec2561745386f903de2e47fd9aab7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Anuj Jain [Fri, 6 Jan 2023 09:59:24 +0000 (15:29 +0530)]
Bluetooth: Add LE connection parameter update
Add support for BT_LE_CONN_PARAM in l2cap socket.
Change-Id: I2ed693da26ba2d3464b9997bf1880c6c136055cd
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Hoegeun Kwon [Fri, 14 Oct 2022 07:02:19 +0000 (16:02 +0900)]
Bluetooth : fix build error
Update device name on remote_name_event, Fix interface define for
build error.
Change-Id: I59df4a7e30f9a83a0efdce516b2a325cb3b0983b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Jaehoon Chung [Mon, 12 Jun 2023 03:11:17 +0000 (12:11 +0900)]
RISCV: configs: Enable configurations relevant to network
Enable configurations relevant to network stack.
It's referred to tizen-kernel-config.
Change-Id: Ice536221113ab67c45cb01be14dc38f0e76345c4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Hoegeun Kwon [Fri, 9 Jun 2023 07:25:00 +0000 (16:25 +0900)]
RISCV: config: Enable INPUT_EDEV config
Enable INPUT_EDEV configuration.
Change-Id: I4dee6d72f2fac9aa3c4fc229df9a207e24a9fff4
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Fri, 9 Jun 2023 07:49:03 +0000 (16:49 +0900)]
RISCV: config: Disable APPARMOR and SELINUX for security
Disable SECURITY_SELINUX SECURITY_APPARMOR configuration. and chhange
LSM order.
Change-Id: I19dfa9811c4427bef6ee4336c0a8fd956c817b4e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Jaehoon Chung [Fri, 9 Jun 2023 03:52:28 +0000 (12:52 +0900)]
RISCV: configs: tien_visionfive2: Enable RTL8XXXU config as module
Enable RTL8XXXU configuration as module.
And Other realtek drivers is enabled to use if someone wants to use
them.
Change-Id: I9ff25360d2d17bc315db7e09f9958e170ab1691d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 8 Jun 2023 10:51:39 +0000 (19:51 +0900)]
packaging: Remove variant from Source file name
Remove varianet from Source file name.
During build, it's faield with below log.
(It's same on build system.)
[ 9s] error: File /home/abuild/rpmbuild/SOURCES/riscv-visionfive2-linux-kernel-6.1.21.tar.xz: No such file or directory
Change-Id: I635d0e34bb73e02c910cd99c1db1a4af8b893fbc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 7 Jun 2023 08:58:54 +0000 (17:58 +0900)]
RISCV: config: Enable INPUT_UINPUT config
Enable INPUT_UINPUT configuration.
Change-Id: Ie72a5072abd1202f4fb0611a8ebbbe2eda847699
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 7 Jun 2023 05:13:01 +0000 (14:13 +0900)]
RISCV: dts: starfive: use the aliases about mmc
The index of mmc is assigned according to probing sequence.
It means that index can be changed every booting time.
To prevent the wrong index, use the aliases as fixed index.
- eMMC : mmc0
- SD : mmc1
Change-Id: Ie0abe1b01be55decf8be7cb9ae553a421240e422
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Łukasz Stelmach [Tue, 23 May 2023 10:11:52 +0000 (12:11 +0200)]
Build packages for different platforms
Build separate packages for QEMU and VisionFive2 platforms
Change-Id: I0a44f7065f284bc40cde907238a2591836534251
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Jaehoon Chung [Thu, 1 Jun 2023 06:49:48 +0000 (15:49 +0900)]
RISCV: config: Enable configurations relevant to F2FS
Enable configurations relevant to F2FS.
Tizen is using F2FS filesystem on Headed image.
Change-Id: I5dcc1976815740b8d5c93a5f2036a08258327b68
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Hoegeun Kwon [Tue, 23 May 2023 10:22:24 +0000 (19:22 +0900)]
RISCV: configs: Enable rtc defconfig
Enable RTC defconfig for starfive.
Change-Id: I0dea1a230c1c147caaf26fe7215a951c5d0b7c53
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
SaminGuo [Wed, 17 Nov 2021 07:55:45 +0000 (15:55 +0800)]
rtc: starfive: Add support jh7100 rtc driver
Add support rtc driver and device tree of starfive JH7110. This
driver is from [1], and the imported patch list[2]. We modified
compatible and clock in the device-tree to fix kernel v6.1.
[1] https://github.com/starfive-tech/linux
[2] patch list from v5.15.y
fc56ea25c7ca ziv.xu rtc:starfive: add pm ops for rtc
cc1a7edcd475 ziv.xu rtc-starfive.c:add system pm for rtc
d369d91bd926 Hal Feng rtc: starfive: Standardize property "compatible"
3d1b30793d55 Hal Feng rtc: starfive: Fix time may be not updated when date updated
d85e29ea7625 Hal Feng rtc: starfive: Fix command 'hwclock' can't work in rootfs
f344adc8fb81 Hal Feng rtc: starfive: Change reset api
8cf53d91eb5f Hal Feng rtc: starfive: Improve rtc driver
66422888adb5 Hal Feng rtc: starfive: Improve coding style
99ae7e93b897 Hal Feng rtc: starfive: Use stardand clock and reset apis for initialization
8b570194e872 samin rtc: starfive: Get the interrupt status using Completion.
1fafc8d35f88 SaminGuo rtc: starfive-rtc: Add RTC support for StarFive JH7110.
Signed-off-by: SaminGuo <samin.guo@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
Change-Id: I4475e4314237bb8be670aefa40039c166107cb15
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Thu, 11 May 2023 11:06:53 +0000 (20:06 +0900)]
RISCV: configs: Enable snd audio defconfig
Enable SND audio defconfig for starfive.
Change-Id: Ia190e39c22a530ccc0adfbc4b40cade25e046319
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
curry.zhang [Thu, 16 Dec 2021 06:14:04 +0000 (22:14 -0800)]
ASoC: SOC: Add support jh7110 audio driver
Add support audio driver and device tree of starfive JH7110. This
driver is from [1], and the imported patch list[2]. We modified
compatible and clock in the device-tree to fix kernel v6.1. Also fix
the build error for incompatible pointer types and others. And add
set 'legacy_dai_naming' value into starfive_i2s driver, for set to use
legacy dai naming when looking up DAI.
[1] https://github.com/starfive-tech/linux
[2] patch list from v5.15.y
258954bfe609 Xingyu Wu sound: starfive: I2S: Fixed error after hibernation when building module
09407b6be383 Xingyu Wu sound: starfive: pwmdac: Support module building
00a1eaebe170 Xingyu Wu sound: starfive: pwmdac: Fixed playback failed after hibernation
1f6659ddf77c Xingyu Wu sound:starfive:Move playback and capture driver as slave to starfive I2S
c1ec8ddaa121 Xingyu Wu sound:starfive:pwmdac:Add runtime pm operation
78f5ba02befa Xingyu Wu sound:starfive:Add hibernation in I2S
40cbb24940b3 Walker Chen CR_2307_PWMDAC_515: fix playback repeatly issue
099a9cd86939 Xingyu Wu sound:starfive:Remove i2srx-master and merge into starfive_i2s
c813586d1913 Xingyu Wu sound:starfive:Add I2S driver
abd5f99857c5 Walker Chen CR_2071_audio_compatible_standard_515
14d6015d73ed Xingyu Wu sound:starfive:pwmdac:Modify compatible name
8fba0f28d470 Walker Chen CR_1827_cannot_record_play_simultaneously
ae6c3943ef0c minda.chen pwmdac:sound: support 11025hz play mode.
279155cf4805 curry.zhang [Audio: PWMDAC] enable pwmdac driver on 7110 evb board
7868835794ac curry.zhang [Audio: PWMDAC] Adjust code style
1e872b48a7a7 curry.zhang [Audio: PWMDAC] Add standard system clock tree api
e0f5d0916020 “jenny.zhang” [alsa] Add jh7110 audio module driver code
Signed-off-by: jenny.zhang <jenny.zhang@starfivetech.com>
Signed-off-by: curry.zhang <curry.zhang@starfivetech.com>
Signed-off-by: minda.chen <minda.chen@starfivetech.com>
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: PeterYang <linsheng.yang@seeed.cc>
Signed-off-by: Baozhu Zuo <zuobaozhu@gmail.com>
Signed-off-by: Rajeev Kumar <rajeevkumar.linux@gmail.com>
Signed-off-by: michael.yan <michael.yan@starfivetech.com>
Change-Id: If1b6c957bbe5ea9f3464e591138da4cf57c6fd84
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Fri, 12 May 2023 05:23:08 +0000 (14:23 +0900)]
RISCV: configs: Enable spi defconfig
Enable SPI starfive driver.
Change-Id: I395a723ca0e5f35e8666f59c5ab9d5067e549c46
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
xingyu.wu [Thu, 30 Jun 2022 06:45:38 +0000 (14:45 +0800)]
spi: Add support pl022 spi driver
Add support pl022 spi driver and device tree of starfive JH7110. This
driver is from [1], and the imported patch list[2]. We modified
compatible and clock in the device-tree to fix kernel v6.1.
[1] https://github.com/starfive-tech/linux
[2] patch list from v5.15.y
d88bd4b6aa1d ziv.xu spi-pl022-starfive:Enable spi to be compiled into modules
871266269a62 ziv.xu spi-pl022-starfive:fix the problem of spi overlay reload
9e71e5c05fee ziv.xu spi-pl022-starfive.c: prompt warning when frequency does not surpport
a1c1236322ba ziv.xu spi-pl022-starfive.c: make spi work without dma
9962a36e5788 Ziv.Xu add device pm for spi
9bd42158c0bd Xingyu Wu spi:starfive:Modify compatible name
c9c015abab34 xingyu.wu spi:pl022-starfive:Turn off dma channel search under overlay
c4eef3b4b80e xingyu.wu spi:pl022-starfive:Avoid power device error when CONFIG_PM enable
e10123abbc5d xingyu.wu spi:Modify pl022 driver format
a86c836215ce xingyu.wu spi-pl022:starfive:Add platform bus register to adapt overlay
17c6be971d69 xingyu.wu spi-pl022:starfive:Add spi driver for StarFive SoC platform
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
Change-Id: I631a219d56ea26e6609e33daa6c470b512da2698
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Mon, 8 May 2023 11:25:30 +0000 (20:25 +0900)]
RISCV: configs: Enable regulator AXP20X
Enable AXP20X regulator used by cpufreq.
Change-Id: I79160b30440732277bd25844ace40e4a8d54e734
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Shengyu Qu [Mon, 8 May 2023 11:14:47 +0000 (20:14 +0900)]
regulator: axp20x: Add AXP15060 support
The AXP15060 is a typical I2C-controlled PMIC, seen on multiple boards
with different default register value. Current driver is tested on
Starfive Visionfive 2.
The RTCLDO is fixed, and cannot even be turned on or off. On top of
that, its voltage is customisable (either 1.8V or 3.3V). We pretend it's
a fixed 1.8V regulator since other AXP driver also do like this. Also,
BSP code ignores this regulator and it's not used according to VF2
schematic.
Describe the AXP15060's voltage settings and switch registers, how the
voltages are encoded, and connect this to the MFD device via its
regulator ID.
[1] https://lore.kernel.org/linux-sunxi/
20230401001850.4988-1-andre.przywara@arm.com/
Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
[Backported patch : https://lore.kernel.org/lkml/TY3P286MB2611DA5F918F90491A3AA02298609@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM/#Z31drivers:regulator:axp20x-regulator.c]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I24a8cc725d57bb07273df316e14d2eb05943d162
Shengyu Qu [Mon, 8 May 2023 08:30:25 +0000 (17:30 +0900)]
mfd: axp20x: Add support for AXP15060 PMIC
The AXP15060 is a PMIC chip produced by X-Powers, and could be connected
via an I2C bus.
Describe the regmap and the MFD bits, along with the registers exposed
via I2C. Eventually advertise the device using a new compatible string
and add support for power off the system.
The driver would disable PEK function if IRQ is not configured in device
tree, since some boards (For example, Starfive Visionfive 2) didn't
connect IRQ line of PMIC to SOC.
GPIO function isn't enabled in this commit, since its configuration
operation is different from any existing AXP PMICs and needs
logic modification on existing driver. GPIO support might come in later
patches.
Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/TY3P286MB261162D57695AC8164ED50E298609@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM
[Backported patch : https://lore.kernel.org/lkml/TY3P286MB261162D57695AC8164ED50E298609@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I53ddfe6ea5df415f84f401c64fb29d1378ba1569
Shengyu Qu [Mon, 8 May 2023 07:43:12 +0000 (16:43 +0900)]
dt-bindings: mfd: x-powers,axp152: Document the AXP15060 variant
The X-Powers AXP15060 is a PMIC seen on Starfive Visionfive 2 board. Add
relative compatible item and CPUSLDO support and disables DC-DC
frequency setting for it.
Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
[Backported patch : https://lore.kernel.org/lkml/TY3P286MB261177CF7AA2959BD9517DA998609@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: Ia8ada01c0f0e56642a14401d34a1b2a47ddf6851
Hoegeun Kwon [Thu, 4 May 2023 07:50:32 +0000 (16:50 +0900)]
RISCV: configs: Enable cpufreq defconfig
Enable cpufreq defconfig. Set default gov is ondemand.
Change-Id: I0c6ec29322e1e846d81e686528ac4c825b81287e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Lad Prabhakar [Tue, 15 Nov 2022 10:51:33 +0000 (10:51 +0000)]
riscv: Kconfig: Enable cpufreq kconfig menu
Enable cpufreq kconfig menu for RISC-V.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221115105135.1180490-2-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
[Backported from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_upstream]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: Ibc4020587fecdfcdbbde43732b4673c423c53e25
Mason Huo [Thu, 4 May 2023 05:40:23 +0000 (14:40 +0900)]
riscv: dts: starfive: Add cpu scaling for JH7110 SoC
Add the operating-points-v2 to support cpu scaling on StarFive JH7110 SoC.
It supports up to 4 cpu frequency loads.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
[Backported patch : https://lore.kernel.org/all/
20230421031431.23010-4-mason.huo@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I0aeac76676938da45165a460a1d042fc36d2c8e4
Mason Huo [Thu, 4 May 2023 05:34:59 +0000 (14:34 +0900)]
cpufreq: dt-platdev: Add JH7110 SOC to the allowlist
Add the compatible strings for supporting the generic
cpufreq driver on the StarFive JH7110 SoC.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
[Backported patch :https://lore.kernel.org/all/
20230421031431.23010-3-mason.huo@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I40c1539d935367f3da4b74f01aabde8428dc49d9
Mason Huo [Thu, 4 May 2023 05:31:44 +0000 (14:31 +0900)]
riscv: dts: starfive: Enable axp15060 pmic for cpufreq
The VisionFive 2 board has an embedded pmic axp15060,
which supports the cpu DVFS through the dcdc2 regulator.
This patch enables axp15060 pmic and configs the dcdc2.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
[Backported patch : https://lore.kernel.org/all/
20230421031431.23010-2-mason.huo@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I79e08462d7bd09766526418d65fb4299fc122fdc
Hoegeun Kwon [Wed, 3 May 2023 06:57:31 +0000 (15:57 +0900)]
RISCV: configs: Enable crypto defconfig
Enable crypto driver for jh7110.
Change-Id: I25902a13d2a2d907ad04f2985059b40782ba394e
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Thu, 4 May 2023 02:20:19 +0000 (11:20 +0900)]
RISCV: dts: starfive: Add missing interrupt number of crypto
The interrupt number of crypto is missing and add.
Ref patch:
https://lore.kernel.org/all/
20230426065848.842221-4-jiajie.ho@starfivetech.com/
Change-Id: I2fe8951d5b68c5e21ca50b24c2c0de490937e4a9
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 3 May 2023 05:53:28 +0000 (14:53 +0900)]
RISCV: configs: Enable pwm defconfig
Enable pwm defconfig for pwm driver.
Change-Id: I860ff49fddacb47143f33d446e31a528c25b7fab
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 3 May 2023 05:04:20 +0000 (14:04 +0900)]
pwm: starfive: Fix incompatible pointer types
Fix starfive_pwm_ptc_get_state func and get_state pointer func and
return types not matching. In the current kernel version, get_status
does not use return value, so no problem. Fix return type to void.
drivers/pwm/pwm-starfive-ptc.c:152:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.get_state = starfive_pwm_ptc_get_state,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: Ifd9fb81ead2b174d138dcad60f464e484074aac4
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 3 May 2023 04:48:51 +0000 (13:48 +0900)]
RISCV: configs: Enable dma defconfig
Enable dma devices defconfig for dma driver.
Change-Id: I3172db384cca03691850acd300feee9f6d51cd06
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Wed, 3 May 2023 04:31:47 +0000 (13:31 +0900)]
RISCV: configs: Enable temperature sensor defconfig
Enable temperature sensor defconfig for sensor driver.
Change-Id: Ifbc7734b5670389c4826eba08a39dab8d693afa3
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Tue, 25 Apr 2023 06:50:03 +0000 (15:50 +0900)]
RISCV: configs: Enable power reset gpio
When rebooting, there is a problem that the pmic gpio is not set, so
rebooting is not possible. Enable power reset gpio.
Change-Id: I59c35303fe9416b4839d244e161776a034259a4b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hoegeun Kwon [Mon, 17 Apr 2023 06:46:56 +0000 (15:46 +0900)]
RISCV: configs: Enable pcie defconfig
Enable CONFIG_PCIE_STARFIVE defconfig for pcie host controller driver.
Change-Id: Ie55481519cd03f9a7bf2679c0ca6a0f5703ceb21
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Hal Feng [Tue, 11 Apr 2023 08:31:15 +0000 (16:31 +0800)]
riscv: dts: starfive: Add full support for JH7110 and VisionFive 2 board
Merge all StarFive dts patches together.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Conflicts:
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
arch/riscv/boot/dts/starfive/jh7110.dtsi
[Backported from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_upstream]
Change-Id: I0b498d1c7694877a210026717bd1c4e8fffac22a
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>