Samsung Galaxy Grand Neo (samsung-baffinlite)/Downstream notes

From postmarketOS Wiki

This page contains some information about the Galaxy Grand Neo, taken from downstream resources.

  • There's a DTS in downstream, but it's for the baffinlite REV00 (the version that was released appears to be REV02), and as such does not apply at all.

Bootloader kernel cmdline options

Taken from TWRP 2.7.

console=ttyS2,115200n8 mem=994M cma0=0M carveout0=0M vmalloc=190M androidboot.console=ttyS2 logbuf_nocache=1 bootmode=2 ap_only_boot sec_debug.reset_reason=0x1A2B3C00 sec_debug.level=0 androidboot.debug_level=0x4f4c loglevel=0 sec_log=0x70000@0x9e900000 lpcharge=0 cordon=8e35ac7f0eb64eb53f82647be12673c8 androidboot.emmc_checksum=3 brd_ver=2 androidboot.serialno=[censored]

dt-blob in firmware

There's a dt-blob in the stock firmware. Click the Expand button to the right to preview a version decompiled with dtc.

/dts-v1/;

/ {
	#address-cells = <0x01>;
	#size-cells = <0x01>;
	model = "Broadcom java_ss_baffinlite board";
	compatible = "Broadcom, ";

	chosen {
	};

	pinmux {
		timestamp = "v0.0, 9/26/2013 4:16:59 PM";
		model = "Baffin_Lite";
		compatible = "JavaA0-pinmux";
		reg = <0x35004800 0x9b>;
		data = <0x03 0x23 0x20 0x20 0x00 0x440 0x80 0x12 0x43 0x0b 0x403 0x200 0x400 0x400 0x03 0x03 0x03 0x03 0x4b 0x43 0x03 0x400 0x403 0x43 0x23 0x23 0x23 0x03 0x3a3 0x400 0x400 0x20 0x20 0x223 0x220 0x240 0x240 0x40 0x40 0x40 0x40 0x03 0x303 0x43 0x43 0x48 0x43 0x0b 0x440 0x30b 0x400 0x303 0x403 0x10b 0x03 0x03 0x03 0x03 0x205 0x423 0x423 0x203 0x200 0x200 0x200 0x200 0x205 0x03 0x23 0x23 0x23 0x23 0x23 0x23 0x23 0x23 0x23 0x23 0x03 0x43 0x43 0x43 0x43 0x43 0x440 0x403 0x440 0x453 0x443 0x03 0x03 0x20 0x20 0x03 0x20 0x05 0x41 0x51 0x05 0x05 0x05 0x47 0x27 0x27 0x27 0x27 0x27 0x03 0x1023 0x423 0x0b 0x203 0x203 0x440 0x400 0x443 0x420 0x03 0x03 0x03 0x20b 0x44b 0x1223 0x20b 0x103 0x103 0x43 0x23 0x03 0x20 0x43 0x40 0x440 0x0b 0x0b 0x0b 0x0b 0x08 0x08 0x08 0x0b 0x40 0x12 0x23 0x23 0x23 0x23 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08>;
	};

	gpio {
		compatible = "JavaA0-gpio";
		reg = <0x35003000 0x27>;
		data = <0x00 0x01 0x01 0x01 0x02 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x0c 0x00 0x10 0x01 0x11 0x01 0x14 0x00 0x16 0x01 0x17 0x01 0x18 0x01 0x19 0x01 0x1a 0x01 0x1d 0x01 0x20 0x00 0x21 0x00 0x22 0x00 0x2c 0x01 0x38 0x01 0x46 0x01 0x48 0x01 0x49 0x01 0x4a 0x01 0x58 0x00 0x59 0x01 0x5a 0x01 0x5b 0x01 0x5c 0x01 0x62 0x01 0x64 0x01 0x65 0x01 0x6f 0x00 0x71 0x01 0x72 0x01 0x79 0x01 0x7b 0x01 0x7c 0x01>;
	};

	bcmpmu {
		compatible = "Broadcom,bcmpmu";
		reginit = <0x04 0x16>;
		initdata = <0x00 0x01 0x00 0x01 0x00 0x0c 0x1b 0xff 0x00 0x40 0xff 0xff 0x00 0x41 0xff 0xff 0x00 0x42 0xff 0xff 0x00 0x43 0xff 0xff 0x00 0x44 0xff 0xff 0x00 0x45 0xff 0xff 0x00 0x46 0xff 0xff 0x00 0x47 0xff 0xff 0x00 0x52 0x04 0x04 0x00 0x58 0x0f 0x0f 0x00 0xb1 0x4b 0xff 0x00 0xb2 0x04 0xff 0x00 0xb3 0x25 0xff 0x00 0xb4 0x27 0xff 0x00 0xb5 0x05 0xff 0x00 0xb6 0x07 0xff 0x00 0xb7 0x25 0xff 0x00 0xb8 0x06 0xff 0x00 0xb9 0x07 0xff 0x00 0xbd 0x21 0xff>;
		cutoff = <0xce4>;
		fg_slp_curr_ua = <0x3e8>;
		fg_factor = <0x3e8>;
		fg_sns_res = <0x0a>;
	};

	battery {
		compatible = "Broadcom,battery";
		device_type = "battery";
		model = "SS,EB494358,1350mAH";
		vcmap-size = <0x02 0x18>;
		vcmap = <0x1040 0x64 0x1022 0x5f 0xff5 0x5a 0xfc8 0x55 0xf92 0x50 0xf6c 0x4b 0xf4a 0x46 0xf25 0x41 0xf02 0x3c 0xee7 0x37 0xed2 0x32 0xec0 0x2d 0xeb1 0x28 0xea7 0x23 0xe9e 0x1e 0xe8c 0x19 0xe64 0x14 0xe4b 0x0f 0xe1c 0x0a 0xded 0x08 0xdb3 0x06 0xd66 0x04 0xd0c 0x02 0xca4 0x00>;
		capacity = <0x546>;
		charge-eoc = <0x43>;
		batt-esr = <0xee>;
		charge-1c = <0x546>;
		pre_eoc_min_curr = <0x12c>;
	};
};

