Lines Matching +full:in +full:- +full:min

9  * SPDX-License-Identifier: Apache-2.0
20 * @defgroup devicetree-can Devicetree CAN API
29 * controller. If no CAN transceiver is present in the devicetree, the minimum
34 * transceiver0: can-phy0 {
35 * compatible = "vnd,can-transceiver";
36 * min-bitrate = <15000>;
37 * max-bitrate = <1000000>;
38 * #phy-cells = <0>;
42 * compatible = "vnd,can-controller";
47 * compatible = "vnd,can-controller";
49 * can-transceiver {
50 * min-bitrate = <25000>;
51 * max-bitrate = <2000000>;
56 * compatible = "vnd,can-controller";
58 * can-transceiver {
59 * max-bitrate = <2000000>;
71 * @param min minimum bitrate supported by the CAN controller
74 #define DT_CAN_TRANSCEIVER_MIN_BITRATE(node_id, min) \ argument
76 MAX(DT_PROP_OR(DT_PHANDLE(node_id, phys), min_bitrate, 0), min), \
77 MAX(DT_PROP_OR(DT_CHILD(node_id, can_transceiver), min_bitrate, min), min))
83 * controller. If no CAN transceiver is present in the devicetree, the maximum
88 * transceiver0: can-phy0 {
89 * compatible = "vnd,can-transceiver";
90 * max-bitrate = <1000000>;
91 * #phy-cells = <0>;
95 * compatible = "vnd,can-controller";
100 * compatible = "vnd,can-controller";
102 * can-transceiver {
103 * max-bitrate = <2000000>;
119 MIN(DT_PROP(DT_PHANDLE(node_id, phys), max_bitrate), max), \
120 MIN(DT_PROP_OR(DT_CHILD(node_id, can_transceiver), max_bitrate, max), max))
125 * @param min minimum bitrate supported by the CAN controller
129 #define DT_INST_CAN_TRANSCEIVER_MIN_BITRATE(inst, min) \ argument
130 DT_CAN_TRANSCEIVER_MIN_BITRATE(DT_DRV_INST(inst), min)