Re: [PATCH openfirmware] Add more info to device tree

2011-02-27 Thread James Cameron
On Sun, Feb 27, 2011 at 10:17:10PM +, Daniel Drake wrote:
> In Linux we plan to use the device tree for probing the DCON, battery,
> and XO-1 RTC drivers.
> 
> Add the required information using the naming scheme suggested by
> Grant Likely.

Tested on XO-1.5 using a build of Q3A62 plus this patch, against 10.1.3
and 11.2.0 os11, the following /ofw entries were visible:

/ofw/pci/isa@11/rtc@i70/compatible -> 'olpc,xo1-rtc' 'pnpPNP,b00'
(previously only 'pnpPNP,b00')

/ofw/pci/display@1/dcon/compatible -> 'olpc,xo1-dcon'
(previously not present)

/ofw/battery@0/compatible -> 'olpc,xo1-battery'
(previously not present)

Reviewed-by: James Cameron 
Tested-by: James Cameron 

--
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[PATCH openfirmware] Add more info to device tree

2011-02-27 Thread Daniel Drake
In Linux we plan to use the device tree for probing the DCON, battery, and
XO-1 RTC drivers.

Add the required information using the naming scheme suggested by
Grant Likely.

Index: cpu/x86/pc/olpc/rtcwake.fth
===
--- cpu/x86/pc/olpc/rtcwake.fth (revisión: 2174)
+++ cpu/x86/pc/olpc/rtcwake.fth (copia de trabajo)
@@ -2,6 +2,7 @@
 \ See license at end of file
 
 dev /rtc
+" olpc,xo1-rtc" +compatible
 
 cmos-alarm-day" alarm_day"   integer-property
 cmos-alarm-month  " alarm_month" integer-property
Index: dev/olpc/dcon/dcon.fth
===
--- dev/olpc/dcon/dcon.fth  (revisión: 2174)
+++ dev/olpc/dcon/dcon.fth  (copia de trabajo)
@@ -1,6 +1,10 @@
 \ See license at end of file
-\ " dcon" device-name
 
+new-device
+" dcon" device-name
+" olpc,xo1-dcon" +compatible
+finish-device
+
 \ DCON internal registers, accessed via I2C
 \ 0 constant DCON_ID
 \ 1 constant DCON_MODE
Index: dev/olpc/dcon/viadcon.fth
===
--- dev/olpc/dcon/viadcon.fth   (revisión: 2174)
+++ dev/olpc/dcon/viadcon.fth   (copia de trabajo)
@@ -1,6 +1,10 @@
 \ See license at end of file
-\ " dcon" device-name
 
+new-device
+" dcon" device-name
+" olpc,xo1-dcon" +compatible
+finish-device
+
 \ DCON internal registers, accessed via I2C
 \ 0 constant DCON_ID
 \ 1 constant DCON_MODE
Index: dev/olpc/kb3700/batstat.fth
===
--- dev/olpc/kb3700/batstat.fth (revisión: 2174)
+++ dev/olpc/kb3700/batstat.fth (copia de trabajo)
@@ -145,6 +145,8 @@
 dev /
 new-device
 " battery" device-name
+" olpc,xo1-battery" +compatible
+
 0 0 reg  \ Needed so test-all will run the selftest
 
 \ Test that the battery is inserted and not broken.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-utils patches for review on the v1.0 track (#10715, #10711)

2011-02-27 Thread Daniel Drake
On 24 February 2011 21:49, Martin Langhoff  wrote:
> They also cherry-pick well onto current master.
>
> http://dev.laptop.org/git/users/martin/olpc-utils/log/
>
> Test rpm at 
> http://dev.laptop.org/~martin/public_rpms/f11/olpc-utils-1.0.31.3.g1f66f69-1.fc11.i386.rpm

thanks, both pushed
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel