Lines Matching +full:power +full:- +full:amplifier +full:- +full:output
5 * SPDX-License-Identifier: Apache-2.0
108 * Those macros must be in sync with 'power-amplifier-output' dts property.
115 #define SX127X_PA_OUTPUT(power) \ argument
116 ((power) > 14 ? SX127X_PA_BOOST : SX127X_PA_RFO)
118 #define SX127X_PA_OUTPUT(power) SX127X_PA_RFO argument
120 #define SX127X_PA_OUTPUT(power) SX127X_PA_BOOST argument
122 #define SX127X_PA_OUTPUT(power) \ argument
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()
334 int dio = work - dev_data.dio_work; in sx127x_dio_work_handle()
344 pin = find_lsb_set(pins) - 1; in sx127x_irq_callback()
367 sx127x_dios[i].port->name); in SX127xIoIrqInit()
449 void SX127xSetRfTxPower(int8_t power) in SX127xSetRfTxPower() argument
463 if (SX127X_PA_OUTPUT(power) == SX127X_PA_BOOST) { in SX127xSetRfTxPower()
464 power = clamp_int8(power, 2, 20); in SX127xSetRfTxPower()
467 if (power > 17) { in SX127xSetRfTxPower()
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()
479 if (power > 0) { in SX127xSetRfTxPower()
480 /* Set the power range to 0 -- 10.8+0.6*7 dBm */ in SX127xSetRfTxPower()
482 pa_config |= power & SX127X_PACONFIG_OUTPUTPOWER_MASK; in SX127xSetRfTxPower()
484 /* Set the power range to -4.2 -- 10.8+0.6*0 dBm */ in SX127xSetRfTxPower()
485 pa_config |= (power + 4) & SX127X_PACONFIG_OUTPUTPOWER_MASK; in SX127xSetRfTxPower()
488 power = clamp_int8(power, -1, 14); in SX127xSetRfTxPower()
491 pa_config |= (power + 1) & SX127X_PACONFIG_OUTPUTPOWER_MASK; in SX127xSetRfTxPower()
497 dev_data.tx_power = power; in SX127xSetRfTxPower()
587 return -ENODEV; in sx127x_lora_init()
608 return -EIO; in sx127x_lora_init()
616 return -EIO; in sx127x_lora_init()