mrdimm-wire.yaml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. schema: prod2u-mrdimm-wire-v2
  2. product: mrdimm-chamber
  3. board: FCB V1.2
  4. device: EF2L45BG256B
  5. clock_hz: 25000000
  6. note: >-
  7. The one active wire protocol for the MRDIMM FCB V1.2 product. There is exactly
  8. one frame shape: A5 5A | TYPE:u8 | LENGTH:u8 | PAYLOAD | CRC_L | CRC_H.
  9. Total bytes = LENGTH + 6. There is no version field, no product id, no sequence
  10. number, no Tag, no TLV and no autodetection of any historical frame. The
  11. retired protocol (16-bit length frames, the old ACK/status/event types, the
  12. queue-write/control/keepalive/event commands, the host register interface and
  13. the unbounded motion commands) is not present anywhere in this product.
  14. frame:
  15. preamble: [0xA5, 0x5A]
  16. fields: [type: u8, length: u8, payload: bytes, crc: u16le]
  17. total_bytes: length_plus_6
  18. payload_byte_zero_is_request_ram_address_zero: true
  19. crc:
  20. name: CRC-16/CCITT-FALSE
  21. polynomial: 0x1021
  22. initial: 0xFFFF
  23. reflect_input: false
  24. reflect_output: false
  25. xor_output: 0
  26. coverage: type_length_payload
  27. wire_order: little
  28. excludes_header: true
  29. rx_and_tx_accumulators_are_independent: true
  30. length_width_bits: 8
  31. max_request_payload_bytes: 69
  32. max_response_payload_bytes: 65
  33. request_staging_bytes: 128
  34. inter_byte_timeout_clks: 250000
  35. inter_byte_timeout_us: 10000
  36. host_uart:
  37. baud: 921600
  38. supported_build_bauds: [921600, 460800, 230400, 115200]
  39. format: 8N1
  40. clks_per_bit: 27
  41. rs232: {connector: CON78, tx_ball: M10, rx_ball: N11, status: confirmed}
  42. ttl:
  43. status: confirmed
  44. connector: CON140
  45. tx_ball: T11
  46. rx_ball: P13
  47. tx_pin: 1
  48. rx_pin: 2
  49. ground: CON77.3_or_CON77.4_or_verified_board_GND
  50. note: >-
  51. CON140.1 TX (T11 via R1261 0 ohm), CON140.2 RX (P13 via R1262 0 ohm), 3.3V.
  52. CON140.3/4 are GPIO, not ground. CON146 is a 12V LED/key circuit, never a UART.
  53. Default 921600 8N1 with fixed-rate fallback builds; same TX stream as RS232.
  54. source_select: minimal_rx_source_select_with_broadcast_tx
  55. conflict_detection: none
  56. fair_arbitration: none
  57. reply_not_truncated_by_rx_idle_release: true
  58. parser_stays_enabled_during_reply_or_done: true
  59. bmc_uart:
  60. baud: 115200
  61. format: 8N1
  62. clks_per_bit: 217
  63. optional: true
  64. set_all_allowed_without_bmc: true
  65. poll_ascii: "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03"
  66. poll_line_terminator: 0x0A
  67. poll_command_bytes: 43
  68. response_hex_tokens: 48
  69. response_pairs: 24
  70. response_lines_typical: 3
  71. commands:
  72. SET_ALL:
  73. type: 0x01
  74. payload_length: 69
  75. legacy_payload_length: 68
  76. response: SET_ACK
  77. feeds_watchdog: true
  78. admission: SET_ACCEPT_after_validation_latest_wins_per_axis
  79. payload_fields:
  80. - {name: fan_duty_percent, offset: 0, count: 4, minimum: 0, maximum: 100, unit: percent}
  81. - {name: ptc_duty_percent, offset: 4, count: 4, minimum: 0, maximum: 100, unit: percent}
  82. - name: axis_slots
  83. offset: 8
  84. count: 12
  85. stride: 5
  86. slot_layout:
  87. action: {offset: 0, type: u8}
  88. steps: {offset: 1, type: u16le}
  89. half_period_us: {offset: 3, type: u16le}
  90. - {name: buzzer_ctrl, offset: 68, count: 1, minimum: 0, maximum: 1, unit: bool}
  91. actions:
  92. 0x00: NOTHING
  93. 0x01: PUSH_DOWN
  94. 0x02: PUSH_UP
  95. 0xFF: STOP_CLEAR
  96. action_semantics:
  97. NOTHING: the four following bytes take no part in the action; the SDK writes 0
  98. STOP_CLEAR: the four following bytes take no part in the action; the SDK writes 0
  99. PUSH_DOWN: finite downward segment, steps and half period apply
  100. PUSH_UP: finite upward segment, steps and half period apply
  101. push_steps_range: [1, 65535]
  102. push_half_period_us_range: [1, 65535]
  103. half_period_nonzero_required: true
  104. speed_hz: "500000 / half_period_us"
  105. max_half_period_hz: 7.63
  106. implemented_min_half_period_us: 1
  107. implemented_min_note: >-
  108. Twelve independent counters use the shared 1 us tick. Each axis stores one
  109. finite segment; a new PUSH replaces that axis immediately. Wait for DONE
  110. when each segment must complete. Axes may run concurrently without a
  111. synchronous start requirement.
  112. every_axis_is_variable_speed: true
  113. stop_clear_timing: per_axis_during_sequential_application_after_validation
  114. fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
  115. GET_ALL:
  116. type: 0x02
  117. payload_length: 0
  118. response: [GET_ACK, GET_DATA]
  119. response_order: ack_then_data_contiguous_group
  120. feeds_watchdog: true
  121. data_is_not_an_ack: true
  122. reads_most_recent_values_in_order_without_a_global_snapshot_lock: true
  123. HEARTBEAT:
  124. type: 0x03
  125. payload_length: 0_or_4
  126. response: HEARTBEAT_ACK
  127. feeds_watchdog: true
  128. note: >-
  129. Simplest independent heartbeat ping for physical link health verification.
  130. Immediately acknowledged without touching thermal banks or actuator queues.
  131. Payload can be 0 or 4 (nonce). If 4-byte nonce provided, HEARTBEAT_ACK echoes it.
  132. UNLISTED_TYPES: UNSUPPORTED
  133. responses:
  134. SET_ACK: {type: 0x81, payload_length: 0}
  135. GET_ACK: {type: 0x82, payload_length: 0}
  136. HEARTBEAT_ACK: {type: 0x83, payload_length: 0_or_4}
  137. BEACON: {type: 0x51, payload_length: 0, autonomous: true, period_ms: 5000, feeds_watchdog: false, active_telemetry: "Legal A5 5A 51 00 81 20 frame; no ASCII banner; emitted when the transaction core is idle"}
  138. DIAGNOSTIC: {type: 0x52, payload_length: 8, autonomous: true, period_ms: 5000, feeds_watchdog: false, format_version: 2, note: "Always-on lean debug frame emitted after BEACON: [0x02, 0x80, 3, 2, 0, flags, active_lo, active_hi]"}
  139. GET_DATA: {type: 0x42, payload_length: 65, payload_contract: mrdimm-status.yaml}
  140. MOTOR_DONE:
  141. type: 0x50
  142. payload_length: 4
  143. payload_fields:
  144. - {name: axis, offset: 0, type: u8}
  145. - {name: reason, offset: 1, type: u8}
  146. - {name: steps_done, offset: 2, type: u16le}
  147. reasons: {0x00: steps_complete, 0x01: lower_limit, 0x02: upper_limit, 0x03: both_limits}
  148. steps_done_counts: final_output_step_rising_edges_not_planned_steps_not_cumulative_position
  149. ff_ff_steps_is_not_an_invalid_temperature: true
  150. one_waiting_done_slot_per_axis: true
  151. NACK:
  152. type: 0xC0
  153. payload_length: 2
  154. payload: [request_type, reason]
  155. reason: {UNSUPPORTED: 1, BAD_LENGTH: 2, BAD_VALUE: 3, QUEUE_FULL: 4, BUSY: 5}
  156. no_detail_strings: true
  157. no_field_index: true
  158. no_extra_fault_state: true
  159. RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
  160. host_response_order:
  161. SET_ALL: [SET_ACK]
  162. GET_ALL: [GET_ACK, GET_DATA]
  163. HEARTBEAT: [HEARTBEAT_ACK]
  164. UNSUPPORTED: [NACK]
  165. invalid_behavior:
  166. bad_header_crc_partial_timeout_framing: silent_drop_and_recover
  167. complete_crc_valid_request: exactly_one_set_ack_get_ack_or_nack
  168. crc_valid_but_unsupported_or_bad_length_or_bad_value_or_queue_full: >-
  169. nack, take no effect, do not feed the watchdog, keep the command queue
  170. bounded and keep execution state unchanged
  171. declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
  172. a55a_inside_payload: not_a_new_frame
  173. resync: next_real_frame_after_declared_extent
  174. half_frame: abandon_only_after_inter_byte_timeout
  175. outstanding_transactions: 1
  176. command_fifo: false
  177. watchdog:
  178. seconds: 30
  179. timebase: existing_shared_tick
  180. feed_on: [successful_set_accept, legal_get_accept, legal_heartbeat_accept]
  181. no_feed_on: [bad_request, nack, motor_done]
  182. starts_at: first_successful_set_or_get
  183. expiry:
  184. stop_all_axes: true
  185. invalidate_segments_queues_unsent_dones: true
  186. thermal_output_defaults_within: next_complete_20hz_pwm_period
  187. reset_uart_or_parser_or_fifo_or_tx: false
  188. already_started_reply_frames_finish: true
  189. old_done_completion_callback_restarts_work: false
  190. pre_expiry_settings_permanently_invalid: true
  191. default_validity_cleared_only_by_a_genuinely_applied_new_set: true
  192. get_continues_to_feed_while_returning_defaults: true
  193. same_value_set_after_expiry_recovers_directly: true
  194. different_value_set_after_expiry_recovers_directly: true
  195. retry_semantics:
  196. set_all_with_motor_segments: outcome_unknown_structured_no_auto_retry
  197. get_all: retryable_after_resync
  198. motor_done_is_not_a_host_request: true
  199. pwm:
  200. fan_hz: 20
  201. ptc_hz: 20
  202. phases: 100
  203. period_clks: 1250000
  204. buzzer_hz: 4000
  205. buzzer_duty_percent: 80
  206. buzzer_period_clks: 6250
  207. buzzer_high_clks: 5000