platform/kernel/linux-amlogic.git
6 years agoCPUFREQ: add cpufreq 1.7G.
hong.guo [Fri, 9 Feb 2018 11:02:08 +0000 (19:02 +0800)]
CPUFREQ: add cpufreq 1.7G.

PD#156734: cpufreq: add cpufreq 1.7G.

Change-Id: I5558fc5195621b4b70edb5718cd23e405fffe1ba
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agoaudio: dts: add audio efuse module support for g12a
Xing Wang [Fri, 9 Feb 2018 03:37:11 +0000 (11:37 +0800)]
audio: dts: add audio efuse module support for g12a

PD#156734: audio: dts: add audio efuse module support for g12a

Change-Id: I15510474ed191d0abafd2efc2999032b5c1a919c
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agodts: g12a: ethernet: re-organize ethernet dts/dtsi
Zhuo Wang [Fri, 9 Feb 2018 11:18:10 +0000 (19:18 +0800)]
dts: g12a: ethernet: re-organize ethernet dts/dtsi

PD#156734: re-organize dts of ethernet

Change-Id: I17724af9244fb1c2c06beceb8ef82f1550ddf8d6
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
6 years agodts: enable clocks of the media modules.
Nanxin.Qin [Wed, 7 Feb 2018 15:58:11 +0000 (23:58 +0800)]
dts: enable clocks of the media modules.

PD#156749:

Change-Id: Icc1b2d20ce3c470a91a9c6aa4374bc8462e2db6d
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
6 years agoamvecm: add hdr support for g12a
MingLiang Dong [Thu, 8 Feb 2018 11:57:25 +0000 (19:57 +0800)]
amvecm: add hdr support for g12a

PD#156734: amvecm: add hdr support for g12a

Change-Id: Ia1f5d3d7b13a6cec7f07bfe6cb7d06264ffcc82d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agousb: fix usb device rename bug for g12a
Yue Wang [Fri, 9 Feb 2018 03:38:34 +0000 (11:38 +0800)]
usb: fix usb device rename bug for g12a

PD#156734: usb: fix usb device rename for g12a

Change-Id: Iecb0ae41f3eb41b7fd6005a842ce76fb50628039
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agousb: fix usb2 phy pll setting for g12a
Yue Wang [Thu, 8 Feb 2018 11:59:30 +0000 (19:59 +0800)]
usb: fix usb2 phy pll setting for g12a

PD#156734: usb: fix usb2 phy pll setting for g12a

Change-Id: I7b7ab2f9cddfa2b17e81f6691d2ba8f44f99555b
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agohdmitx: bringup for g12a
Yi Zhou [Thu, 8 Feb 2018 14:14:28 +0000 (22:14 +0800)]
hdmitx: bringup for g12a

PD#156734: bringup for g12a

update some registers address

Change-Id: I7a4660e3811d7f193ac8212fd7fb5fd80767c89e
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agoosd: enable osd rdma and afbc function
Brian Zhu [Wed, 7 Feb 2018 16:05:07 +0000 (00:05 +0800)]
osd: enable osd rdma and afbc function

PD#156734: osd: enable rdma and afbc function

Change-Id: I62b7a3bd84b758455deb2f614c763a145f751f63
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agoCPUFREQ: delete cpufreq driver's log config.
hong.guo [Thu, 8 Feb 2018 10:54:33 +0000 (18:54 +0800)]
CPUFREQ: delete cpufreq driver's log config.

PD#156734: cpufreq: delete cpufreq driver's log config.

Change-Id: Ic9ccdbab8cb92540f542151da69c1c37bfaeaf44
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agovdin: add reset patch && viu debug interface
Dezhi Kong [Tue, 6 Feb 2018 06:55:11 +0000 (14:55 +0800)]
vdin: add reset patch && viu debug interface

PD#156734: vdin: add reset patch && viu debug interface

1.add vdin reset for g12a
2.add viu-vd1/vd2/osd1/osd2 loop debug interface
3.add hiu reg r/w support
4.delete sr temp debug code

Change-Id: Ia503b2471827f835394dd81667a4672cb0434e69
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agothermal: G12A: update thermal driver
huan.biao [Thu, 8 Feb 2018 07:21:25 +0000 (15:21 +0800)]
thermal: G12A: update thermal driver

PD#156734:fix build error.

Change-Id: Iafa7c3a06d1c180ce69bcb58cc5c339c13fee65c
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agothermal: G12A: update thermal driver.
huan.biao [Thu, 8 Feb 2018 06:32:18 +0000 (14:32 +0800)]
thermal: G12A: update thermal driver.

PD#156734:
tsensor: update temp to reg calc.
cooldev: add cpufreq driver check.

Change-Id: I534716247908dd066c6dd8fe1680f977c5972b5a
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agothermal: G12A: add tsensor and cooldev dts.
huan.biao [Sat, 3 Feb 2018 16:57:13 +0000 (00:57 +0800)]
thermal: G12A: add tsensor and cooldev dts.

PD#156734: add tsensor and cooling devices dts.

Change-Id: Ia6875a5f06c225bb034c5301e14fb3bc3191aa14
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agosdio: both pio&dma are supported for g12a
Yonghui Yu [Tue, 6 Feb 2018 15:14:32 +0000 (23:14 +0800)]
sdio: both pio&dma are supported for g12a

PD#156734: g12a: sdio: both pio&dma are supported.

Change-Id: I92d0961c94cf1a77867af92870d1781d89a3168d
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
6 years agothermal: G12A: fix cpucore cooling devices driver.
huan.biao [Thu, 8 Feb 2018 02:14:32 +0000 (10:14 +0800)]
thermal: G12A: fix cpucore cooling devices driver.

PD#156734: fix cpucore cooling issue.

Change-Id: I9c1340e605d51df5eae8e49814f948981c9dc763
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agothermal: G12A: tsensor and cooldev driver.
huan.biao [Sat, 3 Feb 2018 16:49:31 +0000 (00:49 +0800)]
thermal: G12A: tsensor and cooldev driver.

PD#156734: add thermal tsensor and cooling devices driver.

Change-Id: I22ea0e03692fbcf7da269330fde86e07f189c4e9
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agoppmgr: enable for g12a
Brian Zhu [Wed, 7 Feb 2018 12:13:41 +0000 (20:13 +0800)]
ppmgr: enable for g12a

PD#156734: ppmgr: enable for g12a

Change-Id: Iaf5076f7c3c6f58dfd40be29ba7d19e8c6b9145b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agounifykey: add unifykey description in g12a_skt dts
Jiamin Ma [Wed, 7 Feb 2018 12:08:49 +0000 (20:08 +0800)]
unifykey: add unifykey description in g12a_skt dts

PD#156734: g12a bring up

Change-Id: Iae5bc74a1230df4d0c5025267b149e6a235a1681
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
6 years agoremote out: add irblaster config for G12A
Yu Tu [Tue, 6 Feb 2018 05:08:00 +0000 (13:08 +0800)]
remote out: add irblaster config for G12A

PD#156734: remote out: modify irblaster read register from dts for G12A

Change-Id: I36d1c4ce8ce968f7955d55c0678670e7258889f1
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
6 years agolcd: update pll parameter
weiming.liu [Tue, 6 Feb 2018 07:58:36 +0000 (15:58 +0800)]
lcd: update pll parameter

PD#156734: lcd: update pll parameter

Change-Id: Ie431c33abc794e043f07bd1bb9ff64d896f48f7f
Signed-off-by: weiming.liu <weiming.liu@amlogic.com>
6 years agoclock: G12A: add hevcf, spicc clock
Qiufang Dai [Sun, 4 Feb 2018 08:05:05 +0000 (16:05 +0800)]
clock: G12A: add hevcf, spicc clock

PD#156734: add hevcf, spicc clock

Change-Id: Ibe63b44e61058255b3b72ef9efaded765e262b0a
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoBT: g12a_skt: initial host wake bt pin [1/1]
kuibao zhang [Fri, 2 Feb 2018 13:28:39 +0000 (21:28 +0800)]
BT: g12a_skt: initial host wake bt pin [1/1]

PD#156734: bt: g12a_skt: initial host wake bt pin

1.host wake bt pin (gpiox_19) should keep high when bt
lpm function is enabled, otherwise bt moudle would go
to sleep.
2.set this pin in dts

Change-Id: I401fa158bf11b60ef1a7727ea25e55f94cf273a8
Signed-off-by: kuibao zhang <kuibao.zhang@amlogic.com>
6 years agoi2c: meson: set clk div for fast mode
Bo Yang [Mon, 5 Feb 2018 15:02:47 +0000 (23:02 +0800)]
i2c: meson: set clk div for fast mode

PD#156734: i2c: meson: set clk div for fast mode

According to I2C-BUS Spec 2.1, in FAST-MODE, LOW period should be at
least 1.3uS, and HIGH period should be at lease 0.6. HIGH to LOW
ratio as 1 to 2 is more safe.

So in FAST-MODE, we should control the SCL low time.

And fix REG_SLAVE_DDR write  mask.

Change-Id: I39ec81c67f543dfdf261d39e8da79489f2c79483
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agoCPUFREQ: modify cpufreq dts.
hong.guo [Mon, 5 Feb 2018 10:43:10 +0000 (18:43 +0800)]
CPUFREQ: modify cpufreq dts.

PD#156734: cpufreq: modify cpufreq dts.

