Handhelds.org - Open source for handheld devices

UserPreferences

LooxC550Hardware


FSC LOOX 5xx Hardware

Home | Downloads | Users' Documentation | Developers' Center | Hardware |

Hardware

GPIOs

GPIO Function Notes
0 Power Key
4 Battary cover
9 External power connected
11 ???? WM5 turns it to input when external power connected
13 USB connected
16 Backlight PWM
17 works as PWM
28 I2S_BITCLK Sound codec
29 I2S_SDATA_IN --
30 I2S_SDATA_OUT --
31 I2S_SYNC --
56 Audio cradle out enabled
93 Headphone jack connected
94 Touchpannel IRQ
97 PXA27x keypad matrix output 0
98 PXA27x keypad matrix output 1
100 PXA27x keypad matrix input 0
101 PXA27x keypad matrix input 1
102 PXA27x keypad matrix input 2
107 Charge enabled??? WM5 sets it to 0 on external power connected
113 I2S_SYSCLK Sound codec
114 ??? output, turbo mode=1,standart=0, power-saving=1 or 0
115 ??? output, turbo mode=1,standart=1, power-saving=0
116 ??? output, turbo mode=0,standart=1, power-saving=0
117 I2C SCL
118 I2C SDA

FSC Loox N560

Memory map

vaddr paddr size comment
0xa0000000 0x00000000 0x40 G4 ROM
0xac000000 0xa0000000 0x1 wince data, FBRAM
+0x02000 + SBL PTBL
+0x14000 - SBL SP
+0x25300 - state/console parameters block (=0x1a2b3c4d)
+0x25304 - (=0x1a2b3c4d)
Haret command to dump CPLD: pd 0xa0025320 28
+0x25320 - CPLD-A (shadow)
+0x25324 - CPLD-B (shadow)
+0x25328 - CPLD-C (shadow)
+0x2532c - CPLD-D (shadow)
+0x25330 - CPLD-E (shadow)
+0x25334 - CPLD-F (shadow)
+0x25338 - CPLD-G (shadow)
+0x2542d - cpld2 (led?) shadow bits
+0x25464 - cpld1 (led?) shadow bits
+0x25465 - cpld1 (led?) shadow bits
0xac100000 0xa0100000 0x1 SBL in SDRAM
0xac200000 0xa0200000 0x3e wince in SDRAM
0xb4000000 0x20000000 2 pcmcia0
0xb4200000 0x28000000 8 pcmcia0
0xb4a00000 0x2c000000 0x40 pcmcia0
0xb8a00000 0x30000000 2 pcmcia1
0xb8c00000 0x38000000 8 pcmcia1
0xb9400000 0x3c000000 0x40 pcmcia1
0xbd400000 0xe0000000 4 ?
0xa8000000 0x40000000 0x20 PXA27x
0xaa000000 0x44000000 1 PXA27x
0xaa100000 0x48000000 1 PXA27x
0xaa200000 0x4c000000 1 PXA27x
0xaa300000 0x50000000 1 PXA27x
0xaa400000 0x58000000 1 PXA27x
0xaa500000 0x5c000000 1 PXA27x
0xbdb00000 0x10000000 1 CPLD
0xbdc00000 0x14000000 1 debug
0xbdd00000 0x15000000 1 debug smc
0xbde00000 0x15100000 1 debug
0xbdf00000 0x16000000 1 debug

CPLD registers

