I've been googling and watching device tree tutorials... all targeted at 
3.8 kernel.
This is great for learning the basics, but I have 3.14 kernel:  Linux 
beaglebone 3.14.19-ti-r30 #1 SMP PREEMPT Mon Oct 13 20:34:06 UTC 2014 
armv7l GNU/Linux
>From what I can find, the friendly device tree tools haven't been ported to 
3.14 yet.
The best way to work with the device tree is to decompile your existing dtb 
(I have a 4D LCD display, so I've decompiled the dub for it below)

#dtc -I dtb -O dts 
/boot/dtbs/3.14.19-ti-r30/am335x-boneblack-4dcape-43t.dtb > 
am335x-boneblack-4dcape-43t.dts

My goal is to set up the following changes for a A/D light sensor, RGB PWM 
LED driver, 2 stepper motors with 2 zero crossing sensors (switches)

ANALOG P9-39                    AIN0     Light Sensor A/D
OUT P8-19 gpio0[22] 22 0x820 EHRPWM2A RED LED PWM
OUT P8-13 pgio0[23] 23 0x824 EHRPWM2B GREEN LED PWM
OUT P9-14 gpio1[18] 50 0x848 EHRPWM1A BLUE LED PWM
IN P8-14 gpio0[26] 26 0x828 GPIO0_26 Sensor 1 Zero Crossing
IN P8-17 gpio0[27] 27 0x82c GPIO0_27 Sensor 2 Zero Crossing
OUT P8-12 gpio1[12] 44 0x830 GPIO1_12 Stepper A1
OUT P8-11 gpio1[13] 45 0x834 GPIO1_13 Stepper B1
OUT P8-16 gpio1[14] 46 0x838 GPIO1_14 Stepper C1
OUT P8-15 gpio1[15] 47 0x83c GPIO1_15 Stepper D1
OUT P9-15 gpio1[16] 48 0x840 GPIO1_16 Stepper A2
OUT P9-23 gpio1[17] 49 0x844 GPIO1_17 Stepper B2
OUT P9-12 gpio1[28] 60 0x878 GPIO1_28 Stepper C2
OUT P8-26 gpio1[29] 61 0x87c GPIO1_29 Stepper D2

The decompiled DTS is pretty confusing.  I'm not sure what sections to 
change to tie all the pieces together.

Is there a tutorial somewhere to describe how to do this for kernel 3.14? 



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to