Partitions

Click expand button to the right.

# cat /proc/partitions
major minor  #blocks  name

 179        0    7634944 mmcblk0
 179        1       1024 mmcblk0p1
 179        2        256 mmcblk0p2
 179        3        256 mmcblk0p3
 179        4        256 mmcblk0p4
 179        5      20480 mmcblk0p5
 179        6       2048 mmcblk0p6
 179        7       2048 mmcblk0p7
 179        8       8192 mmcblk0p8
 179        9       8192 mmcblk0p9
 179       10       8192 mmcblk0p10
 179       11        512 mmcblk0p11
 179       12        512 mmcblk0p12
 179       13      19200 mmcblk0p13
 179       14        512 mmcblk0p14
 179       15        256 mmcblk0p15
 179       16     319488 mmcblk0p16
 179       17    1572592 mmcblk0p17
 179       18      30720 mmcblk0p18
 179       19    5632000 mmcblk0p19

# ls -la /dev/block/platform/sdhci.1/
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
drwxr-xr-x root     root              2013-01-05 07:31 by-name
drwxr-xr-x root     root              2013-01-05 07:31 by-num
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0 -> /dev/block/mmcblk0
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p10 -> /dev/block/mmcblk0p10
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p11 -> /dev/block/mmcblk0p11
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p12 -> /dev/block/mmcblk0p12
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p13 -> /dev/block/mmcblk0p13
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p14 -> /dev/block/mmcblk0p14
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p15 -> /dev/block/mmcblk0p15
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p16 -> /dev/block/mmcblk0p16
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p17 -> /dev/block/mmcblk0p17
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p18 -> /dev/block/mmcblk0p18
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p19 -> /dev/block/mmcblk0p19
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p8 -> /dev/block/mmcblk0p8
lrwxrwxrwx root     root              2013-01-05 07:31 mmcblk0p9 -> /dev/block/mmcblk0p9

