Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp602396rdf; Fri, 3 Nov 2023 09:26:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+3IgAOWZcQlPxlzEdgkOoYqqP63v8HhDkVrK5CnCtJuadDA5G76/JGUg1b2wL63R7BYKl X-Received: by 2002:a05:6a21:4886:b0:181:b86b:419 with SMTP id av6-20020a056a21488600b00181b86b0419mr5166165pzc.62.1699028798700; Fri, 03 Nov 2023 09:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699028798; cv=none; d=google.com; s=arc-20160816; b=YSY1qWP5EWRFcgWsTNRu1H+gbxGIX4l2GwDTTFFkZ0i5m+PhenF0eHC0xcMiTGFfHF VSjDIzoGP9NA8oSXFbNwRxTPtp5I/dnmtyA14MUW5L2KelQVhDYIPoYTlNqqamYIcIxt akfDlk62T3c8+y4kzbdzLu+KBopmNYPsllbf8pyyget7OfVoswHtvYcqP5N2oLaVwLft 78L9sG5+3tF67+WhT0lIQzMyR8G2utZvc1y2dzuprVMkPZmn9fpqqWjfiwf1KemzdE7W Te5pz2p5J++DaXNaI+NjigbAs3To0ySSvmx38W5RSpjnj4Q0npmLQo1SBC8Kd1Rm9Vfh zKDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=cKP6IQc+TaLeXk9YRQCHSXv1g3/KaIhaK69CBx/ySdI=; fh=JbbXkiP9+kqcX1llmfrYBP+pFau1HrlhgqJxX3xqd34=; b=Ep/uO2Y6jASl5zCNSdC8JKb6+WA/7zyqH4EdD5dQuMBCkLI3ZWCruamGWPHvX0kdn8 9nkQ8ttigCRxy1Hm3p5xrXYYSHHevr+OJcyPP9ZgzbA1Q4uXxm0CG6qCAAIrq3C1Kace ay7Srsb98ff/v3q+NZ6nY64Zt2VdNWS6iEVEkzrq1vQOOaDRozGsa668jRmStsNzSpuc lHSMDELo5DpZavDkxj4JS5qIlzqX3Zvum5Hdpp1KtmHa0NueLPchexxo61d3K6q6HpIU r+cCoG99c+RwQMN0vEYpPzhHNSrMzQa1gRnyrEUjR6LgMREH8/40/mRR1W1ZVYYFyOfX Sq4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KradHAIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d5-20020a170903230500b001cc50114667si1733605plh.551.2023.11.03.09.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KradHAIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7ECD580941F2; Fri, 3 Nov 2023 09:25:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344894AbjKCQZY (ORCPT + 99 others); Fri, 3 Nov 2023 12:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234355AbjKCQZR (ORCPT ); Fri, 3 Nov 2023 12:25:17 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 414811BC for ; Fri, 3 Nov 2023 09:25:07 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-32f8441dfb5so1405894f8f.0 for ; Fri, 03 Nov 2023 09:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699028705; x=1699633505; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=cKP6IQc+TaLeXk9YRQCHSXv1g3/KaIhaK69CBx/ySdI=; b=KradHAIUi/4Tj8bPYgHODtMi5kbsxmWoS9BRIOTQ4bEgAsjxLjdOfglZZJ3wRhrMMa hYZchDSE7i6wqQQfEhvI5ScHYuso4/UIU/rwYq+Zn9/PpQUMmFnkYonVcJmggGAXcCHs U6nRkhujfV1XlrEi/jLEGiZaSeuEHgpQw4Q6LYvzJ3URYzO2chdecRYThsbqyUfg6O+D Oav9wL1xdKTjdcSBS4MLLcuDSbRUGq29xvJ8JoEgfa/AjEUGERXu7x89E91d6BmOvVhZ 4S+aA+Yud43Ug/JkT2/QzaE/y2ujZckjm14DLkwsRst9NyOnGrXJ3VRYNv95JQDLOKhq se7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699028705; x=1699633505; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cKP6IQc+TaLeXk9YRQCHSXv1g3/KaIhaK69CBx/ySdI=; b=EgQqS45jTX+MSaW34KQKO5U+KQo5e8hOl/+3NT00hwXu2I6OrAKOp5P6rY2BIovO1d XZ6lU5MhAnMispyjInI/jYe/clE0/VrahoKH1QujWnyiY/c9DHIMzqE9uwtXmJg3havQ w7cFX7q+H99LNIhf9xqxbgZxmlaX98qaZtpG2j7ewxGc9UXyOLYhL2iuSpZ130DBU5HD T26/h7F6riU9tXathqzF9/43KwcU5mo82+RabY6E5URwq4nJl4GunnKsgZH5U+CrXbo/ 8A24UbfWr3eVEhH9x+k7YZC/TI6rPwLJoDU801psmcyQdfIIpnSJYFRGILFZkP6W0Utx yx3A== X-Gm-Message-State: AOJu0YzRbDrvn/zsd+ahZuzzxtL+VhTSSrNYz4OYSRXupaLr2NWFtKgv dX4PC65ul3nV/04iDB6JT1CADg== X-Received: by 2002:a05:6000:1209:b0:32d:9d3a:d8c0 with SMTP id e9-20020a056000120900b0032d9d3ad8c0mr15950748wrx.60.1699028705602; Fri, 03 Nov 2023 09:25:05 -0700 (PDT) Received: from [127.0.0.1] ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id x13-20020a5d650d000000b003142e438e8csm2219972wru.26.2023.11.03.09.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:25:05 -0700 (PDT) From: Bryan O'Donoghue Subject: [PATCH v2 0/6] media: qcom: camss: Add sc8280xp support Date: Fri, 03 Nov 2023 16:25:03 +0000 Message-Id: <20231103-b4-camss-sc8280xp-v2-0-b7af4d253a20@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAN8eRWUC/22NQQrCMBBFr1Jm7UgmFmlceQ/poomTdkCbkpFSK b27seDO5Xvw319BOQsrXKoVMs+iksYC9lBBGLqxZ5R7YbDGnogMoa8xdE9V1NDYxiwTGibviL0 lH6HspsxRlr15awsPoq+U3/vFTF/7q9k/tZnQoHPuHGsffBPr60PGLqdjyj2027Z9AI0tMEKzA AAA To: hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, Andy Gross , Bjorn Andersson , Konrad Dybcio , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , vincent.knecht@mailoo.org, matti.lehtimaki@gmail.com, quic_grosikop@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-26615 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 09:25:32 -0700 (PDT) V2: - Rebase to capture is_lite flag from named power-domain series - Amends commit log of final patch to give more detail on rename - Konrad - Opted not to change switch() statements with returns. - bod/Konrad Requires CAMCC for sc8280xp which applies to qcom/clk-for-6.7: https://lore.kernel.org/linux-arm-msm/20231026105345.3376-1-bryan.odonoghue@linaro.org/ b4 shazam 20231026105345.3376-1-bryan.odonoghue@linaro.org Requires the named power-domain patches which apply to media-tree/*: https://lore.kernel.org/linux-arm-msm/20231103-b4-camss-named-power-domains-v4-0-33a905359dbc@linaro.org/ b4 shazam e700133b-58f7-4a4d-8e5c-0d04441b789b@linaro.org Link to v1: https://lore.kernel.org/r/20231102-b4-camss-sc8280xp-v1-0-9996f4bcb8f4@linaro.org b4 base: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/b4/camss-sc8280xp-v2 V1: sc8280xp is the SoC found in the Lenovo X13s. This series adds support to bring up the CSIPHY, CSID, VFE/RDI interfaces. A number of precursor patches make this series smaller overall than previous series. sc8280xp provides - 4 x VFE, 4 RDI per VFE - 4 x VFE Lite, 4 RDI per VFE - 4 x CSID - 4 x CSID Lite - 4 x CSI PHY I've taken the yaml from a dtsi series and included it here since 1) I sent the yaml to the wrong person and 2) it already has RB from Krzysztof. Requires CAMCC for sc8280xp which applies to qcom/clk-for-6.7: https://lore.kernel.org/linux-arm-msm/20231026105345.3376-1-bryan.odonoghue@linaro.org/ b4 shazam 20231026105345.3376-1-bryan.odonoghue@linaro.org Requires the named power-domain patches which apply to media-tree/* : https://lore.kernel.org/linux-arm-msm/20231101-b4-camss-named-power-domains-v3-5-bbdf5f22462a@linaro.org/ b4 shazam 20231101-b4-camss-named-power-domains-v3-5-bbdf5f22462a@linaro.org To use the camera on x13s with say Google Hangouts or Microsoft Teams you will need to 1. Run Firefox 2. Update about:config to enable pipewire 3. Use this WIP version of libcamera https://gitlab.freedesktop.org/camera/libcamera-softisp A working bootable tree can be found here: Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/lenovo-x13s-linux-6.5.y b4 base: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/b4/camss-sc8280xp Signed-off-by: Bryan O'Donoghue --- Bryan O'Donoghue (6): media: dt-bindings: media: camss: Add qcom,sc8280xp-camss binding media: qcom: camss: Add CAMSS_SC8280XP enum media: qcom: camss: csiphy-3ph: Add Gen2 v1.1 two-phase MIPI CSI-2 DPHY init media: qcom: camss: Add sc8280xp resource details media: qcom: camss: Add sc8280xp support media: qcom: camss: vfe-17x: Rename camss-vfe-170 to camss-vfe-17x .../bindings/media/qcom,sc8280xp-camss.yaml | 581 +++++++++++++++++++++ drivers/media/platform/qcom/camss/Makefile | 2 +- .../platform/qcom/camss/camss-csiphy-3ph-1-0.c | 108 +++- drivers/media/platform/qcom/camss/camss-csiphy.c | 1 + .../camss/{camss-vfe-170.c => camss-vfe-17x.c} | 0 drivers/media/platform/qcom/camss/camss-vfe.c | 25 +- drivers/media/platform/qcom/camss/camss-video.c | 1 + drivers/media/platform/qcom/camss/camss.c | 383 ++++++++++++++ drivers/media/platform/qcom/camss/camss.h | 1 + 9 files changed, 1093 insertions(+), 9 deletions(-) --- base-commit: 89e965e1a58f58cd359472b14c0cc25587bcf264 change-id: 20231101-b4-camss-sc8280xp-0e1b91eb21bf Best regards, -- Bryan O'Donoghue