Code: Select all
dtparam=i2c_arm=on,spi=on
I have done this....PhilE wrote:[This is getting a bit off-topic. Perhaps you would like to create a DT Q&A thread.]
Code: Select all
pi@raspberrypi ~ $ sudo uname -a
Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux
Code: Select all
pi@raspberrypi ~ $ lsmod
Module Size Used by
snd_bcm2835 21342 0
snd_pcm 93100 1 snd_bcm2835
snd_seq 61097 0
snd_seq_device 7209 1 snd_seq
snd_timer 23007 2 snd_pcm,snd_seq
snd 67211 5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
rtc_ds1307 10347 0
spi_bcm2708 6018 0
i2c_bcm2708 6200 0
8192cu 569633 0
uio_pdrv_genirq 3666 0
uio 9897 1 uio_pdrv_genirq
Code: Select all
pi@raspberrypi ~ $ dmesg|grep i2c
[ 5.996547] bcm2708_i2c_init_pinmode(1,2)
[ 6.147769] bcm2708_i2c_init_pinmode(1,3)
[ 6.355542] bcm2708_i2c 20804000.i2c: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
pi@raspberrypi ~ $
Code: Select all
dtparam=spi=on
dtparam=i2c=on
dtoverlay=ds1307-rtc
Code: Select all
pi@raspberrypi ~ $ sudo i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
pi@raspberrypi ~ $
Where can I read more about this, as I am confused. If I have a physical pull-up resistor fitted, which option should I chose?PhilE wrote: * Errm, "w1-gpio"?
Slightly more complicated. If you require the external pullup pin, use:
"dtoverlay=w1-gpio-pullup,gpiopin=<x>,extpullup=<y>"
otherwise use:
"dtoverlay=w1-gpio,gpiopin=<x>"
(where <x> and <y> are GPIO pins, obviously).
If you are using the parasitic power (power over data, 2-wire) mode, add ",pullup=1" (or ",pullup=on")
Code: Select all
dtoverlay=lirc-rpi,gpio_in_pin=6
Code: Select all
[ 10.399177] CPU: 0 PID: 412 Comm: lircd Tainted: G C 3.18.7+ #755
[ 10.524022] [<c00612ac>] (request_threaded_irq) from [<bf01dab4>] (set_use_inc+0x44/0xd8 [lirc_rpi])
Code: Select all
// Enable the ARM-side i2c device
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&i2c_arm>;
__overlay__ {
status = "okay";
};
};
};
Code: Select all
H4sIAOY+7FQAA+3VS0rDUBQG4FNfUKSgggMHSpw5sHrzLh25k3AT0xps2pCkYhcluALX4AocOxF3
IJ60NyrF2kEf0vJ/cLiBe/IgOT8Ju9LvhPXICOoyjeu9uzDtyMHFde7T3AjmOFax6q4tfq5Dlq6T
bliuKUxHGAYJ3TJtmzQxv0eYrJ/lMtU0Sm6izl990/ZX1HPt442oUuXDBtcr1xnXPteeajnlevzl
1IpaN7lqxYGfBvG5H8SGKxplTyuV7Tjs5lfiq3eLa/fl4em92Pc8NXKeV+5vcx30buVAXWNDFfe2
ovt+ko1ah72HXEeX3zdp8sdsh3lTjJ1bDXpxIvOIZ51GLcTfPe9nxJPv8eTP8g5XWVjmP1tM9gtT
8y/sMv+ucG3Ov+mYFvK/DCr/ReYm5f+Y1jv/2Szvb9Wp/GdJ9J/5d8b+/6bLC/K/BCr/OzQ5/ye0
zvnnyV/KnAEAAAAAAAAAAAAAAAAALNgnEwTpUwAoAAA=
Code: Select all
base64 -d <file> | (cd /boot/overlays; sudo tar zxvf -)
Code: Select all
dtoverlay=enable-i2c-arm
dtoverlay=enable-i2s
dtoverlay=enable-spi
Code: Select all
dtoverlay enable-i2c-arm