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 @@ -29,6 +29,8 @@ dtb-$(RPI_DT_OVERLAYS) += hy28a-overlay.dtb
29
29
dtb-$(RPI_DT_OVERLAYS) += hy28b-overlay.dtb
30
30
dtb-$(RPI_DT_OVERLAYS) += i2c-rtc-overlay.dtb
31
31
dtb-$(RPI_DT_OVERLAYS) += i2c-gpio-overlay.dtb
32
+ dtb-$(RPI_DT_OVERLAYS) += i2c0-bcm2708-overlay.dtb
33
+ dtb-$(RPI_DT_OVERLAYS) += i2c1-bcm2708-overlay.dtb
32
34
dtb-$(RPI_DT_OVERLAYS) += i2s-mmap-overlay.dtb
33
35
dtb-$(RPI_DT_OVERLAYS) += iqaudio-dac-overlay.dtb
34
36
dtb-$(RPI_DT_OVERLAYS) += iqaudio-dacplus-overlay.dtb
Original file line number Diff line number Diff line change @@ -371,6 +371,22 @@ Params: ds1307 Select the DS1307 device
371
371
pcf8563 Select the PCF8563 device
372
372
373
373
374
+ Name: i2c0-bcm2708
375
+ Info: Enable the i2c_bcm2708 driver for the i2c0 bus
376
+ Load: dtoverlay=i2c0-bcm2708,<param>=<val>
377
+ Params: sda0_pin GPIO pin for SDA0 (0, 28 [or 44] - default 0)
378
+ scl0_pin GPIO pin for SCL0 (1, 29 [or 45] - default 1)
379
+
380
+
381
+ Name: i2c1-bcm2708
382
+ Info: Enable the i2c_bcm2708 driver for the i2c1 bus
383
+ Load: dtoverlay=i2c1-bcm2708,<param>=<val>
384
+ Params: sda1_pin GPIO pin for SDA1 (2 or 44 - default 2)
385
+ scl1_pin GPIO pin for SCL1 (3 or 45 - default 3)
386
+ pin_func Alternative pin function (4 (alt0), 6 (alt2) -
387
+ default 4)
388
+
389
+
374
390
Name: i2s-mmap
375
391
Info: Enables mmap support in the bcm2708-i2s driver
376
392
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