On Thu, Nov 19, 2015 at 7:36 PM, William Hermans <[email protected]> wrote: > So, I'm wondering with a hardware resource, that is "claimed" through the > main board device tree file. Such as the on board USR LEDs. What is the > proper way to reclaim these pins, so they can be used for a different > purpose ?
They are claimed here: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/am335x-bone-common.dtsi#n21 via: pinctrl-0 = <&user_leds_s0>; & gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; Whereas this define, doesn't 'claim' them, it just set's up a struct to be utiilzed by above ^^ user_leds_s0: user_leds_s0 { pinctrl-single,pins = < 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */ 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */ 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */ 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */ >; }; Regards, -- Robert Nelson https://rcn-ee.com/ -- 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.
