Skip to content

Rx mode support for Cadence DPHY

Pratyush Yadav linux-devicetree linux-phy lkml 14 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest4 patches 1 replyApplied
  2. v94 patches 2 repliesSuperseded
  3. v6 posting 2/214 patches 6 repliesSuperseded
Earlier versions · 11
VersionPostedPatchesRepliesStatus
v84 patches0 repliesSuperseded
v74 patches5 repliesSuperseded
v5 posting 2/214 patches5 repliesSuperseded
v6 posting 1/24 patches4 repliesSuperseded
v4 posting 2/211 patches21 repliesSuperseded
v5 posting 1/26 patches14 repliesSuperseded
v4 posting 1/26 patches9 repliesSuperseded
v3 posting 2/211 patches14 repliesSuperseded
v3 posting 1/27 patches6 repliesSuperseded
v218 patches29 repliesSuperseded
v116 patches40 repliesSuperseded

Changes in v10 from the cover letter

- Change SPDX license to GPL-2.0-only.
- Change copyright year to 2022.

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/4phy: cadence: Add Cadence D-PHY Rx driverdrivers/phy/cadence/Kconfig drivers/phy/cadence/Makefile drivers/phy/cadence/cdns-dphy-rx.c+264 -00 replies
2/4phy: dt-bindings: Convert Cadence DPHY binding to YAMLDocumentation/devicetree/bindings/phy/cdns,dphy.txt Documentation/devicetree/bindings/phy/cdns,dphy.yaml+51 -200 replies
3/4phy: dt-bindings: cdns,dphy: add power-domains propertyDocumentation/devicetree/bindings/phy/cdns,dphy.yaml+5 -00 replies
4/4phy: dt-bindings: Add Cadence D-PHY Rx bindingsDocumentation/devicetree/bindings/phy/cdns,dphy-rx.yaml+42 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchLaurent PinchartRob Herring
1/4R-b
2/4R-b R-b
3/4R-b A-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/4] Rx mode support for Cadence DPHY

Hi,

This series adds support for Cadence DPHY Rx driver. It has been split off from [0] to facilitate easier merging. I have still kept the version number to maintain continuity with the previous patches. The earlier version used the same binding for Tx and Rx DPHY. With the separate driver, I have added a separate binding. But I am still keeping the old conversion patch in this series since I have already done the work in converting the binding to yaml, might as well get it merged.

Tested on TI's J721E with OV5640 sensor.

[0] https://patchwork.linuxtv.org/project/linux-media/list/?series=5526&state=%2A&archive=both

Changes in v10:
- Change SPDX license to GPL-2.0-only.
- Change copyright year to 2022.

Changes in v9:
- Use %ld instead of %d for printing PTR_ERR().

Changes in v8:
- Move lanes check to start of configure sequence.
- Change MODULE_LICENSE() to "GPL".

Changes in v7:
- Add spaces after { and before } in the bands table.
- Drop the wrapping around the for loop on cdns_dphy_rx_get_band_ctrl().
- Make cdns_dphy_rx_wait_for_bit() inline.
- Print an error message if registering PHY provider fails.

Changes in v6:
- Add a new binding for DPHY Rx.
- Move the DPHY Rx part to a separate driver.
- Drop Rx specific changes from the cdns,dphy.yaml binding. Keep those in cdns,dphy-rx.yaml

Changes in v5:
- Use the new cdns_dphy_info to specify PHY ops.
- Re-order include in alphabetical order.
- Make bands const.
- Drop num_bands.
- Make i, lanes unsigned.
- Drop the maximum check in cdns_dphy_rx_get_band_ctrl(). Let the loop complete and return -EOPNOTSUPP when we reach the end.
- Drop the "rate < bands[i].min_rate" check since the bands are in ascending order.
- Move data_lane_ctrl to start of function and make it static const.

Changes in v4:
- Drop the submode parts. Use a different compatible for the Rx ops.
- Make bands and num_bands static.
- Drop the submode patches. Use a different compatible for Rx mode DPHY instead.

Changes in v3:
- Use a table to select the band.
- Use a table to poll the data lane ready bits.
- Multiply the DPHY HS clock rate by 2 to get the bit rate since the clock is DDR.
- Add Rob's R-by.

Changes in v2:
- Drop reg description.
- Add a description for each DPHY clock.
- Rename dphy@... to phy@... in example.
- Add Laurent's R-by.
- Re-order subject prefixes.
- Add power-domain to the example.
- Add Laurent's R-by.
- Re-order subject prefixes.

Pratyush Yadav (4):
phy: cadence: Add Cadence D-PHY Rx driver
phy: dt-bindings: Convert Cadence DPHY binding to YAML
phy: dt-bindings: cdns,dphy: add power-domains property
phy: dt-bindings: Add Cadence D-PHY Rx bindings

 .../devicetree/bindings/phy/cdns,dphy-rx.yaml |  42 +++
 .../devicetree/bindings/phy/cdns,dphy.txt     |  20 --
 .../devicetree/bindings/phy/cdns,dphy.yaml    |  56 ++++
 drivers/phy/cadence/Kconfig                   |   8 +
 drivers/phy/cadence/Makefile                  |   1 +
 drivers/phy/cadence/cdns-dphy-rx.c            | 255 ++++++++++++++++++
 6 files changed, 362 insertions(+), 20 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/cdns,dphy-rx.yaml
 delete mode 100644 Documentation/devicetree/bindings/phy/cdns,dphy.txt
 create mode 100644 Documentation/devicetree/bindings/phy/cdns,dphy.yaml
 create mode 100644 drivers/phy/cadence/cdns-dphy-rx.c
Signature · 1 line
2.34.1