Lines Matching +full:power +full:- +full:gpios
1 # Copyright (c) 2019-2020 Gerson Fernando Budke <nandojve@gmail.com>
2 # SPDX-License-Identifier: Apache-2.0
8 include: spi-device.yaml
11 irq-gpios:
12 type: phandle-array
15 reset-gpios:
16 type: phandle-array
19 slptr-gpios:
20 type: phandle-array
23 Multi-functional pin that controls sleep, deep sleep, transmit
26 dig2-gpios:
27 type: phandle-array
30 clkm-gpios:
31 type: phandle-array
34 local-mac-address:
35 type: uint8-array
40 channel-page:
43 - 0
44 - 2
45 - 5
48 is used in both Sub-Giga and 2.4GHz. It allows select channels 0-10 in
49 Sub-Giga band (0: BPSK-20, 1-10: BPSK-40) and 11-26 in 2.4GHz band
50 (11-26: O-QPSK-250). Channel 2 is for Sub-Giga and selects
51 (0: OQPSK-SIN-RC-100, 1-10: OQPSK-SIN-250). Channel 5 is for Sub-Giga
52 (JAPAN) and selects (0-3: OQPSK-RC-250) .
53 0: Page 0 - BPSK-20 [0], BPSK-40 [1-10], O-QPSK-250 [11-26].
54 2: Page 2 - OQPSK-SIN-RC-100 [0], OQPSK-SIN-250 [1-10].
55 5: Page 5 - OQPSK-RC-250 [0-3].
57 tx-pwr-table:
58 type: uint8-array
61 This is the Transmission Power Mapping Table array used to comply with
62 local regulations. By default this value set an output power above 0dBm
63 for all transceivers. This property must be used with tx-pwr-min and
64 tx-pwr-max for normal operations. The number of elements is defined by
65 the size of the tx-pwr-table array property. The max entry value for
66 2.4GHz is 0x0f and 0xff for Sub-Giga. See PHY_TX_PWR at datasheet for
69 The output power is determined by following formula:
71 linear_step = (tx-pwr-max - tx-pwr-min)
72 / (sizeof(tx-pwr-table) - 1.0);
73 table_index = abs((value_in_dbm - tx-pwr-max) / linear_step);
74 output_power = tx-pwr-table[table_index];
77 tx-pwr-min = -17 dBm and tx-pwr-max = +4 dBm. Using 48 elements in the
78 tx-pwr-table array. The table array is filled from higher to lower power.
80 tx-pwr-min = [01 11]; /* -17.0 dBm */
81 tx-pwr-max = [00 04]; /* 4.0 dBm */
82 tx-pwr-table = [00 01 03 04 05 05 06 06
89 The values in the table are filled based on table 9-9 [TX Output Power]
92 linear_step = (4 - (-17)) / (48 - 1) => ~0.45 dBm
94 Assuming that user wants set 0 dBm as output power:
96 table_index = abs((0 - 4) / 0.45) => 8.95 ( round to 9 )
97 output_power = tx-pwr-table[9] => 0x07 ( 0 dBm as table 9-9 )
99 Note when tx-pwr-min is [0x00, 0x00] and tx-pwr-max is [0x00, 0x00]
101 first element of the tx-pwr-table array, which is 0x00 by default. This
102 is defined as general case when user not define any tx-pwr-* entries. It
103 sets the transceiver to use always a value above 0 dBm as output power.
105 tx-pwr-min:
106 type: uint8-array
110 output power. This property must be used when tx-pwr-table is defined.
112 the signal indication [0x00-positive, 0x01-negative] and second element
113 is the minimal value in dBm for the transceiver output power. By default,
114 the combination of tx-pwr-min as [0x00, 0x00] and tx-pwr-max as [0x00,
115 0x00] will create a fixed transmission power.
117 tx-pwr-max:
118 type: uint8-array
122 output power. This property must be used when tx-pwr-table is defined.
124 the signal indication [ 0x00-positive] and second element is the maximum
125 value in dBm for the transceiver output power. By default, the
126 combination of tx-pwr-max as [0x00, 0x00] and tx-pwr-min as [0x00,
127 0x00] will create a fixed transmission power.