Commit Graph

650210 Commits

Author SHA1 Message Date
Dongjin Kim
d3408ae682 ODROID-N2: config: disable 'CONFIG_AMLOGIC_PAGE_TRACE'
This patch is to remove the logs below:

	[    0.000000] can't find symbol:arm_dma_alloc
	[    0.000000] can't find symbol:__alloc_from_contiguous
	[    0.000000] can't find symbol:cma_allocator_alloc
	[    0.000000]  0, addr:ffffff80099a15f0 +  140, aml_cma_alloc_post_hook
	[    0.000000]  1, addr:ffffff800957eb88 +   78, dma_alloc_from_contiguous
	[    0.000000]  2, addr:ffffff800922ebc8 +  2b8, cma_alloc
	[    0.000000]  3, addr:ffffff800921f638 +  300, __kmalloc_track_caller
	[    0.000000]  4, addr:ffffff800921c788 +  300, __kmalloc
	[    0.000000]  5, addr:ffffff800921c430 +  290, kmem_cache_alloc_trace
	[    0.000000]  6, addr:ffffff800921c1b0 +  280, kmem_cache_alloc
	[    0.000000]  7, addr:ffffff800921c138 +   78, __slab_alloc.isra.23.constprop.27
	[    0.000000]  8, addr:ffffff800921bdc0 +  378, ___slab_alloc.constprop.28
	[    0.000000]  9, addr:ffffff80092198d0 +  580, new_slab
	[    0.000000] 10, addr:ffffff800920c940 +   70, vmalloc
	[    0.000000] 11, addr:ffffff800920c858 +   70, vzalloc
	[    0.000000] 12, addr:ffffff800920c308 +  2a0, __vmalloc_node_range
	[    0.000000] 13, addr:ffffff80091f0070 +  110, kmalloc_order_trace
	[    0.000000] 14, addr:ffffff80091eff00 +  170, kmalloc_order
	[    0.000000] 15, addr:ffffff80091cf638 +  168, __alloc_page_frag
	[    0.000000] 16, addr:ffffff80091cf5d0 +   68, alloc_pages_exact
	[    0.000000] 17, addr:ffffff80091cf5a0 +   30, get_zeroed_page
	[    0.000000] 18, addr:ffffff80091cf548 +   58, __get_free_pages
	[    0.000000] 19, addr:ffffff80091ce738 +  e10, __alloc_pages_nodemask
	[    0.000000] 20, addr:ffffff800909d8a0 +  258, __dma_alloc

Change-Id: Ib81bd3617a47b60472aab2cf4adc4beb1a2643aa
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
eb179cfb32 ODROID-N2: config: disable 'CONFIG_AMLOGIC_VMAP'
This patch is to remove the error below.

	[    0.282128] VMAP:handle_vmap_fault address ffffff80200c4000 out of range
	[    0.282152] VMAP:handle_vmap_fault PC is:ffffff800925db6c, copy_mount_options, LR is:ffffff800925dad8 copy_mount_options
	[    0.282159] VMAP:handle_vmap_fault task:44 kdevtmpfs, stack:ffffff80200c0000, ffffffc0cf308960
	[    0.282167] CPU: 0 PID: 44 Comm: kdevtmpfs Not tainted 4.9.162+ #1
	[    0.282172] Hardware name: Hardkernel ODROID-N2 (DT)
	[    0.282178] Call trace:
	[    0.282189] [ffffffc0cf308880+ 128][<ffffff800908b908>] dump_backtrace+0x0/0x288
	[    0.282198] [ffffffc0cf308900+  32][<ffffff800908bc14>] show_stack+0x24/0x30
	[    0.282207] [ffffffc0cf308920+  64][<ffffff800944d560>] dump_stack+0xb0/0xe0
	[    0.282218] [ffffffc0cf308960+  64][<ffffff80099a0544>] handle_vmap_fault+0x1e4/0x218
	[    0.282226] [ffffffc0cf3089a0+   0][<ffffff8009082f68>] el1_da+0x14/0x148
	[    0.282234] [ffffff80200c3d20+  80][<ffffff800925dad8>] copy_mount_options+0xb8/0x1b0
	[    0.282241] [ffffff80200c3d70+  64][<ffffff800925eba8>] SyS_mount+0x70/0x108
	[    0.282251] [ffffff80200c3db0+ 112][<ffffff800957d0f8>] devtmpfsd+0x80/0x190
	[    0.282260] [ffffff80200c3e20+   0][<ffffff80090cd298>] kthread+0xf8/0x110
	[    0.282268] [0000000000000000+   0][<ffffff8009083ad0>] ret_from_fork+0x10/0x40

Change-Id: If59066c6e094be7f25ba33f1978acde03975700c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
7c4dea196e ODROID-COMMON:alsa-default-sink set to HDMI-output
Change-Id: I6165eed22baca6150b4dfc79e9108ba344385d0d
2020-03-13 18:08:44 +09:00
Dongjin Kim
feb0291b47 ODROID-COMMON: net/ethernet: fix compilation error of implicit delcaration
Change-Id: I054510f2d0671563b42575c60e5441ed3351347d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Nobutaka Okabe
f54d9f004f ODROID-COMMON: BACKPORT: ALSA: usb-audio: Eliminate noise at the start of DSD playback.
[Problem]
In some USB DACs, a terrible pop noise comes to be heard
at the start of DSD playback (in the following situations).

- play first DSD track
- change from PCM track to DSD track
- change from DSD64 track to DSD128 track (and etc...)
- seek DSD track
- Fast-Forward/Rewind DSD track

[Cause]
At the start of playback, there is a little silence.
The silence bit pattern "0x69" is required on DSD mode,
but it is not like that.

[Solution]
This patch adds DSD silence pattern to the endpoint settings.

Change-Id: I173538b84978d4136eb0dca31f12738814375604
Signed-off-by: Nobutaka Okabe <nob77413@gmail.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
0e7c885fdf ODROID-COMMON: pwm-fan device enabled for active cooling.
Change-Id: I1dcdfa4c22ab72cd24b1be870727420683073f9a
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
2020-03-13 18:08:44 +09:00
Joy Cho
21de95e0e3 ODROID-COMMON: remote: Add a setup of user remote wakeup decode type
Change-Id: Ib7bb759dfec67433b596ed64997f6894d1c7ec27
Signed-by-off: Joy Cho <joy.cho@hardkernel.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
9b0050f350 ODROID-COMMON: phy/realtek: add to support Wake On Lan enable
Adding new kernel command line "enable_wol=<1|0>" will configure the WOL
features on next power off.

Change-Id: I4830aeb1651e90d4699887199000def1163fb6db
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Joy Cho
1a631dd452 ODROID-COMMON: media: rc: Add lirc helper to support user remote wakeup
- set user remote wakeup key
- set ir decode protocol for wakeup

Change-Id: If083545f64d4e0b9c30bed89ce4bc9ecd37ea8ac
Signed-off-by: Joy Cho <joy.cho@hardkernel.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
398c381f76 ODROID-COMMON: arm64/dts: audio mclk set to continuous clock
Change-Id: I2184521fb9370018f7d38fad2aea2bb63adab4fa
2020-03-13 18:08:44 +09:00
Dongjin Kim
efcd688db0 ODROID-N2: config: Add 'gpioplug_ir_recv' for GPIO-based IR receiver
Change-Id: I09c12bfa0f4832971ddedd5140128085bc26087d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Joy Cho
a5e86984f7 ODROID-COMMON: media: rc: Add new IR receiver to specify gpio number for IR sensor
This driver helps to register the device of GPIO based IR receiver, "gpio-ir-recv"
with the gpio number and pulse trigger when driver is loading. For example,

	# modprobe gpio-ir-recv
	# modprobe gpioplug-ir-recv gpio_nr=473 active_low=1

Change-Id: I377be5e1d1926d0e777b7e18feef7f0d4bc45f40
Signed-off-by: Joy Cho <joy.cho@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
673c2ae93d ODROID-N2: arm64/dtb: change to suport 'both' interrupt edge trigger
Change-Id: I033e6bf4cbb35199a26572fd442264cc4cb0e58b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
ffa59b928d ODROID-N2:40p expansion I2C function enabled by default.
Change-Id: Ifd14a7a8b0fbd14d636122c013cad3452e3ae245
2020-03-13 18:08:44 +09:00
Dongjin Kim
47879aa07e ODROID-COMMON: mm: quick fix if 'CONFIG_AMLOGIC_PAGE_TRACE' is not enabled
Change-Id: Id63e7c4cd0decfacc3708bd8887758d16df132ea
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
eecf008194 ODROID-N2: config: re-enable f2fs as built-in
Change-Id: Iea1adf6dfe1cb612a4cbe2b60e568246a25682af
2020-03-13 18:08:44 +09:00
Dongjin Kim
fa80ca111c ODROID-N2: config: reconfig based on BSP openlinux-20190220
Change-Id: I09d6bba84c65b72e72c32f4de9af4bc9ff41b605
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
6bc8767047 ODROID-COMMON: Add Mixer control for LINE-OUT Mute
Mute : amixer -c0 sset 'LINE_OUT mute' on
Unmute : amixer -c0 sset 'LINE_OUT mute' off
Boot on state : unmute

Change-Id: If899ea5607cbef8b62fb35b66c79089beb192d1a
2020-03-13 18:08:44 +09:00
Dongjin Kim
d4efcee735 ODROID-COMMON: usb3: do not reset USB hub on boot
Change-Id: I167f44ff20e35be30851e81cdd180afb5d093d29
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
df7ad0db4d ODROID-COMMON: rtl8211: Link/Active LED configuration
* Green - 100Mbps
  * Amber - 1000Mbps

Change-Id: Idc60ac29b5ddab39153a04564a6bb76d0ec02c17
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Joy Cho
2f4ff029b5 ODROID-N2: staging: lirc: support GPIO based IR Blaster
Change-Id: I0a4993e68784a31f3d89c2f54e69dc70aa7bc5f3
2020-03-13 18:08:44 +09:00
Joy Cho
eb215a7b07 ODROID-COMMON: media: rc: add LIRC_CAN_SEND for the buffer allocation to support IR TX
Change-Id: I12c0695686084bd8f9a14e9b93284a17ef58c63f
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
c62d70b3ce ODROID-N2: config: enable UAS
Change-Id: Idbb302e3ff68f054d6d9d33519e099b408c1f36e
2020-03-13 18:08:44 +09:00
Dongjin Kim
f308c00a86 ODROID-N2: USB Audio: add support for additional DSD raw capable devices
Change-Id: If1a619e86f6c0f0893a8ce1d65fd8fe6c8f97b8c
Signed-off-by: Gé Koerkamp<ge.koerkamp@gmail.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
aa8ff5e181 ODROID-N2: config: enable 'CONFIG_FHANDLE' for systemd
Change-Id: I14f31de80b8bfca404bde3eda147adb7c8a1433b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Joy Cho
2748db20eb ODROID-N2: keyboard: add gpio power key that is set from boot.ini
Change-Id: Ic3a6152bcedf21e8600993e70394a1b894c1d212
2020-03-13 18:08:44 +09:00
Dongjin Kim
9e5bce61e8 ODROID-COMMON: media/vout: add new kernel param 'cvbscable='
This patch is to indicate when CVBS cable is connected or not, '1' as the cable
is attached and '0' otherwise. Currently CVBS cable only can be detected by
U-boot since the detection signal can be read by ADC.

Change-Id: I8fdff0cf0a2cf2bb2a94b296a1e2e5946864513d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
97bb889f35 ODROID-N2: arm64/dts: add 'vdac_config' for CVBS output
Change-Id: Iad6c990888f804829b5e8ca3e5dfe9e1829ae9b2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Joy Cho
d4c792e715 ODROID-N2: clk: add 2.004GHz cpu freq for A73 core and change the max
Change-Id: I99274d1084fc20a277a26669024391132da010f8
2020-03-13 18:08:44 +09:00
Joshua Yang
4656f5e5a3 ODROID-N2: arm64/dts: Make I2C-2, I2C-3, SPI functionalities disabled by default
These functions can be enabled using device-tree-compiler.
Refer to the following locations.

spi
/soc/cbus@ffd00000/spi@13000
/soc/cbus@ffd00000/spi@13000/spidev@0

i2c-2
/soc/cbus@ffd00000/i2c@1d000

i2c-3
/soc/cbus@ffd00000/i2c@1c000

Change-Id: I85f8b3402343a0910b902ac0f8e46f79ae6bf594
2020-03-13 18:08:44 +09:00
Joy Cho
2d570daeae ODROID-N2: media: rc: activate meson-ir driver to support LIRC
Change-Id: Ibe8c8b1199a5f505665c88c9c40fabfed525fb20
2020-03-13 18:08:44 +09:00
Joy Cho
c592834cab ODROID-N2: media: rc: update meson-ir driver
Change-Id: I435e618af7436d0485423f541f9df841716810b5
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
d700a8253e ODROID-N2: prepare defconfig for release
Change-Id: I5d712b539dd68c97e257dc0d1f727a39f34dcca3
2020-03-13 18:08:44 +09:00
Joy Cho
1b6ca7375f ODROID-N2: osd: support flexible fb size with free scale option
Change-Id: I87a63eda62b96e3d54cb88f92e16364ba8250acf
2020-03-13 18:08:44 +09:00
Joy Cho
87833a3fcf ODROID-N2: vout: update current vout mode string
Change-Id: I19584a9dedfcf66a7ad2efbdcfddd9b5218add70
2020-03-13 18:08:44 +09:00
Dongjin Kim
d0874556f0 ODROID-COMMON: spifc: add new hardware node 'spifc'
In order to access SPI-NOR flash memory from Linux kernel, new node 'spifc' is
added as 'disabled' by default. Since SPI flash memory shares the hardware bus
with eMMC, one can not be enabled when another one is enabled.

Change-Id: I7ae258dcc1b18df59dc33e8473c83f7ff0329461
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
792d12e7c3 ODROID-COMMON: Add pwm-gpio driver for cooling fan control
Change-Id: I906fdd7d8b3da407f8ea7560562df7cc46b3d8fa
2020-03-13 18:08:44 +09:00
Kevin Kim
635fce0a9d ODROID-COMMON: arm64/dts:Modified PWM pinctrl
Change-Id: I951fd8481328149e64536cbf2a02e51d47b36acd
2020-03-13 18:08:44 +09:00
Kevin Kim
26ea24f7b2 ODROID-COMMON: pwm: gpio: Add a generic gpio based PWM driver
From: Olliver Schinagl <oliver@schinagl.nl>

This patch adds a bit-banging gpio PWM driver. It makes use of hrtimers,
to allow nano-second resolution, though it obviously strongly depends on
the switching speed of the gpio pins, hrtimer and system load.

Each pwm node can have 1 or more "pwm-gpio" entries, which will be
treated as pwm's as part of a pwm chip.

Change-Id: Idd42bf6d79f8ce52275a15965b02af470f28da7c
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2020-03-13 18:08:44 +09:00
Joshua Yang
dea15d5ea0 ODROID-N2: Add CONFIG_USB_SERIAL_CP210X
Change-Id: I33cb95010cc122c2688e2713da27a0f59a732b6f
2020-03-13 18:08:44 +09:00
Chris KIM
8b708babe0 ODROID-N2: Fix build error.
Change-Id: I3014c2b540b91eeafde3a151e3752b02bbd30ccc
(cherry picked from commit 7461978eb4)
2020-03-13 18:08:44 +09:00
Kevin Kim
27e09f0e57 ODROID-N2: mmc: Initate MMC power state on reboot
Change-Id: Ifade734854d94c1c98b34c55a431835b80c5f7e4
2020-03-13 18:08:44 +09:00
Dongjin Kim
db6f8d011e ODROID-COMMON: cpuinfo: add to print the board UUID on eFUSE
Change-Id: Ia6400b15d6a16329d0d326492a0131003de8785f
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
3990aabea5 ODROID-COMMON: efuse: fix to print true UUID from /sys/class/efuse/uuid
Change-Id: Ic27fcef584be7a05ff384fa7cd350c34fdf9315c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
169438fd9c ODROID-N2: arch/arm64: removing the node 'unifykey'
The 'unifykey' is the storage only in an eMMC and not required for
other devices which does not use eMMC. Therefore, deprecated.

Change-Id: Ia59b9b53145038187bacb3f9469078f9f813278c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
b16852e19e ODROID-COMMON: dts: no building of DTB for AMLogic boards
Change-Id: I08cf75c6f1c6536c54b34ea8af33ff8e173d9e3a
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
fed305a972 ODROID-N2: config: enable kernel features for Docker
Change-Id: I28aff3d9fd0c143afecd7425ab55e2ddb2757c65
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
bf42a4f583 ODROID-N2: git: removing '.git/pre-commit'
Change-Id: Ia44136b12853e4555159dcb5aa046ea711d0c206
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
43cc9c0248 ODROID-COMMON: mmc/core: Removed HS400
Change-Id: Ic2082a938ff2966f74717796e3d52a4546fef0e6
2020-03-13 18:08:44 +09:00
Joy Cho
6fea037b3f ODROID-N2: cpufreq: adjust default freq of A73 core to 1.8GHz
Change-Id: I1e845ac032fbd42c7f01de9a0032284f0e06aceb
2020-03-13 18:08:44 +09:00