*Apin +0x0 bit Description 0
GPIOA0 0x0001 bt (led?) pwr1(on=1)
GPIOA1 0x0002 bt (led?) related
GPIOA2 0x0004 gps pwr1(on=1)
GPIOA3 0x0008 kioctl something
GPIOA4 0x0010
GPIOA5 0x0020
GPIOA6 0x0040
GPIOA7 0x0080
*Bpin +0x2 bit Description 1
GPIOB0 0x0001 +nk/batt
GPIOB1 0x0002 +nk/batt
GPIOB2 0x0004 +nk
GPIOB3 0x0008
GPIOB4 0x0010
GPIOB5 0x0020
GPIOB6 0x0040
GPIOB7 0x0080
*Cpin +0x04 bit Description 2
GPIOC0 0x0001 +nk (led?)
GPIOC1 0x0002 + (led?)
GPIOC2 0x0004 +nk (led?)
GPIOC3 0x0008 + (led?)
GPIOC4 0x0010
GPIOC5 0x0020
GPIOC6 0x0040
GPIOC7 0x0080
*Dpin +0x06 bit Description 3
GPIOD0 0x0001 kbd backlight(on=1)
GPIOD1 0x0002 charge_rate?
GPIOD2 0x0004 bt pwr2(on=1)
GPIOD3 0x0008 snd pwr (i2c related) (on=1)
GPIOD4 0x0010
GPIOD5 0x0020
GPIOD6 0x0040
GPIOD7 0x0080
*Epin +0x08 bit Description 4
GPIOE0 0x0001 snd (on=1)
GPIOE1 0x0002 bt reset: 0,msleep8,1
GPIOE2 0x0004
GPIOE3 0x0008 sd reset: 0,msleep20,1
GPIOE4 0x0010
GPIOE5 0x0020
GPIOE6 0x0040
GPIOE7 0x0080
*Fpin +0x0a bit Description 5
GPIOF0 0x0001 wifi pwr1(on=1)
GPIOF1 0x0002 wifi pwr2(on=1)
GPIOF2 0x0004 non-toppoly lcd pwr?
GPIOF3 0x0008 lcd pwr(on=1)
GPIOF4 0x0010
GPIOF5 0x0020
GPIOF6 0x0040
GPIOF7 0x0080
*Gpin +0x0c bit Description 6
GPIOG0 0x0001 batt1
GPIOG1 0x0002 batt2
GPIOG2 0x0004 batt3=0
GPIOG3 0x0008 gps pwr2(on=1)
GPIOG4 0x0010
GPIOG5 0x0020
GPIOG6 0x0040
GPIOG7 0x0080

LEDs ?

n 0,1 0,2 2,1 2,2 2,4 2,8 CPLD-A CPLD-C LED state
0 0 0 0 0 0 0 0x0000 0x0000 L, off : R, red, blink (00000004, 00000000)
0 0 0 0 0 0 0 0x0000 0x0000 L, off : R, off (00000004, 00000000) !!!!
1 0 1 1 0 0 0 0x0002 0x0001 L, green, blink : R, red, blink (00000006, 00000001)
2 1 0 0 1 0 0 0x0001 0x0002 L, blue, blink : (00000005, 00000002)
3 1 1 0 0 1 0 0x0003 0x0004
4 0 0 1 1 0 0 0x0000 0x0003 L, green, blink : (00000004, 00000003)
5 1 0 1 0 1 0 0x0001 0x0005
6 1 0 0 1 1 0 0x0001 0x0006
7 1 1 1 1 1 0 0x0003 0x0007

CPLD registers (pd 0xa0025320 28) with only one component active at a time:

CPLD-A CPLD-B CPLD-C CPLD-D CPLD-E CPLD-F CPLD-G left led right led gps wifi bt ir usb comment
00000004 00000000 00000000 00000009 00000009 00000008 00000001 off off off off off off off
00000004 00000001 00000000 0000000B 00000009 00000008 00000001 off red on off off off off on charged
00000004 00000003 00000000 0000000B 00000009 00000008 00000001 off red blink off off off off on chargeing
00000004 00000000 00000003 00000009 00000009 00000008 00000001 green blink off on off off off off
00000006 00000000 00000001 00000009 00000009 0000000B 00000001 green blink off off on off off off
00000005 00000000 00000002 0000000D 0000000B 00000008 00000001 blue blink off off off on off off
00000004 00000000 00000000 00000009 00000009 00000008 00000001 off off off off off on off
00000006 00000000 00000005 00000009 00000009 0000000B 00000001 green blink off on on off off off blinks twice the normal frequency
00000007 00000000 00000007 0000000D 0000000B 0000000B 00000001 gr/bl blink off on on on off off blinks twice the normal frequency

GPIO init

Haret command: dump gpio'

GPIO Usage N/I Dir Alternate Function Set Clr Sleep PWER PRER PFER
0 00 00000001 REFE,Power in 0 gpio 0 0 0 0 1 1 1
1 01 00000002 x in 0 gpio 1 0 0 0 1 1 1
2 02 00000004 out 0 gpio 2 1 0 1 0 0 0
3 03 00000008 in 0 gpio 3 0 0 0 0 0 0
4 04 00000010 REFE, BATT in 0 gpio 4 0 0 0 0 0 1
5 05 00000020 in 0 gpio 5 0 0 0 0 0 0
6 06 00000040 in 0 gpio 6 0 0 0 0 0 0
7 07 00000080 in 0 gpio 7 0 0 0 0 0 0
8 08 00000100 in 0 gpio 8 0 0 0 0 0 0
9 09 00000200 REFE,AC on in 0 gpio 9 0 0 0 1 1 1
10 0a 00000400 CHOUT1 out 3 CHOUT1 1 0 0 0 0 0
11 0b 00000800 batt related out 0 gpio 11 0 1 0 1 1 0
12 0c 00001000 FE, wifi irq in 1 gpio 12/IRQ 0 1 0 0 0 0
13 0d 00002000 REFE,USB on in 0 gpio 13 0 0 0 1 1 1
14 0e 00004000 LCD spi_cs out 0 gpio 14 0 1 0 0 0 0
15 0f 00008000 SD ro in 0 gpio 15 0 0 0 0 0 0
16 10 00010000 BL PWM out 0 gpio 16/PWM0 0 1 0 - - -
17 11 00020000 PWM out 0 gpio 17/PWM1 0 1 0 - - -
18 12 00040000 RDY in 1 RDY 0 0 0 - - -
19 13 00080000 LCD spi_clk out 0 gpio 19 0 1 0 - - -
20 14 00100000 BOARDID0 in 0 gpio 20 0 0 0 - - -
21 15 00200000 BOARDID1 in 0 gpio 21 0 0 0 - - -
22 16 00400000 bt reset1 out 0 gpio 22 0 1 0 - - -
23 17 00800000 TS,batt SPI_CLK out 2 SSP_CLK 0 1 0 - - -
24 18 01000000 TS,batt SPI_CS out 2 SSP_FRM 1 0 0 - - -
25 19 02000000 TS,batt SPI_TX out 2 SSP_TXD 0 1 0 - - -
26 1a 04000000 TS,batt SPI_RX in 1 SSP_RXD 0 0 0 - - -
27 1b 08000000 out 0 gpio 27 0 1 0 - - -
28 1c 10000000 I2S_BITCLK out 0 gpio 28 0 1 0 - - -
29 1d 20000000 I2S_SDATA_IN out 0 gpio 29 0 1 0 - - -
30 1e 40000000 I2S_SDATA_OUT out 0 gpio 30 0 1 0 - - -
31 1f 80000000 I2S_SYNC out 0 gpio 31 0 1 0 - - -
bank1
32 20 00000001 MMCLK out 0 gpio 32/MMCLK 0 1 0 - - -
33 21 00000002 nCS5 out 2 nCS5 1 0 1 - - -
34 22 00000004 RS232 in 1 FF_RXD 0 0 0 - - -
35 23 00000008 RS232 in 1 FF_CTS 0 0 0 - - -
36 24 00000010 RS232 in 1 FF_DCD 0 0 0 - - -
37 25 00000020 RS232 in 1 FF_DSR 0 0 0 - - -
38 26 00000040 reset_splash in 0 gpio 38 0 0 0 - - -
39 27 00000080 RS232 out 2 FF_TXD 0 1 0 - - -
40 28 00000100 RS232 out 2 FF_DTR 1 0 0 - - -
41 29 00000200 RS232 out 2 FF_RTS 1 0 0 - - -
42 2a 00000400 BT_RX out 0 gpio 42 0 1 0 - - -
43 2b 00000800 BT_TX out 0 gpio 43 0 1 0 - - -
44 2c 00001000 BT_CTS out 0 gpio 44 0 1 0 - - -
45 2d 00002000 BT_RTS out 0 gpio 45 0 1 0 - - -
46 2e 00004000 IR/GPS in 2 ST_RXD 0 0 0 - - -
47 2f 00008000 IR/GPS out 1 ST_TXD 0 1 0 - - -
48 30 00010000 wifi_clk(on=1) out 0 gpio 48 0 1 0 - - -
49 31 00020000 nPWE out 2 nPWE 1 0 1 - - -
50 32 00040000 wifi/CPLD prog in 0 gpio 50 0 0 0 - - -
51 33 00080000 CPLD prog in 0 gpio 51 0 0 0 - - -
52 34 00100000 wifi pwr2 out 0 gpio 52 0 1 0 - - -
53 35 00200000 gps pwr(on=1) out 0 gpio 53 0 1 0 - - -
54 36 00400000 in 0 gpio 54 0 0 0 - - -
55 37 00800000 CPLD prog in 0 gpio 55 0 0 0 - - -
56 38 01000000 sound related out 0 gpio 56 0 1 0 - - -
57 39 02000000 USB_PUEN out 0 gpio 57 0 1 0 - - -
58 3a 04000000 LDD0 out 0 gpio 58 0 1 0 - - -
59 3b 08000000 LDD1 out 0 gpio 59 0 1 0 - - -
60 3c 10000000 LDD2 out 0 gpio 60 0 1 0 - - -
61 3d 20000000 LDD3 out 0 gpio 61 0 1 0 - - -
62 3e 40000000 LDD4 out 0 gpio 62 0 1 0 - - -
63 3f 80000000 LDD5 out 0 gpio 63 0 1 0 - - -
bank2
64 40 00000001 LDD6 out 0 gpio 64 0 1 0 - - -
65 41 00000002 LDD7 out 0 gpio 65 0 1 0 - - -
66 42 00000004 LDD8 out 0 gpio 66 0 1 0 - - -
67 43 00000008 LDD9 out 0 gpio 67 0 1 0 - - -
68 44 00000010 LDD10 out 0 gpio 68 0 1 0 - - -
69 45 00000020 LDD11 out 0 gpio 69 0 1 0 - - -
70 46 00000040 LDD12 out 0 gpio 70 0 1 0 - - -
71 47 00000080 LDD13 out 0 gpio 71 0 1 0 - - -
72 48 00000100 LDD14 out 0 gpio 72 0 1 0 - - -
73 49 00000200 LDD15 out 0 gpio 73 0 1 0 - - -
74 4a 00000400 LFCLK_RD out 0 gpio 74 0 1 0 - - -
75 4b 00000800 LFCLK_A0 out 0 gpio 75 0 1 0 - - -
76 4c 00001000 LFCLK_WR out 0 gpio 76 0 1 0 - - -
77 4d 00002000 L_BIAS out 0 gpio 77 0 1 0 - - -
78 4e 00004000 REFE,SD detect in 0 gpio 78 0 0 0 - - -
79 4f 00008000 REFE in 0 gpio 79 0 0 0 - - -
80 50 00010000 nCS4 out 2 nCS4 1 0 1 - - -
81 51 00020000 gps(=1)/ir(=0) mux out 0 gpio 81 1 0 1 - - -
82 52 00040000 wifi(=0?)/mmc(=1?) mux out 0 gpio 82 0 1 0 - - -
83 53 00080000 batt related in 0 gpio 83 0 0 0 - - -
84 54 00100000 REFE in 0 gpio 84 0 0 0 - - -
85 55 00200000 x out 0 gpio 85 0 1 0 - - -
86 56 00400000 LCD spi_rx out 0 gpio 86 0 1 0 - - -
87 57 00800000 LCD spi_tx out 0 gpio 87 0 1 0 - - -
88 58 01000000 USBHPWR1 in 0 gpio 88/USBHPWR1 0 0 0 - - -
89 59 02000000 USBHPEN1 out 0 gpio 89/USBHPEN1 0 1 0 - - -
90 5a 04000000 wifi reset out 0 gpio 90 0 1 0 - - -
91 5b 08000000 lcd pwr3 out 0 gpio 91 0 1 0 - - -
92 5c 10000000 MMDAT0 out 0 gpio 92/MMDAT0 0 1 0 - - -
93 5d 20000000 HP in in 0 gpio 93 0 0 0 - - -
94 5e 40000000 FE, TS irq in 0 gpio 94 0 0 0 - - -
95 5f 80000000 lcd pwr4 out 0 gpio 95 0 1 0 - - -
bank3
96 60 00000001 lcd pwrX out 0 gpio 96 0 1 0 - - -
97 61 00000002 KP_MKIN3 in 3 KP_MKIN3 0 0 0 - - -
98 62 00000004 KP_MKIN4 in 3 KP_MKIN4 0 0 0 - - -
99 63 00000008 charge_en out 0 gpio 99 0 1 0 - - -
100 64 00000010 KP_MKIN0 in 1 KP_MKIN0 0 0 0 - - -
101 65 00000020 KP_MKIN1 in 1 KP_MKIN1 0 0 0 - - -
102 66 00000040 KP_MKIN2 in 1 KP_MKIN2 0 0 0 - - -
103 67 00000080 KP_MKOUT0 out 2 KP_MKOUT0 0 1 1 - - -
104 68 00000100 KP_MKOUT1 out 2 KP_MKOUT1 0 1 0 - - -
105 69 00000200 serial related out 0 gpio 105 0 1 0 - - -
106 6a 00000400 out 0 gpio 106 1 0 1 - - -
107 6b 00000800 charge_rate out 0 gpio 107 0 1 0 - - -
108 6c 00001000 SD pwr out 0 gpio 108 0 1 0 - - -
109 6d 00002000 MMDAT1 out 0 gpio 109/MMDAT1 0 1 0 - - -
110 6e 00004000 MMDAT2 out 0 gpio 110/MMDAT2 0 1 0 - - -
111 6f 00008000 MMDAT3 out 0 gpio 111/MMDAT3 0 1 0 - - -
112 70 00010000 MMCMD out 0 gpio 112/MMCMD 0 1 0 - - -
113 71 00020000 I2S_SYSCLK out 0 gpio 113/I2S_SYSCLK 0 1 0 - - -
114 72 00040000 pxapwr0 out 0 gpio 114 1 0 0 - - -
115 73 00080000 pxapwr1 out 0 gpio 115 0 1 0 - - -
116 74 00100000 pxapwr2 out 0 gpio 116 1 0 0 - - -
117 75 00200000 SCL out 0 gpio 117 0 1 0 - - -
118 76 00400000 SDA out 0 gpio 118 0 1 0 - - -
119 77 00800000 in 0 gpio 119 0 0 0 - - -