Change-Id: I16113e3414a3e336cbd4c0eb869706dd3d22a15b
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agohdmitx: bringup for g12a
Yi Zhou [Sun, 4 Feb 2018 17:29:47 +0000 (01:29 +0800)]
hdmitx: bringup for g12a

PD#156734: bringup for g12a

1.use ioremap
2.enalbe hpd for the first time

Change-Id: I5375c8b7732f4dd552e7c7207b90d411aeacafbd
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agovout: add missed vout2_module macro definition protection
Evoke Zhang [Thu, 1 Feb 2018 16:24:35 +0000 (00:24 +0800)]
vout: add missed vout2_module macro definition protection

PD#156734: vout: add missed vout2_module macro definition protection

Change-Id: I141d05ec9f40e4b42eb39b72d069907aa4480a99
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agonand: free controller when no nand inserted or error
Liang Yang [Sun, 4 Feb 2018 13:34:39 +0000 (21:34 +0800)]
nand: free controller when no nand inserted or error

PD#156734: nand : no nand or init error handle

Change-Id: I9a1383117db2021204826e04d36fb91ba4213126
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoCPUFREQ: add dvfs cpufreq and latency.
hong.guo [Sun, 4 Feb 2018 05:46:10 +0000 (13:46 +0800)]
CPUFREQ: add dvfs cpufreq and latency.

PD#156734: cpufreq: add dvfs cpufreq cpufreq and latency.

Change-Id: I0d7c74e54b2e6dcbd949c1c59cce41deec5047f7
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agohdmitx: eliminate unnecessary print
Yi Zhou [Sun, 4 Feb 2018 11:47:09 +0000 (19:47 +0800)]
hdmitx: eliminate unnecessary print

PD#156734: hdmitx: eliminate unnecessary print

Change-Id: Id79e6f14367f3c0201d1968a3d61168a47a14e3a
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agolcd: add g12a support
weiming.liu [Fri, 2 Mar 2018 07:36:27 +0000 (15:36 +0800)]
lcd: add g12a support

PD#156734: lcd: add lcd driver for g12a

Change-Id: Ib859dfdc2a1785c7e1e2ab506bf1dfd0cad55887
Signed-off-by: weiming.liu <weiming.liu@amlogic.com>
6 years agopwm: meson-g12a: fix pwm xtal
Bo Yang [Sun, 4 Feb 2018 09:07:44 +0000 (17:07 +0800)]
pwm: meson-g12a: fix pwm xtal

PD#156734: pwm: meson-g12a: fix pwm xtal

Fix pwm xtal.
And update pwm dts compatible.

Change-Id: I0314ed1b628abfe4a3e303ca827bdd50f2a2c2e8
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agomedia: fixed the issure of mpeg12 playback.
Nanxin Qin [Sun, 4 Feb 2018 08:55:25 +0000 (16:55 +0800)]
media: fixed the issure of mpeg12 playback.

PD#156734:

Change-Id: I87d814707d864a8fc81bcb35712ef0c25fea65db
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
6 years agodts: meson-g12a: update hmditx i2c pinctrl
Bo Yang [Sun, 4 Feb 2018 08:45:16 +0000 (16:45 +0800)]
dts: meson-g12a: update hmditx i2c pinctrl

PD#156734: dts: meson-g12a: update hmditx i2c pinctrl

Remove repetitive i2c definition.

Change-Id: Ide1b6467385b0f31da30aeffe8244d3918d8a0f8
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agodi: di post wr&vpp link disaply ok
kele bai [Sun, 4 Feb 2018 08:27:20 +0000 (16:27 +0800)]
di: di post wr&vpp link disaply ok

PD#156734: di:
1) fix 0x1a0a error config in video.c
2) update gate control for if0

Change-Id: I6f1a7080b1f6f2d343ed3773ef55b2834d55d0d6
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agodts: g12a-skt: add touch device node
Sunny Luo [Sun, 4 Feb 2018 07:57:09 +0000 (15:57 +0800)]
dts: g12a-skt: add touch device node

PD#156734: dts: g12a-skt:
1. add and enable focaltech ftxx
2. add and enable goodix gtxx

Change-Id: Iff3a2d0a28c5ba78c93f23623b3c34b651bb2cae
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
6 years agoosd: make osd2 and osd3 work
Brian Zhu [Sat, 3 Feb 2018 21:24:26 +0000 (05:24 +0800)]
osd: make osd2 and osd3 work

PD#156734: osd:
1. fix the osd2 & osd3 init error
2. enable all mem_pd

Change-Id: Ib0d817e98ad5381fdd9dc436ff30bf4ed8bbbcca
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agovideo: enable ionvideo
Jiyu Yang [Sat, 3 Feb 2018 19:33:44 +0000 (03:33 +0800)]
video: enable ionvideo

PD#156734 enable ionvideo for online video play

