Lines Matching +full:in +full:- +full:max

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>;
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>;
114 * @param max maximum bitrate supported by the CAN controller
117 #define DT_CAN_TRANSCEIVER_MAX_BITRATE(node_id, max) \ argument
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))
135 * @param max maximum bitrate supported by the CAN controller
139 #define DT_INST_CAN_TRANSCEIVER_MAX_BITRATE(inst, max) \ argument
140 DT_CAN_TRANSCEIVER_MAX_BITRATE(DT_DRV_INST(inst), max)