Commit Graph

853430 Commits

Author SHA1 Message Date
Shunqian Zheng
b678bd9e8a media: rockchip: cif: add framesizes and frmintervals ioctls
These two callbacks are required for applications to obtain
framerates and enumrate framesizes.

Change-Id: I02cbea5e5c5bd7453c141726d1c3d37f8ccf31aa
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2020-04-07 19:27:32 +08:00
Xu Hongfei
1716bf4200 media: rockchip: cif: fix the bug that dummpy buffer size is error
Change-Id: I8826e3452a3bd460b331a1adfceebffb6469a1a2
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
2020-04-07 19:27:32 +08:00
Allon Huang
d685f55605 media: rockchip: cif: support sampling raw data
Change-Id: I79ee92ba56277b9a90717521be152ef31454930f
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
2020-04-07 19:27:32 +08:00
Allon Huang
7d4c2c6551 media: rockchip: cif: support mipi channel and work mode switching
rk3288 cif can work with mipi channel and switch work mode

Change-Id: Ie8a49cf787617ff5d98ef84cdac761c3ece761c9
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
2020-04-07 19:27:32 +08:00
Xu Hongfei
ff64aa0746 media: rockchip: rk-cif: support yuyv output in cif
support yuyv output by setting the input mode to raw8

Change-Id: Ie33fa1e5d5cee532ebcfb23d57cac3700ee25042
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
2020-04-07 19:27:32 +08:00
Xu Hongfei
b5a1e17100 media: rockchip: rk-cif: v0.1.2
Compatible with cif only have single dma mode in driver

Change-Id: I5f2296549e20e3db1d8883474936e2892afc3ff0
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
2020-04-07 19:27:32 +08:00
Xu Hongfei
ebf350dee0 media: rockchip: rk-cif: v0.1.1
support the mipi vc multi-channel input in cif driver
for rk1808

Change-Id: I432c628b30e6f6f23e8515158dcf516e499bf79a
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
2020-04-07 19:27:32 +08:00
Hu Kejun
c35748c9e6 media: rockchip: cif: clear unready subdevice when kernel boot complete
Change-Id: Ib53d8138dce1e9237cf40d776241eaa2ac05f816
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2020-04-07 19:27:32 +08:00
Hu Kejun
3e4125e7c9 media: rockchip: cif: add version number
Change-Id: I75960c5d035b11fd9e8ef2a22d77f4337c826e96
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2020-04-07 19:27:32 +08:00
Cai YiWei
95ea71a61c media: rockchip/cif: support input raw/y format
dvp input raw/y, will output 16bit per pixel,
so output format shuold be raw16/y16.

Change-Id: I13e05ebe62b8802fa3a4c51f603c420e8127b929
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-04-07 19:27:31 +08:00
Tao Huang
186812abcc net: wireless: rockchip_wlan: make WL_ROCKCHIP tristate
Allow CFG80211 and MAC80211 being built as modules.

Change-Id: I414cb6e082a4c8fb044d74feaac2785395272078
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-04-07 19:27:31 +08:00
Jianqun Xu
78f23081e1 scripts/dtc: Support delete unused nodes
Delete nodes in case of:
* node is null, without any property and children node
* node with 'status' property but not "okay" or "ok"

Change-Id: Ic7d2ba1cb60350c21fa6a46222c20870c74359d4
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-04-07 19:27:31 +08:00
Nickey Yang
38d1d22b1d input: touchscreen: gt1x: update config for support GT917S
Old panel combination: st7703 + gt5688 use GTP_CFG_GROUP1
New panel combination: ili9881d + gt917s use GTP_CFG_GROUP0
Tested on rk3326 rv1108 platform.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I6af571f5625316f3418cb51673fc3e43317dff74
2020-04-07 19:27:31 +08:00
Jose Abreu
286fd25f4a UPSTREAM: net: stmmac: Implement UDP Segmentation Offload
Implement the UDP Segmentation Offload feature in stmmac. This is only
available in GMAC4+ cores.