Change-Id: I316d9abb2708538813cf2c09d47bb854676ed7e7
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
6 years agovideo: disable blend ctrl when video off
Brian Zhu [Sat, 3 Feb 2018 15:29:41 +0000 (23:29 +0800)]
video: disable blend ctrl when video off

PD#156734: video: disable blend ctrl when video off

Change-Id: I31bc906212dde34dd684ba3953ae8ada59107734
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agonand: add clock for mtd nand driver
Liang Yang [Sat, 3 Feb 2018 14:40:51 +0000 (22:40 +0800)]
nand: add clock for mtd nand driver

PD#156734: nand: add clock and disable nand module in dts to
avoid conflit with sd_emmc_c.

Change-Id: I204bbc58960cbed47b1c55194e371cd1c61be12a
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoCPUFREQ: add cpufreq driver.
hong.guo [Fri, 2 Mar 2018 07:46:13 +0000 (15:46 +0800)]
CPUFREQ: add cpufreq driver.

PD#156734: cpufreq: add cpufreq driver[2/2].

Change-Id: If38dba0973aa7c0d4e9bbba1bee1af81e84ba6b8
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agodtsi: meson-g12a: add all pwm pinmux definitions
Bo Yang [Sat, 3 Feb 2018 09:59:26 +0000 (17:59 +0800)]
dtsi: meson-g12a: add all pwm pinmux definitions

PD#156734: dtsi: meson-g12a: add all pwm pinmux definitions

Replace pinctrl used by wifi and cpufreq.
Aand remove repetitive definitions.

Change-Id: Ia2eb89fac9fe6e960333ff3d3e691f7e7f1cfaa1
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agomedia: add the HEVC_DBLK_CFGE to hevc regs.
Nanxin.Qin [Sat, 3 Feb 2018 04:33:39 +0000 (12:33 +0800)]
media: add the HEVC_DBLK_CFGE to hevc regs.

PD#156734: media: add the HEVC_DBLK_CFGE to hevc regs.

Change-Id: I9e885017176502d0227a353cb049ddf0742e38fe
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
6 years agoeth: meson-g12a: add Ethernet driver support
Yixun Lan [Thu, 1 Feb 2018 11:58:02 +0000 (19:58 +0800)]
eth: meson-g12a: add Ethernet driver support

PD#156734: eth: meson-g12a: add Ethernet driver support

Enable the ethernet driver on G12A board, which tested
with RTL8211F 1000M PHY && Internal PHY.

And here we enable Internal PHY for g12a_skt board.

Change-Id: I839639ac92790c27117b9745275b346cd4ce40d7
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agocec: cec g12a bring up
hongmin hua [Fri, 12 Jan 2018 07:42:38 +0000 (15:42 +0800)]
cec: cec g12a bring up

PD#156734: cec: change interrupt/pinmux for g12a

Change-Id: I5f9f652addf81db4b792796d41f367073a8ac5b9
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
6 years agopcie: fix config spaces error
Zan Peng [Sat, 3 Feb 2018 09:11:42 +0000 (17:11 +0800)]
pcie: fix config spaces error

PD#156734: pcie: fix config spaces error

Change-Id: I217b0941a4facd874f4df74e4d0eefa5a72af527
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agodts: g12a-skt: removed repetitive definition of i2c pinmux
Bo Yang [Sat, 3 Feb 2018 08:48:15 +0000 (16:48 +0800)]
dts: g12a-skt: removed repetitive definition of i2c pinmux

PD#156734: dts: g12a-skt: removed repetitive definition of i2c pinmux

Replace i2c3 pinctrl with standard definition.

Change-Id: I28f64dfde90ccb71f5b3fb12437b92f392de28ce
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agodts: g12a-skt: add i2c-0 enable
Bo Yang [Sat, 3 Feb 2018 08:36:03 +0000 (16:36 +0800)]
dts: g12a-skt: add i2c-0 enable

PD#156734: dts: g12a-skt: add i2c-0

Default freq 100k.

Change-Id: Id39713b7d06b885667e5daef0a012bfae1b9882e
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agordma: enable rdma mem_PD g12a
Brian Zhu [Sat, 3 Feb 2018 08:21:23 +0000 (16:21 +0800)]
rdma: enable rdma mem_PD g12a

PD#156734: rdma: enable rdma mem_PD g12a

Change-Id: I3e2f74b524f07372a54a172d7d05b5a55c8f01df
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agopcie: fix pcie reset gpio failed
Zan Peng [Sat, 3 Feb 2018 08:16:01 +0000 (16:16 +0800)]
pcie: fix pcie reset gpio failed

PD#156734: pcie: fix pcie reset gpio failed
1. config 1M spaces for I/O

Change-Id: I0ec9a6e920c5fd2fbf922e3f1338a19dbc373aa6
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agodi: G12A add di nrds&pps&diwr support
kele bai [Fri, 2 Mar 2018 07:17:05 +0000 (15:17 +0800)]
di: G12A add di nrds&pps&diwr support

PD#156734: G12A add di nrds&pps&diwr support

1) move hdr&vd1&viu releated reg into di_regs.h
2) delete unuseful reg definition
3) add pps in post function
4) add new framereset

Change-Id: I49c58072cc90aa556ab368dcc616c3be4a692db4
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agodtsi: meson-i2c: add g12a i2c pinmux definitions
Bo Yang [Fri, 2 Mar 2018 07:39:29 +0000 (15:39 +0800)]
dtsi: meson-i2c: add g12a i2c pinmux definitions

PD#156734: dtsi: meson-i2c: add g12a i2c pinmux definitions

Change-Id: I24ef24db8214ce1c927d3a32571fe1ed96fa3ac1
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agoosd: enable lacth and use extern canvas mode
Brian Zhu [Fri, 2 Feb 2018 14:42:20 +0000 (22:42 +0800)]
osd: enable lacth and use extern canvas mode

PD#156734: osd: enable lacth and use extern canvas modeWq

Change-Id: Ia7506e04068f4980eee86b28acc65b8763b8f29a
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agoaudio: auge: fix tdm skew, pdm clk, spdif to hdmxtx clk inv
Xing Wang [Fri, 2 Feb 2018 14:33:27 +0000 (22:33 +0800)]
audio: auge: fix tdm skew, pdm clk, spdif to hdmxtx clk inv

PD#156734: audio: auge: fix tdm skew, pdm clk, spdif to hdmxtx clk inv

Change-Id: I2033bb0d0843eca309ad58483183293f1c4d92fa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agousb: add usb otg driver support for g12a
Yue Wang [Sat, 3 Feb 2018 06:34:18 +0000 (14:34 +0800)]
usb: add usb otg driver support for g12a

PD#156734: usb: add usb otg driver support for g12a

Change-Id: I1af8d290568bca947a6612f31cef3b640c7cd927
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agoclock: g12a: add emmc portA and aoclkc
Qiufang Dai [Thu, 1 Feb 2018 15:38:17 +0000 (23:38 +0800)]
clock: g12a: add emmc portA and aoclkc

PD#156734: add emmc portA and aoclkc

Change-Id: Ib54a6eb113bdce21eacc7a2d460df23ee9129e92
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoemmc: g12a: enable emmc at high speed mode
Yonghui Yu [Fri, 2 Feb 2018 14:22:34 +0000 (22:22 +0800)]
emmc: g12a: enable emmc at high speed mode

PD#156734: emmc: g12a: enable emmc at high speed mode

Change-Id: I8e314182afa3e7088818d4fd9a83f369bb29ba84
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
6 years agousb: add usb3.0 driver support for g12a
Yue Wang [Fri, 2 Feb 2018 11:41:59 +0000 (19:41 +0800)]
usb: add usb3.0 driver support for g12a

PD#156734: usb: add usb3.0 driver support for g12a

Change-Id: Iac057b29d041a5c80114407df0ccd965aae11ca1
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agovpp: config vdin/sr for g12a
Dezhi Kong [Mon, 1 Jan 2018 12:05:06 +0000 (20:05 +0800)]
vpp: config vdin/sr for g12a

PD#156734: vpp: config vdin/sr for g12a

1.config vd1 vpp patch default
2.add viuin debug path
3.merged sr from 3.14
4.add vdin support
5.enable sr for g12a

Change-Id: Ica1a7e7e31330e223528329accb149db74e00cf5
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agonand: mtd nand modification
Liang Yang [Fri, 2 Feb 2018 09:23:06 +0000 (17:23 +0800)]
nand: mtd nand modification

PD#156734: nand: modification
1)sync partition talbe with bootloadr setting.
2)keep compatibale with other platform(a113, etc) when setting lower clock.
3)add a new tested nand flash type

Change-Id: Iff277e6d22bb76c543db76747b22b38f3d60eb11
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoCPUFREQ: add cpufreq dts and config.
hong.guo [Fri, 2 Feb 2018 07:26:37 +0000 (15:26 +0800)]
CPUFREQ: add cpufreq dts and config.

PD#156734: cpufreq: add cpufreq dts and config[1/2].

Change-Id: I39fff8a6049d8cc0b6f9b4dbfa11d2b1be504339
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agomedia: add the cpu type of G12A and AVS2 vformat
Nanxin.Qin [Fri, 2 Feb 2018 08:20:06 +0000 (16:20 +0800)]
media: add the cpu type of G12A and AVS2 vformat

PD#156749:

Change-Id: I7fb09105a939d9a0c6cd3a66202ad29ab9c3c272
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
6 years agoaudio: codec: add ad82584f driver
Xing Wang [Fri, 2 Feb 2018 07:03:56 +0000 (15:03 +0800)]
audio: codec: add ad82584f driver

