frdm_k64f: Add sensor dts nodes and fixups
Adds dts nodes and fixups for the fxos8700 sensor to the frdm_k64f board. Tested with samples/sensor/fxos8700 Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
641aa5c58a
commit
e27673a2f4
|
@ -3,3 +3,4 @@ config BOARD_FRDM_K64F
|
|||
bool "Freescale FRDM-K64F"
|
||||
depends on SOC_SERIES_KINETIS_K6X
|
||||
select SOC_PART_NUMBER_MK64FN1M0VLL12
|
||||
select HAS_DTS_I2C_DEVICE
|
||||
|
|
|
@ -89,9 +89,6 @@ endif # ADC
|
|||
|
||||
if FXOS8700
|
||||
|
||||
config FXOS8700_I2C_ADDRESS
|
||||
default 0x1d
|
||||
|
||||
config FXOS8700_GPIO_NAME
|
||||
default GPIO_MCUX_PORTC_NAME
|
||||
|
||||
|
|
|
@ -73,8 +73,11 @@
|
|||
#define CONFIG_SIM_NAME NXP_KINETIS_SIM_40047000_LABEL
|
||||
|
||||
#define CONFIG_I2C_0_NAME NXP_KINETIS_I2C_40066000_LABEL
|
||||
#define CONFIG_FXOS8700_I2C_NAME NXP_KINETIS_I2C_40066000_LABEL
|
||||
#define CONFIG_I2C_MCUX_0_BASE_ADDRESS NXP_KINETIS_I2C_40066000_BASE_ADDRESS_0
|
||||
#define CONFIG_I2C_MCUX_0_IRQ NXP_KINETIS_I2C_40066000_IRQ_0
|
||||
#define CONFIG_I2C_MCUX_0_IRQ_PRI NXP_KINETIS_I2C_40066000_IRQ_0_PRIORITY
|
||||
#define CONFIG_I2C_MCUX_0_BITRATE NXP_KINETIS_I2C_40066000_CLOCK_FREQUENCY
|
||||
|
||||
#define CONFIG_FXOS8700_NAME NXP_KINETIS_I2C_40066000_NXP_FXOS8700_1D_LABEL
|
||||
#define CONFIG_FXOS8700_I2C_NAME NXP_KINETIS_I2C_40066000_NXP_FXOS8700_1D_BUS_NAME
|
||||
#define CONFIG_FXOS8700_I2C_ADDRESS NXP_KINETIS_I2C_40066000_NXP_FXOS8700_1D_BASE_ADDRESS
|
||||
|
|
|
@ -51,6 +51,12 @@
|
|||
|
||||
&i2c0 {
|
||||
status = "ok";
|
||||
|
||||
fxos8700@1d {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1d>;
|
||||
label = "FXOS8700";
|
||||
};
|
||||
};
|
||||
|
||||
&pwm3 {
|
||||
|
|
Loading…
Reference in a new issue