From patchwork Wed May 18 12:11:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 12853582 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 A0DDDC433FE for ; Wed, 18 May 2022 12:11:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236194AbiERMLY (ORCPT ); Wed, 18 May 2022 08:11:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236306AbiERMLP (ORCPT ); Wed, 18 May 2022 08:11:15 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A838369C8 for ; Wed, 18 May 2022 05:11:12 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id bq30so3279042lfb.3 for ; Wed, 18 May 2022 05:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GOInhyfsC6sIN9hcrOqb0a8P6F2/CkmUss06/noERuY=; b=VYGK5u933RHPx2BUiRp5mb8jNDwYoLYcpUzXhCeyVKo/M6CuqScEHqmPqyc/eezfjW TB834tscuxm31x9kne9NCDwk2wDkdO18r4lTQyeAPZmZCyQN4qi+Gv38mtoXW4FhHwK2 CEIgfptS+cmieKbTJ5VCP4AEc4/5H4gmYW8pVtbYBe8XLtu88oivDeztiSnIrFCxsz8k hW1rtqDgeqMejwxL9qk/ZvW4BwheSVcUYZkTtVpmzfb4ZW04p+bDa8PHlKDwYlVUlEzJ ZAp7FIOXPpzp3aI4mmf9Xzmra1gUsCtnaS410eFGp+aJD9nqYGs4YfOf4a4uXNUZgMPy Af/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GOInhyfsC6sIN9hcrOqb0a8P6F2/CkmUss06/noERuY=; b=Y91WyNzK2ms80e642W2DH+Tbpbi4smgH9i6x2GAhG0fjn13+EoQQRdwDSRBIuvCpCk uM6eD76bYtV9g/lsxXreCdY7D7PUfvanegCeICWj5BREbr+mJAnmPgrfCuRL+UHfTTZG CUi0MANnLfRM4I3keIfXURvJrNRpYmH1Ab+emcW8ZWbSsb+7tLyQxjmov7g7NIPqKPMo JICc9Jy0o0c0JBwzDT9wlUTBdCOAnGG1rSJ/Cnoc87vCC4NUBDCJnSjK4JJc4rkSGWI9 vxN7FWb/BqJpn4wGpJuGsx3hhn64UV2QSyQSrt4tK15HIg8CiRIU3NP/OPsEGWucwNbB IuAQ== X-Gm-Message-State: AOAM5304X/i7X/kpo+4UX580kwHWQM5tzOglMEfcXu3mZxZmEOzEh3mm 674VDBoaOYOTVpGAHuF503MhhA== X-Google-Smtp-Source: ABdhPJz7ho5AdODaorhSqg28iJSR4CC+51r6pEFeF484oI+RRK9d40Qsv0St1llA/16sYwcIuAu5dg== X-Received: by 2002:a05:6512:2350:b0:472:6182:955c with SMTP id p16-20020a056512235000b004726182955cmr20028215lfu.214.1652875870411; Wed, 18 May 2022 05:11:10 -0700 (PDT) Received: from localhost.localdomain (mobile-access-b04822-211.dhcp.inet.fi. [176.72.34.211]) by smtp.gmail.com with ESMTPSA id o8-20020a2ebd88000000b0024f3d1daeccsm194460ljq.84.2022.05.18.05.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 05:11:10 -0700 (PDT) From: Vladimir Zapolskiy To: Robert Foss , Todor Tomov , Andy Gross , Bjorn Andersson Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] media: dt-bindings: media: sm8250-camss: Add power-domain-names property Date: Wed, 18 May 2022 15:11:03 +0300 Message-Id: <20220518121104.951621-2-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220518121104.951621-1-vladimir.zapolskiy@linaro.org> References: <20220518121104.951621-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org QCOM SM8250 camera subsystem depends on three power domains, at the moment all of them are not differentiated one from another, however the power domains compose a hierarchical structure with vfe0 and vfe1 as subdomains of titan_top, also managing vfe0 and vfe1 separately allows to get more fine-grained power control in runtime. Signed-off-by: Vladimir Zapolskiy --- .../devicetree/bindings/media/qcom,sm8250-camss.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/media/qcom,sm8250-camss.yaml b/Documentation/devicetree/bindings/media/qcom,sm8250-camss.yaml index 07a2af12f37d..1ef7ea985ce2 100644 --- a/Documentation/devicetree/bindings/media/qcom,sm8250-camss.yaml +++ b/Documentation/devicetree/bindings/media/qcom,sm8250-camss.yaml @@ -103,6 +103,12 @@ properties: - description: IFE1 GDSC - Image Front End, Global Distributed Switch Controller. - description: Titan GDSC - Titan ISP Block, Global Distributed Switch Controller. + power-domain-names: + items: + - const: vfe0 + - const: vfe1 + - const: titan_top + ports: $ref: /schemas/graph.yaml#/properties/ports @@ -361,6 +367,7 @@ examples: power-domains = <&camcc IFE_0_GDSC>, <&camcc IFE_1_GDSC>, <&camcc TITAN_TOP_GDSC>; + power-domain-names = "vfe0", "vfe1", "titan_top"; clocks = <&gcc GCC_CAMERA_AHB_CLK>, <&gcc GCC_CAMERA_HF_AXI_CLK>, From patchwork Wed May 18 12:11:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 12853583 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 1A638C4321E for ; Wed, 18 May 2022 12:11:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236294AbiERML0 (ORCPT ); Wed, 18 May 2022 08:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236310AbiERMLP (ORCPT ); Wed, 18 May 2022 08:11:15 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170A449CB2 for ; Wed, 18 May 2022 05:11:13 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id f4so3204770lfu.12 for ; Wed, 18 May 2022 05:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/ENvXu+nmn3kyb9H+0ZeCKYYHHyXbkqj1LHdwtAGdSg=; b=whGvaDFXtPjWJjERWS3MYYHUgg39F7kI65IjOQv09J4z265YWLvU27qa6tdsTR7Eln nT3Oq2UZF7zHS96hgzVIgjzMoZtwWlE2sHQGq7QJSJstqXXrHUKSOxK5o35iqc4X1qm/ BdmY6W23p3ZVWpbcgdp4lSZ4L4c2JeJCVF+W55wRnoIX7iHTUGW8/9xr4TYCw2g0d971 +B0qTyFdV7itCadyuD1K5LYVLv4uzeie/Y3SBzVhJqGR1UGtVUlVF3/4ayGLdgYyGcQQ J9BWPUAxtYvWVaXbTi6aB730Y3rHRMo2pQ41/Q2SezRzYsbvI9gj54eteYOpZJj/bVt+ 33Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/ENvXu+nmn3kyb9H+0ZeCKYYHHyXbkqj1LHdwtAGdSg=; b=SGHZh5ETGANhk4TXQAauBXsk5X6PLVEVmv0q+nElfMfh8r0kFIhzpnskYPWuxQniRJ XcJ9ag4cLDTm2W+2TTyteDYhmAE+RSZSSRkLN36U7SvoPS1Qt53diCtE9oBxm3nMAtra TA1Ao8AYaiPM+eO695i96IkZf95rB+cOiQ70wHtLM8Iry1hE+gh4GCO/hhkJZdfG+EQ2 pX/LQARa0nYEuxdRoSnZOyV293fpCQGmpXwoP0GgD/+NjHMvswdUUhVd+YlBvnOMfPt+ TtwIMa+6m5TjoW4k1ITRbdvgwzw2C6zKfN19BHbb983ICLxaaLRtkXnS8P1HzchP0o+9 mD4A== X-Gm-Message-State: AOAM532tSPPxxiBBKqTIqSXpt8aiF1AKva2e4ZQYzk+8O9dXcYmjbGPJ RNGFjWGynGf+QKmED0mRFjNRPQ== X-Google-Smtp-Source: ABdhPJxeHTzzDWGQYLcuzUk6Jc2MaylhGO874SauCO4XaqINd6x6qsTPHrJq4q/KH4b8aHCf8iT4pg== X-Received: by 2002:a05:6512:6d2:b0:473:a7cb:8f06 with SMTP id u18-20020a05651206d200b00473a7cb8f06mr20341004lff.267.1652875871450; Wed, 18 May 2022 05:11:11 -0700 (PDT) Received: from localhost.localdomain (mobile-access-b04822-211.dhcp.inet.fi. [176.72.34.211]) by smtp.gmail.com with ESMTPSA id o8-20020a2ebd88000000b0024f3d1daeccsm194460ljq.84.2022.05.18.05.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 05:11:11 -0700 (PDT) From: Vladimir Zapolskiy To: Robert Foss , Todor Tomov , Andy Gross , Bjorn Andersson Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8250: camss: Add power-domain-names property Date: Wed, 18 May 2022 15:11:04 +0300 Message-Id: <20220518121104.951621-3-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220518121104.951621-1-vladimir.zapolskiy@linaro.org> References: <20220518121104.951621-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org QCOM SM8250 camera subsystem depends on three power domains, at the moment all of them are not differentiated one from another, however the power domains compose a hierarchical structure with vfe0 and vfe1 as subdomains of titan_top, also managing vfe0 and vfe1 separately allows to get more fine-grained power control in runtime. The change should have no implications on any SM8250 CAMSS users, since none of the boards supported in upstream enables the camss device tree node. Signed-off-by: Vladimir Zapolskiy --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 26afaa4f98fe..d7bd20412f06 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3289,6 +3289,7 @@ camss: camss@ac6a000 { power-domains = <&camcc IFE_0_GDSC>, <&camcc IFE_1_GDSC>, <&camcc TITAN_TOP_GDSC>; + power-domain-names = "vfe0", "vfe1", "titan_top"; clocks = <&gcc GCC_CAMERA_AHB_CLK>, <&gcc GCC_CAMERA_HF_AXI_CLK>,