From patchwork Fri Aug 11 23:47:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1484464vqi; Fri, 11 Aug 2023 19:52:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeYWAgHKLpI3QJCfW+uLiZXU0osn+Ing5brSjfGKQuvclVdcIQzJC8Xwq6s7A73f8fg6w6 X-Received: by 2002:a17:902:e841:b0:1b9:de75:d5bb with SMTP id t1-20020a170902e84100b001b9de75d5bbmr4151596plg.7.1691808777250; Fri, 11 Aug 2023 19:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691808777; cv=none; d=google.com; s=arc-20160816; b=AcrrAcGBNVDRVHmvEK0yX0Arj7iix4bdF+wfVAGBC2w62bQqEUAsC436jhqxTuD+dN IuEbR40O59WghOqX+G6uZAAta4vFuS7fAJHsXxMxTWvNdSm0bVrFqtqqmVmXMrhpKM2l HFJmdshu+JZ5g/y8oXVhZSatF6oC7lo0iIjdObH3GGJqUePs5yuO6lEcYDAWk5CozaRZ PIvZjcQhUrvJg9bRyX6yAVImiNvDaILElBXWr2SN4vUtAyxZ/WcRfAD9fofX8kGerqsT 01YgIxmYxJN8M2vmb9h5LKZUQe363/wulOxSXAKNh1FlkkIgPwftU1o8VhODIw7k+SIk GlkA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EHGfWV+9QYz1ZluMg0KwkQmO1VYdRcir3I0219Nt63M=; fh=yoWMU5BjtLQlCKX3ppr//+j0ySi+66kW4Eunj/C1M04=; b=yxGcx4/iU0f80LMnYJ3fgqltIpOSvRGWr3hqrKoY/ACDKltRPSxve5nWxR8xQbJhlH E2ToFvrBFbwcLw3DL3hZzxTV/5/trhK4DIE3yzI8sstow0FAu6Pg0ZaZCSsUcVeycFua FQK1M1DtUrDKRirOpurfSXeEgzBPRrVSsoj5T0iC9vFga/7RrIK1LnLaofsbSOF4R5b4 wGZCQCA92QUlJsNDb/sfjDIphaql2N77ddHAVEy3lcX89keRhh4UsewCFdDMZoMP/GDQ eZraLj9qz5FrzI49MiQlN6ujoI9N6Es1IxJAhUvi1vQXAHkKiA/eEgFkb9NydRaqxHHM Y9Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R77oOfma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik7-20020a170902ab0700b001bb9c2bc8aasi3687604plb.401.2023.08.11.19.52.43; Fri, 11 Aug 2023 19:52:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R77oOfma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236810AbjHKXrp (ORCPT + 99 others); Fri, 11 Aug 2023 19:47:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234385AbjHKXro (ORCPT ); Fri, 11 Aug 2023 19:47:44 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A07C8171D for ; Fri, 11 Aug 2023 16:47:43 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31963263938so639556f8f.2 for ; Fri, 11 Aug 2023 16:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691797662; x=1692402462; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EHGfWV+9QYz1ZluMg0KwkQmO1VYdRcir3I0219Nt63M=; b=R77oOfmaOVMc5ZRwiM0cJjeD2l8Qx7gtK334KQBTcKFdG593s/a9D9ibwztciCDgAf rZ5xK8v7zHOb61rTnxTfPi9+WAD4aQq9DZdE7oOE+NZATAS7DNWXptbKksypB/6g2Enl K6CFF6K/Ktt7OdMrE1S696j9fVni9yNmOXP/u8KgLArNpjOQ4DpHjT2bzliAbO86WhHW Jabd2y9/e3Rr/LJNAVUOeMTHfPT2xrDteUgf/rECyBE83wp0+QxvXAUVmlUrJVBFZ2/d dYz+CMVEv1+YFEmrmpHZyOdhbs7I5wa/WHUnXs5ingANTFamZyZuwrp0pFGxhKamMAXi UTgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797662; x=1692402462; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EHGfWV+9QYz1ZluMg0KwkQmO1VYdRcir3I0219Nt63M=; b=Y/kbUHy5RXQR1eO5apYfIl1k+F88EiLOdQvk2N5WS1wAyncMmhlXHnbh30E8oFZS6n nuk7TPScI6OP4cF4BaBDfkdRxPZHmwaVNKwjU+MCcK9Tc3GG040rRYJRiZcmWZ4LwI49 m0W1qj1G8F6IAXRoTz2AR09OdSIIwNK455nPRI/6HR+kQ0nGvqo9Bn9sOTRDZqoJxy5l TdDDP0zP7OXvwmCj17esk7HP9OluKZxw3YR4FnjmNS3jGEZ/1tFN1aR2fw71hmiwJSAN WvtPh6ffeDyt+9IMHdZzrBCGR8wThw9Ebwn2Ib+nkfAszzcyUND+P/cyE1yLz4f3w3l8 IQ5w== X-Gm-Message-State: AOJu0Yw/nGQrC3qKp5APoyI2Gf1xbi8NxmwGSgFW9JcLmzSgradgQRGK FBoLU33X6qA5fef+kIO+h4709A== X-Received: by 2002:adf:fcce:0:b0:316:fc63:dfed with SMTP id f14-20020adffcce000000b00316fc63dfedmr2368442wrs.39.1691797662158; Fri, 11 Aug 2023 16:47:42 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c025400b003fa98908014sm9599051wmj.8.2023.08.11.16.47.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 16:47:41 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3 1/7] arm64: dts: qcom: msm8916: Define CAMSS ports in core dtsi Date: Sat, 12 Aug 2023 00:47:32 +0100 Message-ID: <20230811234738.2859417-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> References: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773990080136960099 X-GMAIL-MSGID: 1773990080136960099 Each CSIPHY in CAMMS maps to a port here in the dtsi, since the number of CSIPHYs is fixed per SoC define the 8916 ports for both available PHYs. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index c4d6739046989..33fb65d731046 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -1712,6 +1712,14 @@ camss: camss@1b0ac00 { ports { #address-cells = <1>; #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + }; }; }; From patchwork Fri Aug 11 23:47:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134787 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1462027vqi; Fri, 11 Aug 2023 18:38:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEa3fKON+xBz4bul1Gd8TuCrswCS/k9aD1WL378DiVG/i8wQ/TDzaPcwM84EEhsjb1OZxjY X-Received: by 2002:a17:902:c3cd:b0:1b8:6987:de84 with SMTP id j13-20020a170902c3cd00b001b86987de84mr3720315plj.48.1691804306327; Fri, 11 Aug 2023 18:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691804306; cv=none; d=google.com; s=arc-20160816; b=YYz7U92/3YK98ITf17taXZLZwfYc6Oo0aA9Ox50ArrwGxBTfW4k9JpDWNQ3YyRlAta DxgN6FWtVbOgnwlRuAwhQ8+0L9N6W7xpwjtvLymrw2wkQNuO4bSbXLCxEHrfjfdSqS31 GQiCchHPJoOqfsowN1zG29h/3K8Hzk165UtboM6SjMKgLWlGWS7P0VOAwtJMs7+qli6p w+/wg3WyZYsUM1tUQUvOXP4RXFA7a0qviK7GfBL3DUUq/rZQfBbiO8XLLRDSqiKaLwjS 1B5UXPtNX6xzYsezzhK/ZhDL1NdUs7IIebeoUCeM19f8ixcZMBDMmC+Pb4FwQKwFwYjK 9hVQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SJlZ6gRhW+2E/URYOSdJpnSxOArltFmd1RupCFnL0BY=; fh=yoWMU5BjtLQlCKX3ppr//+j0ySi+66kW4Eunj/C1M04=; b=Xh3vCeG2OkeAEdeaSJcIzz3dBIE6YUa0ivuIAhWXbZf9j/II5CfIyiX9KpxzUOdecv 1w0bieMZqsBnOpKM94PEpD+vQEmksaSDAOKwLrPqrF1Y79r8uhx89nvHrx/ZObWQu8TB Lv62Wr3O5HJwTXDyHPpa09xQ6cjmUJs4ZmBsrQpwmRmBuGHb/FZIwd/8IWyJ21HZ6gBE GOzg4qRCjyl0eujwfoWpKzSN3FEByVxJmtpdOQLTLv1v3XSY1x/WOMhudbiogU6W/Z9x zONuKPpeWg2xgG4dMSCuG2HOT7HaMI2A43LZtKYFFwnP/ua9/XMEODupYai9j1/iO5Od eA/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bhnYlNy/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a17090a850600b00269208e38a2si6205783pjn.105.2023.08.11.18.37.58; Fri, 11 Aug 2023 18:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bhnYlNy/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237289AbjHKXrt (ORCPT + 99 others); Fri, 11 Aug 2023 19:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237282AbjHKXrp (ORCPT ); Fri, 11 Aug 2023 19:47:45 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4AB21703 for ; Fri, 11 Aug 2023 16:47:44 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbea14706eso21682975e9.2 for ; Fri, 11 Aug 2023 16:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691797663; x=1692402463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SJlZ6gRhW+2E/URYOSdJpnSxOArltFmd1RupCFnL0BY=; b=bhnYlNy/4OA5+aG0yHg7cjs+rbg4TwUSEdYMZCCfxpAinj+50gOEei4RQydGhOqWUp 5/+Z3DTnZDLnUYjxmrMWxaAOrASpZA4Q1AIr8FknviEsvqpsP8h/koyC3ZVIBoDU5Yrc 1GT8i7ttIuRgKP+hmVZgSixN9Yjn5L0AwEzPsraqcbTqB+FrXWNWSR26QxF2zLz/2VX0 MPOQvPU/DOwYCww0JFHUtHY3BYgxXCCV+BHSLe/VnBHcnIX7yGWeh5Le3KQTcAEyGa5j GZukDf92Z7ebHDb7UvcCqzjMbYEo3X7uGLILfcAJdWLu76kljMcblqXknUg+qHMjEGRw ivrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797663; x=1692402463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SJlZ6gRhW+2E/URYOSdJpnSxOArltFmd1RupCFnL0BY=; b=dZLT9SsWrZ9Zv3YnoQ71BJMtK0apOkJIMCCYCcrwIHbl4WsjXEAS68GCtH/5ENRdku gPTBMNfiOtlmGmb3sDgbHhGjlNHhMyTAdz83fG564y7o5N3Kv7ZJhjtJhRw7NeoMsvUe 7Ye4rVxaYxQ+79qoDkf+Wof/wQtbkP8GCQ6IWDwQlboXOhs5knLxXA6sFxwzEaBHWWbl kAqdQIcBQBI9WYOzsfIfTFwANQnm3ZLR5phgeTbaFosJHwvblvVylzwq0sMV5rkek8UB 63YJufOsCYi3xDaQNEv6T2KqcI+Wead6W6hKCUN/PHUaEKWzvgNzPv80kccZbBn1pWAO oRNw== X-Gm-Message-State: AOJu0Yw8RYDXFe8V9aSzBkHZ0lbSX4TImomisRbusxsNtSGLUrbn+FrD dUXRvIKsQc7Sy5KxaZcx5qA//p84ztNtaYJLetI= X-Received: by 2002:a05:600c:1c13:b0:3fb:b1af:a455 with SMTP id j19-20020a05600c1c1300b003fbb1afa455mr2742860wms.5.1691797663267; Fri, 11 Aug 2023 16:47:43 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c025400b003fa98908014sm9599051wmj.8.2023.08.11.16.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 16:47:42 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3 2/7] arm64: dts: qcom: apq8016-sbc: Fix ov5640 regulator supply names Date: Sat, 12 Aug 2023 00:47:33 +0100 Message-ID: <20230811234738.2859417-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> References: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773985391916681149 X-GMAIL-MSGID: 1773985391916681149 The ov5640 driver expects DOVDD, AVDD and DVDD as regulator supply names. The ov5640 has depended on these names since the driver was committed upstream in 2017. Similarly apq8016-sbc.dtsi has had completely different regulator names since its own initial commit in 2020. Perhaps the regulators were left on in previous 410c bootloaders. In any case today on 6.5 we won't switch on the ov5640 without correctly naming the regulators. Fixes: 39e0ce6cd1bf ("arm64: dts: qcom: apq8016-sbc: Add CCI/Sensor nodes") Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index f6eeb25988465..75b4e5ff7c95c 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -282,9 +282,9 @@ camera_rear@3b { clock-names = "xclk"; clock-frequency = <23880000>; - vdddo-supply = <&camera_vdddo_1v8>; - vdda-supply = <&camera_vdda_2v8>; - vddd-supply = <&camera_vddd_1v5>; + DOVDD-supply = <&camera_vdddo_1v8>; + AVDD-supply = <&camera_vdda_2v8>; + DVDD-supply = <&camera_vddd_1v5>; /* No camera mezzanine by default */ status = "disabled"; From patchwork Fri Aug 11 23:47:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134797 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1475985vqi; Fri, 11 Aug 2023 19:23:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFt/yHsSgn6fOecsSpJckRMoZqBSMuA6SBZ1cqiMfKcsmu+xO1uR9OhE7Nsu8RuyNP212D9 X-Received: by 2002:a17:906:5357:b0:99b:5574:7d0f with SMTP id j23-20020a170906535700b0099b55747d0fmr3140687ejo.23.1691806991538; Fri, 11 Aug 2023 19:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691806991; cv=none; d=google.com; s=arc-20160816; b=0QT8Y0+e7DydMTPgVKkzrzl+c6Rqn9F80R1WKcAHko+IBG833C89JFXLIaI7JYAP7s E9Lwy1OHTK9hU32wOIClBx7aL8j8N+PST9fsTT9lgPBFA5E4KomvzXFM329FW4vqCOSD VLVi5hKwNyBOhHl1+zYB8DMyn9HRuOEtIRzK7iQzLtyoQNxWy5gtgFSzCUeaoCMG9CH6 SaiMpmvb5MWseMIPveyuv8rOkrmQFpT4YtQvvxNiyUgeNNJFhJIzyCaTGiaGr8PGQ3bi CnzVx7tou76ZcT9SFuespaxV57PEoFzNiU9+Gsky4WHledJjr8n4dpopUjBrXWj2EC7q iDDQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OvdIfz5zUOd71DmktwXF8XCtGN303BHSgHFEyeqUTG8=; fh=yoWMU5BjtLQlCKX3ppr//+j0ySi+66kW4Eunj/C1M04=; b=WKm/IPme1UsqCfyJt0VHBK05XalTfn6KbFk1/fSZf+jBfSSQdPqVHn/boNFQjqOkzJ IGeYUPzC0y42oonrgHibzAmRGXR5hLOrqrOzU0W+V/rw764/PTDjO6zsyve1VI0nN6nD 81dtGpfe3Tl2VhLAn17vO4U4MtR2i4VnBAtk6mZHtvogSTjPrHUHns5lEBz2o/ifBaSE eWMwJIjiR9RQ4eLGm7BXyOrw5CWZmq3MnJ+NKRDD+QSW2TXMRGsqs0tKVXM6GHLhDuaY wgNVyqp0+QIuXeX0gUiWzC2VLtFZ4YSbbqHzU68ittKPA78jSe6JybbtxB1Qcii5UfQP U6dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pHllTPeY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a170906824d00b009938f92dbe0si4479070ejx.153.2023.08.11.19.22.48; Fri, 11 Aug 2023 19:23:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pHllTPeY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236265AbjHKXrw (ORCPT + 99 others); Fri, 11 Aug 2023 19:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237286AbjHKXrq (ORCPT ); Fri, 11 Aug 2023 19:47:46 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DE71736 for ; Fri, 11 Aug 2023 16:47:46 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fe4cdb727cso24102045e9.0 for ; Fri, 11 Aug 2023 16:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691797664; x=1692402464; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OvdIfz5zUOd71DmktwXF8XCtGN303BHSgHFEyeqUTG8=; b=pHllTPeYcqkqT3mxYtyqZzXRMvNCn77gEn0lSUfMTjxHRN+wzWg0Y+Q8mKfx0ywRSy he+Ph58EzWjhHDJTc5Vr6RGRRC742Hx3SzHIBde3HnWr7PscvbicVgtqgjjZGJtHfe4s +O5e+kNRzQlDCXXX0J5FCl3Jr/hrUo/0QKj8HzolPUCfjEplrucOFTcCILyGHgTxvDMj OSDfELh+QRZ/SaXb7KxenenNr/g2ww4wyaeRLYdtvedZIFuihxcd8nmIXvlaalsTCANx mgXwCzCniYxUps6GD9l3lHe7eC776vY/Olm8baXQEzUyf1YftC3w7BOxpWbWIWXtUL1x qI3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797664; x=1692402464; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OvdIfz5zUOd71DmktwXF8XCtGN303BHSgHFEyeqUTG8=; b=hJk1YPxJxRKnMEA+rjqQz++jHh3wfbxUcpkjNZzZ76gUla1vjxra+DnpPV2jFVATQ8 HBAWkRaVV5Uxp2tgr/znGRIJ33ywW7yOFsQ+VY5z/bnkYCI/9Zq7J5AoLP4b5k1KD1TZ aFzDIRKxa8sRe+250G2OPngu0asHuD7uZl9bkSS8gOGNdMPi5lf3ukxGHLQ+ZWZHolTs pmdPlQljI7iT6tZOw8hwQ1GyQlV7B0EdThy9hthAj4vIJH0NOvWe5sWIEr3hNAvc0utC sOfVdf0d5wypnsl8xRcqyae5yn7wbRx7HT0AXSdEa6x9d/izrXWs7XW9Pmvu7BnOn73m lm9A== X-Gm-Message-State: AOJu0YwUOfJxJpbj/mmdlTYz8zqCP2gTK9zUbTSucJZXjzqJnF8jwXMX JapeV/CRPuMGwCgLKTN6yaLl2A== X-Received: by 2002:a7b:c40d:0:b0:3fb:415a:d07 with SMTP id k13-20020a7bc40d000000b003fb415a0d07mr2633477wmi.36.1691797664589; Fri, 11 Aug 2023 16:47:44 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c025400b003fa98908014sm9599051wmj.8.2023.08.11.16.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 16:47:44 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3 3/7] arm64: dts: qcom: apq8016-sbc: Fix ov5640 data-lanes declaration Date: Sat, 12 Aug 2023 00:47:34 +0100 Message-ID: <20230811234738.2859417-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> References: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773988208033595267 X-GMAIL-MSGID: 1773988208033595267 The yaml constraint for data-lanes is [1, 2] not [0, 2]. The driver itself doesn't do anything with the data-lanes declaration save count the number of specified data-lanes and calculate the link rate so, this change doesn't have any functional side-effects. Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index 75b4e5ff7c95c..0481a4a82090a 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -291,7 +291,7 @@ camera_rear@3b { port { ov5640_ep: endpoint { - data-lanes = <0 2>; + data-lanes = <1 2>; remote-endpoint = <&csiphy0_ep>; }; }; From patchwork Fri Aug 11 23:47:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134800 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1479587vqi; Fri, 11 Aug 2023 19:35:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGA3MoJDuj6Tvjs/r4rk86X2mZyjcSZS8JvdmjEoAmLu1sdnudYi20RpP0M/T6F9RflFh55 X-Received: by 2002:a17:906:5306:b0:993:ea6b:edf6 with SMTP id h6-20020a170906530600b00993ea6bedf6mr2714389ejo.0.1691807743165; Fri, 11 Aug 2023 19:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691807743; cv=none; d=google.com; s=arc-20160816; b=GOm4qr6j3Uce4cuhHzR/gE6cUHJEeKJPmvOE6sSatO8QCMXEy7T869CnArTyPaynrs ej3I9quu7iop/rpeeOqzT4R/UemdXH3N8bfAtUKQXmcBDsr/DDK21l47AnlCAsYr0mL3 WZnBfuFcNlArJWg6x47500oWKnEdPHjoaa8zFJV51vJA/q+KdZ4ITknLYfmbC7ldjN9K KR0nZX0U0+9R76tggbBPLp4KVjdoSjasxmhyHXCFsmrTe60ePN+79Nate8XS/DvO8ukW 9WxYWtSHtLYMyQWm2gu1IDmxdbMBJEJsG1m94hxzwD1oZQo5FWdYdmjwgoK32oF2h/Q/ WkAg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AmdOHdUjMP1wW0HGcyhP92vzMBSWzUH40ytilEtrnAQ=; fh=yoWMU5BjtLQlCKX3ppr//+j0ySi+66kW4Eunj/C1M04=; b=nIs6SC1Xko+yQ18lxH0VYNlnwdseelxbk9M3PS65bB52Ntug3a7aw5hKzlkhFXIqJ6 CZHMzcYu4qihhu2xM3o62h92TpIfNNFfa1Hdzjkw4DIFn1jPwXoC/v1NjWozvMyid7ON 7m+XtY44zfX5dQuy3Ntj/lL+18CeYQQADEeRzn8JY/kdJMvrV3rQiFZc7MvUE2OSDw8h kn/sx3x1r+59Dc+LZChRKIljN1wqF8A59CKN7w+9bEVN6TMrPHv2b3LQykQpt89eZOmG h+XzPfdu74p4McYnCTDAlefLxXFvUOfIrdiEFRn+I3QbECim/AW5BdUlmeodoopOImCg 8IVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kss1hx9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kf23-20020a17090776d700b0099bd68129dcsi4414639ejc.760.2023.08.11.19.35.20; Fri, 11 Aug 2023 19:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kss1hx9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237296AbjHKXrz (ORCPT + 99 others); Fri, 11 Aug 2023 19:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237293AbjHKXrv (ORCPT ); Fri, 11 Aug 2023 19:47:51 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C3E21FE1 for ; Fri, 11 Aug 2023 16:47:47 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fe2ba3e260so22787755e9.2 for ; Fri, 11 Aug 2023 16:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691797666; x=1692402466; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AmdOHdUjMP1wW0HGcyhP92vzMBSWzUH40ytilEtrnAQ=; b=kss1hx9XlprSfLLqs7/RjiejWPn3OTv3AsXNvNQwsHsN/lidSfIaeoZ7F6PBJOyfVk jb5YLNsGCUqKZpa0Ni4dJvBk3n7a/7mEdPlAQ7k6e9u1nDyNyaljLdWY45AalPo8qJvN tGL2EmUo76VRqdQJ7eaI0oPBsiB10bD8JXN6NCn1yu0dr7rFNP6JPfmhmn47O1akaGCk hGap25+JDlzrQDd6GD8swUbpoarMseClZQDvZWZbVW1/yjWXX4FJXJrCxWT3eqOjYgMU lSsCNGJ+ALQSUEqHPrmRnFScjoV6bEn7aUol+++7+xVycA2VOEBYw/mzHNfT0ERsJVA4 5eFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797666; x=1692402466; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AmdOHdUjMP1wW0HGcyhP92vzMBSWzUH40ytilEtrnAQ=; b=XR4rUetFgRNm4AqOsQiNB9Y3prCvpa/ATqDxbTxhhDF0nBq/Pv4eP7Q5LXIdx2aZ4D 1AbslkKLr5U0yuupms3g4HejpWoQk58+lScPanSGMg/Qs44pVbXF4r4nCohbkKTD/Oim fMCNBVZAT3raLjAt48JkwttZKWsi6hDmRa4FgzMPfFqIChqv9lcfF+ge2HzAtBlgG5P3 epT0e/hLoRQ139KOws1FEtMjd6k9JaFXLYBnvgUTkC05BQ1U+r3lra07RyRfGrVridiH J6KSe9r/TKWSyKiLL2Iv0MMUmJGnAAC1lUMYFcIUANfGsvh2iUzDPhZ3m3KNfWkQOAv6 Kk3Q== X-Gm-Message-State: AOJu0YzV0rLrjNYVinK7egbPe2sCNID8wtqrc6hgqsEcQTOwHX6yZ54i 4QwXI+QpaD2g5bTmNbVecJbvcC5ae5J54DhCr+8= X-Received: by 2002:a7b:c045:0:b0:3fb:40ff:1cba with SMTP id u5-20020a7bc045000000b003fb40ff1cbamr2635385wmc.6.1691797665873; Fri, 11 Aug 2023 16:47:45 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c025400b003fa98908014sm9599051wmj.8.2023.08.11.16.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 16:47:45 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3 4/7] arm64: dts: qcom: apq8016-sbc: Set ov5640 assigned-clock Date: Sat, 12 Aug 2023 00:47:35 +0100 Message-ID: <20230811234738.2859417-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> References: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773988996386750722 X-GMAIL-MSGID: 1773988996386750722 The driver for the ov5640 doesn't do a set-rate, instead it expects the clock to already be set at an appropriate rate. Similarly the yaml for ov5640 doesn't understand clock-frequency. Convert from clock-rate to assigned-clock and assigned-clock-rate to remediate. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index 0481a4a82090a..ada0777567623 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -280,7 +280,8 @@ camera_rear@3b { clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; clock-names = "xclk"; - clock-frequency = <23880000>; + assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; + assigned-clock-rates = <23880000>; DOVDD-supply = <&camera_vdddo_1v8>; AVDD-supply = <&camera_vdda_2v8>; From patchwork Fri Aug 11 23:47:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1469482vqi; Fri, 11 Aug 2023 19:03:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0EhC1aKecfRNvL+r5jiTAx1Ep0PQZhUvPP1PPvLDwnMdTs9//Eut26E0zPpjLlGNqU+51 X-Received: by 2002:a05:6512:696:b0:4fe:4f8:8e75 with SMTP id t22-20020a056512069600b004fe04f88e75mr2999042lfe.68.1691805790318; Fri, 11 Aug 2023 19:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691805790; cv=none; d=google.com; s=arc-20160816; b=NDR+gFo97pEyyN5WqtHJ0+KuzBS3sneZ763HdjLSRkoYA4FkaDUUBbJwX6sWUXxh4q x+Q3aFg5keXkaLQ8JsIOL09nfVmK/P7CFEmx6J47FgS56a2sDG3q/KdrWbEGituE3cfx fctux48ANsJ01aHInXXwqUPDQUHo2J5ejYHbRR1kBuQIqG8UVHfX2aTOtiX+dqpxHNk3 pTOHmTkCPJcs+bw+qgquTY/sTNqsfj0zmYlFIjW2buBKOBV8m7YDw5e+cmgFZt+aFd+r gYOojqnTtd9176hX2ZU52Pmjw1SvhdkyUgCkUIUb29jYpdRFkptlvhhwDR4PhMeBF3eW yTvg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0+a4lz4T74h+eYbYNmfeTxhH+D7Fl42deuC857/CnFg=; fh=yoWMU5BjtLQlCKX3ppr//+j0ySi+66kW4Eunj/C1M04=; b=dll9l1b5A8Jls1nL0yceKlUymoXbS4A7wFNfbMWy8sIu1PXfQ3dfOj83N8yGX9AruB hbrwJVe2+bWjRiQybFXfoIq5FTKb+oyE8j9rC2s3I+PRtphSt6jww8Y9QACYqN5pqqzp GdT8s1mZ+9obCJfag7UIU32e15DRmaP+6MqNKEgZGtQDCX41/FN4Ly3Q8nYUbGiZ3JGe wuYodvGvlQdgbTJOY6Yc1dFpEuUBORvP0KT6uNnQuUgNUGWBjDodgVHM0+iTE9Opr6uf M13z8CwaIJhGgDZgdD3E5SETN2iKMghT44zojaUax/UybySWLzkRleF1G8bL3q193H6O YRQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bFJ/tdAZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a1709064c4800b0099cad5caa77si4323575ejw.22.2023.08.11.19.02.46; Fri, 11 Aug 2023 19:03:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bFJ/tdAZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237346AbjHKXsC (ORCPT + 99 others); Fri, 11 Aug 2023 19:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237301AbjHKXrv (ORCPT ); Fri, 11 Aug 2023 19:47:51 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CAAB211C for ; Fri, 11 Aug 2023 16:47:48 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe426b8583so23872165e9.2 for ; Fri, 11 Aug 2023 16:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691797667; x=1692402467; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0+a4lz4T74h+eYbYNmfeTxhH+D7Fl42deuC857/CnFg=; b=bFJ/tdAZ+z9lt2lZU9+jZwrP+kpADKzpud/WBA5eibzPfGRSZ47EOx5E67cYjtLIFZ AqtiAJZS8A7vPFKG/GlrPhDIQO4X1HlnhCee5LSpKu3w0L0LC3YfaU2nZqzzvGEcOXK7 XsFureCI8mC8FwKaVRxFpSUPYLI5D9qoIXjWJq7zYV5wgiC/qciqTxNVXNxnYZLywSOU otEA/gQNDnlRACYU9rrdvOAZ797bcygoDcVjyxT3lvoCeo2CZnwHB6D6IbhcA7it0Do0 jMOWxD7JfUqLMtmkX5Y93fBXxcihW28QTKezN8nmHDtgzCOfNQ9M6fXNcrSzg4JD5rSH lP5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797667; x=1692402467; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0+a4lz4T74h+eYbYNmfeTxhH+D7Fl42deuC857/CnFg=; b=NiZrOoc133OxZYlSPK/KM2Qx7Zb5GKznmqWukIY7BYQce6hKX5oCfKdoD4csEanNE6 iq5oOH3WpOxYkTiNzglldS5x6VUh6RpP0X+1XpLgMqAsyniVsisAJcYH8frtFZd5X0CR wFccJny7LX55A+9eueYgsK2s3aFm8hI6PAvgZJ+hkU0e28mASSOEeBzdf9Z7gG3N9dlj mzjNdvDLAD6ULBkrr74pzGDgWwnh4KZtP55pFrZoRHtGmlz4kaObu/qY7BayVrPxR/06 ft6WY12Hc0+L3n1GtOMcmHNzckO65Ty+OlcClev/yneew7TtExJrOZU/kS88LuedKvMM F6Hg== X-Gm-Message-State: AOJu0YzDUvsD9BCx3iIioBtrTwuiEQ3BXxjuK6V6ETRZE+PRBjeVuFBU GxtK/MEvwptr8QWB/xSEoYMC049YhIdCkeKPPjY= X-Received: by 2002:a7b:cc1a:0:b0:3fe:179a:9ee2 with SMTP id f26-20020a7bcc1a000000b003fe179a9ee2mr2592514wmh.0.1691797667023; Fri, 11 Aug 2023 16:47:47 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c025400b003fa98908014sm9599051wmj.8.2023.08.11.16.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 16:47:46 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3 5/7] arm64: dts: qcom: apq8016-sbc: Rename ov5640 enable-gpios to powerdown-gpios Date: Sat, 12 Aug 2023 00:47:36 +0100 Message-ID: <20230811234738.2859417-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> References: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773986948477430850 X-GMAIL-MSGID: 1773986948477430850 There are two control lines controlled by GPIO going into ov5640 - Reset - Powerdown The driver and yaml expect "reset-gpios" and "powerdown-gpios" there has never been an "enable-gpios". Fixes: 39e0ce6cd1bf ("arm64: dts: qcom: apq8016-sbc: Add CCI/Sensor nodes") Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index ada0777567623..ddb19709a9eee 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -273,7 +273,7 @@ camera_rear@3b { compatible = "ovti,ov5640"; reg = <0x3b>; - enable-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>; reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&camera_rear_default>; From patchwork Fri Aug 11 23:47:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134805 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1485420vqi; Fri, 11 Aug 2023 19:56:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHK2UL6Xv69zKStIgqYZS3iQDZTBdJK6iOY9xhjwRJbNxGmwYxKmnD5l2kOCpDeAV9hVA+X X-Received: by 2002:a05:6808:55d:b0:3a7:9666:2a60 with SMTP id i29-20020a056808055d00b003a796662a60mr4724220oig.51.1691808992230; Fri, 11 Aug 2023 19:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691808992; cv=none; d=google.com; s=arc-20160816; b=nOtg3zZ28u7F99P0COwHmZbwx0KIkllAxu4/N0+ANfJvp27HTAbDFoA74zBNkaI79G VTpzDcbtYGtWzpqIapwcS1UUK27HEyCJeLouHvq3/es8goFrMPYNUqNCU+AQ8DVqUu+3 gu2olPPy8fMej2ufgPRlhn9ZfoC8vfyWkKMyKTIte6BjAKkH4P2FC0tQl4rqt/xg5Df4 TylUPG+LKyPgib58x/zRwPGxk7dZo8PhUXBOFZHjLxY4yjsyLWfMM2fUT3wPrxDLLcvN /IMkPu2YP9/3YN/zdGGVkq4Qe0/oRpnF1OaX9fmAwq8+PtRMHt0+4D29CDjc5QndzMzW Adlw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=W167HSXeLgix5KQaWJtxib0EFybUcA+r/u3yHNgwj3g=; fh=yoWMU5BjtLQlCKX3ppr//+j0ySi+66kW4Eunj/C1M04=; b=arrVJ8fkDvdcoQTyoVog1oSWUirA8gPWZ7/A44wYecxad0CtU3fCQ1xXhJJE73etPu lna+dJacsObOGUvJic6OQfet1OisVB9pWCD1p3/Q9dQG4htgQySl/+luhpTJ8bm/OCBk OrBAgygZAEsj8FkuP9NlLaqAjUlLa+IdN+N8pt6t/o/cDz6tsqGqowIpIRnQJJcARdy3 nWZP0AQMVF2D09QI+nxM/YhqDk5jr3ayKlMEaryDZrPkS8DVOX1wIUTdFtSI4mEYTlG0 Q2MpbItJcrlpm8asZ1h7J5P006iLcD2SqlNJedCzo9ZXvvXDR8tXDsz4x7Ok+e6eVKA5 ii6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8gc2agG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a6560d4000000b005655e77d117si3654756pgv.497.2023.08.11.19.56.19; Fri, 11 Aug 2023 19:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8gc2agG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237369AbjHKXsE (ORCPT + 99 others); Fri, 11 Aug 2023 19:48:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237305AbjHKXrx (ORCPT ); Fri, 11 Aug 2023 19:47:53 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BBFC2127 for ; Fri, 11 Aug 2023 16:47:49 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe2ba3e260so22788055e9.2 for ; Fri, 11 Aug 2023 16:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691797668; x=1692402468; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W167HSXeLgix5KQaWJtxib0EFybUcA+r/u3yHNgwj3g=; b=g8gc2agGr9PxEzzwT3MHXV4C64QGRVvB82FtN/pAfvVPwlrycQgWarLurH0YhTIdE5 re9t8nwT0gR3l3syO/9KiTaKIEGaG0FeId+SDbTIK4XIWGE0HFsL8gu5PGyGlwZctCBo +GQMbJk2D+l1bFoGvy4IyEcwfLAxmZtbGUiRN1LX3HopgscZ+M6PbxDU4DDpa9MK63w5 8JdmotLAZ6lIGwpZmVyFSH/+/mqoWdmbDvHyLFnkJ6iZ4cCVq1cUjmWJnDJ2U7tpU4Q3 bFhw3XyvGSROBACv8XfrOIpI2Q7J0Pv9HPSl4dGWAWTqqj7xOEIzCBmsrc6wOt1XyeEA E7eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797668; x=1692402468; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W167HSXeLgix5KQaWJtxib0EFybUcA+r/u3yHNgwj3g=; b=AtRkY+6bX9eZh1DiY552Lt9TrNUJnnG/l0gi/wXp3Jme+zdmMIj1Pu6O6yIOg/p+su QQ8FJStj9FNIUJ8wlDq86nA54P/0IrWmLyvhc3lDoJFKcvCBD0DuiiBz7ommMG+Kwa/w 76qJ5QT23m2QzSJuAEGxJwEwCnSY7BaPwYtpA96EvUgDlV2wsDd6lxUcNoIzMzVE56YT +C2EcFuU6ILliwXqso4/lhdq58XdQRGjduwCbqOy/+M38S9SSMc1lEPpKOysiMLvKq9V QHaf7r2xE8ckCmAguBDuJuwNUrw2OgNgr8AGXD1wy1ON8BCjmFiwAAwRAdIT3k/rRBld kfOg== X-Gm-Message-State: AOJu0YzE6VZz3XXABEVGvBIij1G+m/o95w4KuwISNhrowJXFRHwqBK5n qw4Ctq3X5ZqV+FUXCNA5yWJfy9xdDVfbTg59whI= X-Received: by 2002:a05:600c:2315:b0:3fe:687a:abad with SMTP id 21-20020a05600c231500b003fe687aabadmr2585514wmo.20.1691797668224; Fri, 11 Aug 2023 16:47:48 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c025400b003fa98908014sm9599051wmj.8.2023.08.11.16.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 16:47:47 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3 6/7] arm64: dts: qcom: apq8016-sbc-d3-camera-mezzanine: Move default ov5640 to a standalone dts Date: Sat, 12 Aug 2023 00:47:37 +0100 Message-ID: <20230811234738.2859417-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> References: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773990305576504705 X-GMAIL-MSGID: 1773990305576504705 At the moment we define a single ov5640 sensor in the apq8016-sbc and disable that sensor. The sensor mezzanine for this is a D3 Engineering Dual ov5640 mezzanine card. Move the definition from the apq8016-sbc where it shouldn't be to a standalone dts. Enables the sensor by default, as we are adding a standalone mezzanine structure. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../qcom/apq8016-sbc-d3-camera-mezzanine.dts | 81 +++++++++++++++++++ arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 73 ----------------- 3 files changed, 82 insertions(+), 73 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index f15548dbfa56e..19016765ba4c6 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc.dtb +dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc-d3-camera-mezzanine.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8039-t2.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8094-sony-xperia-kitakami-karin_windy.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-db820c.dtb diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts new file mode 100644 index 0000000000000..c08b4be5cc7ee --- /dev/null +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts @@ -0,0 +1,81 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Linaro Ltd. + */ + +/dts-v1/; + +#include "apq8016-sbc.dts" + +/ { + camera_vdddo_1v8: camera-vdddo-1v8 { + compatible = "regulator-fixed"; + regulator-name = "camera_vdddo"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + camera_vdda_2v8: camera-vdda-2v8 { + compatible = "regulator-fixed"; + regulator-name = "camera_vdda"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + }; + + camera_vddd_1v5: camera-vddd-1v5 { + compatible = "regulator-fixed"; + regulator-name = "camera_vddd"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-always-on; + }; +}; + +&camss { + status = "okay"; + + ports { + port@0 { + reg = <0>; + csiphy0_ep: endpoint { + data-lanes = <0 2>; + remote-endpoint = <&ov5640_ep>; + }; + }; + }; +}; + +&cci { + status = "okay"; +}; + +&cci_i2c0 { + camera_rear@3b { + compatible = "ovti,ov5640"; + reg = <0x3b>; + + powerdown-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&camera_rear_default>; + + clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; + clock-names = "xclk"; + assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; + assigned-clock-rates = <23880000>; + + DOVDD-supply = <&camera_vdddo_1v8>; + AVDD-supply = <&camera_vdda_2v8>; + DVDD-supply = <&camera_vddd_1v5>; + + port { + ov5640_ep: endpoint { + data-lanes = <1 2>; + remote-endpoint = <&csiphy0_ep>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index ddb19709a9eee..c3cd08aa5c85b 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -34,30 +34,6 @@ chosen { stdout-path = "serial0"; }; - camera_vdddo_1v8: camera-vdddo-1v8 { - compatible = "regulator-fixed"; - regulator-name = "camera_vdddo"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - - camera_vdda_2v8: camera-vdda-2v8 { - compatible = "regulator-fixed"; - regulator-name = "camera_vdda"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - regulator-always-on; - }; - - camera_vddd_1v5: camera-vddd-1v5 { - compatible = "regulator-fixed"; - regulator-name = "camera_vddd"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; - }; - reserved-memory { ramoops@bff00000 { compatible = "ramoops"; @@ -250,55 +226,6 @@ &blsp_uart2 { label = "LS-UART1"; }; -&camss { - status = "okay"; - ports { - port@0 { - reg = <0>; - csiphy0_ep: endpoint { - data-lanes = <0 2>; - remote-endpoint = <&ov5640_ep>; - status = "okay"; - }; - }; - }; -}; - -&cci { - status = "okay"; -}; - -&cci_i2c0 { - camera_rear@3b { - compatible = "ovti,ov5640"; - reg = <0x3b>; - - powerdown-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>; - reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&camera_rear_default>; - - clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; - clock-names = "xclk"; - assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; - assigned-clock-rates = <23880000>; - - DOVDD-supply = <&camera_vdddo_1v8>; - AVDD-supply = <&camera_vdda_2v8>; - DVDD-supply = <&camera_vddd_1v5>; - - /* No camera mezzanine by default */ - status = "disabled"; - - port { - ov5640_ep: endpoint { - data-lanes = <1 2>; - remote-endpoint = <&csiphy0_ep>; - }; - }; - }; -}; - &lpass { status = "okay"; }; From patchwork Fri Aug 11 23:47:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134806 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1485833vqi; Fri, 11 Aug 2023 19:57:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9b9xTdUUtFwGMyfUwpoYQCq6y34T3e/SO4mGnCzWqvpZq43BSjfuZWAPpcV3ARe6B3Kc6 X-Received: by 2002:a9d:6ac2:0:b0:6b9:72be:671f with SMTP id m2-20020a9d6ac2000000b006b972be671fmr3741422otq.16.1691809074238; Fri, 11 Aug 2023 19:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691809074; cv=none; d=google.com; s=arc-20160816; b=UtyYqlSExXhK2U73vHbhO/xLdNILwZP1fP8stR6sitJAOpaLnuNBgV4SATs/gaNkYu LWQ2uNquMKyen43qxizuD/WA9VGwxHom8Y9OHs7rbwj4EgkHcx+D+8sAoQmbp+GM/jLx T4l8sF1S+ER3s8FnCFz6CtxrwY99hCL6JFGaj86rmNdbRfMwvoHJhSoOXOkJ/mgLlpod i9Zopx3c7NaLV4mgwpk9lW16oJyASNtNV3PN2ZRbrpT2BaMJFO0e1gPT5dzULAWo9Z4F zMHLCLZqvXmWdaNov2ol/hT8eEesoMtT3OHH9+lziobyz/AENtJ+0yQLjRplLzHgeGsW 2mTg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sOzVs2HtrX5IhBLihgAUak82ejGShDB5s4kZ2H5Eq+o=; fh=yoWMU5BjtLQlCKX3ppr//+j0ySi+66kW4Eunj/C1M04=; b=LqoHbp/iPpR7e6V0rBl5Gatjr5Jln/MObNQ90j8Sjb3F7nynPSMxBNS4EpCC53hUcW tOOmVESWQEUgP/mnltXEbnPF9XCrhLzjMy3UweQf32yoc/bPlZIIiSPwddw/SAws9ajQ nXqzSxvgugJrTJawL3xmeLDdnmQpXoPDNDem5UinYKDZ26uwWBjmmHGtAPY/kV9iowkx jrTykPc5bnI16d15XouaDLfPKiFEeOA5DyaRLr/5KS/Wst7tiataKHhoxP9IH5xA/khE 9vYNV+4oMWWoKzqlYpeyj6DWfFRwpXEToKXX6gsBYIc8oDNtRCdsxoRFh1zQKCBBidw7 rAtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nt8B5jnm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902c40300b001aaf1734d1dsi4439452plk.241.2023.08.11.19.57.41; Fri, 11 Aug 2023 19:57:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nt8B5jnm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237329AbjHKXsH (ORCPT + 99 others); Fri, 11 Aug 2023 19:48:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236609AbjHKXry (ORCPT ); Fri, 11 Aug 2023 19:47:54 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEDC62709 for ; Fri, 11 Aug 2023 16:47:50 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fe1d462762so22243145e9.0 for ; Fri, 11 Aug 2023 16:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691797669; x=1692402469; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sOzVs2HtrX5IhBLihgAUak82ejGShDB5s4kZ2H5Eq+o=; b=nt8B5jnm6QQZDVNhKcItbainDmpNnuo9IrE8q/LzXVU9XaBt74T+MzJENnxfoQTlq7 mvof2jARSJqqDFGWqj3zbNF/E0C8ykZqY5YBzFk5EzBV/GNC4+UyF2/k8onu7ujfER8F vdIuNJOVzBtlauaaPT2D5NodR68Gm8p1dRxUZ8+TzcQBlQibslK6ENijGWGp/4LH4yoc AH9YiTf6D3j5faBiG7wBah0b5cD7GV7cI9bmow8QJnOLZAdn8fDku7wIErnAKMAJXWkN 4Fl19+d4MLE9GDBK1krOyiZQ8d72k3ggoxDgol5hE7tOZczdc8qefJrVJoCLlyVhj9Ld AMKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797669; x=1692402469; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sOzVs2HtrX5IhBLihgAUak82ejGShDB5s4kZ2H5Eq+o=; b=X9rmrBOkx6207LmBZ8AB/0H2a6JMUcOdWYKH+yWDmzU1XzFdVhw9we+IVmSBC2ZRay dw4/XRCoIZJOh7hfws0MKiXqG8v0FlQ/ANsmRKiOkVS9SPUlYma9qq89acoGqftOr3H3 Zwgc8mCTreHVBKNKkxgdqMu6SCzkpo3L5j9DSayfd6lYY/9MbDRkbKxHf4EptMgoAVgx xEcPm4JP1ViSXsijzbqR7QGknbyk5jwq5GWpU1kgqLY6LAQfeg100P6gNDcg5gpe+sqZ czwDWu67TpPytziC7hhBeKCEE10Ymk1Ej2QPb7lfQ9Yfp+rw0gSNo9HF29jQQ2EjX/k9 FtsQ== X-Gm-Message-State: AOJu0YyJIjasH3TsEW7JZOB6ZxLbNShjygzStoV85kxfvTYC3KHmJoB8 32igW28+DYm0fxaUeB5jYAT01A== X-Received: by 2002:a7b:c045:0:b0:3fc:27:7e46 with SMTP id u5-20020a7bc045000000b003fc00277e46mr2611933wmc.3.1691797669404; Fri, 11 Aug 2023 16:47:49 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c025400b003fa98908014sm9599051wmj.8.2023.08.11.16.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 16:47:48 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3 7/7] arm64: dts: qcom: apq8016-sbc: Enable camss for non-mezzanine cases Date: Sat, 12 Aug 2023 00:47:38 +0100 Message-ID: <20230811234738.2859417-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> References: <20230811234738.2859417-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773990392169412513 X-GMAIL-MSGID: 1773990392169412513 When we have no camera mezzanine attached it is still possible to run the test-pattern generator of the CSID block. As an example: media-ctl --reset yavta --no-query -w '0x009f0903 1' /dev/v4l-subdev2 yavta --list /dev/v4l-subdev2 media-ctl -d /dev/media0 -V '"msm_csid0":0[fmt:UYVY8_1X16/1920x1080 field:none]' media-ctl -l '"msm_csid0":1->"msm_ispif0":0[1]' media-ctl -d /dev/media0 -V '"msm_ispif0":0[fmt:UYVY8_1X16/1920x1080 field:none]' media-ctl -l '"msm_ispif0":1->"msm_vfe0_rdi0":0[1]' media-ctl -d /dev/media0 -V '"msm_vfe0_rdi0":0[fmt:UYVY8_1X16/1920x1080]' media-ctl -d /dev/media0 -p yavta -B capture-mplane --capture=5 -n 5 -I -f UYVY -s 1920x1080 --file=TPG-UYVU-1920x1080-000-#.bin /dev/video0 Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index c3cd08aa5c85b..4f5541e9be0e9 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -226,6 +226,10 @@ &blsp_uart2 { label = "LS-UART1"; }; +&camss { + status = "okay"; +}; + &lpass { status = "okay"; };