Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3295842lfo; Mon, 23 May 2022 00:59:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbsWKIMJDHp7DbfOX/pUOnve/82wLQvqOHHF4y+CVI0GlCRUK7DcRlsKqRc1JXGJFuX7iw X-Received: by 2002:a17:90a:7b81:b0:1df:6815:34ec with SMTP id z1-20020a17090a7b8100b001df681534ecmr25481904pjc.100.1653292758358; Mon, 23 May 2022 00:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653292758; cv=none; d=google.com; s=arc-20160816; b=O7Jx+5hD4r1HuFnERqV/g36/g712wc5jtNfjWBLRwEtdlOgeII5daLe5063mlT3fJu /EnrLpvc2USYk9y5+Mw8RIfECrAr3eJxWiDUP68mR8juDac/ByYaxvHai/sTE3m5zCt5 3sVTsSgOfIk+QslL7h6s43TUuXYvl5o9dOPyC1Dt4uzb05HhYpVtJqex0WhIwsCuJmRV k+TS68EfmTopL8apdleqbcD1e8SrIVlkG1z8q3LjlMcIeYIzKZeXbGt76H/9jh/8SLS+ ILy8jG9R+az3Ur1ZAHeMU7dA9U2g2mjqLJwrQDhF/L2RDrsGsoQf7JWTzsrAuKo6yiLP E/Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vZho0XJWmPMCVVF7IkqfnGbFEo43/p2+2lGvedFsqBY=; b=W9r81fRs+1rFw5iszx94hwBRRfa0Bu3DboMmXo2Q7fAZC8FMs8vdFPHFCBzr2lnVyV hripx+zM2yuxo2aP5sPzTX2HHu7IvYAcNBDYQGdlm86U4w/PPgpbDLFxXmW80WE/tOZs fUbA8OLmobwJB/hhRWrBG76ZfJxJ2+k6FQOxW2cH3qYDkuUcTbz0IsjbtYbSKIRy8nO8 JTsDzZl/r1UV6wjrDjkSTxOUGugeh8wQlL0zFyXN5nIRJ+ItVhfW8KuX9eFvS3ss5ZoW uyXll+JBtcEpuz+RQTQhOrRUs5WS/wnLeE3ACiGt3uQjFO8L2RxncCMcgstclPAJy44t vziw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=iVZTYNDW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v11-20020a63b94b000000b003db4a8daae5si10516933pgo.646.2022.05.23.00.59.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:59:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=iVZTYNDW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6B7524A399; Sun, 22 May 2022 23:59:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344487AbiEVQ20 (ORCPT + 99 others); Sun, 22 May 2022 12:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239510AbiEVQ2X (ORCPT ); Sun, 22 May 2022 12:28:23 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808221408F; Sun, 22 May 2022 09:28:19 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (a246182.upc-a.chello.nl [62.163.246.182]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id B6911CCD0A; Sun, 22 May 2022 16:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1653236896; bh=cFYMSBAR5nSWZ0V5OXR+W0l5hCGPr4sB3AoRi8xys+4=; h=From:To:Cc:Subject:Date; b=iVZTYNDWMtYnxOqKI2d4yO/XY1JfnODk3MAUvdBefihwUkYHlS0jfyJSF5YL0O4pP OwDLMqLOELknLhzYVhHLIKP95udmQbml9g1dqKEx2+4qJnAByos0Z/W07SESrs2DkY Ucx6f33YBZK9LQBZcCpKQJq8OGmgFNx1Pp0qP3vA= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , Todor Tomov , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, matti.lehtimaki@gmail.com, Luca Weiss Subject: [RFC PATCH 00/14] CAMSS support for MSM8974 Date: Sun, 22 May 2022 18:27:48 +0200 Message-Id: <20220522162802.208275-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This RFC series adds support for CAMSS and CCI that are found on msm8974, including the OV8865 found on the FP2. The only reason it's marked RFC is that CAMSS doesn't behave properly on this SoC without the last commit which is obviously not upstreamable. Not sure if this should be a blocker for including most of the other patches because other than that it seems to work fine and I can get a picture from the camera sensor. When/if msm8974 gets IOMMU support I hope this should be resolved and it works without this hack. I think at least the CCI patches could get applied as they're not dependent on the CAMSS hack? Luca Weiss (5): dt-bindings: i2c: qcom-cci: add QCOM MSM8974 compatible ARM: dts: qcom: msm8974: add CCI bus ARM: dts: qcom: msm8974: add CAMSS node ARM: dts: qcom: msm8974-FP2: Add OV8865 rear camera [DNM] media: camss: hacks for MSM8974 Matti Lehtimäki (9): media: dt-bindings: media: camss: Add qcom,msm8974-camss binding media: camss: Add CAMSS_8x74 camss version media: camss: vfe: Add support for 8x74 media: camss: video: Add support for 8x74 media: camss: csid: Add support for 8x74 media: camss: ispif: Add support for 8x74 media: camss: csiphy: Add support for 8x74 media: camss: Add 8x74 resources i2c: qcom-cci: add msm8974 compatible .../devicetree/bindings/i2c/i2c-qcom-cci.txt | 7 +- .../bindings/media/qcom,msm8974-camss.yaml | 321 ++++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 184 ++++++++++ .../dts/qcom-msm8974pro-fairphone-fp2.dts | 70 ++++ drivers/i2c/busses/i2c-qcom-cci.c | 35 ++ drivers/media/platform/qcom/camss/Kconfig | 4 +- .../media/platform/qcom/camss/camss-csid.c | 3 +- .../media/platform/qcom/camss/camss-csiphy.c | 4 +- .../media/platform/qcom/camss/camss-ispif.c | 5 +- drivers/media/platform/qcom/camss/camss-vfe.c | 7 +- .../media/platform/qcom/camss/camss-video.c | 17 +- drivers/media/platform/qcom/camss/camss.c | 161 +++++++++ drivers/media/platform/qcom/camss/camss.h | 1 + 13 files changed, 801 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/qcom,msm8974-camss.yaml -- 2.36.0