PD#156734: audio: codec: add ad82584f driver

Change-Id: I1e2d8b452e5560c84c60d965e7a916fa0ff03bf4
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agopcie: add pcie dts support for G12A
Zan Peng [Fri, 2 Feb 2018 08:02:07 +0000 (16:02 +0800)]
pcie: add pcie dts support for G12A

PD#156734: pcie: add pcie dts support for G12A

Change-Id: Ia437be3df71062fe89f8203778d5b1b42df37dba
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agocvbs: cvbs bring up for g12a
Nian Jing [Wed, 3 Jan 2018 13:06:19 +0000 (21:06 +0800)]
cvbs: cvbs bring up for g12a

PD#156734: cvbs bring up for g12a

Change-Id: I8a69d85a921e78300db9ec96c2f93807f6f139b4
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agopcie: add pcie driver support for G12A
Zan Peng [Fri, 2 Feb 2018 04:42:02 +0000 (12:42 +0800)]
pcie: add pcie driver support for G12A

PD#156734: pcie: add pcie driver support for G12A

Change-Id: I497e17ac212448934416c8af73206cd88766e406
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agoaudio: auge: avout and notify spdifb to hdmitx
Xing Wang [Thu, 1 Feb 2018 01:21:26 +0000 (09:21 +0800)]
audio: auge: avout and notify spdifb to hdmitx

PD#156734: audio: auge: avout and notify spdifb to hdmitx

Change-Id: I63b9fe4d18979b33907a3ed848f99abf42ae8972
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agoosd: disable out fence and wait infence
Jiyu Yang [Thu, 22 Feb 2018 09:33:40 +0000 (17:33 +0800)]
osd: disable out fence and wait infence

PD#156734: osd: disable out fence and wait infence

Change-Id: Id0390f5c6667a64915d202362af87db761ef2783
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
6 years agovideo: disable vd1 post and pre as default
Brian Zhu [Thu, 1 Feb 2018 16:28:21 +0000 (00:28 +0800)]
video: disable vd1 post and pre as default

PD#156734

Change-Id: I43b372d55e4997999fe7c99ea9d0ab4f7b8a5e57
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agohdmitx: update hdmitx mode parameters
Yi Zhou [Thu, 22 Feb 2018 09:08:40 +0000 (17:08 +0800)]
hdmitx: update hdmitx mode parameters

PD#156734: hdmitx: update hdmitx mode parameters

1.update 6G signal
2.add hpd interrupt
3.add ddc channel
4.enable every mode output

Change-Id: I7d505f41b4f182324e6d8c560a17fb0b2bbb6b7a
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agoremote in: add remote dtsi config for G12A
Yu Tu [Fri, 2 Feb 2018 04:23:57 +0000 (12:23 +0800)]
remote in: add remote dtsi config for G12A

PD#156734: remote in: add remote dtsi config for G12A

Change-Id: Ia38c95bf8b16be9bafad396fc681405c98d6bc35
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
6 years agowifi/bt: add wifi bt config [1/1]
Weiguang.ruan [Thu, 1 Feb 2018 15:16:55 +0000 (23:16 +0800)]
wifi/bt: add wifi bt config [1/1]

PD#156734: wifi/bt: add wifi bt config

1. add wifi/bt configure

2. set pwm e for 32k clock

3. enable cts/rts of uart_a

Change-Id: I94800030a95119ed8ff0c60171faa2cca8eca287
Signed-off-by: Weiguang.ruan <Weiguang.ruan@amlogic.com>
6 years agosdcard: g12a: enbable hotplug
Yonghui Yu [Thu, 1 Feb 2018 17:36:02 +0000 (01:36 +0800)]
sdcard: g12a: enbable hotplug

    PD#156734: sdcard: g12a: enable hotplug on skt.

Change-Id: I04d42895bb526134ea6d9c2a5222e1acbae533a0
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
6 years agoiio: saradc: add support for g12a
Xingyu Chen [Thu, 18 Jan 2018 08:25:35 +0000 (16:25 +0800)]
iio: saradc: add support for g12a

PD#156734: iio: saradc: add support for g12a

Add period sampling mode for g12a and next, here are a brief overview:

1. Enable period sampling mode

echo 1  > /sys/bus/iio/devices/iio:device0/buffer/enable

2. Set the sampling interval
The sampling interval can be set in dts by the two params:
<1> amlogic,delay-per-tick
<2> amlogic,ticks-per-period

If there are no define the params above, and the channel list is
sampled every 1ms by default.

3. Read sampling data from buffer
this currently provides no buffer events so it is up to userspace to
work out how often to read from the buffer. therefore, if you want to
read continuous sampling data from buffer, please use application.