# ls -la /dev/block/platform/sdhci.1/by-name/
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
lrwxrwxrwx root     root              2013-01-05 07:31 BOTA0 -> /dev/block/mmcblk0p6
lrwxrwxrwx root     root              2013-01-05 07:31 BOTA1 -> /dev/block/mmcblk0p7
lrwxrwxrwx root     root              2013-01-05 07:31 CSC -> /dev/block/mmcblk0p16
lrwxrwxrwx root     root              2013-01-05 07:31 DTS -> /dev/block/mmcblk0p14
lrwxrwxrwx root     root              2013-01-05 07:31 FOTA_SIG -> /dev/block/mmcblk0p15
lrwxrwxrwx root     root              2013-01-05 07:31 HIDDEN -> /dev/block/mmcblk0p18
lrwxrwxrwx root     root              2013-01-05 07:31 KERNEL -> /dev/block/mmcblk0p9
lrwxrwxrwx root     root              2013-01-05 07:31 PARAM -> /dev/block/mmcblk0p8
lrwxrwxrwx root     root              2013-01-05 07:31 RECOVERY -> /dev/block/mmcblk0p10
lrwxrwxrwx root     root              2013-01-05 07:31 RESERVED1 -> /dev/block/mmcblk0p11
lrwxrwxrwx root     root              2013-01-05 07:31 RESERVED2 -> /dev/block/mmcblk0p12
lrwxrwxrwx root     root              2013-01-05 07:31 RF_CAL_FILE -> /dev/block/mmcblk0p4
lrwxrwxrwx root     root              2013-01-05 07:31 cal -> /dev/block/mmcblk0p1
lrwxrwxrwx root     root              2013-01-05 07:31 efs -> /dev/block/mmcblk0p5
lrwxrwxrwx root     root              2013-01-05 07:31 modem -> /dev/block/mmcblk0p13
lrwxrwxrwx root     root              2013-01-05 07:31 parm-spml_dep -> /dev/block/mmcblk0p3
lrwxrwxrwx root     root              2013-01-05 07:31 sysparm_dep -> /dev/block/mmcblk0p2
lrwxrwxrwx root     root              2013-01-05 07:31 system -> /dev/block/mmcblk0p17
lrwxrwxrwx root     root              2013-01-05 07:31 userdata -> /dev/block/mmcblk0p19

GPIO pins

  • 91 - Something related to SD card
  • 24 - Power saving for UART GPS
  • 2, 111 - related to camera
  • 9, 10, 11 - buttons:
#define GPIO_KEYS_SETTINGS { \
      { KEY_VOLUMEUP,9, 1, "VOLUMEUP", EV_KEY, 0, 64}, \
    { KEY_HOME, 10, 1, "HOME", EV_KEY, 0, 64},  \
      { KEY_VOLUMEDOWN,11, 1, "VOLUMEDOWN", EV_KEY, 0, 64}, \
}
  • 89 - irq pin for ambient sensor
  • 121, 70 - related to more buttons, possibly headset detection
  • 28, 71 - related to rfkill
  • 32, 72 - related to bluetooth(?)
  • 3, 74 - related to wifi
  • 24(?) - used by backlight
  • 113, 114, 56 - used by fsa9485 (musb switch)
  • 0 - related to konafb
  • 12, 13 - more related to camera

Unused

  • 73, 70 - Related to unused touchscreens
  • 17, 16, 90 - Related to ISDBT (television transmission protocol in certain latin countries, only used on the dtv model released in latin countries(?))
  • 92 - used for unused bma2x2 sensor
  • 22 - used by konafb on BAFFINLITE_REV00, unused since the used one is REV02 which defines it as 0