* i2c for omap5912,help me
[not found] <20061130231453.48C468062D@linux.omap.com>
@ 2006-12-08 6:51 ` 李玮
2006-12-08 18:04 ` Ishigami, Tatsuya
2006-12-10 7:16 ` David Brownell
0 siblings, 2 replies; 3+ messages in thread
From: 李玮 @ 2006-12-08 6:51 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
Hi ,
I'm using an omap5912 and would like to light the led D3
on the board thru the i2c driver.
Now I can not see nothing in /proc/sys/dev/ and /dev,
but I can see there is something about
i2c in /proc/bus/. I can not open the file,Could there
be something wrong with my opening the dev file ? I hope
there is someone who knows my problem? Thanks in
advance.
Below are the debug msg aswell as the code.
int adapter_nr = 0;
int file;
char filename[20];
sprintf(filename,"/dev/i2c-%d",adapter_nr);
if ((file = open(filename,O_RDWR)) < 0) {
printf("Error Opening File\n");
exit(1);
}
the file value is allways 1,Who can help me?Thanks!
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: i2c for omap5912,help me
2006-12-08 6:51 ` i2c for omap5912,help me 李玮
@ 2006-12-08 18:04 ` Ishigami, Tatsuya
2006-12-10 7:16 ` David Brownell
1 sibling, 0 replies; 3+ messages in thread
From: Ishigami, Tatsuya @ 2006-12-08 18:04 UTC (permalink / raw)
To: 李玮, linux-omap-open-source
Hi,
Does this help?
http://oskfordummies.hp.infoseek.co.jp/howto/led.html
Regards,
Ishigami
-----Original Message-----
From: 李玮 [mailto:coffeeyu531@126.com]
Sent: Thursday, December 07, 2006 10:51 PM
To: linux-omap-open-source@linux.omap.com
Subject: i2c for omap5912,help me
Hi ,
I'm using an omap5912 and would like to light the led D3
on the board thru the i2c driver.
Now I can not see nothing in /proc/sys/dev/ and /dev,
but I can see there is something about
i2c in /proc/bus/. I can not open the file,Could there
be something wrong with my opening the dev file ? I hope
there is someone who knows my problem? Thanks in
advance.
Below are the debug msg aswell as the code.
int adapter_nr = 0;
int file;
char filename[20];
sprintf(filename,"/dev/i2c-%d",adapter_nr);
if ((file = open(filename,O_RDWR)) < 0) {
printf("Error Opening File\n");
exit(1);
}
the file value is allways 1,Who can help me?Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: i2c for omap5912,help me
2006-12-08 6:51 ` i2c for omap5912,help me 李玮
2006-12-08 18:04 ` Ishigami, Tatsuya
@ 2006-12-10 7:16 ` David Brownell
1 sibling, 0 replies; 3+ messages in thread
From: David Brownell @ 2006-12-10 7:16 UTC (permalink / raw)
To: linux-omap-open-source; +Cc: 李玮
> I'm using an omap5912 and would like to light the led D3
> on the board thru the i2c driver.
In the kernel, <asm/arch/tps65010.h> exports
extern int tps65010_set_led(unsigned led, unsigned mode);
extern int tps65010_set_gpio_out_value(unsigned gpio, unsigned value);
which are used for those LEDs. D3 is connected to TPS65010 GPIO 2...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-10 7:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20061130231453.48C468062D@linux.omap.com>
2006-12-08 6:51 ` i2c for omap5912,help me 李玮
2006-12-08 18:04 ` Ishigami, Tatsuya
2006-12-10 7:16 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox