Trivial MIPI CCS support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest30 patches 0 repliesNew
- v130 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Reorder file names in CCS MAINTAINERS
- Use Linux integer types and __packed (instead of C99 integer types and __attribute__((packed))) in CCS static data library.
- Add documentation to the CCS static data library interface structs.
- Add a missing newline before a macro.
- Depend on the CCS preparation set here:
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/30 | ccs: Add MIPI CCS compatible stringsdrivers/ | +3 | 0 replies | |
| 2/30 | ccs: Add device compatible identifiers for telling SMIA and CCS apartdrivers/ | +16 | 0 replies | |
| 3/30 | ccs: Add CCS ACPI device IDdrivers/ | +7 | 0 replies | |
| 4/30 | ccs: Remove the I²C ID tabledrivers/ | +0 | 0 replies | |
| 5/30 | ccs: Remove remaining support for platform datadrivers/ | +0 | 0 replies | |
| 6/30 | ccs: Make hwcfg part of the device specific structdrivers/ drivers/ drivers/ | +51 | 0 replies | |
| 7/30 | ccs: Fix obtaining bus information from firmwaredrivers/ | +6 | 0 replies | |
| 8/30 | ccs: Add CCS static data parser librarydrivers/ drivers/ drivers/ +1 more | +1402 | 0 replies | |
| 9/30 | ccs: Combine revision number major and minor into onedrivers/ drivers/ drivers/ | +16 | 0 replies | |
| 10/30 | ccs: Read CCS static data from firmware binariesdrivers/ drivers/ | +48 | 0 replies | |
| 11/30 | ccs: Stop reading arrays after the first zerodrivers/ | +3 | 0 replies | |
| 12/30 | ccs: The functions to get compose or crop rectangle never return NULLdrivers/ | +2 | 0 replies | |
| 13/30 | ccs: Replace somewhat harsh internal checks based on BUG with WARN_ONdrivers/ | +5 | 0 replies | |
| 14/30 | ccs: Refactor register reading a littledrivers/ | +17 | 0 replies | |
| 15/30 | ccs: Make real to integer number conversion optionaldrivers/ drivers/ | +28 | 0 replies | |
| 16/30 | ccs: Move limit value real to integer conversion from read to access timedrivers/ | +12 | 0 replies | |
| 17/30 | ccs: Read ireal numbers correctlydrivers/ drivers/ drivers/ | +32 | 0 replies | |
| 18/30 | smiapp-pll: Rename as ccs-pllMAINTAINERS drivers/ drivers/ +6 more | +66 | 0 replies | |
| 19/30 | ccs-pll: Fix MODULE_LICENSEdrivers/ | +1 | 0 replies | |
| 20/30 | ccs: Change my e-mail addressdrivers/ drivers/ drivers/ +5 more | +11 | 0 replies | |
| 21/30 | ccs: Allow range in between I²C retriesdrivers/ | +2 | 0 replies | |
| 22/30 | ccs: Add support for manufacturer regs from sensor and module filesdrivers/ drivers/ drivers/ | +97 | 0 replies | |
| 23/30 | ccs: Use static data read-only registersdrivers/ | +60 | 0 replies | |
| 24/30 | ccs: Clean up runtime PM usagedrivers/ | +2 | 0 replies | |
| 25/30 | ccs: Wrap long lines, unwrap short onesdrivers/ | +18 | 0 replies | |
| 26/30 | ccs: Use longer pre-I²C sleep for CCS compliant devicesdrivers/ | +6 | 0 replies | |
| 27/30 | ccs: Remove unnecessary delays from power-up sequencedrivers/ | +0 | 0 replies | |
| 28/30 | dt-bindings: mipi,ccs: Don't mention vana voltageDocumentation/ | +1 | 0 replies | |
| 29/30 | dt-bindings: mipi,ccs: Add vcore and vio suppliesDocumentation/ | +8 | 0 replies | |
| 30/30 | ccs: Use all regulatorsdrivers/ drivers/ | +24 | 0 replies |
Reviews trailers per patch
2 of 30 patches have a Reviewed-by or Acked-by.
| Patch | Rob Herring |
|---|---|
| 1/30 | |
| 2/30 | |
| 3/30 | |
| 4/30 | |
| 5/30 | |
| 6/30 | |
| 7/30 | |
| 8/30 | |
| 9/30 | |
| 10/30 | |
| 11/30 | |
| 12/30 | |
| 13/30 | |
| 14/30 | |
| 15/30 | |
| 16/30 | |
| 17/30 | |
| 18/30 | |
| 19/30 | |
| 20/30 | |
| 21/30 | |
| 22/30 | |
| 23/30 | |
| 24/30 | |
| 25/30 | |
| 26/30 | |
| 27/30 | |
| 28/30 | R-b |
| 29/30 | R-b |
| 30/30 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/30] Trivial MIPI CCS support
Hello everyone,
Here's a set of patches that turn the existing SMIA driver into a MIPI CCS driver while maintaining SMIA support. A number of bugs in the existing code are fixed in this set, too.
The changes at this point are primarily focused on dealing with new mandatory driver features related to PLL configuration (as CCS allows for much more variation there) and things such as integer conversion from U16.U16 format instead of float. There are some other new features as well such as digital gain and support for getting device specific analogue gain coefficients.
A new feature in CCS is CCS static data which makes it possible to obtain sensor's capabilities and limits from a file chosen based on sensor identification. CCS static data is used also for storing MSR registers so supporting new, CCS compliant devices requires no driver changes.
Note that the library as well as the register definitions are dual licensed under GNU GPL v2 OR BSD 3-clause licenses for use outside the Linux kernel.
Also DT bindings are updated accordingly and converted to YAML format.
More information on MIPI CCS can be found here:
<URL:https://www.mipi.org/specifications/camera-command-set>
Comments are welcome.
since v1:
- Reorder file names in CCS MAINTAINERS
- Use Linux integer types and __packed (instead of C99 integer types and __attribute__((packed))) in CCS static data library.
- Add documentation to the CCS static data library interface structs.
- Add a missing newline before a macro.
- Depend on the CCS preparation set here:
<URL:https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/>
since the big, big patchset (v2):
- Split into more easily reviewable chunks (this is the second of maybe three). The cover page describes the entire big set. This set contains new DT compatible strings, CCS ACPI ID, rudimentary support for CCS (without PLL changes most sensors need, that's for later), including CCS static data.
- Fix SPDX tags. Some were left accidentally with BSD-3-Clause license only.
- Remove WARN_ON() from snprintf(), but return an error instead.
- Free loaded static data on error as well.
- Add descriptions to ccs-data-defs.h and ccs-data.h to document the difference between the two.
- Make the delay after I²C transfer error a range.
- Make better use of kernel support functions.
Sakari Ailus (30):
ccs: Add MIPI CCS compatible strings
ccs: Add device compatible identifiers for telling SMIA and CCS apart
ccs: Add CCS ACPI device ID
ccs: Remove the I²C ID table
ccs: Remove remaining support for platform data
ccs: Make hwcfg part of the device specific struct
ccs: Fix obtaining bus information from firmware
ccs: Add CCS static data parser library
ccs: Combine revision number major and minor into one
ccs: Read CCS static data from firmware binaries
ccs: Stop reading arrays after the first zero
ccs: The functions to get compose or crop rectangle never return NULL
ccs: Replace somewhat harsh internal checks based on BUG with WARN_ON
ccs: Refactor register reading a little
ccs: Make real to integer number conversion optional
ccs: Move limit value real to integer conversion from read to access
time
ccs: Read ireal numbers correctly
smiapp-pll: Rename as ccs-pll
ccs-pll: Fix MODULE_LICENSE
ccs: Change my e-mail address
ccs: Allow range in between I²C retries
ccs: Add support for manufacturer regs from sensor and module files
ccs: Use static data read-only registers
ccs: Clean up runtime PM usage
ccs: Wrap long lines, unwrap short ones
ccs: Use longer pre-I²C sleep for CCS compliant devices
ccs: Remove unnecessary delays from power-up sequence
dt-bindings: mipi,ccs: Don't mention vana voltage
dt-bindings: mipi,ccs: Add vcore and vio supplies
ccs: Use all regulators
.../bindings/media/i2c/mipi-ccs.yaml | 11 +-
MAINTAINERS | 4 +-
drivers/media/i2c/Kconfig | 2 +-
drivers/media/i2c/Makefile | 2 +-
drivers/media/i2c/{smiapp-pll.c => ccs-pll.c} | 66 +-
drivers/media/i2c/{smiapp-pll.h => ccs-pll.h} | 42 +-
drivers/media/i2c/ccs/Kconfig | 2 +-
drivers/media/i2c/ccs/Makefile | 2 +-
drivers/media/i2c/ccs/ccs-core.c | 396 +++++---
drivers/media/i2c/ccs/ccs-data-defs.h | 221 ++++
drivers/media/i2c/ccs/ccs-data.c | 953 ++++++++++++++++++
drivers/media/i2c/ccs/ccs-data.h | 227 +++++
drivers/media/i2c/ccs/ccs-quirk.c | 10 +-
drivers/media/i2c/ccs/ccs-quirk.h | 2 +-
drivers/media/i2c/ccs/ccs-reg-access.c | 227 ++++-
drivers/media/i2c/ccs/ccs-reg-access.h | 6 +-
drivers/media/i2c/ccs/ccs.h | 24 +-
17 files changed, 1923 insertions(+), 274 deletions(-)
rename drivers/media/i2c/{smiapp-pll.c => ccs-pll.c} (89%)
rename drivers/media/i2c/{smiapp-pll.h => ccs-pll.h} (66%)
create mode 100644 drivers/media/i2c/ccs/ccs-data-defs.h
create mode 100644 drivers/media/i2c/ccs/ccs-data.c
create mode 100644 drivers/media/i2c/ccs/ccs-data.hSignature · 1 line
2.27.0