Skip to content

CCS driver

Sakari Ailus linux-devicetree linux-media 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest106 patches 37 repliesIn review
  2. v1 posting 2/27 of 100 patches 7 repliesSuperseded
  3. v1 posting 1/2100 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Remove DT vendor prefix, use vendor-less compatible string

- Add spec version specific compatible strings together with the generic one

- Add VCore and VIO regulators

- Fix rotation property description

- Use less verbose definition of data-lanes property

- Remove CSI-1 bus; this isn't really there, the old stuff is all CCP2

- Make bus-type a required property

- Use additionalProperties: false on the device

- Fix the example (change compatible string, remove nokia,nvm leftover property)

- Fix MAINTAINERS

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/106smiapp: Generate CCS register definitions and limitsdrivers/media/i2c/smiapp/Makefile drivers/media/i2c/smiapp/ccs-os.h drivers/media/i2c/smiapp/ccs-regs.txt +1 more+1475 -13 replies
2/106smiapp: Use CCS register flagsdrivers/media/i2c/smiapp/smiapp-reg-defs.h drivers/media/i2c/smiapp/smiapp-regs.c drivers/media/i2c/smiapp/smiapp-regs.h+21 -200 replies
3/106smiapp: Calculate CCS limit offsets and limit buffer sizedrivers/media/i2c/smiapp/smiapp-core.c+39 -13 replies
4/106smiapp: Remove macros for defining registers, merge definitionsdrivers/media/i2c/smiapp/smiapp-quirk.c drivers/media/i2c/smiapp/smiapp-reg-defs.h drivers/media/i2c/smiapp/smiapp-reg.h +1 more+570 -5960 replies
5/106smiapp: Add macros for accessing CCS registersdrivers/media/i2c/smiapp/smiapp-regs.h+6 -00 replies
6/106smiapp: Use MIPI CCS version and manufacturer ID informationdrivers/media/i2c/smiapp/smiapp-core.c drivers/media/i2c/smiapp/smiapp.h+68 -280 replies
7/106smiapp: Read CCS limit valuesdrivers/media/i2c/smiapp/smiapp-core.c drivers/media/i2c/smiapp/smiapp.h+176 -50 replies
8/106smiapp: Switch to CCS limitsdrivers/media/i2c/smiapp/Makefile drivers/media/i2c/smiapp/smiapp-core.c drivers/media/i2c/smiapp/smiapp-limits.c +4 more+113 -4150 replies
9/106smiapp: Obtain frame descriptor from CCS limitsdrivers/media/i2c/smiapp/smiapp-core.c+30 -400 replies
10/106smiapp: Use CCS limits in reading data format descriptorsdrivers/media/i2c/smiapp/smiapp-core.c+9 -130 replies
11/106smiapp: Use CCS limits in reading binning capabilitiesdrivers/media/i2c/smiapp/smiapp-core.c+9 -180 replies
12/106smiapp: Use CCS registersdrivers/media/i2c/smiapp/smiapp-core.c drivers/media/i2c/smiapp/smiapp.h+118 -1580 replies
13/106smiapp: Remove quirk function for writing a single 8-bit registerdrivers/media/i2c/smiapp/smiapp-quirk.c+5 -100 replies
14/106smiapp: Rename register access functionsdrivers/media/i2c/smiapp/smiapp-core.c drivers/media/i2c/smiapp/smiapp-quirk.c drivers/media/i2c/smiapp/smiapp-regs.c +1 more+76 -740 replies
15/106smiapp: Internal rename to CCSdrivers/media/i2c/smiapp/Makefile drivers/media/i2c/smiapp/ccs-core.c drivers/media/i2c/smiapp/ccs-quirk.c +4 more+576 -5860 replies
16/106smiapp: Differentiate CCS sensors from SMIA in subdev namingdrivers/media/i2c/smiapp/ccs-core.c+5 -40 replies
17/106smiapp: Rename as "ccs"MAINTAINERS drivers/media/i2c/Kconfig drivers/media/i2c/Makefile +12 more+38 -290 replies
18/106ccs: Remove profile conceptdrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs.h+6 -190 replies
19/106ccs: Give all subdevs a functiondrivers/media/i2c/ccs/ccs-core.c+8 -60 replies
20/106dt-bindings: nokia,smia: Fix link-frequencies documentationDocumentation/devicetree/bindings/media/i2c/nokia,smia.txt+5 -30 replies
21/106dt-bindings: nokia,smia: Make vana-supply optionalDocumentation/devicetree/bindings/media/i2c/nokia,smia.txt+2 -20 replies
22/106dt-bindings: nokia,smia: Remove nokia,nvm-size propertyDocumentation/devicetree/bindings/media/i2c/nokia,smia.txt+0 -11 reply
23/106dt-bindings: nokia,smia: Convert to YAMLDocumentation/devicetree/bindings/media/i2c/nokia,smia.txt Documentation/devicetree/bindings/media/i2c/nokia,smia.yaml MAINTAINERS+107 -681 reply
24/106dt-bindings: nokia,smia: Use better active polarity for resetDocumentation/devicetree/bindings/media/i2c/nokia,smia.yaml+3 -10 replies
25/106dt-bindings: nokia,smia: Amend SMIA bindings with MIPI CCS supportDocumentation/devicetree/bindings/media/i2c/mipi-ccs.yaml MAINTAINERS+18 -71 reply
26/106dt-bindings: mipi-ccs: Add bus-type for C-PHY supportDocumentation/devicetree/bindings/media/i2c/mipi-ccs.yaml+9 -04 replies
27/106ccs: Request for "reset" GPIOdrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs.h+13 -20 replies
28/106ccs: Add MIPI CCS compatible stringsdrivers/media/i2c/ccs/ccs-core.c+3 -00 replies
29/106ccs: Remove the I²C ID tabledrivers/media/i2c/ccs/ccs-core.c+0 -72 replies
30/106ccs: Remove remaining support for platform datadrivers/media/i2c/ccs/ccs-core.c+0 -30 replies
31/106ccs: Make hwcfg part of the device specific structdrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs-quirk.c drivers/media/i2c/ccs/ccs.h+51 -490 replies
32/106ccs: Fix obtaining bus information from firmwaredrivers/media/i2c/ccs/ccs-core.c+6 -70 replies
33/106ccs: Add CCS static data parser librarydrivers/media/i2c/ccs/Makefile drivers/media/i2c/ccs/ccs-data-defs.h drivers/media/i2c/ccs/ccs-data.c +1 more+1281 -14 replies
34/106ccs: Combine revision number major and minor into onedrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs-quirk.c drivers/media/i2c/ccs/ccs.h+16 -140 replies
35/106ccs: Read CCS static data from firmware binariesdrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs.h+32 -01 reply
36/106ccs: Stop reading arrays after the first zerodrivers/media/i2c/ccs/ccs-core.c+3 -00 replies
37/106ccs: The functions to get compose or crop rectangle never return NULLdrivers/media/i2c/ccs/ccs-core.c+2 -60 replies
38/106ccs: Replace somewhat harsh internal checks based on BUG with WARN_ONdrivers/media/i2c/ccs/ccs-core.c+5 -40 replies
39/106ccs: Refactor register reading a littledrivers/media/i2c/ccs/ccs-reg-access.c+17 -200 replies
40/106ccs: Make real to integer number conversion optionaldrivers/media/i2c/ccs/ccs-reg-access.c drivers/media/i2c/ccs/ccs-reg-access.h+28 -90 replies
41/106ccs: Move limit value real to integer conversion from read to access timedrivers/media/i2c/ccs/ccs-core.c+12 -70 replies
42/106ccs: Read ireal numbers correctlydrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs-reg-access.c drivers/media/i2c/ccs/ccs.h+32 -100 replies
43/106smiapp-pll: Rename as ccs-pllMAINTAINERS drivers/media/i2c/Kconfig drivers/media/i2c/Makefile +6 more+66 -680 replies
44/106ccs-pll: Fix MODULE_LICENSEdrivers/media/i2c/ccs-pll.c+1 -10 replies
45/106ccs: Change my e-mail addressdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c +5 more+11 -110 replies
46/106ccs: Add support for manufacturer regs from sensor and module filesdrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs-reg-access.c drivers/media/i2c/ccs/ccs-reg-access.h+97 -223 replies
47/106ccs: Use static data read-only registersdrivers/media/i2c/ccs/ccs-reg-access.c+60 -40 replies
48/106ccs: Clean up runtime PM usagedrivers/media/i2c/ccs/ccs-core.c+2 -50 replies
49/106ccs: Wrap long lines, unwrap short onesdrivers/media/i2c/ccs/ccs-core.c+18 -270 replies
50/106ccs: Add device compatible identifiers for telling SMIA and CCS apartdrivers/media/i2c/ccs/ccs-core.c+16 -40 replies
51/106ccs: Use longer pre-I²C sleep for CCS compliant devicesdrivers/media/i2c/ccs/ccs-core.c+6 -10 replies
52/106ccs: Remove unnecessary delays from power-up sequencedrivers/media/i2c/ccs/ccs-core.c+0 -20 replies
53/106dt-bindings: mipi,ccs: Don't mention vana voltageDocumentation/devicetree/bindings/media/i2c/mipi-ccs.yaml+1 -21 reply
54/106dt-bindings: mipi,ccs: Add vcore and vio suppliesDocumentation/devicetree/bindings/media/i2c/mipi-ccs.yaml+8 -01 reply
55/106ccs: Use all regulatorsdrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs.h+24 -80 replies
56/106ccs-pll: Don't use div_u64 to divide a 32-bit numberdrivers/media/i2c/ccs-pll.c+1 -10 replies
57/106ccs-pll: Split limits and PLL configuration into front and back partsdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c+209 -1880 replies
58/106ccs-pll: Use correct VT divisor for calculating VT SYS divisordrivers/media/i2c/ccs-pll.c+2 -20 replies
59/106ccs-pll: End search if there are no better values availabledrivers/media/i2c/ccs-pll.c+8 -20 replies
60/106ccs-pll: Remove parallel bus supportdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h+4 -150 replies
61/106ccs-pll: Differentiate between CSI-2 D-PHY and C-PHYdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c+4 -30 replies
62/106ccs-pll: Move the flags field down, away from 8-bit fieldsdrivers/media/i2c/ccs-pll.h+1 -10 replies
63/106ccs-pll: Document the structs in the header as well as the functiondrivers/media/i2c/ccs-pll.h+88 -02 replies
64/106ccs-pll: Use the BIT macrodrivers/media/i2c/ccs-pll.h+5 -20 replies
65/106ccs-pll: Begin calculation from OP system clock frequencydrivers/media/i2c/ccs-pll.c+4 -80 replies
66/106ccs-pll: Fix condition for pre-PLL divider lower bounddrivers/media/i2c/ccs-pll.c+1 -10 replies
67/106ccs-pll: Avoid overflow in pre-PLL divisor lower bound searchdrivers/media/i2c/ccs-pll.c+9 -20 replies
68/106ccs-pll: Fix comment on check against maximum PLL multiplierdrivers/media/i2c/ccs-pll.c+1 -10 replies
69/106ccs-pll: Fix check for PLL multiplier upper bounddrivers/media/i2c/ccs-pll.c+1 -20 replies
70/106ccs-pll: Use explicit 32-bit unsigned typedrivers/media/i2c/ccs-pll.c+2 -20 replies
71/106ccs-pll: Add support for lane speed modeldrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h+31 -110 replies
72/106ccs: Add support for lane speed modeldrivers/media/i2c/ccs/ccs-core.c+10 -10 replies
73/106ccs-pll: Add support for decoupled OP domain calculationdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c +1 more+23 -190 replies
74/106ccs-pll: Add support for extended input PLL clock dividerdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c+7 -10 replies
75/106ccs-pll: Support two cycles per pixel on OP domaindrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c+16 -60 replies
76/106ccs-pll: Add support flexible OP PLL pixel clock dividerdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c+23 -80 replies
77/106ccs-pll: Add sanity checksdrivers/media/i2c/ccs-pll.c+9 -00 replies
78/106ccs-pll: Add C-PHY supportdrivers/media/i2c/ccs-pll.c+26 -90 replies
79/106ccs-pll: Split off VT subtree calculationdrivers/media/i2c/ccs-pll.c+131 -1240 replies
80/106ccs-pll: Check for derating and overrating, support non-derating sensorsdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h drivers/media/i2c/ccs/ccs-core.c+64 -290 replies
81/106ccs-pll: Better separate OP and VT sub-tree calculationdrivers/media/i2c/ccs-pll.c+31 -230 replies
82/106ccs-pll: Print relevant information on PLL treedrivers/media/i2c/ccs-pll.c+66 -190 replies
83/106ccs-pll: Rework bounds checksdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h+93 -570 replies
84/106ccs-pll: Make VT divisors 16-bitdrivers/media/i2c/ccs-pll.c+25 -260 replies
85/106ccs-pll: Fix VT post-PLL divisor calculationdrivers/media/i2c/ccs-pll.c+7 -50 replies
86/106ccs-pll: Separate VT divisor limit calculation from the restdrivers/media/i2c/ccs-pll.c+37 -270 replies
87/106ccs-pll: Add trivial dual PLL supportdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h+196 -220 replies
88/106ccs: Dual PLL supportdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs/ccs-core.c+51 -30 replies
89/106ccs-pll: Add support for DDR OP system and pixel clocksdrivers/media/i2c/ccs-pll.c drivers/media/i2c/ccs-pll.h+46 -200 replies
90/106ccs: Add support for DDR OP SYS and OP PIX clocksdrivers/media/i2c/ccs/ccs-core.c+8 -10 replies
91/106ccs: Print written register valuesdrivers/media/i2c/ccs/ccs-reg-access.c+4 -00 replies
92/106ccs-pll: Print pixel ratesdrivers/media/i2c/ccs-pll.c+5 -00 replies
93/106ccs: Add support for obtaining C-PHY configuration from firmwaredrivers/media/i2c/ccs/ccs-core.c+4 -00 replies
94/106ccs: Add digital gain supportdrivers/media/i2c/ccs/ccs-core.c+16 -10 replies
95/106ccs: Add support for old-style SMIA digital gaindrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/smiapp-reg-defs.h+33 -20 replies
96/106ccs: Remove analogue gain fielddrivers/media/i2c/ccs/ccs-core.c drivers/media/i2c/ccs/ccs.h+6 -80 replies
97/106ccs: Only add analogue gain control if the device supports itdrivers/media/i2c/ccs/ccs-core.c+10 -60 replies
98/106v4l: uapi: Add user control base for CCS controlsinclude/uapi/linux/v4l2-controls.h+6 -00 replies
99/106v4l: uapi: ccs: Add controls for analogue gain constantsMAINTAINERS include/uapi/linux/ccs.h+15 -04 replies
100/106ccs: Add support for analogue gain coefficient controlsdrivers/media/i2c/ccs/ccs-core.c+36 -23 replies
101/106v4l: uapi: ccs: Add controls for CCS alternative analogue gaininclude/uapi/linux/ccs.h+2 -00 replies
102/106ccs: Add support for alternate analogue global gaindrivers/media/i2c/ccs/ccs-core.c+55 -00 replies
103/106ccs: Add debug prints for MSR registersdrivers/media/i2c/ccs/ccs-reg-access.c+8 -00 replies
104/106v4l: uapi: ccs: Add CCS controls for shading correctioninclude/uapi/linux/ccs.h+5 -00 replies
105/106ccs: Add shading correction and luminance correction level controlsdrivers/media/i2c/ccs/ccs-core.c+74 -04 replies
106/106ccs: Add CCS ACPI device IDdrivers/media/i2c/ccs/ccs-core.c+7 -01 reply

