boards/arm/efr32xg24_dk2601b: add I2C support
This commit adds I2C support to the efr32xg24_dk2601b board. Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
This commit is contained in:
parent
f08990588b
commit
28cb07ad69
4 changed files with 25 additions and 0 deletions
|
@ -62,6 +62,8 @@ The board configuration supports the following hardware features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| WATCHDOG | on-chip | watchdog |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| I2C(M/S) | on-chip | i2c |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
@ -56,6 +56,12 @@
|
|||
gpios = <&gpioa GECKO_PIN(5) GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
sensor_enable: gpio_switch_0 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "sensor_enable";
|
||||
enable-gpios = <&gpioc GECKO_PIN(9) GPIO_ACTIVE_HIGH>;
|
||||
regulator-boot-on;
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
|
@ -69,6 +75,12 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
location-sda = <GECKO_LOCATION(5) GECKO_PORT_C GECKO_PIN(5)>;
|
||||
location-scl = <GECKO_LOCATION(5) GECKO_PORT_C GECKO_PIN(4)>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -16,3 +16,4 @@ CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
|
|||
CONFIG_CMU_HFCLK_LFXO=y
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
CONFIG_PINCTRL=y
|
||||
CONFIG_REGULATOR=y
|
||||
|
|
|
@ -74,6 +74,16 @@
|
|||
interrupts = < 0x1 0x0 >;
|
||||
};
|
||||
|
||||
i2c0: i2c@5b000000 {
|
||||
compatible = "silabs,gecko-i2c";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x5b000000 0x3044>;
|
||||
interrupts = <27 0>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
stimer0: stimer@500a8000 {
|
||||
compatible = "silabs,gecko-stimer";
|
||||
reg = <0x500a8000 0x3054>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue