Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: iio: filter: Add lpf/hpf freq margins

Adds two properties to add a margin when automatically finding the
corner frequencies.

Signed-off-by: Sam Winchenbach <swinchenbach@arka.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250328174831.227202-2-sam.winchenbach@framepointer.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Sam Winchenbach and committed by
Jonathan Cameron
485eefd7 c6316e19

+20
+20
Documentation/devicetree/bindings/iio/filter/adi,admv8818.yaml
··· 44 44 '#clock-cells': 45 45 const: 0 46 46 47 + adi,lpf-margin-mhz: 48 + description: 49 + Sets the minimum distance between the fundamental frequency of `rf_in` 50 + and the corner frequency of the low-pass, output filter when operated in 51 + 'auto' mode. The selected low-pass corner frequency will be greater than, 52 + or equal to, `rf_in` + `lpf-margin-hz`. If not setting is found that 53 + satisfies this relationship the filter will be put into 'bypass'. 54 + default: 0 55 + 56 + adi,hpf-margin-mhz: 57 + description: 58 + Sets the minimum distance between the fundamental frequency of `rf_in` 59 + and the corner frequency of the high-pass, input filter when operated in 60 + 'auto' mode. The selected high-pass corner frequency will be less than, 61 + or equal to, `rf_in` - `hpf-margin-hz`. If not setting is found that 62 + satisfies this relationship the filter will be put into 'bypass'. 63 + default: 0 64 + 47 65 required: 48 66 - compatible 49 67 - reg ··· 79 61 spi-max-frequency = <10000000>; 80 62 clocks = <&admv8818_rfin>; 81 63 clock-names = "rf_in"; 64 + adi,lpf-margin-mhz = <300>; 65 + adi,hpf-margin-mhz = <300>; 82 66 }; 83 67 }; 84 68 ...