Change-Id: I36bbc42ddadc3957ec0134b38e1c04d5d0ce87a7
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David Wu <david.wu@rock-chips.com>
(cherry picked from commit b776620651)
2020-04-07 19:27:31 +08:00
Jisheng Zhang
9027054734 UPSTREAM: net: stmmac: use dev_info() before netdev is registered
Before the netdev is registered, calling netdev_info() will emit
something as "(unnamed net device) (uninitialized)", looks confusing.

Before this patch:
[    3.155028] stmmaceth f7b60000.ethernet (unnamed net_device) (uninitialized): device MAC address 52:1a:55:18:9e:9d

After this patch:
[    3.155028] stmmaceth f7b60000.ethernet: device MAC address 52:1a:55:18:9e:9d

Change-Id: I1fb100b417210de343ae54d323428d784520bb96
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David Wu <david.wu@rock-chips.com>
(cherry picked from commit af64935213)
2020-04-07 19:27:31 +08:00
Jose Abreu
b99b2c2cd1 UPSTREAM: net: stmmac: Correctly take timestamp for PTPv2
The case for PTPV2_EVENT requires event packets to be captured so add
this setting to the list of enabled captures.

Fixes: 891434b18e ("stmmac: add IEEE PTPv1 and PTPv2 support.")
Change-Id: I8d9072d6feac5d0524da4eb367acc9cc92006025
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David Wu <david.wu@rock-chips.com>
(cherry picked from commit 14f347334b)
2020-04-07 19:27:31 +08:00
Ilias Apalodimas
ea9df2edfc UPSTREAM: net: stmmac: fix ptp timestamping on Rx on gmac4
The current driver only enables Pdelay_Req and Pdelay_Resp when
HWTSTAMP_FILTER_PTP_V2_EVENT, HWTSTAMP_FILTER_PTP_V1_L4_EVENT or
HWTSTAMP_FILTER_PTP_V2_L4_EVENT is requested. This results in ptp sync on
slave mode to report 'received SYNC without timestamp' when using ptp4l.

Although the hardware can support Sync, Pdelay_Req and Pdelay_resp by
setting bit14 annd bits 17/16 to 01 this leaves Delay_Req timestamps out.

Fix this by enabling all event and general messages timestamps.
This includes SYNC, Follow_Up, Delay_Req, Delay_Resp, Pdelay_Req,
Pdelay_Resp and Pdelay_Resp_Follow_Up messages.

Change-Id: Id5e4c22bff9742d21a1ef8011e3bde77e689b830
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Jose Abreu <joabreu@synopsys.com>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David Wu <david.wu@rock-chips.com>
(cherry picked from commit 7d8e249f39)
2020-04-07 19:27:31 +08:00
Artem Panfilov
fc779a7bec UPSTREAM: net: stmmac: implement the SIOCGHWTSTAMP ioctl
This patch adds support for the SIOCGHWTSTAMP ioctl which enables user
processes to read the current hwtstamp_config settings
non-destructively.

Change-Id: I26dec7bdd16332f6427ac6ec3096e3283d9ed8d1
Signed-off-by: Artem Panfilov <panfilov.artyom@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David Wu <david.wu@rock-chips.com>
(cherry picked from commit d6228b7cdd)
2020-04-07 19:27:31 +08:00
David Wu
238b00ba90 ARM: dts: rv1108: Remove "rockchip,grf" property except i2c2
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I0ca4699e2a031dbe53e77cbceba61a5a47257048
2020-04-07 19:27:30 +08:00
David Wu
14c0308516 i2c: busses: rk3x: Fix i2c grf special bit setting
When the property "rockchip,grf" of i2c DTS node exists and
the GRF offset is also valid, special bit needs to be configured.

