From patchwork Thu Nov 4 16:17:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1551094 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Y8fFSG9l; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HlTMv4kRlz9s5P for ; Fri, 5 Nov 2021 03:18:35 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231811AbhKDQVM (ORCPT ); Thu, 4 Nov 2021 12:21:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231750AbhKDQVK (ORCPT ); Thu, 4 Nov 2021 12:21:10 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7172FC06120B; Thu, 4 Nov 2021 09:18:32 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id e144so7551588iof.3; Thu, 04 Nov 2021 09:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4nykwHbMJSb3jIpYbl39RbFllqV3tdrxrztc8NuaqTc=; b=Y8fFSG9lyVDSOuwpjQVpYgeia9xkRyGyn9BhPkl4TClcmYxWehyN3bEgpZ7+mBbVqU y6QgYZ9CuSk0+M1aIeYj9hCisZ37xjbLGpYX/Jz379TkDnkpOi6Jg4CoYnNMusXTz3Ed nbdUrovIBaNasGvv9wKSotJp0V+glZR5tu2nHCeKt3W/DhQV0HmJsQILSrAHpNZ2wfrz EHbl7dBkJIl5y8m6Po0carrI0WWhpRZoyCZTJ9pCK9JqEUXdzLpYP0GkdQsn81H+X3n7 JNxYn3ULvVIqqa70w/2ZPIUa5avGZ1AXXXJv1ItrsRiM9GrfNNMJog29zSr7E2X/W2QH j7ow== 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=4nykwHbMJSb3jIpYbl39RbFllqV3tdrxrztc8NuaqTc=; b=F82dinLqWsN8JdblLJRTjmTSNCZs02O//xhy+XBYgKYBCtzimZUFEq3kj7ozmsO0Fq yMRJJwesuHZMz9vN6cX6kGkRxepXQIppBHl55oB30KPsmGLEv7a6yP7V+AuuxRW3n8bm 0Jh9sS97BOa3UNLaIJpwNjo7MhPPG8GCJAJ/zHRvZZ0H2varaOIOFvse1/4WMonxI5LW iaGhwC6NHRpTvLvcdVay3En7GYWH/JkMoUHP5e1FEmhbgwPnNABbnpFrBJb8YtmZkdlN YktAIteJA/S3tSmMbjQronVJyNPzczumP2WLEJOf0CCo6H5em8f7VrgdvKLOE/VlK4A1 83Lw== X-Gm-Message-State: AOAM530/DPAV+OTnOp1Xqsi7900Nqsb7+mLFwrFM5WH5hZubPBpQIU+Y 4/QYf0nAA9/WWitTERDLbfY= X-Google-Smtp-Source: ABdhPJw2eSGb+4IR/QWTYIJuwBIaYtjVT/gjiZ0g0VKV1MM/WdxEJv/MLHX3hCc7B7qy+GZN0myqBw== X-Received: by 2002:a5d:8903:: with SMTP id b3mr38383017ion.44.1636042711498; Thu, 04 Nov 2021 09:18:31 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:e81d:737a:bb84:83ba]) by smtp.gmail.com with ESMTPSA id e17sm3266326iow.18.2021.11.04.09.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 09:18:30 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, ariel.dalessandro@collabora.com, krzk@kernel.org, tharvey@gateworks.com, l.stach@pengutronix.de, devicetree@vger.kernel.org, Adam Ford , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org Subject: [PATCH V3 3/9] dt-bindings: power: imx8mn: add defines for DISP blk-ctrl domains Date: Thu, 4 Nov 2021 11:17:58 -0500 Message-Id: <20211104161804.587250-4-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211104161804.587250-1-aford173@gmail.com> References: <20211104161804.587250-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds the defines for the power domains provided by the DISP blk-ctrl. Signed-off-by: Adam Ford Acked-by: Rob Herring diff --git a/include/dt-bindings/power/imx8mn-power.h b/include/dt-bindings/power/imx8mn-power.h index 102ee85a9b62..eedd0e581939 100644 --- a/include/dt-bindings/power/imx8mn-power.h +++ b/include/dt-bindings/power/imx8mn-power.h @@ -12,4 +12,9 @@ #define IMX8MN_POWER_DOMAIN_DISPMIX 3 #define IMX8MN_POWER_DOMAIN_MIPI 4 +#define IMX8MN_DISPBLK_PD_MIPI_DSI 0 +#define IMX8MN_DISPBLK_PD_MIPI_CSI 1 +#define IMX8MN_DISPBLK_PD_LCDIF 2 +#define IMX8MN_DISPBLK_PD_ISI 3 + #endif From patchwork Thu Nov 4 16:17:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1551095 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=AkIpupy0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HlTN651fsz9sPf for ; Fri, 5 Nov 2021 03:18:46 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231879AbhKDQVW (ORCPT ); Thu, 4 Nov 2021 12:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231742AbhKDQVN (ORCPT ); Thu, 4 Nov 2021 12:21:13 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32454C061205; Thu, 4 Nov 2021 09:18:35 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id i79so7220115ioa.13; Thu, 04 Nov 2021 09:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ftr4HvATWA8R2D1hs/XQ6cE+KuTY1wr4XbGAaD8YFZA=; b=AkIpupy0hn2htAB7o2AIrekPD2joEPWdiu89amAoS4yfLbZFOAbOuMqIjm4Lo6oY8C dg97kmwNKgMchd0XoRosLksEy/V9+LHvW0YLLwCtwtyHGUmytGjZKF5D0CPYZM50vlhe xxl94pqJZo7oznuYFa8kK8w1mk2GbtC4+IwM/0e6S03Ntx0CaDey5CFYcDEP7RqANcTP zacoeqHWlfQlb8mpq89ga3n3VLHy325vscwCrXvA/DIoM5IKol3SdC96G/DIC4W2YtCV OiG3V05ujIrI1lahRQ7wm3GTCv/JSbomvTMCjXtnGHtYVy2Ol7GrYaa7LZ4O578zkmIE Ca6Q== 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=ftr4HvATWA8R2D1hs/XQ6cE+KuTY1wr4XbGAaD8YFZA=; b=o29xvH/38IOai/aVmD+xH1oYPknoQ/qDucYTZ6yBQ0RA5y3GQ4O0xkNpb5Cg39NnHq ubL4n4Up1s6O3DyxZSStTxjaotyQ6hK/L+rT05GsdvxNNqmIci6GC7SZIIZxisHEwNQf VolT4joeJFca6eJoiye40MeXqLy9q7bID6FLnyTP1YkIsxigC1pnwy8KBQyXifr800Iv uNqtPtG/uMoiq9qhoqNSh3IhMHmv6bkWivwU7tJsBsOJaQ7czl/xLicKB4kFasmkmiEp cT2a+EZTfVi4t4MR9ykL0Jxie+zVD/ooKJ/Hg+2qhd8YyFPM0N0AkAcBToSU2GfhFKRA Vk4g== X-Gm-Message-State: AOAM530K4X33edPvPgcxcdOsXVA1i3LiTDu/RFCVuGg91q8ecafN5E2d ipvjvSeTsGpxOsHniu7m4BA= X-Google-Smtp-Source: ABdhPJwZhnwBMuUJaLYXLbet1nMh9x2zCmpzWsi3UpK0KxHASthUEsM6traSMHSoPIVWHRAWo/yU9Q== X-Received: by 2002:a5d:964e:: with SMTP id d14mr36692270ios.45.1636042714523; Thu, 04 Nov 2021 09:18:34 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:e81d:737a:bb84:83ba]) by smtp.gmail.com with ESMTPSA id e17sm3266326iow.18.2021.11.04.09.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 09:18:33 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, ariel.dalessandro@collabora.com, krzk@kernel.org, tharvey@gateworks.com, l.stach@pengutronix.de, devicetree@vger.kernel.org, Adam Ford , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org Subject: [PATCH V3 4/9] dt-bindings: soc: add binding for i.MX8MN DISP blk-ctrl Date: Thu, 4 Nov 2021 11:17:59 -0500 Message-Id: <20211104161804.587250-5-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211104161804.587250-1-aford173@gmail.com> References: <20211104161804.587250-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the DT binding for the i.MX8MN DISP blk-ctrl. Signed-off-by: Adam Ford diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml new file mode 100644 index 000000000000..fbeaac399c50 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8MN DISP blk-ctrl + +maintainers: + - Lucas Stach + +description: + The i.MX8MN DISP blk-ctrl is a top-level peripheral providing access to + the NoC and ensuring proper power sequencing of the display and MIPI CSI + peripherals located in the DISP domain of the SoC. + +properties: + compatible: + items: + - const: fsl,imx8mn-disp-blk-ctrl + - const: syscon + + reg: + maxItems: 1 + + '#power-domain-cells': + const: 1 + + power-domains: + minItems: 5 + maxItems: 5 + + power-domain-names: + items: + - const: bus + - const: isi + - const: lcdif + - const: mipi-dsi + - const: mipi-csi + + clocks: + minItems: 11 + maxItems: 11 + + clock-names: + items: + - const: disp_axi + - const: disp_apb + - const: disp_axi_root + - const: disp_apb_root + - const: lcdif-axi + - const: lcdif-apb + - const: lcdif-pix + - const: dsi-pclk + - const: dsi-ref + - const: csi-aclk + - const: csi-pclk + +required: + - compatible + - reg + - power-domains + - power-domain-names + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + disp_blk_ctl: blk_ctrl@32e28000 { + compatible = "fsl,imx8mn-disp-blk-ctrl", "syscon"; + reg = <0x32e28000 0x100>; + power-domains = <&pgc_dispmix>, <&pgc_dispmix>, + <&pgc_dispmix>, <&pgc_mipi>, + <&pgc_mipi>; + power-domain-names = "bus", "isi", "lcdif", "mipi-dsi", + "mipi-csi"; + clocks = <&clk IMX8MN_CLK_DISP_AXI>, + <&clk IMX8MN_CLK_DISP_APB>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_PIXEL_ROOT>, + <&clk IMX8MN_CLK_DSI_CORE>, + <&clk IMX8MN_CLK_DSI_PHY_REF>, + <&clk IMX8MN_CLK_CSI1_PHY_REF>, + <&clk IMX8MN_CLK_CAMERA_PIXEL_ROOT>; + clock-names = "disp_axi", "disp_apb", "disp_axi_root", "disp_apb_root", + "lcdif-axi", "lcdif-apb", "lcdif-pix", "dsi-pclk", + "dsi-ref", "csi-aclk", "csi-pclk"; + #power-domain-cells = <1>; + };