From patchwork Wed Aug 9 12:04:26 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: 13347863 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BC5BC001B0 for ; Wed, 9 Aug 2023 12:04:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231368AbjHIMEk (ORCPT ); Wed, 9 Aug 2023 08:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbjHIMEj (ORCPT ); Wed, 9 Aug 2023 08:04:39 -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 75BA61982 for ; Wed, 9 Aug 2023 05:04:38 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fe12baec61so56612285e9.2 for ; Wed, 09 Aug 2023 05:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691582677; x=1692187477; 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=ii80EE7pa0mhgMQ0s5xe4195LlHu5IHrEtcB3OBraLk=; b=BiQRm6QArOt0reA0XzmNOrqDq54h8G/aseka0XWXgzwpSmPA1oUSMjgN0/uGnKnO4E j1ssv6TlN4OmhP0QJ2FhraFta2kpehRPgbQRq1VdA/J5seN8HiZ2ea5BpDEX6SN427nC 72+g2J43mYKQNotZuShuG8x/LmtW+o91kYHr4+2/AOKh1fnel/5SECLq9r64TaQuxmoU iKNknvjqa769930fTyXb9UMAVEm/QyWsTT08Hdo/kFMB5oMArfXBktNIHnZhhuuGyzlQ n+tjDafiW7p85wN8yYlyYh1fe8mu5Qcbxsc5NT/3r+wE3peyAkNO5DAPrZG3k321QZ1I ruow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691582677; x=1692187477; 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=ii80EE7pa0mhgMQ0s5xe4195LlHu5IHrEtcB3OBraLk=; b=IdM6tPxl6KkmCjouuQ4B6uSkvZAJGVnXfyD/ItC6bKqpICiWXMzxZ9MAUpl+HQzIyL GQUjOmGbmn/OsC3nruol6snRgKTWgWpY9Fvg4IDjeF8x9cYDaIoTB/L0h7tSg/VqGMfl Yk5O+w+Y53lQyCHEh2DzETE0D6k2xHt6xXX6tDAqO/bn7MQ4D0s6urPte2JWKD4gMTgh Kgzr1lcwObS2eCwHNQvfhGvmvFDf2+C66j1tV/UISOa+5EM69cSnW9HeE+GvFCjFeIWq REHYb4lNFGfd9Y9sntThNH5nCAhZ3XKT2KPOoaT2YNqw3XqXXF5DdFYkjWRk778maaDm /YDA== X-Gm-Message-State: AOJu0Yy0d1YMFpt2DuCK76o+HdMlvsKTmEaYt6sT3n4C1hSDBPKy4X6b 0mc6dosnmaNCxSF5gqCJ1cgTRon/WA2U2ggJSFc= X-Google-Smtp-Source: AGHT+IETu73lrm/5LQfyHK8qjp9vNvK9TX06/BiTcJ2LLYm+UUDVhJQnkevBzFGzrc8K8etxRZyRjg== X-Received: by 2002:a05:600c:234a:b0:3f5:878:c0c2 with SMTP id 10-20020a05600c234a00b003f50878c0c2mr2047031wmq.3.1691582677091; Wed, 09 Aug 2023 05:04:37 -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 b13-20020a05600c11cd00b003fe1a96845bsm1808573wmi.2.2023.08.09.05.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:04:36 -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, loic.poulain@linaro.org, rfoss@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 1/7] arm64: dts: qcom: apq8016-sbc: Fix ov5640 regulator supply names Date: Wed, 9 Aug 2023 13:04:26 +0100 Message-Id: <20230809120432.1036405-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> References: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Wed Aug 9 12:04:27 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: 13347870 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6633C001B0 for ; Wed, 9 Aug 2023 12:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbjHIMMb (ORCPT ); Wed, 9 Aug 2023 08:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbjHIMMa (ORCPT ); Wed, 9 Aug 2023 08:12:30 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEFDD1BF0 for ; Wed, 9 Aug 2023 05:12:29 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5217ad95029so8777502a12.2 for ; Wed, 09 Aug 2023 05:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691583148; x=1692187948; 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=qFvAA/v39L86qjDqi6cHkK3yiYvvs9Qa9ISV4luSpBA=; b=tdSvXZ+BdfkaUDDGp6yIk2M/QfK6VnQ7Wt/SxsMRWUGanoHRO6dFOEXzSJQ7qbn1wZ wy8U1H1KLw9ScmVHJ9g2H2jh9/nPKsMQfyBTw5/HBNYX4v5sCpf+38p7T49sp2iwii4Y luYrh5dQUtYkedH6wBL19GQBgaenwQAJu6etjxz9el5fSxhPeAE/wEIhI1nD59MzCGhO 5TlslP2kEo9BZiYj3rnSO16mH0W3vAc7mg1UT6gBVQiGY5Dx49RAyI1poobAWA9sGBQN w1D+YkPz7WFEY/ciHErDC5h1LpLbO5A7t1MW/VXyX9mg0zVWPN54cDomBcNhKfTkyMHM irtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691583148; x=1692187948; 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=qFvAA/v39L86qjDqi6cHkK3yiYvvs9Qa9ISV4luSpBA=; b=Co/GxuYQPqpEJkZZERegxiZXSPssmUiucibNM/mjzWf1lLj4Duz2lEUXpnbD00/fS3 Ww2xPWyl21dLi0/aN1nS7lLj+8T8reUXFI+LthSNCC+EsHn+WipwzpILZcFTk4BItL+/ TtxkBBDwp3fAPxZaVsgwCjz2TORotOArxP0VkHGsE6u5F582PGD7mXPCSfk4yWEQegh2 SOAWxKIS4xIykU24fstBUM8mq5QGrfNX/nGZCgJy6TZ0EEUi+lPyd0DoyXmlk5uV6kex aezejoAFaYPJHGtTIoZkX1ioDWxhNrrzW9MGX3d3CXxHvyft2lyEa5Dp3l9c9BySHieK 3LIg== X-Gm-Message-State: AOJu0YxmryX1925OZNwTuBZ1Jaeh00/PVNwKmNbsNG55L0XwDihUjaBn DfoRhuWh1EGA0THoYopP5UPNlWk148HSz1H7gPE= X-Google-Smtp-Source: AGHT+IFdMKH9L8wd2454RCyOpWWrJie6RwmaDWZQZMXoneh38svP9bLig4ymV9a7EA2LKFm1dKwF8g== X-Received: by 2002:a05:600c:248b:b0:3fb:b530:a4e4 with SMTP id 11-20020a05600c248b00b003fbb530a4e4mr2033263wms.8.1691582678366; Wed, 09 Aug 2023 05:04:38 -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 b13-20020a05600c11cd00b003fe1a96845bsm1808573wmi.2.2023.08.09.05.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:04:37 -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, loic.poulain@linaro.org, rfoss@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 2/7] arm64: dts: qcom: apq8016-sbc: Fix ov5640 data-lanes declaration Date: Wed, 9 Aug 2023 13:04:27 +0100 Message-Id: <20230809120432.1036405-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> References: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Wed Aug 9 12:04:28 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: 13347864 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE1E0EB64DD for ; Wed, 9 Aug 2023 12:04:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232468AbjHIMEs (ORCPT ); Wed, 9 Aug 2023 08:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232389AbjHIMEm (ORCPT ); Wed, 9 Aug 2023 08:04:42 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E8B10FE for ; Wed, 9 Aug 2023 05:04:41 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fe501e0b4cso33194375e9.1 for ; Wed, 09 Aug 2023 05:04:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691582680; x=1692187480; 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=ji2TAs4h2AQJPAHYaEnDbkiwKSG4NYhBKLiywXvqyCg=; b=YZ4CjB494LU3Ifi3LjUMaer/gztQyCovML4j3ReYsyCH7ttR2ffzMWiaEJQkYRRl/w XkxhsmFEvRfkhUcnd/POOABrM6P7GZOEnPGSx2bir23lQbDuzQwAT76xgoXRsjwi6P2x yr5/K4yGkmzrRQqP8ie7R8/1IWfHLcrhKpgr211/wgle4D5FiiDBuSWltI3r2P1uT5fg gn915JwRGM3AH3jOjQPdu7AgdCx5tbttaRfnBlkb+Ug8wZSMA0RM/NDBHe8e6cEl/1K9 OVdBKU+s6VOCtGSoFwLuePVpb0pZMniEdfnMlVujvKfHKqJX4EQNza805O+5M1bp1Zyn VjCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691582680; x=1692187480; 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=ji2TAs4h2AQJPAHYaEnDbkiwKSG4NYhBKLiywXvqyCg=; b=aiPp+HjJWgvRkggjomqZX+7C87ig1SMRB30zxaIfpr2nI5RA9zCuEr3fjrY4cdzBqQ LA3p0FFKg2dmLfopR3xTjRO4wWl+vhDj3W0id77XsAM6w/RAxJQrISFRdZj6nhpDQLXq B0/XFHA1QSVgtLHsY3IlQ7kbGNBeAUn2lokESE06CJupJvBPxrOzKJSVrbjN4+hLfMg0 7Ahkbi/kByh3pBWsshJOZTaZ/qvU//bIoHtGiUmVyO3C1MWAwNnJczSAsI/HQR8xOSYK c2VaRb0nktWlQW4Wx6VDo0ZbGAUfGB7R52rR4T3X2i2rnOA5fUJsEEeF2gV+89Wd06Em FXZA== X-Gm-Message-State: AOJu0YyILALUeiddSo6liYlCKhSU4uOBBqnzvk5hSIppN6H0AMykNzKA qOfs5sNWYD/m674+sXhBz/qa/A== X-Google-Smtp-Source: AGHT+IFg/yp0enlmf5flLyYEhcTtmDh2uFTS6MRF9979NyFtdnZZWXzpduqFWVpyRffVGZ+rWWNs2w== X-Received: by 2002:a7b:c449:0:b0:3fe:1923:2c3 with SMTP id l9-20020a7bc449000000b003fe192302c3mr1837756wmi.30.1691582679661; Wed, 09 Aug 2023 05:04:39 -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 b13-20020a05600c11cd00b003fe1a96845bsm1808573wmi.2.2023.08.09.05.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:04:38 -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, loic.poulain@linaro.org, rfoss@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 3/7] arm64: dts: qcom: apq8016-sbc: Set ov5640 assigned-clock Date: Wed, 9 Aug 2023 13:04:28 +0100 Message-Id: <20230809120432.1036405-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> References: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- 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 Wed Aug 9 12:04:29 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: 13347865 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B64EC001B0 for ; Wed, 9 Aug 2023 12:04:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232444AbjHIMEt (ORCPT ); Wed, 9 Aug 2023 08:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbjHIMEr (ORCPT ); Wed, 9 Aug 2023 08:04:47 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0783A1982 for ; Wed, 9 Aug 2023 05:04:43 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fe2ba3e260so63551515e9.2 for ; Wed, 09 Aug 2023 05:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691582681; x=1692187481; 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=xkZCFzxfzDyKA7LYooj8Fy3ZdYlwwxLtlpox9Vb53IY=; b=vGUKZmEPBkDx/7F9lu/X34D2GA+UhZYWFjHqtsItOHwt2YfQrLz2q41JHEvRkqZNZj B2u6eo6WiOb6t7JEnOvQoPz3/UCYiNFnc+FJcNt5R1LvfDqjFd0TUrHcracY+GDrYHaf F2xjp893J6fQbB9Y7mF/w+01+kHiFHDrGa5iaGZtA6iBvFlNaRjRthGID6L1kVM1hBcD 8bPMsaEKE4xi3vFz69x58Fxt717UFHZfZ7YdON6xwjO5O2J+y52EAJU4zC36fnQILNzo nqgmqdKoIXIkwKQhJRP0xTTLDh0z+NPRDxF+D3GIMHircdDajZLU7vCEIXhk7Eh6IjFM FMCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691582681; x=1692187481; 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=xkZCFzxfzDyKA7LYooj8Fy3ZdYlwwxLtlpox9Vb53IY=; b=Fj0bbRid6+4wiQr4I5CPfJDPWsz9Okz066bqVxHgQJJsaqjX2Use9Dd+xQagTLu2Du l2dvq9Dj0VsDp7886PFa/SfG2jkLxKXVKJQRJ87haDdqfjTCIF9fHy6cYykDFEo7y0FB M3oPRpwRuB/swR+PzXfNRFkwVxfQMZgQq7UUHnHkvujbk60riRv7UbM2YcENJQPKyZe7 TLQ+MBdswVAivm7FRtH/WgeAW8if+WKL7+foGjp03zKxah5FOjIFwyNzSBRv7DiP72q+ 0xSajyfLarL0OIBMD2SZoZVpxU+Rd50t6Uvmi/8HQNTlMmndHa9J/OVMYDepz/48HNxC p85w== X-Gm-Message-State: AOJu0YwTyDfQDqPvbydFRo4YQa1ycT3hAff8vZOUVkDyl/noh5dlJ5je PhjEtvq0or/yO7Bmnumuu8GDOQ== X-Google-Smtp-Source: AGHT+IFYk3DzbomQTzFpWN8TXzDHbS1k2DMgIJIU0zuU+RfqTFui2Yp7Igw+uTj52Fmz9QyZwR+b+g== X-Received: by 2002:a05:600c:2811:b0:3f7:4961:52ad with SMTP id m17-20020a05600c281100b003f7496152admr2049176wmb.3.1691582681629; Wed, 09 Aug 2023 05:04:41 -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 b13-20020a05600c11cd00b003fe1a96845bsm1808573wmi.2.2023.08.09.05.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:04: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, loic.poulain@linaro.org, rfoss@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 4/7] arm64: dts: qcom: apq8016-sbc: Rename ov5640 enable-gpios to powerdown-gpios Date: Wed, 9 Aug 2023 13:04:29 +0100 Message-Id: <20230809120432.1036405-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> References: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Wed Aug 9 12:04:30 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: 13347867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FAD0EB64DD for ; Wed, 9 Aug 2023 12:04:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232222AbjHIMEu (ORCPT ); Wed, 9 Aug 2023 08:04:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232516AbjHIMEs (ORCPT ); Wed, 9 Aug 2023 08:04:48 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BEEF1FEB for ; Wed, 9 Aug 2023 05:04:44 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe4b95c371so4958155e9.1 for ; Wed, 09 Aug 2023 05:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691582683; x=1692187483; 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=0aQNTlFhiryJSyL6GzmvZILIrCiHcbptR0gcja+ACew=; b=gkV088vSe/ZfsxGAQEGU2L1/jyc7EOIzpGEhw4Hnuyv1x5sWi4zpr3hnytt5W+Ce9m GHwz/IRSEce4QN58FD+h0WbdWzVN+/sgjoOa65gAlQX/JNHeCHUCZuI9P72u0qP9a5jk 65m+2E3P0FZegHPSB5OaoZqRZ+lx9ZU//iwNdFY8Tkj0Hpu7V/mPnn/A/jH3dvTWrzIp 1sDowkUw3cD80lXoVQ+fSszpAnsZjnDI9sG0zD/Klu0j/Y+jQi2IaKs4q4R0fQ+wwSik TW3A5nbfnPdB/bMoLvd9DN9k3F1TztE+fsrY7cxB/TK1oYZyBXC7y9lrwsaJjNf25vJs kb4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691582683; x=1692187483; 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=0aQNTlFhiryJSyL6GzmvZILIrCiHcbptR0gcja+ACew=; b=cmoC+PQ0Ea7dPz919I9NlUrFFsECpKkheRU9onloLKQV5WKJCe2J6ywbYcmthvcz8K kTvaOk9h831t5b/f3oweCV8Bv9V1T2xSaLddyY4c3ENBTUwaj1O0fCIEmKmzziaZmOQ5 SPd2O6zs2HmqQsISAHrWQrrasjhwFD2vWLCDxh82k2A6FPAKXx0M4SfnxGQMNsODXk9r IjR6CSdaDIzTgPvDVdvNsZ4AjMvmKk4d3S7NwYdY4YLYxIj3xnr5O/cdvWEGP2iyWDbF Zn02/Sl0N/a9vAe+2ea5Asg6zVFsI3pdF2GQdXzClEx3J5WhLK7KqinqUc2vW3wxol16 QG8A== X-Gm-Message-State: AOJu0YydU60RiATgxs+z32U+8flbltSMXR6hmYS3RVE9c+FfFQC4cNcd IrLpLgg73X5CyfpyKxnwae+sQQ== X-Google-Smtp-Source: AGHT+IGmPq7NRnDMwHTOmOPKruMH3lPMvwH53+EaW92fyj14Qfjia5xvn5J2KeZTpdiebSmq3VzMPw== X-Received: by 2002:a05:600c:152:b0:3fe:23ec:2494 with SMTP id w18-20020a05600c015200b003fe23ec2494mr2156847wmm.7.1691582682896; Wed, 09 Aug 2023 05:04: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 b13-20020a05600c11cd00b003fe1a96845bsm1808573wmi.2.2023.08.09.05.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:04: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, loic.poulain@linaro.org, rfoss@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 5/7] arm64: dts: qcom: apq8016-sbc-d3-camera-mezzanine: Move default ov5640 to a standalone dts Date: Wed, 9 Aug 2023 13:04:30 +0100 Message-Id: <20230809120432.1036405-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> References: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../qcom/apq8016-sbc-d3-camera-mezzanine.dts | 57 +++++++++++++++++++ arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 49 ---------------- 3 files changed, 58 insertions(+), 49 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..6155fa92c717f --- /dev/null +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts @@ -0,0 +1,57 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Linaro Ltd. + */ + +/dts-v1/; + +#include "apq8016-sbc.dts" + +&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>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index ddb19709a9eee..84641925f3329 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -250,55 +250,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 Wed Aug 9 12:04:31 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: 13347866 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B320C04FDF for ; Wed, 9 Aug 2023 12:04:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230143AbjHIMEv (ORCPT ); Wed, 9 Aug 2023 08:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232564AbjHIMEs (ORCPT ); Wed, 9 Aug 2023 08:04:48 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 881D6210C for ; Wed, 9 Aug 2023 05:04:45 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe4b45a336so40616245e9.1 for ; Wed, 09 Aug 2023 05:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691582684; x=1692187484; 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=s0fuBqRsEBe6l7Deus3bSG6cmQ10e10yJMZB2h8X4jE=; b=k6UvkU64QtSCFUHzaY4bBmLxmglN7Y3H9ResDi3f6askrVwcPch3GFbvbrpWtqWVmp wYoH2TT8l50Et1+3xnQplOuILusJYHPw/7tCqmuoazf2tdqqpqFSIIlTtZJDThEMTS1s dyGZX7MqwpY+iS7gx7RC/7TZT7vPHHiJaPMJ1REdLWzdbHUBeeIa/B4aLmD8SrPKLhI2 YsxJex1dO3xQhBtq1PZEA0N/uFUjONk0ewltsMh/ipUu4uS9d4AuGO/Kv9ySkkU5WV0H Tg3bYjLNA6pPYm1gZJpNHcTtes+qyQv49h+Ku/pXt4gTZnaX8j6GVs4AuvKlzGoKU5w1 oUkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691582684; x=1692187484; 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=s0fuBqRsEBe6l7Deus3bSG6cmQ10e10yJMZB2h8X4jE=; b=OG5nUC9E8GB5rwBBBWwA0l661ykOZsKGyBGaaDxFhuxRN7QgqBUklv8Vlg2MM7N8WK XYhkX9XdfJUryCj8ES32EXVX6jpZu4GozoDDKMvapmbQZHvyMs0j2rYtiW2rkMvRX8c+ 0g1jcltZNxDLA/lm4GXdWKOc0N2/DoSpHF3OrkJ14g4AX5SlYNrLNfiO048qiQTWwGeo LFDnuTrAf1w2eolg4ST3UvSVrVrqbJ6xxpuCmzQzbchtQ1F0jCo42+8FDXWu3rDcY+N5 irRy8Hn8WIHOpVwsVcfG6TWuPh8SqilnH4iSC3QgxP7xwwlxdjma55oQnGX8d6aR5dMn oHVA== X-Gm-Message-State: AOJu0YzIdr0R9QsEc+2SiPs9ESLGEXfo6Lj41UWXjMTEyoN3SqFF4u// y+NmR+opYPAuEUyABdTSguEngvoqMd+l2CByWew= X-Google-Smtp-Source: AGHT+IGswcDDwxEq0Zt2hXIoGD7OAzUDkLxXHAePXR3sFYyHwuNWe3LUWYCPBrbOFEN/ut6U7xCHOg== X-Received: by 2002:a1c:7919:0:b0:3fc:9e:eead with SMTP id l25-20020a1c7919000000b003fc009eeeadmr1896152wme.20.1691582684097; Wed, 09 Aug 2023 05:04: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 b13-20020a05600c11cd00b003fe1a96845bsm1808573wmi.2.2023.08.09.05.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:04:43 -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, loic.poulain@linaro.org, rfoss@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 6/7] arm64: dts: qcom: apq8016-sbc-d3-camera-mezzanine: Enable the sensor by default Date: Wed, 9 Aug 2023 13:04:31 +0100 Message-Id: <20230809120432.1036405-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> References: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org With a standalone mezzanine the sensor ought to be enabled by default. Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts | 3 --- 1 file changed, 3 deletions(-) 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 index 6155fa92c717f..ca1b584c0029f 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dts @@ -44,9 +44,6 @@ camera_rear@3b { 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>; From patchwork Wed Aug 9 12:04: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: 13347868 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49381EB64DD for ; Wed, 9 Aug 2023 12:04:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232689AbjHIME6 (ORCPT ); Wed, 9 Aug 2023 08:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232698AbjHIMEt (ORCPT ); Wed, 9 Aug 2023 08:04:49 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7BCD2123 for ; Wed, 9 Aug 2023 05:04:46 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fe4cdb727cso46793255e9.0 for ; Wed, 09 Aug 2023 05:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691582685; x=1692187485; 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=Ik+Vesa+3vygs95Y3Ss7LgnvyJofDuuC47JEx/KwcHI=; b=rBxTvRqs5x9YfW32WqwG9bKnRxvWc3eZAGt+drtDI621w+e/LRxqb7NnIzh1c44VgF RACsQLtR7XVhRXDmbmRmk0BdoYTy7yBwbDlM4nduSU+N6F5IebS8+5mhKfPsWBlhHp0C g/NnAmDsGd2rrGzSSM9xJ4jrvVmEiAk32qyAWc3ZoNCz2q2DKeb3DCcLO/QrIMmlo2Gk AsfSKFTFAQPkk/7gE0gu7uVtEoVK94yr5Swsvf8ok+obKMViCeZRVCsXGrK8dZmdNxyb 3/NfhEoPBP2rF5x5DeC1DMm6gKGyr1t9zATMe/oflyTJ/ETiZFoUSJZD+VSL1x9NO/7L /wLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691582685; x=1692187485; 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=Ik+Vesa+3vygs95Y3Ss7LgnvyJofDuuC47JEx/KwcHI=; b=MfWGZBXnb6VVpBLj/zXx5oMgeum60FR+GlQEfDZq8YCsWYJcA7NXp1dcz/NnkPrL/U bgCgfix/apfRRtsQUcB978FqZJYdu0bB/bKP1CqKIjEtOQNQT/vvt/dgzJ//zwqJ1mKc Gp1GwlMp+iBxWVvpOnoJsZEhNHrrJOwCApyD6LR7peuPJExKWaVwz76oKvHcau4sOzJR l/zY8JOkgx/e7CiWyg+kA190Ws9nDZvMyLO9OgeHk3UMUk0HNUIfhxqFDU8/P8QwpOE9 Sf8n7IfRYWP/jr0euj3SVpiSnjwUVFBLwGuse9vB6fTZykg9OTP13A6CyHkpL4+IW+b0 /VAw== X-Gm-Message-State: AOJu0Yyly0fXoRS5r7t5C50qEYh42Qu4o9YrZQKeV+HLWZAjW2zt+vnS 5yGJr6fFI8IN8YfPgJQzCfPYFw== X-Google-Smtp-Source: AGHT+IH1egwPN7DJKbvHJ+pRj41qu864We1NH/hmj3uxHe5Im9RDLMTnqFEaRqK1um1pyaMooMzwCQ== X-Received: by 2002:a05:600c:211:b0:3fe:1287:d2b0 with SMTP id 17-20020a05600c021100b003fe1287d2b0mr2026246wmi.3.1691582685307; Wed, 09 Aug 2023 05:04: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 b13-20020a05600c11cd00b003fe1a96845bsm1808573wmi.2.2023.08.09.05.04.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:04: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, loic.poulain@linaro.org, rfoss@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 7/7] arm64: dts: qcom: apq8016-sbc: Enable camss for non-mezzanine cases Date: Wed, 9 Aug 2023 13:04:32 +0100 Message-Id: <20230809120432.1036405-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> References: <20230809120432.1036405-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index 84641925f3329..46cbeaa2f2acc 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -250,6 +250,15 @@ &blsp_uart2 { label = "LS-UART1"; }; +&camss { + status = "okay"; + ports { + port@0 { + reg = <0>; + }; + }; +}; + &lpass { status = "okay"; };