Hey @jaredwolff,
Firstly, thanks for all effort!
I’m trying to get a better understanding of how to implement a modem trace in my project that also uses the I2C bus. I think I’ve got it, but I just want to double-check with you.
Instead hacking the circuitdojo_feather_nrf9160_common.dts
it is better to change the project board overlay to something like:
/ {
chosen {
nordic,modem-trace-uart = &uart1;
};
};
&i2c1 {
status = "disabled";
};
&uart1 {
current-speed = <1000000>;
pinctrl-0 = <&uart1_alt>;
pinctrl-1 = <&uart1_sleep_alt>;
pinctrl-names = "default", "sleep";
};
&pinctrl {
uart1_alt: uart1_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 24)>,
<NRF_PSEL(UART_RX, 0, 23)>;
};
};
uart1_sleep_alt: uart1_sleep_alt {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 24)>,
<NRF_PSEL(UART_RX, 0, 23)>;
low-power-enable;
};
};
};
&i2c2 {
compatible = "nordic,nrf-twim";
status = "okay";
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";
pcf85063a@51 {
compatible = "nxp,pcf85063a";
reg = <0x51>;
};
lis2dh: lis2dh@18 {
compatible = "st,lis2dh";
reg = <0x18>;
irq-gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
disconnect-sdo-sa0-pull-up;
};
};
Also, is it necessary to include the line /delete-node/ &i2c1;?
Apologies for the basic question. I’m still trying to wrap my head around the whole device tree concept. Any guidance would be super appreciated!