Lines Matching +full:antenna +full:- +full:enable +full:- +full:gpios
5 * SPDX-License-Identifier: Apache-2.0
108 * Those macros must be in sync with 'power-amplifier-output' dts property.
125 BUILD_ASSERT(0, "None of rfo-enable-gpios, pa-boost-enable-gpios and "
126 "power-amplifier-output has been specified. "
127 "Look at semtech,sx127x-base.yaml to fix that.");
261 /* force inactive (low power) state of all antenna paths */ in SX127xSetAntSwLowPower()
270 /* rely on SX127xSetAntSw() to configure proper antenna path */ in SX127xSetAntSwLowPower()
277 bool enable = state; in SX127xSetBoardTcxo() local
279 if (enable == dev_data.tcxo_power_enabled) { in SX127xSetBoardTcxo()
283 if (enable) { in SX127xSetBoardTcxo()
293 dev_data.tcxo_power_enabled = enable; in SX127xSetBoardTcxo()
334 int dio = work - dev_data.dio_work; in sx127x_dio_work_handle()
344 pin = find_lsb_set(pins) - 1; in sx127x_irq_callback()
359 /* Setup DIO gpios */ in SX127xIoIrqInit()
367 sx127x_dios[i].port->name); in SX127xIoIrqInit()
469 pa_config |= (power - 5) & SX127X_PACONFIG_OUTPUTPOWER_MASK; in SX127xSetRfTxPower()
472 pa_config |= (power - 2) & SX127X_PACONFIG_OUTPUTPOWER_MASK; in SX127xSetRfTxPower()
476 power = clamp_int8(power, -4, 15); in SX127xSetRfTxPower()
480 /* Set the power range to 0 -- 10.8+0.6*7 dBm */ in SX127xSetRfTxPower()
484 /* Set the power range to -4.2 -- 10.8+0.6*0 dBm */ in SX127xSetRfTxPower()
488 power = clamp_int8(power, -1, 14); in SX127xSetRfTxPower()
587 return -ENODEV; in sx127x_lora_init()
608 return -EIO; in sx127x_lora_init()
615 LOG_ERR("Unable to configure antenna"); in sx127x_lora_init()
616 return -EIO; in sx127x_lora_init()