device-tree

Configuring Pins Mode Beaglebone

妖精的绣舞 提交于 2019-11-28 10:25:46
In the beagleboard or beaglebone are different modes to work the pin. With the previous kernel they are located in /sys/kernel/debug/omap_mux. Do u know with the last Kernel where are those files? I found many of the examples provided at hipstercircuits to be a bit overwhelming; especially if you're just looking to adjust the pins to mode 7. If anyone reading this is having the same issue, the following link may help: http://bbbadventures.blogspot.ca/2013/06/pinmuxing.html It provides the most basic template. Should the link above break, here's the snippet provided (with a few tweaks for

How to program Linux .dts device tree files?

一笑奈何 提交于 2019-11-27 11:43:37
I'm going to launch a Linux on my development board, and i need a dts file (device tree file) to describe the whole hardware. But I only know very little about the syntax of this file which is not enough to run Linux properly on the board. What i know now are only how to describe a unit's interrupt number, frequency, address, parent-unit and its compatible driver type (as described below): ps7_scuwdt_0: ps7-scuwdt@f8f00620 { compatible = "xlnx,ps7-scuwdt-1.00.a"; device_type = "watchdog"; interrupt-parent = <&ps7_scugic_0>; interrupts = < 1 14 769 >; reg = < 0xf8f00620 0xe0 >; } ; Other

Driver code in kernel module doesn't execute?

核能气质少年 提交于 2019-11-27 06:16:14
问题 Why this kernel module doesn't do anything when i load it? #include <linux/init.h> #include <linux/module.h> #include <linux/platform_device.h> #define DEVICE_NAME "hello-1.00.a" #define DRIVER_NAME "hello" MODULE_LICENSE("Dual BSD/GPL"); static int hello_init(struct platform_device *pdev){ printk(KERN_ALERT "Hello, world\n"); return 0; } static int hello_exit(struct platform_device *pdev){ printk(KERN_ALERT "Goodbye, cruel world\n"); return 0; } static const struct of_device_id myled_of

Configuring Pins Mode Beaglebone

自古美人都是妖i 提交于 2019-11-27 03:36:48
问题 In the beagleboard or beaglebone are different modes to work the pin. With the previous kernel they are located in /sys/kernel/debug/omap_mux. Do u know with the last Kernel where are those files? 回答1: I found many of the examples provided at hipstercircuits to be a bit overwhelming; especially if you're just looking to adjust the pins to mode 7. If anyone reading this is having the same issue, the following link may help: http://bbbadventures.blogspot.ca/2013/06/pinmuxing.html It provides