Change-Id: If7ea4185b940ad026ed822b44cfb0c8acda83500
Signed-off-by: David Wu <david.wu@rock-chips.com>
2020-04-07 19:27:30 +08:00
Tao Huang
a8baa34ace f2fs: fix memory leak in f2fs_try_convert_inline_dir()
If fscrypt_setup_filename() successful, fscrypt_free_filename()
must be called later to clean up.

Change-Id: I761472d605a1a3c64307fc997210ca2007bd8932
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-04-07 19:27:30 +08:00
Ding Wei
6e73c8cad0 video: rockchip: mpp: fix issue about kill user process
If user process killed:
1. kernel should not to alloc task, and wait all task done in session,
   then release session.
2. fd in user space is closed, then kernel space can not use dma_buf_get
   to get dma handle, so kernel will crash.

crash:

[   35.677648 ] [<b022b098>] (__fget) from [<b0467134>]
(dma_buf_get+0x8/0x40)
[   35.678261 ] [<b0467134>] (dma_buf_get) from [<b0397848>]
(mpp_dma_find_buffer_fd+0x14/0x94)
[   35.679004 ] [<b0397848>] (mpp_dma_find_buffer_fd) from [<b03978fc>]
(mpp_dma_release_fd+0x34/0xa0)
[   35.679799 ] [<b03978fc>] (mpp_dma_release_fd) from [<b0395b2c>]
(mpp_task_finalize+0x68/0xbc)
[   35.680561 ] [<b0395b2c>] (mpp_task_finalize) from [<b0398614>]
(rkvdec_free_task+0xc/0x1c)
[   35.681290 ] [<b0398614>] (rkvdec_free_task) from [<b03963e4>]
(mpp_wait_result+0xd4/0x400)
[   35.682020 ] [<b03963e4>] (mpp_wait_result) from [<b0396940>]
(mpp_dev_release+0x230/0x244)
[   35.682750 ] [<b0396940>] (mpp_dev_release) from [<b020f30c>]
(__fput+0x88/0x1c4)
[   35.683415 ] [<b020f30c>] (__fput) from [<b0140cac>]
(task_work_run+0x90/0xb0)
[   35.684059 ] [<b0140cac>] (task_work_run) from [<b0128b38>]
(do_exit+0x3c4/0xac4)
[   35.684722 ] [<b0128b38>] (do_exit) from [<b0129f54>]
(do_group_exit+0x3c/0xbc)
[   35.685366 ] [<b0129f54>] (do_group_exit) from [<b0133b50>]
(get_signal+0xe4/0x6ac)
[   35.686040 ] [<b0133b50>] (get_signal) from [<b010b09c>]
(do_signal+0x2a0/0x494)
[   35.686690 ] [<b010b09c>] (do_signal) from [<b010b454>]
(do_work_pending+0xb4/0xd0)
[   35.687364 ] [<b010b454>] (do_work_pending) from [<b0101064>]
(slow_work_pending+0xc/0x20)

Change-Id: I8decec8ff4c356b315fe511128c5b67c5b349932
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-04-03 10:00:03 +08:00
Jianing Ren
4b5336a3bb usb: dwc3: core: enable runtime for rockchip platform
Change-Id: I49e3fa207db8aea0355a797b69c9c8a791d2eaa3
Signed-off-by: Jianing Ren <jianing.ren@rock-chips.com>
2020-04-02 20:05:35 +08:00
Christoph Hellwig
b64974825a UPSTREAM: mm/swapfile.c: move inode_lock out of claim_swapfile
claim_swapfile() currently keeps the inode locked when it is successful,
or the file is already swapfile (with -EBUSY).  And, on the other error
cases, it does not lock the inode.

This inconsistency of the lock state and return value is quite confusing
and actually causing a bad unlock balance as below in the "bad_swap"
section of __do_sys_swapon().

This commit fixes this issue by moving the inode_lock() and IS_SWAPFILE
check out of claim_swapfile().  The inode is unlocked in
"bad_swap_unlock_inode" section, so that the inode is ensured to be
unlocked at "bad_swap".  Thus, error handling codes after the locking now
jumps to "bad_swap_unlock_inode" instead of "bad_swap".

    =====================================
    WARNING: bad unlock balance detected!
    5.5.0-rc7+ #176 Not tainted
    -------------------------------------
    swapon/4294 is trying to release lock (&sb->s_type->i_mutex_key) at: __do_sys_swapon+0x94b/0x3550
    but there are no more locks to release!

    other info that might help us debug this:
    no locks held by swapon/4294.

    stack backtrace:
    CPU: 5 PID: 4294 Comm: swapon Not tainted 5.5.0-rc7-BTRFS-ZNS+ #176
    Hardware name: ASUS All Series/H87-PRO, BIOS 2102 07/29/2014
    Call Trace:
     dump_stack+0xa1/0xea
     print_unlock_imbalance_bug.cold+0x114/0x123
     lock_release+0x562/0xed0
     up_write+0x2d/0x490
     __do_sys_swapon+0x94b/0x3550
     __x64_sys_swapon+0x54/0x80
     do_syscall_64+0xa4/0x4b0
     entry_SYSCALL_64_after_hwframe+0x49/0xbe
    RIP: 0033:0x7f15da0a0dc7

Change-Id: I02a0fcfc63c3dcc4c4cdaf8b2500f5253e648649
Fixes: 1638045c36 ("mm: set S_SWAPFILE on blockdev swap devices")
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Tested-by: Qais Youef <qais.yousef@arm.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: <stable@vger.kernel.org>
Link: http://lkml.kernel.org/r/20200206090132.154869-1-naohiro.aota@wdc.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit d795a90e2b)
2020-04-02 17:25:08 +08:00
Kever Yang
63275236b7 ARM: dts: rockchip: add build rk3229-evb-android-avb.dtb
This is the only dts tested with android 10.

Change-Id: I444f7832beec8ec6ed599acdd745abc9d5b430f2
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2020-04-02 15:47:08 +08:00
Jianqun Xu
5e2bcd8c9f pinctrl: rockchip: support mux route flags
Create a new flag to indicate mux route is from topgrf or pmugrf.
 * INVALID: means do not need to set mux route
 * DEFAULT: means same regmap as pin iomux
 * TOPGRF: means mux route setting in topgrf
 * PMUGRF: means mux route setting in pmugrf

Change-Id: Iff57f3649d09751ff846560bd8a1599f6ef7ef04
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-04-02 15:44:58 +08:00
Ding Wei
c7377b7be5 video: rockchip: mpp: reset osd plt clock config before setting register
rkvenc: osd plt clock should reset, othterwise, osd setting will not work

Change-Id: I47752b735b6f63303e9b12f4616510f2701970bd
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-04-02 12:23:37 +08:00
Sandy Huang
0f7832c079 drm/rockchip: rgb: Add supoort bt656 and bt1120
Change-Id: I9a0fe7933979e58dc76f6a12611ff539086ba04a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-04-01 18:11:51 +08:00
David Wu
e289cdfa5e net: ethernet: stmmac: dwmac-rk: Make the phy clock could be used for external phy
Use the phy_clk to prepare_enable and unprepare_disable related phy clock.

Change-Id: Idcf3ee00c03b4a5009a6a9385077b0a421dbc601
Signed-off-by: David Wu <david.wu@rock-chips.com>
2020-04-01 17:10:50 +08:00
Sandy Huang
53f64c98a7 drm/rockchip: vop: add bt656 and bt1120
Change-Id: Ic1d8f613a3dbeeefa77815693d450d5d10011526
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-04-01 16:59:31 +08:00
Sandy Huang
4492caa259 drm/modes: add dclk invert config parse
Change-Id: I386159201bc44f02c3aa6862f222910c801cfbac
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-04-01 16:39:59 +08:00
Benjamin Gaignard
95ba31ac86 UPSTREAM: drm/modes: tag unused variables to avoid warnings
Some variables are set but never used. To avoid warning when compiling
with W=1 and keep the algorithm like it is tag theses variables
with _maybe_unused macro.