Eg:
[kernel]/tools/iio/iio_generic_buffer.c

Change-Id: I27f904e2736768eacc9d73ff24078bd659e37049
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
6 years agousb: add usb host & device driver support for g12a
Yue Wang [Thu, 1 Feb 2018 15:21:39 +0000 (23:21 +0800)]
usb: add usb host & device driver support for g12a

PD#156734: usb: add usb host & device driver support for g12a

Change-Id: Ia12b63f85fb6d980a7c7906664ae2db7c4ddb86b
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agonand: mtd nand initial version
Liang Yang [Thu, 1 Feb 2018 15:53:39 +0000 (23:53 +0800)]
nand: mtd nand initial version

PD#156734: nand: add nand support for G12A

Change-Id: Ic696edd8ca00ec3010e17b25a842788cb95fd166
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoUART: G12A: verify all uart port on skt dts.[1/1]
qi duan [Thu, 1 Feb 2018 11:55:48 +0000 (19:55 +0800)]
UART: G12A: verify all uart port on skt dts.[1/1]

PD#156734: UART: G12A: verify all uart port on skt dts.

Change-Id: I2fb272d7803d0c21e16a10c3ccb535b4244e6e6b
Signed-off-by: qi duan <qi.duan@amlogic.com>
6 years agoclock: G12A: fine-tune pcie/common pll parameters
Qiufang Dai [Wed, 31 Jan 2018 09:53:16 +0000 (17:53 +0800)]
clock: G12A: fine-tune pcie/common pll parameters

PD#156734: clock: G12A: fine-tune pcie/common pll parameters

Change-Id: Ifbd8d07928deeebaa35c4f950efc290b1648394e
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agohdmitx: update 1080p60hz parameters
Yi Zhou [Thu, 1 Feb 2018 09:28:11 +0000 (17:28 +0800)]
hdmitx: update 1080p60hz parameters

PD#156734: hdmitx: update 1080p60hz parameters

Change-Id: Ic715b177c9320f97066187725a576780d656305d
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agovideo: enable vd1 scaler mem_pd for g12a
Brian Zhu [Thu, 1 Feb 2018 10:06:12 +0000 (18:06 +0800)]
video: enable vd1 scaler mem_pd for g12a

PD#156734

Change-Id: I8cfcf9fea8513eb5bd13cf292a7c378063247159
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agodi: G12A skt dts add di support
kele bai [Tue, 30 Jan 2018 08:04:44 +0000 (16:04 +0800)]
di: G12A skt dts add di support

PD#156734: di: G12A skt dts add di support

Change-Id: I95baa216f26af8e2e4da195ef8682cee04ef8660
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agoaudio: auge: add sound driver for g12a
Xing Wang [Fri, 5 Jan 2018 10:02:51 +0000 (18:02 +0800)]
audio: auge: add sound driver for g12a

PD#156734: audio: auge: add sound driver for g12a

Change-Id: Ic2e9bf734ea33fbbf2911d0d9168934974f37b07
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agodi: G12A add di support
kele bai [Thu, 4 Jan 2018 11:20:30 +0000 (19:20 +0800)]
di: G12A add di support

PD#156734: G12A add di support
1) add new mtn&cont&mcinfo&mv&if0 mif
2) add nr downscale
3) post viu link case
4) add pps

Change-Id: Id9ce920323d4324f0e1429df787f8af2dad07318
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agovpu: optimize get_vpu_clk with clktree api
Evoke Zhang [Mon, 26 Feb 2018 07:05:15 +0000 (15:05 +0800)]
vpu: optimize get_vpu_clk with clktree api

PD#156734: vpu: optimize get_vpu_clk with clktree api
use clk_hw_get_rate instead of clk_get_rate.

Change-Id: Ib2d72c04d4df9acbacf06d189bbbce378f582716
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agoosd: compatible with previous chip
Brian Zhu [Wed, 31 Jan 2018 10:58:09 +0000 (18:58 +0800)]
osd: compatible with previous chip

PD#156734:

Change-Id: I4f0ea8121af271fb9e8fd60876fe6c59fe9faaaf
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agodts: add g12a skt dts
Qiufang Dai [Mon, 29 Jan 2018 11:52:46 +0000 (19:52 +0800)]
dts: add g12a skt dts

PD#156734: dts: add g12a skt dts

Change-Id: I40ce169cabd1c53f7b7b8299bb3e11adbe29a35f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agosdcard: enable sdcard for G12A
Yonghui Yu [Sun, 28 Jan 2018 13:52:19 +0000 (21:52 +0800)]
sdcard: enable sdcard for G12A

PD#156734: clock tree, pinmux tested.

