18 Commits

Author SHA1 Message Date
6637d416d1 msm: camera: isp: Add fuse support for SHDR
Add dt-bindings entry for CAM_CPAS_SHDR_FUSE feature.
Read fuse value and store it.

CRs-Fixed: 3609762
Change-Id: I9fdd9e8ba2cf4648cca3dedba567853764344241
Signed-off-by: Dharmender Sharma <dharshar@qti.qualcomm.com>
2023-09-26 01:56:27 -07:00
f910aa0b4f msm: camera: common: Partial Camera Support
This change creates a sysfs entry(subparts_info) which
has info about number of IFEs, IFE-LITEs, SFEs & CUSTOM,
whose values are populated in their respective drivers.
Also, validates whether a particular IFE, SFE and CUSTOM
is supported or not. Based on this, probe of IFE, SFE and
CUSTOM drivers will happen accordingly.

CRs-Fixed: 3482745
Change-Id: Iff6e79a7793b14b1f368f215020617f10dbd4bb5
Signed-off-by: Karthik Dillibabu <quic_kard@quicinc.com>
2023-06-26 14:00:13 -07:00
a6ef23e7e5 msm: camera: utils: Add support bypass clock/regulator/icc wrapper
Sometimes need to avoid access clock/regulator/icc api, this change
add support bypass clock/regulator/icc wrapper through enable
some debugfs parameters and devicetree.

CRs-Fixed: 3445248
Change-Id: I0546975bf063625b39b771c776813e7dbff84e06
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2023-05-20 10:06:32 -07:00
04984a34de msm: camera: cpas: Add IPE APP path
Add IPE APP path macros to be used in DTSI.

CRs-Fixed: 3434175
Change-Id: Iae584ee3967d80293893308470b3e6bd23c6294f
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2023-03-21 18:06:21 -07:00
84025c3494 msm: camera: cpas: Update OFE AXI BW voting
Add OFE AXI path data type to string translations.
Add OFE data path Macros to be used in DTSI.

CRs-Fixed: 3375045
Change-Id: Ia7bc06869c771c34888ee141a53da2c060c6b162
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
2023-02-14 21:06:15 -08:00
2a48091a63 dt-bindings: camera: Add mask for HW based clock scaling
Add mask for camera clock drv.

CRs-Fixed: 3294948
Change-Id: If7ad9cb1476603e188dbe16daad31b3c0740cf02
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-11-29 17:36:38 -08:00
7f3c540b78 Catch up diff
Change-Id: Ie11e070d33e9dc83e96f7ae783fcc2e5e0273a40
Signed-off-by: Abhijit Trivedi <quic_abhijitt@quicinc.com>
2022-11-16 14:14:20 -08:00
434b591240 msm: camera: common: Update headers for new target
Some definitions need to be updated based on device tree
configuration for new target. Add appropriate changes to
support it.

CRs-Fixed: 3244380
Change-Id: I919facfe319ca56477e594b782dcd2ad659cb193
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-09-15 16:36:48 -07:00
96c42c1a2b msm: camera: cpas: Domain-id mapping based on DT
This change involves the parsing of domain-id mapping
from DT and storage of this information in struct
cam_cpas_private_soc. This information will be relayed
to userspace in an ioctl call, and also exposed to the
IFE driver within the kernel.

CRs-Fixed: 3215167
Change-Id: I68d914fd4b84bc029edccd5cd1d2e2733fa32fcd
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-06-20 18:36:21 -07:00
c8a2b3a9a8 dt-bindings: camera: Add camera DRV definitions
Add camera DRV feature enable mask definition. Add
definitions to communicate the DRV voting index from
device tree, which can be used to get the applicable
mnoc index for a client in cpas driver. The mnoc index
would eventually be used to vote the DRV bandwidth at
correct bus ID.

CRs-Fixed: 3065551
Change-Id: Ic429a3a7d40f9004818ea5f3e65469b40a92b438
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-06-09 12:06:16 -07:00
f8d9ddc7a4 msm: camera: csiphy: Add support for multiple AON Cameras
Add support for more than one AON cameras for SM8650 target.

CRs-Fixed: 3149294
Change-Id: I842317ab59812109785a026fd0f728baf837b27f
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-03-31 17:36:11 -07:00
a5afa0b63a msm: camera: icp: CRE and OPE voting fixes
- Added Voting Option for APP Port send from UMD.
- Adding Path type and transaction type for CRE.

CRs-Fixed: 3081144
Change-Id: Id5e8eb8d41cc2354d76f9dbbad8dfb3e09cf66a3
Signed-off-by: Alok Pandey <quic_akumarpa@quicinc.com>
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2022-03-04 16:06:12 -08:00
99805a9e51 msm: camera: isp: Add fuse support for QCFA binning
- Add fuse support for QCFA binning. If fuse bit is set then QCFA is
  enabled then we should proceed for acquire otherwise we should fail.
- Add dt-bindings entry for CAM_CPAS_IPE_VID_OUT_8BPP_LIMIT_ENABLE
  feature.

CRs-Fixed: 3081144
Change-Id: Iaf6f1c9d9fd442ff24c36d90758aa8ee146d461f
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-12-14 08:35:05 -08:00
d841951985 msm: camera: sensor: Add support for CSIPHY fuse
Add support to disable the 5th CSIPHY based on
the CSIPHY SW fuse register bit.

Change-Id: Iae9dd7df0c0277eb48a258c91502390d042c9c43
CRs-Fixed: 3071805
Signed-off-by: Shravan Nevatia <quic_snevatia@quicinc.com>
2021-11-10 02:50:39 -08:00
858bba3104 msm: camera: common: Add path for ubwc and linear
Add consolidated IFE path for ubwc and linear.

CRs-Fixed: 3048249
Change-Id: Idbf03c20b734e6a3ec5034ccd6450f8659e0e94f
Signed-off-by: ridhshah <ridhshah@codeaurora.org>
2021-11-01 13:15:33 -07:00
5f7956594d msm: camera: isp: IFE and CSID probe based on fuse
Some ISP hardware id instances are disabled on some target skus.
Cpas driver has fuse information based on the dtsi entries.
ISP hw driver queries the cpas driver whether hw instance is
supported or not. If ISP hardware is supported on the target then
continue the isp hardware probe.

Fix for get HW feature:
When feature is enable or disable type and HW mask is not indicating the
HW index, do not update the supported. By default it is supported.

CRs-Fixed: 2825675
Change-Id: I777e5790060388458562e7a53fea8a7324ffa9d3
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-07-18 22:05:40 -07:00
849491a0f2 msm: camera: sensor: Move cci master index to dt-bindings
Master specific index is moved to dt bindings to share across
dtsi and driver for the same referencing. This will help
to align indexing and controlling of pinctrl with master specific
slaves.

CRs-Fixed: 2907475, 2954556
Change-Id: Ic5b5537b44af583cb7623ef38a19e67ffe95e95d
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-30 11:36:58 -07:00
c69ede622c msm: camera: common: Migrate dt-bindings to techpack
To support external module compilation on Waipio, camera dt-bindings header
files need to be moved out of kernel SI and into the camera-kernel vendor SI.
This is to maintain seperation between the two SI's.

CRs-Fixed: 2835738
Change-Id: I8d63b48b6d406ed7b4a07f3bd4f1721ecd2dd0b0
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-01-11 10:11:37 -08:00