Change-Id: I93c3056ba0f7d7ef5969d04c41de00da09f7764a
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210102437.19377-1-benjamin.gaignard@st.com
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
(cherry picked from commit f199af0018)
2020-04-01 16:12:12 +08:00
William Wu
017ed08206 usb: gadget: uvc: add a new attribute streaming_intf
This patch adds a new uvc attribute "streaming_intf" to
show the number of streaming interface. The uvc application
program may needs to query the information.

Change-Id: I4554e204ab4457f67f35d2e7bfec2902196f79d3
Signed-off-by: William Wu <william.wu@rock-chips.com>
2020-04-01 11:00:12 +08:00
Ding Wei
2ba042367a video: rockchip: mpp: time diff precision ms -> us
Change-Id: I14b61da7f16873d5bf6f90b7e6e9eadeac630e12
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-04-01 10:47:22 +08:00
Ding Wei
ded8280b49 video: rockchip: mpp: fix issue about setting hevc cabac clock
1. add video_hevc_cabac to clock list
2. set default hevc cabac clock
3. set clock for each task

Change-Id: Ic09dcc2267d8ca7c745fdbc70f079de06fde90e9
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-03-31 19:44:55 +08:00
Tao Huang
e1a14c1f6d net: wireless: rockchip: rkwifi: bcmdhd: fix gcc warning
Fix gcc 9 warning:

drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.c: In function 'dhd_attach':
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.c:9494:4: warning: 'strncat' specified bound 2 equals source length [-Wstringop-overflow=]
 9494 |    strncat(if_name, "%d", 2);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~

drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmutils.c: In function 'bcm_format_flags':
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmutils.c:2140:3: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
 2140 |   strncpy(p, name, nlen + 1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmutils.c: In function 'bcm_format_field':
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmutils.c:2097:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
 2097 |     strncpy(buf, name, slen+1);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: Iab941c1789cfa0e3a1322cdbf64fcfbb75bd9c7c
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-03-31 19:04:37 +08:00
Tao Huang
c76d3b11d8 soc/rockchip: remove unused rk_camera driver
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3f5a7b6c2dddaf00d8a598d4836ecb56ce0f03ef
2020-03-31 16:32:32 +08:00
David Wu
3d0ef1aecd net: stmmac: dwmac-rk: Fix the following error
ERROR: "dwmac_rk_create_loopback_sysfs" [drivers/net/ethernet/stmicro/stmmac/dwmac-rk.ko] undefined!
ERROR: "stmmac_mdio_reset" [drivers/net/ethernet/stmicro/stmmac/dwmac-rk-tool.ko] undefined!

Fixes: a442177046 ("net: ethernet: stmicro: stmmac: Add loopback interface for rockchip")
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I493902ea828a81b49cb364959495634c39d7e307
2020-03-31 15:47:51 +08:00
Finley Xiao
a74a2368f8 clk: rockchip: Fix mask for clk_register_mux_table()
Change-Id: Ic9312fa4a6feed19206e966e97c54c4d47e11f47
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-03-30 21:43:50 +08:00
Jianqun Xu
d9ed60476f dt-bindings: pinctrl: rockchip support RK_FUNC_{5,15}
Change-Id: Ic328589e110c5968b67742d055cdb18269153954
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-03-30 14:11:06 +08:00
Jack Mitchell
e50c6a6518 UPSTREAM: watchdog: dw_wdt: ping watchdog to reset countdown before start
Currently on an rk3288 SoC when trying to use the watchdog the SoC will
instantly reset. This is due to the watchdog countdown counter being set
to its initial value of 0x0. Reset the watchdog counter before start in
order to correctly start the countdown timer from the right position.

Change-Id: I127b1b83ff6d459a45139847092ddbfa56c60bcd
Signed-off-by: Jack Mitchell <ml@embed.me.uk>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200107155155.278521-1-ml@embed.me.uk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit e7046df873)
2020-03-30 11:37:12 +08:00
Jon Lin
c3fb2a45a6 spi: rockchip-test: make spi configurable
Change-Id: Ib108ff43db462b6cbd2a2b87641169e0e36f1dc0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-03-30 10:52:28 +08:00
Jon Lin
003cda69a2 drivers: rkflash: fix compile error
1.more undefined references to `__memzero' follow
2.fix to MTD return value

Change-Id: I1adf89873db1e85568deaf2941867b8d45252eff
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-03-30 10:29:36 +08:00
Tao Huang
67df1daf88 rfkill: Introduce Rockchip RFKILL driver
Allow rfkill-bt.c and rfkill-wlan.c build as module.
Add CONFIG_RFKILL_RK which default y.

Change-Id: I1d399641587124d2291b5b49e5538e7e490a843a
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-03-28 17:17:28 +08:00
Tao Huang
8561febee7 mmc: pwrseq: export mmc_pwrseq_power_off()
net/rfkill/rfkill-wlan.c use mmc_pwrseq_power_off()

Change-Id: I761788f58418604c43f367b48dfe4bb2ff971d48
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-03-28 17:17:28 +08:00
Jianqun Xu
2cf509da1d ASoC: codecs: rk817 fix shut down crash issue
Requesting system reboot
[    7.936347] Unable to handle kernel NULL pointer dereference at virtual address 00000044
[    7.937081] pgd = (ptrval)
[    7.937332] [00000044] *pgd=3d817835, *pte=00000000, *ppte=00000000
[    7.937917] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[    7.938402] Modules linked in:
[    7.938699] CPU: 0 PID: 631 Comm: init Not tainted 4.19.111 #100
[    7.939238] Hardware name: Generic DT based system
[    7.939686] PC is at snd_soc_component_update_bits+0x8/0x70
[    7.940203] LR is at rk817_codec_power_down+0x170/0x1cc

Change-Id: I68bb761346322750214f9fae8537d825d72f4a44
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-03-28 16:04:15 +08:00
Sugar Zhang
b35ceabc94 dt-bindings: sound: rockchip: Add spk-ctl for audiopwm
Change-Id: I4b0149397ffb5e9054ea94ee39ce45182f997604
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2020-03-28 12:01:11 +08:00
Sugar Zhang
7fb3fa1531 ASoC: rockchip: Add spk-ctl for audiopwm
Change-Id: I052f04b8d9ccd0b476051a04e7183e23d4126131
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2020-03-28 12:01:06 +08:00
David Wu
a442177046 net: ethernet: stmicro: stmmac: Add loopback interface for rockchip
Add some user interface for usage, for example at RK3399:

  - scan rgmii delayline:

    echo (speed:10 100 1000) > /sys/devices/platform/fe300000.ethernet/phy_lb_scan

  - loopback test:

    echo (speed:10 100 1000) > /sys/devices/platform/fe300000.ethernet/phy_lb
    echo (speed:10 100 1000) > /sys/devices/platform/fe300000.ethernet/mac_lb

  - set/show delayline

    cat /sys/devices/platform/fe300000.ethernet/rgmii_delayline
    echo (tx delayline) (rx delayline) > /sys/devices/platform/fe300000.ethernet/rgmii_delayline

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ic38d7f4e12987d5ebc1d81f693f955e8105657ac
2020-03-28 11:01:39 +08:00
Yifeng Zhao
57e97b7aba drivers: mtd: nand: rockchip: fix the problem of wrong configuration for the timing
FMWAIT configured with a wrong value to cause timing error.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ib09b79b5702bdff3010a578a50fc0d97854c03f1
2020-03-27 18:03:40 +08:00