st,stm32-dcmi.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. STMicroelectronics STM32 Digital Camera Memory Interface (DCMI)
  2. Required properties:
  3. - compatible: "st,stm32-dcmi"
  4. - reg: physical base address and length of the registers set for the device
  5. - interrupts: should contain IRQ line for the DCMI
  6. - resets: reference to a reset controller,
  7. see Documentation/devicetree/bindings/reset/st,stm32-rcc.txt
  8. - clocks: list of clock specifiers, corresponding to entries in
  9. the clock-names property
  10. - clock-names: must contain "mclk", which is the DCMI peripherial clock
  11. - pinctrl: the pincontrol settings to configure muxing properly
  12. for pins that connect to DCMI device.
  13. See Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt.
  14. - dmas: phandle to DMA controller node,
  15. see Documentation/devicetree/bindings/dma/stm32-dma.txt
  16. - dma-names: must contain "tx", which is the transmit channel from DCMI to DMA
  17. DCMI supports a single port node with parallel bus. It should contain one
  18. 'port' child node with child 'endpoint' node. Please refer to the bindings
  19. defined in Documentation/devicetree/bindings/media/video-interfaces.txt.
  20. Example:
  21. dcmi: dcmi@50050000 {
  22. compatible = "st,stm32-dcmi";
  23. reg = <0x50050000 0x400>;
  24. interrupts = <78>;
  25. resets = <&rcc STM32F4_AHB2_RESET(DCMI)>;
  26. clocks = <&rcc 0 STM32F4_AHB2_CLOCK(DCMI)>;
  27. clock-names = "mclk";
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&dcmi_pins>;
  30. dmas = <&dma2 1 1 0x414 0x3>;
  31. dma-names = "tx";
  32. port {
  33. dcmi_0: endpoint {
  34. remote-endpoint = <...>;
  35. bus-width = <8>;
  36. hsync-active = <0>;
  37. vsync-active = <0>;
  38. pclk-sample = <1>;
  39. };
  40. };
  41. };