Change-Id: I11088ea6d27c1788516c1b55c4ec81ade99ca112
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
6 years agovpp: init viu1 path for g12a
Brian Zhu [Sat, 24 Feb 2018 05:02:45 +0000 (13:02 +0800)]
vpp: init viu1 path for g12a

PD#156734: G12A: vpp: init viu1 path for g12a

Change-Id: Ide96b364aa86638597e606c3b53401c84b7e201d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agoosd: add osd support for g12a
pengcheng chen [Thu, 14 Dec 2017 11:21:23 +0000 (19:21 +0800)]
osd: add osd support for g12a

PD#156734: osd: add osd support for g12a

Change-Id: I7192f0377da899846219af8d934a50f57fecbe29
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agosecmon: G12A: enable secmon driver in dts
Qiufang Dai [Fri, 26 Jan 2018 11:05:54 +0000 (19:05 +0800)]
secmon: G12A: enable secmon driver in dts

PD#156734: secmon: enable secmon driver in dts

Change-Id: I32a3d5c3505de1c44c8be6b82a7e10ec1fc0a3de
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoclock: G12A: new add decode, t_sensor clock & vclk2 clk tree
Qiufang Dai [Fri, 26 Jan 2018 02:59:07 +0000 (10:59 +0800)]
clock: G12A: new add decode, t_sensor clock & vclk2 clk tree

PD#156734: clock: G12A: new add decode, t_sensor clock & vclk2 clk tree

Change-Id: I1a76bb870ecb5793ae7b560472fd2c2aa3f3651f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agovpu: update mem_pd control for g12a
Evoke Zhang [Sat, 24 Feb 2018 02:44:13 +0000 (10:44 +0800)]
vpu: update mem_pd control for g12a

PD#156734: vpu: update mem_pd control for g12a
also add vpu power on init function to avoid uboot coupling

Change-Id: Idcf435d7ec2c0e49f2b115102fba10ae9ee86b9d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agoarm64: dts: meson-g12a: add i2c DT info [2/2]
Jian Hu [Tue, 9 Jan 2018 12:57:56 +0000 (20:57 +0800)]
arm64: dts: meson-g12a: add i2c DT info [2/2]

PD#156734: arm64: dts: meson-g12a: add i2c DT info

Change-Id: I9ff9a61319bbac54722e15c84fa3a19653c481ce
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
6 years agodts: add dvalin config
Jiyu Yang [Mon, 25 Dec 2017 06:26:45 +0000 (14:26 +0800)]
dts: add dvalin config

PD#156734: add dvalin gpu config

Change-Id: Ib30694b302ae9e2839cb2f64e076934c041f9ff0
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
6 years agoge2d: add ge2d support for g12a
zhilei.wu [Sat, 24 Feb 2018 07:44:27 +0000 (15:44 +0800)]
ge2d: add ge2d support for g12a

PD#156734: ge2d: add ge2d support for g12a

support src2 blend

Change-Id: I5b8acd95d54d4c6160290a7d0254f8e96e20ce4b
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
6 years agowatchdog: add meson watchdog driver v3
Bo Yang [Sun, 21 Jan 2018 09:52:18 +0000 (17:52 +0800)]
watchdog: add meson watchdog driver v3

PD#156734: watchdog: add meson watchdog driver v3

Change-Id: I5aac3393fd56b9961d669ca990dea0b7d42ee016
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agoarm64: dts: meson-g12a: add pwm DT info [2/2]
Jian Hu [Mon, 8 Jan 2018 13:36:16 +0000 (21:36 +0800)]
arm64: dts: meson-g12a: add pwm DT info [2/2]

PD#156734: arm64: dts: meson-g12a: add pwm DT info

Change-Id: Iff1ed3709c66e97ac0334290d873b8a67544a6f2
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
6 years agomedia: add codec_io and canvas module for g12a
Brian Zhu [Tue, 16 Jan 2018 12:25:59 +0000 (20:25 +0800)]
media: add codec_io and canvas module for g12a

PD#156734: G12A: media: add codec_id and canvas module

Change-Id: Ib0e4ef05c237c313f483ebe2b029bf50f57d1c0a
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agopwm: meson-g12a: add pwm support [1/2]
Jian Hu [Mon, 8 Jan 2018 13:02:08 +0000 (21:02 +0800)]
pwm: meson-g12a: add pwm support [1/2]

PD#156734: pwm: meson-g12a: add pwm support

Change-Id: I30b996a96e9c731379c10b4a09c4ff751d84140b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
6 years agoi2c: meson-g12a: add i2c support [1/2]
Jian Hu [Tue, 9 Jan 2018 12:33:41 +0000 (20:33 +0800)]
i2c: meson-g12a: add i2c support [1/2]

PD#156734: i2c: meson-g12a: add i2c support

Change-Id: I10ac105b99f7a426e23fef501741a62d3b887985
Signed-off-by: Jian Hu <jian.hu@amlogic.com>