tuxoutdoor/zephyr/boards/nrf52dk_nrf52832.overlay

82 lines
1.2 KiB
Plaintext

/ {
vbatt {
compatible = "voltage-divider";
io-channels = <&adc 4>;
output-ohms = <4600>;
full-ohms = <(4600 + 3230)>;
};
};
/ {
zephyr,user {
io-channels = <&adc 2>;
};
};
&spi0 {
status = "disabled";
};
&spi1 {
status = "disabled";
};
&i2c0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
sht4x@44 {
status = "okay";
compatible = "sensirion,sht4x";
reg = <0x44>;
repeatability = <2>;
};
bh1750@23 {
status = "okay";
compatible = "rohm,bh1750";
reg = <0x23>;
};
};
&i2c1 {
status = "disabled";
};
&pinctrl {
uart0_default: uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 19)>,
<NRF_PSEL(UART_RX, 0, 18)>,
<NRF_PSEL(UART_RTS, 0, 5)>,
<NRF_PSEL(UART_CTS, 0, 7)>;
};
};
uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 19)>,
<NRF_PSEL(UART_RX, 0, 18)>,
<NRF_PSEL(UART_RTS, 0, 5)>,
<NRF_PSEL(UART_CTS, 0, 7)>;
low-power-enable;
};
};
i2c0_default: i2c0_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 17)>,
<NRF_PSEL(TWIM_SCL, 0, 16)>;
};
};
i2c0_sleep: i2c0_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 17)>,
<NRF_PSEL(TWIM_SCL, 0, 16)>;
low-power-enable;
};
};
};