Skip to content

Commit

Permalink
Fix tabs and add sensorbus alias
Browse files Browse the repository at this point in the history
  • Loading branch information
craigpeacock committed Feb 12, 2023
1 parent 65449e2 commit 5165c4e
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions LoRaWAN/boards/lemon_iot_lte_nrf9160.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@
// SPDX-License-Identifier: Apache-2.0

/ {
aliases {
lora0 = &lora;
};
aliases {
lora0 = &lora;
sensorbus = &i2c2;
};
};

&pinctrl {

spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 30)>,
<NRF_PSEL(SPIM_MOSI, 0, 26)>,
<NRF_PSEL(SPIM_MISO, 0, 27)>;
low-power-enable;
};
};
spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 30)>,
<NRF_PSEL(SPIM_MOSI, 0, 26)>,
<NRF_PSEL(SPIM_MISO, 0, 27)>;
};
};
spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 30)>,
<NRF_PSEL(SPIM_MOSI, 0, 26)>,
<NRF_PSEL(SPIM_MISO, 0, 27)>;
low-power-enable;
};
};
spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 30)>,
<NRF_PSEL(SPIM_MOSI, 0, 26)>,
<NRF_PSEL(SPIM_MISO, 0, 27)>;
};
};

i2c2_default: i2c2_default {
group1 {
Expand All @@ -50,15 +51,15 @@
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
lora: sx1276@0 {
compatible = "semtech,sx1276";
reg = <0>;
reset-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
dio-gpios = <&gpio0 25 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&gpio0 23 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
compatible = "semtech,sx1276";
reg = <0>;
reset-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
dio-gpios = <&gpio0 25 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&gpio0 23 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
power-amplifier-output = "pa-boost";
spi-max-frequency = <125000>;
};
};
};

&i2c2 {
Expand Down

0 comments on commit 5165c4e

Please sign in to comment.