File tree Expand file tree Collapse file tree 4 files changed +68
-0
lines changed
Expand file tree Collapse file tree 4 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) 2024-2025 MASSDRIVER EI (massdriver.space)
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ description : Bouffalolab I2C interface
5+
6+ compatible : " bflb,i2c"
7+
8+ include : [i2c-controller.yaml, pinctrl-device.yaml]
9+
10+ properties :
11+ reg :
12+ required : true
13+
14+ interrupts :
15+ required : true
16+
17+ pinctrl-0 :
18+ required : true
19+
20+ pinctrl-names :
21+ required : true
Original file line number Diff line number Diff line change 1010#include <dt-bindings/pinctrl/bflb-common-pinctrl.h>
1111#include <dt-bindings/pinctrl/bl60x-pinctrl.h>
1212#include <dt-bindings/clock/bflb_bl60x_clock.h>
13+ #include <zephyr/dt-bindings/i2c/i2c.h>
1314
1415/ {
1516 #address-cells = <1>;
176177 interrupt-parent = <&clic>;
177178 };
178179
180+ i2c0: i2c@4000a300 {
181+ compatible = "bflb,i2c";
182+ reg = <0x4000a300 0x100>;
183+ #address-cells = <1>;
184+ #size-cells = <0>;
185+ status = "disabled";
186+
187+ interrupts = <48 0>;
188+ interrupt-parent = <&clic>;
189+ };
190+
179191 flashctrl: flash-controller@4000b000 {
180192 compatible = "bflb,flash-controller";
181193 reg = <0x4000b000 0x1000>;
Original file line number Diff line number Diff line change 1111#include <dt-bindings/clock/bflb_bl61x_clock.h>
1212#include <zephyr/dt-bindings/gpio/gpio.h>
1313#include <zephyr/dt-bindings/input/input-event-codes.h>
14+ #include <zephyr/dt-bindings/i2c/i2c.h>
1415
1516/ {
1617 #address-cells = <1>;
169170 status = "disabled";
170171 };
171172
173+ i2c0: i2c@2000a300 {
174+ compatible = "bflb,i2c";
175+ reg = <0x2000a300 0x100>;
176+ #address-cells = <1>;
177+ #size-cells = <0>;
178+ status = "disabled";
179+
180+ interrupts = <48 1>;
181+ interrupt-parent = <&clic>;
182+ };
183+
184+ i2c1: i2c@2000a900 {
185+ compatible = "bflb,i2c";
186+ reg = <0x2000a900 0x100>;
187+ #address-cells = <1>;
188+ #size-cells = <0>;
189+ status = "disabled";
190+
191+ interrupts = <55 1>;
192+ interrupt-parent = <&clic>;
193+ };
194+
172195 flashctrl: flash-controller@2000b000 {
173196 compatible = "bflb,flash-controller";
174197 reg = <0x2000b000 0x1000>;
Original file line number Diff line number Diff line change 99#include <dt-bindings/pinctrl/bflb-common-pinctrl.h>
1010#include <dt-bindings/pinctrl/bl70x-pinctrl.h>
1111#include <dt-bindings/clock/bflb_bl70x_clock.h>
12+ #include <zephyr/dt-bindings/i2c/i2c.h>
1213
1314/ {
1415 #address-cells = <1>;
170171 status = "disabled";
171172 };
172173
174+ i2c0: i2c@4000a300 {
175+ compatible = "bflb,i2c";
176+ reg = <0x4000a300 0x100>;
177+ #address-cells = <1>;
178+ #size-cells = <0>;
179+ status = "disabled";
180+
181+ interrupts = <48 0>;
182+ interrupt-parent = <&clic>;
183+ };
184+
173185 flashctrl: flash-controller@4000b000 {
174186 compatible = "bflb,flash-controller";
175187 reg = <0x4000b000 0x1000>;
You can’t perform that action at this time.
0 commit comments