Reviews trailers per patch

9 of 106 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/106
2/106
3/106
4/106
5/106
6/106
7/106
8/106
9/106
10/106
11/106
12/106
13/106
14/106
15/106
16/106
17/106
18/106
19/106
20/106A-b
21/106A-b
22/106A-b
23/106R-b
24/106A-b
25/106R-b
26/106R-b
27/106
28/106
29/106
30/106
31/106
32/106
33/106
34/106
35/106
36/106
37/106
38/106
39/106
40/106
41/106
42/106
43/106
44/106
45/106
46/106
47/106
48/106
49/106
50/106
51/106
52/106
53/106R-b
54/106R-b
55/106
56/106
57/106
58/106
59/106
60/106
61/106
62/106
63/106
64/106
65/106
66/106
67/106
68/106
69/106
70/106
71/106
72/106
73/106
74/106
75/106
76/106
77/106
78/106
79/106
80/106
81/106
82/106
83/106
84/106
85/106
86/106
87/106
88/106
89/106
90/106
91/106
92/106
93/106
94/106
95/106
96/106
97/106
98/106
99/106
100/106
101/106
102/106
103/106
104/106
105/106
106/106

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

Read the v2 thread

Cover letter [PATCH v2 000/106] CCS driver

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 (DT bindings):

- Remove DT vendor prefix, use vendor-less compatible string

- Add spec version specific compatible strings together with the generic one

- Add VCore and VIO regulators

- Fix rotation property description

- Use less verbose definition of data-lanes property

- Remove CSI-1 bus; this isn't really there, the old stuff is all CCP2

- Make bus-type a required property

- Use additionalProperties: false on the device

- Fix the example (change compatible string, remove nokia,nvm leftover property)

- Fix MAINTAINERS

since v1 (driver):

- Generate register and limit definitions from source

- Style fixes in ccs-pll.c

- Use correct MODULE_LICENSE in ccs-pll.c

- Support for VCore and VIO regulators

- Remove extra delays from power-up sequence

- Adapt to parsing changes in v4l2_fwnode_endpoint_alloc_parse(), i.e. call it just once. This also fixes parsing bus-type-less DT binaries.

- Fix MAINTAINERS

Sakari Ailus (106):
smiapp: Generate CCS register definitions and limits
smiapp: Use CCS register flags
smiapp: Calculate CCS limit offsets and limit buffer size
smiapp: Remove macros for defining registers, merge definitions
smiapp: Add macros for accessing CCS registers
smiapp: Use MIPI CCS version and manufacturer ID information
smiapp: Read CCS limit values
smiapp: Switch to CCS limits
smiapp: Obtain frame descriptor from CCS limits
smiapp: Use CCS limits in reading data format descriptors
smiapp: Use CCS limits in reading binning capabilities
smiapp: Use CCS registers
smiapp: Remove quirk function for writing a single 8-bit register
smiapp: Rename register access functions
smiapp: Internal rename to CCS
smiapp: Differentiate CCS sensors from SMIA in subdev naming
smiapp: Rename as "ccs"
ccs: Remove profile concept
ccs: Give all subdevs a function
dt-bindings: nokia,smia: Fix link-frequencies documentation
dt-bindings: nokia,smia: Make vana-supply optional
dt-bindings: nokia,smia: Remove nokia,nvm-size property
dt-bindings: nokia,smia: Convert to YAML
dt-bindings: nokia,smia: Use better active polarity for reset
dt-bindings: nokia,smia: Amend SMIA bindings with MIPI CCS support
dt-bindings: mipi-ccs: Add bus-type for C-PHY support
ccs: Request for "reset" GPIO
ccs: Add MIPI CCS compatible strings
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: 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: Add device compatible identifiers for telling SMIA and CCS apart
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
ccs-pll: Don't use div_u64 to divide a 32-bit number
ccs-pll: Split limits and PLL configuration into front and back parts
ccs-pll: Use correct VT divisor for calculating VT SYS divisor
ccs-pll: End search if there are no better values available
ccs-pll: Remove parallel bus support
ccs-pll: Differentiate between CSI-2 D-PHY and C-PHY
ccs-pll: Move the flags field down, away from 8-bit fields
ccs-pll: Document the structs in the header as well as the function
ccs-pll: Use the BIT macro
ccs-pll: Begin calculation from OP system clock frequency
ccs-pll: Fix condition for pre-PLL divider lower bound
ccs-pll: Avoid overflow in pre-PLL divisor lower bound search
ccs-pll: Fix comment on check against maximum PLL multiplier
ccs-pll: Fix check for PLL multiplier upper bound
ccs-pll: Use explicit 32-bit unsigned type
ccs-pll: Add support for lane speed model
ccs: Add support for lane speed model
ccs-pll: Add support for decoupled OP domain calculation
ccs-pll: Add support for extended input PLL clock divider
ccs-pll: Support two cycles per pixel on OP domain
ccs-pll: Add support flexible OP PLL pixel clock divider
ccs-pll: Add sanity checks
ccs-pll: Add C-PHY support
ccs-pll: Split off VT subtree calculation
ccs-pll: Check for derating and overrating, support non-derating
sensors
ccs-pll: Better separate OP and VT sub-tree calculation
ccs-pll: Print relevant information on PLL tree
ccs-pll: Rework bounds checks
ccs-pll: Make VT divisors 16-bit
ccs-pll: Fix VT post-PLL divisor calculation
ccs-pll: Separate VT divisor limit calculation from the rest
ccs-pll: Add trivial dual PLL support
ccs: Dual PLL support
ccs-pll: Add support for DDR OP system and pixel clocks
ccs: Add support for DDR OP SYS and OP PIX clocks
ccs: Print written register values
ccs-pll: Print pixel rates
ccs: Add support for obtaining C-PHY configuration from firmware
ccs: Add digital gain support
ccs: Add support for old-style SMIA digital gain
ccs: Remove analogue gain field
ccs: Only add analogue gain control if the device supports it
v4l: uapi: Add user control base for CCS controls
v4l: uapi: ccs: Add controls for analogue gain constants
ccs: Add support for analogue gain coefficient controls
v4l: uapi: ccs: Add controls for CCS alternative analogue gain
ccs: Add support for alternate analogue global gain
ccs: Add debug prints for MSR registers
v4l: uapi: ccs: Add CCS controls for shading correction
ccs: Add shading correction and luminance correction level controls
ccs: Add CCS ACPI device ID

 .../bindings/media/i2c/mipi-ccs.yaml          |  135 +
 .../bindings/media/i2c/nokia,smia.txt         |   66 -
 MAINTAINERS                                   |   21 +-
 drivers/media/i2c/Kconfig                     |    4 +-
 drivers/media/i2c/Makefile                    |    4 +-
 drivers/media/i2c/{smiapp-pll.c => ccs-pll.c} | 1012 ++++---
 drivers/media/i2c/{smiapp-pll.h => ccs-pll.h} |  196 +-
 drivers/media/i2c/{smiapp => ccs}/Kconfig     |    9 +-
 drivers/media/i2c/{smiapp => ccs}/Makefile    |   18 +-
 .../{smiapp/smiapp-core.c => ccs/ccs-core.c}  | 2426 ++++++++++-------
 drivers/media/i2c/ccs/ccs-data-defs.h         |  215 ++
 drivers/media/i2c/ccs/ccs-data.c              |  949 +++++++
 drivers/media/i2c/ccs/ccs-data.h              |  116 +
 drivers/media/i2c/ccs/ccs-os.h                |   15 +
 .../smiapp-quirk.c => ccs/ccs-quirk.c}        |  105 +-
 .../smiapp-quirk.h => ccs/ccs-quirk.h}        |   54 +-
 .../smiapp-regs.c => ccs/ccs-reg-access.c}    |  296 +-
 .../smiapp-regs.h => ccs/ccs-reg-access.h}    |   40 +-
 drivers/media/i2c/ccs/ccs-regs.txt            | 1041 +++++++
 .../media/i2c/{smiapp/smiapp.h => ccs/ccs.h}  |  185 +-
 drivers/media/i2c/ccs/mk-ccs-regs             |  405 +++
 .../smiapp-reg.h => ccs/smiapp-reg-defs.h}    |  502 +++-
 drivers/media/i2c/smiapp/smiapp-limits.c      |  118 -
 drivers/media/i2c/smiapp/smiapp-limits.h      |  114 -
 drivers/media/i2c/smiapp/smiapp-reg-defs.h    |  489 ----
 include/uapi/linux/ccs.h                      |   21 +
 include/uapi/linux/v4l2-controls.h            |    6 +
 27 files changed, 6166 insertions(+), 2396 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml
 delete mode 100644 Documentation/devicetree/bindings/media/i2c/nokia,smia.txt
 rename drivers/media/i2c/{smiapp-pll.c => ccs-pll.c} (16%)
 rename drivers/media/i2c/{smiapp-pll.h => ccs-pll.h} (18%)
 rename drivers/media/i2c/{smiapp => ccs}/Kconfig (48%)
 rename drivers/media/i2c/{smiapp => ccs}/Makefile (14%)
 rename drivers/media/i2c/{smiapp/smiapp-core.c => ccs/ccs-core.c} (43%)
 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.h
 create mode 100644 drivers/media/i2c/ccs/ccs-os.h
 rename drivers/media/i2c/{smiapp/smiapp-quirk.c => ccs/ccs-quirk.c} (63%)
 rename drivers/media/i2c/{smiapp/smiapp-quirk.h => ccs/ccs-quirk.h} (53%)
 rename drivers/media/i2c/{smiapp/smiapp-regs.c => ccs/ccs-reg-access.c} (37%)
 rename drivers/media/i2c/{smiapp/smiapp-regs.h => ccs/ccs-reg-access.h} (16%)
 create mode 100644 drivers/media/i2c/ccs/ccs-regs.txt
 rename drivers/media/i2c/{smiapp/smiapp.h => ccs/ccs.h} (52%)
 create mode 100644 drivers/media/i2c/ccs/mk-ccs-regs
 rename drivers/media/i2c/{smiapp/smiapp-reg.h => ccs/smiapp-reg-defs.h} (10%)
 delete mode 100644 drivers/media/i2c/smiapp/smiapp-limits.c
 delete mode 100644 drivers/media/i2c/smiapp/smiapp-limits.h
 delete mode 100644 drivers/media/i2c/smiapp/smiapp-reg-defs.h
 create mode 100644 include/uapi/linux/ccs.h
Signature · 1 line
2.27.0