File tree 4 files changed +91
-0
lines changed
arch/arm/boot/dts/overlays 4 files changed +91
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ dtb-$(RPI_DT_OVERLAYS) += hy28a-overlay.dtb
27
27
dtb-$(RPI_DT_OVERLAYS) += hy28b-overlay.dtb
28
28
dtb-$(RPI_DT_OVERLAYS) += i2c-rtc-overlay.dtb
29
29
dtb-$(RPI_DT_OVERLAYS) += i2c-gpio-overlay.dtb
30
+ dtb-$(RPI_DT_OVERLAYS) += i2c0-bcm2708-overlay.dtb
31
+ dtb-$(RPI_DT_OVERLAYS) += i2c1-bcm2708-overlay.dtb
30
32
dtb-$(RPI_DT_OVERLAYS) += i2s-mmap-overlay.dtb
31
33
dtb-$(RPI_DT_OVERLAYS) += iqaudio-dac-overlay.dtb
32
34
dtb-$(RPI_DT_OVERLAYS) += iqaudio-dacplus-overlay.dtb
Original file line number Diff line number Diff line change @@ -350,6 +350,22 @@ Params: ds1307 Select the DS1307 device
350
350
pcf8563 Select the PCF8563 device
351
351
352
352
353
+ Name: i2c0-bcm2708
354
+ Info: Enable the i2c_bcm2708 driver for the i2c0 bus
355
+ Load: dtoverlay=i2c0-bcm2708,<param>=<val>
356
+ Params: sda0_pin GPIO pin for SDA0 (0, 28 [or 44] - default 0)
357
+ scl0_pin GPIO pin for SCL0 (1, 29 [or 45] - default 1)
358
+
359
+
360
+ Name: i2c1-bcm2708
361
+ Info: Enable the i2c_bcm2708 driver for the i2c1 bus
362
+ Load: dtoverlay=i2c1-bcm2708,<param>=<val>
363
+ Params: sda1_pin GPIO pin for SDA1 (2 or 44 - default 2)
364
+ scl1_pin GPIO pin for SCL1 (3 or 45 - default 3)
365
+ pin_func Alternative pin function (4 (alt0), 6 (alt2) -
366
+ default 4)
367
+
368
+
353
369
Name: i2s-mmap
354
370
Info: Enables mmap support in the bcm2708-i2s driver
355
371
Load: dtoverlay=i2s-mmap
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Device tree overlay for i2c_bcm2708, i2c0 bus
3
+ *
4
+ * Compile:
5
+ * dtc -@ -I dts -O dtb -o i2c0-bcm2708-overlay.dtb i2c0-bcm2708-overlay.dts
6
+ */
7
+
8
+ /dts-v1/;
9
+ /plugin/;
10
+
11
+ /{
12
+ compatible = "brcm,bcm2708";
13
+
14
+ fragment@0 {
15
+ target = <&i2c0>;
16
+ __overlay__ {
17
+ pinctrl-0 = <&i2c0_pins>;
18
+ status = "okay";
19
+ };
20
+ };
21
+
22
+ fragment@1 {
23
+ target = <&gpio>;
24
+ __overlay__ {
25
+ i2c0_pins: i2c0 {
26
+ brcm,pins = <0 1>;
27
+ brcm,function = <4>; /* alt0 */
28
+ };
29
+ };
30
+ };
31
+
32
+ __overrides__ {
33
+ sda0_pin = <&i2c0_pins>,"brcm,pins:0";
34
+ scl0_pin = <&i2c0_pins>,"brcm,pins:4";
35
+ };
36
+ };
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Device tree overlay for i2c_bcm2708, i2c1 bus
3
+ *
4
+ * Compile:
5
+ * dtc -@ -I dts -O dtb -o i2c1-bcm2708-overlay.dtb i2c1-bcm2708-overlay.dts
6
+ */
7
+
8
+ /dts-v1/;
9
+ /plugin/;
10
+
11
+ /{
12
+ compatible = "brcm,bcm2708";
13
+
14
+ fragment@0 {
15
+ target = <&i2c1>;
16
+ __overlay__ {
17
+ pinctrl-0 = <&i2c1_pins>;
18
+ status = "okay";
19
+ };
20
+ };
21
+
22
+ fragment@1 {
23
+ target = <&gpio>;
24
+ __overlay__ {
25
+ i2c1_pins: i2c1 {
26
+ brcm,pins = <2 3>;
27
+ brcm,function = <4>; /* alt0 */
28
+ };
29
+ };
30
+ };
31
+
32
+ __overrides__ {
33
+ sda1_pin = <&i2c1_pins>,"brcm,pins:0";
34
+ scl1_pin = <&i2c1_pins>,"brcm,pins:4";
35
+ pin_func = <&i2c1_pins>,"brcm,function:0";
36
+ };
37
+ };
You can’t perform that action at this time.
0 commit comments