Other registers

  PWER     : 0x80002a03 = 10000000 00000000 00101010 00000011  (Page 0)
  PRER     : 0x00002a03 = 00000000 00000000 00101010 00000011  (Page 0)
  PFER     : 0x00002213 = 00000000 00000000 00100010 00010011  (Page 0)
  PEDR     : 0x00000001 = 00000000 00000000 00000000 00000001  (Page 0)

  PCFR     : 0x00001031 = 00000000 00000000 00010000 00110001  (Page 0)
  PSLR     : 0xcc400004 = 11001100 01000000 00000000 00000100  (Page 0)
  PSPR     : 0xffffffff = 11111111 11111111 11111111 11111111  (Page 0)
  PSTR     : 0x00000000 = 00000000 00000000 00000000 00000000  (Page 0)
  PVCR     : 0x00000000 = 00000000 00000000 00000000 00000000  (Page 0)

  PGSR0    : 0x00000004 = 00000000 00000000 00000000 00000100  (Page 0)
  PGSR1    : 0x00020002 = 00000000 00000010 00000000 00000010  (Page 0)
  PGSR2    : 0x00030000 = 00000000 00000011 00000000 00000000  (Page 0)
  PGSR3    : 0x00000480 = 00000000 00000000 00000100 10000000  (Page 0)

  MDCNFG   : 0x0b002bc9 = 00001011 00000000 00101011 11001001  (Page xxx)
  MDREFR   : 0x2013e031 = 00100000 00010011 11100000 00110001  (Page xxx)
  MSC0     : 0x7ff038d8 = 01111111 11110000 00111000 11011000  (Page xxx)
  MSC1     : 0x7ff07ff0 = 01111111 11110000 01111111 11110000  (Page xxx)
  MSC2     : 0x7ff47ffc = 01111111 11110100 01111111 11111100  (Page xxx)

  MECR     : 0x00000000 = 00000000 00000000 00000000 00000000  (Page xxx)

  SACR0    : 0x00008805 = 00000000 00000000 10001000 00000101  (Page 723)
  - SACR0  :                      on
  - SACR0  :                      input
  SACR1    : 0x00000018 = 00000000 00000000 00000000 00011000  (Page 723)
  - SACR1  :                      I2S
  SADIV    : 0x0000000d = 00000000 00000000 00000000 00001101  (Page 723)
  SSCR0_P1 : 0x0000818e = 00000000 00000000 10000001 10001110  (Page xxx)

    PWM_CTRL0 : 0x00000001 = 00000000 00000000 00000000 00000001  (Page 0)
  PWM_PWDUTY0 : 0x00000040 = 00000000 00000000 00000000 01000000  (Page 0)
  PWM_PERVAL0 : 0x000000a1 = 00000000 00000000 00000000 10100001  (Page 0)

    PWM_CTRL1 : 0x00000001 = 00000000 00000000 00000000 00000001  (Page 0)
  PWM_PWDUTY1 : 0x0000004b = 00000000 00000000 00000000 01001011  (Page 0)
  PWM_PERVAL1 : 0x00000066 = 00000000 00000000 00000000 01100110  (Page 0)