[PATCH openfirmware] Add more info to device tree
Daniel Drake
dsd at laptop.org
Sun Feb 27 17:17:10 EST 2011
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.
More information about the Devel
mailing list