On Fri, Apr 03, 2015 at 02:45:30PM -0400, Michael C. Cambria wrote: > > Hi Alex, > > Do you happen to have the pin mapping & device tree overlay needed for the > Openlabs at86rf233 [0] to run on BeagleBone Black (BBB)? > > I only have a few Pi's but do have a few spare BBB I could use. I'd rather > not experiment an ruin either the BBB or at86rf233 if this information is > known. > What I can give you are my dts entries for the BeagleBone (white), pinout should be the same: &am33xx_pinmux { spi1_pins: pinmux_spi1_pins { pinctrl-single,pins = < 0x190 0x33 /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | MODE3 (special mode input for clock) */ 0x194 0x33 /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 */ 0x198 0x13 /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */ 0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */ 0x1a4 0x2f /* mcasp0_fsr.gpio3_19, INPUT, PULL DISABLED | MODE7 */ >; }; }; &spi1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi1_pins>; at86rf231@0 { compatible = "atmel,at86rf231"; spi-max-frequency = <7500000>; reg = <0>; interrupts = <19 4>; interrupt-parent = <&gpio3>; reset-gpio = $YOUR_GPIO xtal-trim = /bits/ 8 <0xF>; }; }; I also changed the "xtal-trim" value. Now it's fit with the openlabs transceivers. So you can see how my transceiver (I use the atben which have no reset pin) is connected to my BeagleBone. Check [0] to get pins for interrupt and reset pin. I did the reset pin optional, please don't do that... normally then we need to run a reset of phy settings if the at86rf233 have no reset pin which is much unlikely (Okay, the atben have no reset pins...). I did not implement such a PHY reset handling yet. So please use some free gpio. This means you need to replace _maybe_ the interrupts and interrupt-parent property. What you really need to change is the $YOUR_GPIO property to something like [0] (fast googling which use the dt naming stuff). I mean something like: reset-gpio = <&gpio3 21 1>; depends on you adaptation from openlabs at86rf233 to a BBB. - Alex [0] http://blog.savoirfairelinux.com/wp-content/uploads/2013/11/beaglebone_pins-table.png [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/gpio/gpio.txt -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html