Jump to content

Samsung Exynos 4: Difference between revisions

From postmarketOS Wiki
Grimler (talk | contribs)
And some Exynos 4 history to explain how different names correlate
Knuxify (talk | contribs)
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Userbox container|
{{userbox
| border-c  = #19b187
| id        = [[File:Element_Logomark.svg|Element logo|36px]]
| id-c      = #f4fffc
| info      = Exynos 4 Mainlining Community on '''[https://matrix.to/#/#exynos4xxx-mainline:matrix.org<span style="color: #066047 !important; text-decoration: underline !important;">Matrix</span>]'''.
| info-c    = #b5eadc
| info-color = #022018
}}
{{userbox
| border-c = #c8773c
| id      = [[File:Gitlab_logo.png|GitLab logo|36px]]
| id-c    = #FFF3E1
| info    = Exynos 4 Mainlining Group in '''[https://gitlab.com/exynos4-mainline<span style="color: #b54807 !important; text-decoration: underline !important;">GitLab</span>]'''.
| info-c  = #FFDAAC
}}
}}
The '''Exynos 4''' family of chips consists of the '''Exynos 4210''' released in 2011 as well as the '''Exynos 4412''' released in 2012, alongside with its dual-core variant - the '''Exynos 4212'''. The '''Exynos 4415''' was released two years later in 2014.
The '''Exynos 4''' family of chips consists of the '''Exynos 4210''' released in 2011 as well as the '''Exynos 4412''' released in 2012, alongside with its dual-core variant - the '''Exynos 4212'''. The '''Exynos 4415''' was released two years later in 2014.


Line 4: Line 21:


Please join the matrix room for Exynos 4 related discussions: https://matrix.to/#/#exynos4xxx-mainline:matrix.org
Please join the matrix room for Exynos 4 related discussions: https://matrix.to/#/#exynos4xxx-mainline:matrix.org
== History ==
The first Exynos 4 CPUs were initially called S5PCxxx, like it's predecessors, but then renamed. For locating information it can therefore be good to know the old names.
* The oldest Exynos processor is Exynos 3110, also known as hummingbird, which was renamed from S5PC110. It has a Cortex-A8 core.
  - S5PV210, found in some development boards, is supposedly similar to Exynos 3110
* Exynos 4210, the first Exynos 4 CPU, was initially called S5PC210, and has two Cortex-A9 cores
  - S5PV310, found in some development boards, is supposedly similar to Exynos 4210
* Exynos 4412 was initially called S5PC220, based on strings in very old u-boot blobs from Samsung. It has four Cortex-A9 cores.
The common denominator for Exynos 4 seem to be that the SOC has only Cortex-A9 cores. Later devices have Cortex-A15 cores (and possibly Cortex-A9 cores as well) and were then called Exynos 5.
{{todo|'''TODO:''' What, if anything, was Exynos 4212 called initially?}}


== Devices ==
== Devices ==
Line 48: Line 52:
| status_modem = -
| status_modem = -
| status_gps = -
| status_gps = -
| status_npu = -
| status_camera =  
| status_camera =  
}}{{#cargo_query:
}}{{#cargo_query:
Line 87: Line 92:
| status_modem = -
| status_modem = -
| status_gps = -
| status_gps = -
| status_npu = -
| status_camera =  
| status_camera =  
| status_suspend = Y
| status_suspend = Y
Line 127: Line 133:
| status_modem = -
| status_modem = -
| status_gps = -
| status_gps = -
| status_camera =  
| status_npu = -
| status_camera = P
| status_suspend = Y
| status_suspend = Y
}}{{#cargo_query:
}}{{#cargo_query:
Line 167: Line 174:
| status_modem = -
| status_modem = -
| status_gps = -
| status_gps = -
| status_npu = -
| status_camera =  
| status_camera =  
| status_suspend =  
| status_suspend =  
Line 181: Line 189:
== USB OTG ==
== USB OTG ==


USB OTG does not currently work on any of the mainlined devices. This is due to at least three things (the first two only apply to devices that use the MAX77693 MFD):
As of kernel 6.10.0, USB OTG should work on devices that have it enabled (currently that's the Galaxy S III, Note II and the Galaxy Tab 3 8.0). The only caveat is that occasionally, peripheral mode may no longer work after plugging in an OTG cable until the system is restarted.
 
Progress on fixing these issues is being tracked in [https://gitlab.com/exynos4-mainline/linux/-/issues/11 exynos4-mainline/linux#11].
 
== Hardware video decoding (MFC) ==
 
The Exynos 4 has a built-in hardware video decoding/encoding block called MFC v5. It has a mainline driver, which
uses the v4l2m2m API (see [[Hardware video acceleration]] for more information). The firmware is packaged as {{aport|linux-firmware-s5p-mfc}}.
 
However, '''it does not currently work''', throwing errors about unsupported formats. Help in figuring this out would be appreciated. If you're feeling adventurous, feel free to investigate - the module is enabled in the v6.10 kernel.
 
== Camera ==


* The MUIC driver doesn't detect OTG cables correctly; unlike the downstream driver, which responds only to 4 of the interrupts, this one listens to all of them, and one of the interrupts is falsely triggered causing it to think it's a charging cable instead of an ADC cable,
{{MR|5888|pmaports}} introduced changes on the kernel config side to allow for using the cameras; there is a [https://gitlab.com/megapixels-org/libmegapixels/-/merge_requests/24 pending Megapixels MR] adding support for the SIII/Note 2's cameras to libmegapixels. There was some earlier work in {{MR|2248|pmaports}} to add camera support for the Galaxy S2.
* The MUIC driver doesn't implement OTG support to allow for 1. disabling the charger, and 2. enabling power for non-powered hubs.
* The dwc2 (hs_otg) controller appears to only control peripheral mode; the EHCI and OHCI nodes must be enabled for host mode to work, but then peripheral mode stops working.


Some work-in-progress patches to fix these issues can be found at [https://github.com/refractionware/tab3-8.0-mainline/tree/tab3/wip-otg] (this fixes the first two issues, but not the last one).
The drivers for the sensors are rather quirky, and the FIMC driver may need changes too; this is yet to be investigated.


== See also ==
== See also ==
Line 194: Line 211:
* On linux-exynos.org: [http://linux-exynos.org/wiki/Samsung_Exynos_4210 Exynos 4210], [http://linux-exynos.org/wiki/Samsung_Exynos_4412 Exynos 4412]
* On linux-exynos.org: [http://linux-exynos.org/wiki/Samsung_Exynos_4210 Exynos 4210], [http://linux-exynos.org/wiki/Samsung_Exynos_4412 Exynos 4412]
* [https://web.archive.org/web/20160328133205/http://www.samsung.com/global/business/semiconductor/file/product/Pulbicmanual_Exynos_4_Dual_45nm_Ver00-2.pdf The public datasheet for the Exynos 4210]
* [https://web.archive.org/web/20160328133205/http://www.samsung.com/global/business/semiconductor/file/product/Pulbicmanual_Exynos_4_Dual_45nm_Ver00-2.pdf The public datasheet for the Exynos 4210]
* [https://chasinglulu.github.io/downloads/Android_Exynos4412_iROM_Secure_Booting_Guide_Ver.1.00.00.pdf Exynos 4212 iROM Booting Guide]
* [https://github.com/limingth/ARM-Resources/blob/master/tiny210/Datasheet/S5PV210_UM_REV1.1.pdf S5PV210 User's manual]
* [https://github.com/limingth/ARM-Resources/blob/master/tiny210/Datasheet/S5PV210_iROM_ApplicationNote_Preliminary_20091126.pdf S5PV210 iROM Application Note]
* [https://web.archive.org/web/20180609154155/http://www.samsung.com/global/business/semiconductor/file/product/Exynos_4_Quad_User_Manaul_Public_REV1.00-0.pdf The public datasheet for the Exynos 4412]
* [https://web.archive.org/web/20180609154155/http://www.samsung.com/global/business/semiconductor/file/product/Exynos_4_Quad_User_Manaul_Public_REV1.00-0.pdf The public datasheet for the Exynos 4412]
* [https://github.com/chasinglulu/chasinglulu.github.io/blob/master/downloads/SEC_Exynos4412_Users_Manual_Ver.1.00.00.pdf Exynos 4412 SEC User's Manual]
* [https://github.com/lian494362816/Tiny4412/blob/master/Pdf/Exynos%204412%20SCP_Users%20Manual_Ver.0.10.00_Preliminary0.pdf Exynos 4412 SCP User's Manual]
* [[Exynos mainline porting]]
* [[Exynos mainline porting]]
* p4note U-Boot: https://github.com/Lutjens-PoL/u-boot
* p4note U-Boot: https://github.com/Lutjens-PoL/u-boot
[[Category:Samsung Exynos]]

Latest revision as of 18:02, 11 December 2024

Element logo Exynos 4 Mainlining Community on Matrix.
GitLab logo Exynos 4 Mainlining Group in GitLab.

The Exynos 4 family of chips consists of the Exynos 4210 released in 2011 as well as the Exynos 4412 released in 2012, alongside with its dual-core variant - the Exynos 4212. The Exynos 4415 was released two years later in 2014.

The Exynos 4210, 4212 and 4412 are relatively well supported in mainline, and share a fair bit of code. Support for the Exynos 4415, however, was dropped as there were no devices in mainline that used it. In postmarketOS, the mainline kernel is packaged as linux-postmarketos-exynos4PMOS.

Please join the matrix room for Exynos 4 related discussions: https://matrix.to/#/#exynos4xxx-mainline:matrix.org

Devices

Exynos 4210

Samsung Exynos 4210
Exynos 4210
Exynos 4210
Manufacturer Samsung
Name Exynos 4210
Architecture armv7
CPU 2x ARM Cortex A9 @ 1.4GHz
GPU ARM Mali-400MP4
Year 2011
Process 45nm
Mainline yes
Community Page https://gitlab.com/exynos4-mainline
Components
CPU
Works
UART
Works
Storage
Works
USB
Works
Display
Works
GPU
Works
Pinctrl
Works
I²C
Works
SPI
No data
Audio
No data
Video
No data
Thermal
Works
Camera
No data
Suspend
No data
Ethernet
No data
SATA
No data
Device Codename Mainline
Samsung Galaxy Note samsung-q1 Y
Samsung Galaxy S II samsung-i9100 P

Exynos 4212

Samsung Exynos 4212
Exynos 4212 on the board of the Samsung Galaxy Tab 3 8.0
Exynos 4212 on the board of the Samsung Galaxy Tab 3 8.0
Manufacturer Samsung
Name Exynos 4212
Architecture armv7
CPU 2x ARM Cortex A9 @ 1.4GHz
GPU ARM Mali-400 GPU
Year 2012
Process 32nm
Mainline yes
Community Page https://gitlab.com/exynos4-mainline
Components
CPU
Works
UART
Works
Storage
Works
USB
Works
Display
Works
GPU
Works
Pinctrl
Works
I²C
Works
SPI
No data
Audio
Works
Video
No data
Thermal
Works
Camera
No data
Suspend
Works
Ethernet
No data
SATA
No data
Device Codename Mainline
Samsung Galaxy Tab 3 8.0 samsung-lt01 Y

Exynos 4412

Samsung Exynos 4412
Exynos 4412 from a development board
Exynos 4412 from a development board
Manufacturer Samsung
Name Exynos 4412
Architecture armv7
CPU 4x ARM Cortex A9 @ 1.4GHz
GPU ARM Mali-400 GPU
Year 2012
Process 32nm
Mainline yes
Community Page https://gitlab.com/exynos4-mainline
Components
CPU
Works
UART
Works
Storage
Works
USB
Works
Display
Works
GPU
Works
Pinctrl
Works
I²C
Works
SPI
No data
Audio
Works
Video
No data
Thermal
Works
Camera
Partial
Suspend
Works
Ethernet
No data
SATA
No data
Device Codename Mainline
General Mobile E-Tab 4 (2012) gm-mehmet
ODROID U2 odroid-u2 Y
Samsung Galaxy Camera samsung-gd1
Samsung Galaxy Camera 2 samsung-sf2wifi
Samsung Galaxy Note 10.1 WiFi/3G samsung-p4note Y
Samsung Galaxy Note 8.0 (GSM) samsung-n5100
Samsung Galaxy Note 8.0 (Wi-Fi) samsung-n5110
Samsung Galaxy Note 8.0 (Wi-Fi) samsung-n5110
Samsung Galaxy Note II samsung-t03g Y
Samsung Galaxy Note II LTE samsung-t0lte Y
Samsung Galaxy S III samsung-m0 Y
Samsung Galaxy S III LTE samsung-m3 Y

Exynos 4415

Samsung Exynos 4415
File:Exynos-4415.jpg
Manufacturer Samsung
Name Exynos 4415
Architecture armv7
CPU 4x ARM Cortex A9 @ 1.5GHz
GPU ARM Mali-400 GPU
Year 2014
Process 28nm
Mainline no
Community Page https://gitlab.com/exynos4-mainline
Components
CPU
No data
UART
No data
Storage
No data
USB
No data
Display
No data
GPU
No data
Pinctrl
No data
I²C
No data
SPI
No data
Audio
No data
Video
No data
Thermal
No data
Camera
No data
Suspend
No data
Ethernet
No data
SATA
No data

No results

USB OTG

As of kernel 6.10.0, USB OTG should work on devices that have it enabled (currently that's the Galaxy S III, Note II and the Galaxy Tab 3 8.0). The only caveat is that occasionally, peripheral mode may no longer work after plugging in an OTG cable until the system is restarted.

Progress on fixing these issues is being tracked in exynos4-mainline/linux#11.

Hardware video decoding (MFC)

The Exynos 4 has a built-in hardware video decoding/encoding block called MFC v5. It has a mainline driver, which uses the v4l2m2m API (see Hardware video acceleration for more information). The firmware is packaged as linux-firmware-s5p-mfc.

However, it does not currently work, throwing errors about unsupported formats. Help in figuring this out would be appreciated. If you're feeling adventurous, feel free to investigate - the module is enabled in the v6.10 kernel.

Camera

pmaports!5888 introduced changes on the kernel config side to allow for using the cameras; there is a pending Megapixels MR adding support for the SIII/Note 2's cameras to libmegapixels. There was some earlier work in pmaports!2248 to add camera support for the Galaxy S2.

The drivers for the sensors are rather quirky, and the FIMC driver may need changes too; this is yet to be investigated.

See also