From patchwork Mon May 22 12:51:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13250512 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31AFAC7EE29 for ; Mon, 22 May 2023 12:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=f8hnBjI6yUo0MKmJ6vANAMXzmEJcyZr3liiS32A7F+w=; b=DKFUUcGQTu+6oQ J50qoBrKlyWL1U6ueiehLK18a5fB0nnII2eN94HmEUuXQwe9a5SQlbOxxWEbGjoZLWJuacQ0TvMIX NgULjPdoB1iCZsfgHYbpuE8QVYrBbEcP8sW6aSfXjstaF6RsRni+JOV+ixkprWKMzsUUp8pwQKZ8o RmSTObTsj305YeaV9JS2GaE9RtpK+X9vMlRTbFj2STsQWLoV5r9ho4gEQx46fek5I7E+VlqrCIwsi /NDTuLKO/3GofZlNuVJEOmC7QmSDCx422JexyxrMbJgpwNPNruXm1FTWyJpY1OSLkQILoRbGd0Tu8 DzkEKxz0/7DuzjBceHZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q150y-006YZT-0x; Mon, 22 May 2023 12:51:52 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q150v-006YXy-1F for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 12:51:50 +0000 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6af8a21556fso2776a34.1 for ; Mon, 22 May 2023 05:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684759906; x=1687351906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YYQC+PvpKE6bixEeuKCSpjLHIDEpJf3TOHQP6i8oRkU=; b=OshAi+QYS9WztNMntr7xxIBK1rrCcxLTEj9enONlb7XnTP25RAGlpUwkL/rwHvJ3zv MIaGEi04I6MA3nZ/umDci33LVBedSxuwTuvYtuiVu2sBwdMVx2DJLcE7O211+UrjQw8E Q0RyPU/CwQcBuo/BNWHyjkolMcYamFU95bUbtEB4Of2Uk7MpSHCd4Rc5Vzx9dzv/Hr0J 2CHx1RrbcpT59ro7wgs6Lr27xxOzgW8fRjKtsuhcpwKOjO6DfGpygoquPC/qXmHiWPeJ hWyg8vdKMO74WR50Xr6Cnhex6VDLpviujkdpKtpLNQ7A5P0KXrozBP1DQrxtxpL9RhzE pM3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684759906; x=1687351906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YYQC+PvpKE6bixEeuKCSpjLHIDEpJf3TOHQP6i8oRkU=; b=NdJ+yYPsUBFg1Z9bBNo9e4+y+sozZ2Q0FTkPyRrLSL6roRR/SeoiqsPHPrOVYcqfoc EpmgnAOWD74ZmtX5ddh0oep5RLo9t+268ObhlG/g5+Z24j6F7dh3HsPKzuJquy4L54Vh nOoSZerZsb6zSO59Mvx2/g+KVGsnTYE+bbHOVBDqSVRsF/r8/a3kDqfOtPQxab+td3y8 NbCFpB7kunEXTVnTB97TKv4kIhi9zeIsYcZPefwJxiTiFRG3g/qbwHQKV7aFiv2S+7T+ PNbUsdupig8DlqzLFCw5PEHslLhCOoPkZlJdXRVcA2Dm8XdkpuJujyck18M4dGgNGl2f H+Bw== X-Gm-Message-State: AC+VfDwLeS1zKKkCrUeUtZaQRdN2wqC7FZdkjhUe/r/5gg6BN6AISjDT FUD26dYgkiCswKq3A1GIC9g= X-Google-Smtp-Source: ACHHUZ7q6CpWKKvPeoq2ft4TtR+AJ6XK6iG152lXCNduUlOBfdr9DjY+hqrhuLJFkotdvy5dpM6efg== X-Received: by 2002:aca:efc6:0:b0:385:d91:ee30 with SMTP id n189-20020acaefc6000000b003850d91ee30mr5061801oih.3.1684759906172; Mon, 22 May 2023 05:51:46 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:b71d:e403:4337:204f]) by smtp.gmail.com with ESMTPSA id r126-20020acada84000000b003943e08ee03sm2676408oig.16.2023.05.22.05.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:51:45 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: marex@denx.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, conor+dt@kernel.org, Fabio Estevam Subject: [PATCH v5 1/4] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Mon, 22 May 2023 09:51:26 -0300 Message-Id: <20230522125129.526604-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_055149_422562_B78C6608 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam On the i.MX6SX there is a single entry for 'reg' and 'reg-names', so add some logic to reflect that. Signed-off-by: Fabio Estevam --- Changes since v4: - Replaced items: with const: for the single item (Conor) .../bindings/display/bridge/fsl,ldb.yaml | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml index 07388bf2b90d..d97064140547 100644 --- a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml +++ b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml @@ -28,12 +28,12 @@ properties: const: ldb reg: + minItems: 1 maxItems: 2 reg-names: - items: - - const: ldb - - const: lvds + minItems: 1 + maxItems: 2 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -74,6 +74,26 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + reg-names: + const: ldb + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: From patchwork Mon May 22 12:51:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13250514 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F179C77B73 for ; Mon, 22 May 2023 12:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XVz8o0uvFG0GohOIKcRxMq7O/21zjW57gdZL5hEnE1w=; b=woBs8mOYOQVXoN QOE+HseU4vsPNCF1zQ9uUd/XeEIP6HnpJDH9Xdj/Kn06GMz5pp2lw2pt4SQzMY0qHATYAvno+QqJC ugdwWhQOzYNvR3Fo8bVOeIBn8lDevOXd1kzuR4sH1HX+MMnzjf8RpXcopcxx4Ugrq5CRHwjAEETjR w3XmVjOhZaDNdHkmkv0l3xuc1fuYL+FUdnMjxh1I4tpyhTBt4oqWGdT9KQb+M8c0IyO+R6NYzuHiS tqeXRaNK9r1HYtmn9zGWvdBD42rktTRD3cZcaCbo/ixiSl6JAAlWFtpMoBlesO4EI8kHw1C6/lDz8 IXeJPlFT1Jr61JiMHv3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1516-006Yc2-0D; Mon, 22 May 2023 12:52:00 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q150w-006YYB-2J for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 12:51:52 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-6af6e80f7b4so147848a34.0 for ; Mon, 22 May 2023 05:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684759909; x=1687351909; 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=ldbLYPQ53l6QgDs6DrVrdEzbe69RU8gpDYBK6hgXs3k=; b=oRJPgoM8QkAxtHMxJTf4Va1Qv1a3q5p2Z6vUWboUokxKnM7WTAzHy0Tlbr3WZHa4Rx gIZ1ImjlaWpikSg90Ey1WjXDvIa58Q1pRLXxdqaNUVY2Ps+/OFZMv7+QxD9agE/XTY5p 1Cln1NkmxotX1Lxx1Mll4bBqCYq0b7pVXkF7h8hbUQU7O5VGGSPSWBGyIHKOO4MfPEJF +EijCR1B+OUw2iVwZshFje50IeKPXNGYORhk3xmY6ldPnVlNnpDW4PTEMeLHtadaS4DI ToUOK3FXdKTWQDZKBXLW1xm2t4d5J25h9VkVeOaP+zwOjnfd3Hbk2BL7RxPygYy8vfzR BQlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684759909; x=1687351909; 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=ldbLYPQ53l6QgDs6DrVrdEzbe69RU8gpDYBK6hgXs3k=; b=aDXv/KYXUFljb1BfKP+W6IcVvkepbVPg3XD25USsESeYtrVCTh3PokFsSf/6ukp+oH LBoc+rK2d4cZCv+S8STt6S2X1unwSwm5RdsXxul9g2yWiFWReVHtNmq7EoEGyy46Fhuc r4wLsH3baf8ygxpkdu/l4uuYLO9ix5HBBH5bYubwxuPWMiItN/jnaYt3Z9Z1C4Knp0MC zPyQ7amhif1zd53kdRqHBrVW4AQQPkVkKalDvca+7SQYb0gRdAB7a+4Bdk8kiemS60rf AXglirZ455pqaqCyF31J0f38/nJLFHn6r8TxKTjzGtrgpeASXHlN5kdox3mOBSwGQXjp IxhA== X-Gm-Message-State: AC+VfDyCon70ARuE3E2YJG3QkAicUDneFxctf75islCS/nt3+KQg8tmg C8JdvTeU7mNQ5M9YvNfB3Eg= X-Google-Smtp-Source: ACHHUZ4l6gNDOOQmZ8bZcZiyzAQ501+BiyTSMXo9nYYPL52U/ye2U8OHvGynCRMCduUqVCajOGbivQ== X-Received: by 2002:aca:a949:0:b0:397:f428:c2c6 with SMTP id s70-20020acaa949000000b00397f428c2c6mr2084932oie.0.1684759908859; Mon, 22 May 2023 05:51:48 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:b71d:e403:4337:204f]) by smtp.gmail.com with ESMTPSA id r126-20020acada84000000b003943e08ee03sm2676408oig.16.2023.05.22.05.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:51:48 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: marex@denx.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, conor+dt@kernel.org, Fabio Estevam Subject: [PATCH v5 2/4] dt-bindings: soc: Add i.MX6SX General Purpose Register Date: Mon, 22 May 2023 09:51:27 -0300 Message-Id: <20230522125129.526604-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522125129.526604-1-festevam@gmail.com> References: <20230522125129.526604-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_055150_751077_DF7F1180 X-CRM114-Status: GOOD ( 14.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam The i.MX6SX General Purpose Registers is a set of register that serves various different purposes and in particular, IOMUXC_GPR_GPR6, at offset 0x18, can be used to configure the LDB block. Signed-off-by: Fabio Estevam --- Changes since v4: - Renamed to syscon@20e4000 (Conor). .../bindings/soc/imx/fsl,imx6sx-gpr.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml new file mode 100644 index 000000000000..22777ecfb56b --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx6sx-gpr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX6SX General Purpose Register + +maintainers: + - Fabio Estevam + +description: + The i.MX6SX General Purpose Registers is a set of register that serves + for various purposes and in particular, IOMUXC_GPR_GPR6, at offset 0x18, + can be used to configure the LDB block. + +properties: + compatible: + items: + - const: fsl,imx6sx-iomuxc-gpr + - const: fsl,imx6q-iomuxc-gpr + - const: syscon + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + bridge@18: + type: object + $ref: /schemas/display/bridge/fsl,ldb.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + #include + + syscon@20e4000 { + compatible = "fsl,imx6sx-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; + reg = <0x020e4000 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + reg-names = "ldb"; + clocks = <&clks IMX6SX_CLK_LDB_DI0>; + clock-names = "ldb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif1: endpoint { + remote-endpoint = <&lcdif1_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds_ch0: endpoint { + }; + }; + }; + }; + }; +... From patchwork Mon May 22 12:51:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13250513 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DBFAFC7EE26 for ; Mon, 22 May 2023 12:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oXM0KHtceeV5S0uqOnD14YCDIBxCJUk9YORj6FVAzD8=; b=TNIHZxA7DtjY7T oVImnjZnF+/5izYTZ3tkheIlOeprZEFqxrx8F0ms+Tu3+/IeofmC8WwfKv4aeFj6tkdf2dj6CT7/C g7hm+iVNzWVKbXiDEdCQlDRtfZx+0pnEpmCmNcS6rWV3sBvmZ0Hl0akWiqTaiKAsGUCWgavdGRrOW FDB9hJwHpxtYOMoI7c1xzgFYlxsk8DJc4lVQCFyqnRyCxcY4JHag/lrzx4TlReOTjFqfyJT+YYsBi bO1417qLrjv3HDGFJPQszNDOpw5/31RwOiY4S4cQH1w4gSg2zMbIaoIv4UieNhJ7YQXNOQXxcZH22 +kZKw1shHfPgJVZrmLxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1516-006YcK-22; Mon, 22 May 2023 12:52:00 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q150y-006YZP-0i for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 12:51:53 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-6ab0d407a8fso373424a34.0 for ; Mon, 22 May 2023 05:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684759911; x=1687351911; 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=Q6t53yFxRsKqj5M9UZvvQ0JSzpBiw1eJPevysJhZqzg=; b=HmLG0ojzuOghaecGITsVT2oACG6peJaiYzEFVQx/kaX/iQx4if4dkxocSMphHtbU1h pvu1MdgLLNvxQw1EBUu1E0o70+ec2O3ayx1sRdhiKmgqXTISsRROVRkHrL2876QWykfy tgdi0CHHQw15cIIEI4pawPR/1u0n6oWFF9XWF5c4knPw2Zi9shlqPd19KYtr0hZQyr03 fE+JC8JwfwtKHHGVqBsAfPhNOS2sz0Ss/7SG+jJFVAnFJfUO+o7ZjAHRCCoyM8RA8cZS SLnHMwdSoiaBV/PDqBR7Yu2DJfoYGxGsYNQM+2xG4lqsDrWhSN0bKm3Ejl3GAEnhjtGA qVQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684759911; x=1687351911; 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=Q6t53yFxRsKqj5M9UZvvQ0JSzpBiw1eJPevysJhZqzg=; b=i2b9ojM/AxQNkPJLKiaOqPeg7jIrpjKLVnWA4jCgdFhlaIvTPiDIwLpUmOZbxPBw7W VZsxknFykvFkFcOBJu28dxlQiDJXmRdLJvSVYHP7EqsyTSXag/27idl4QMuxIuNHYVI3 k84+CqzgzZo/IBIzSh1bIz8qlQq0QyBC2wp8WACKdAcnEPogmgyWPYVPWZewOeajtenp Ua0fehD6rfYhENIYMwY+DkF1dYOL+ufIx1/X192qCWUCXrlk4UZ8/NzYrN5L2PpKFCWC CG6pg9F+eKOZoTEIF8qRkRK8h1CFle/uu00FT1mTdnpeyyj+bcdTsAMHPOMYxLPdOG8V 85fA== X-Gm-Message-State: AC+VfDzdoYWaWqgrDLhNuOefhUuhjuPJK7D5dN2snEmCZx7I+aESXICC Uf9s5H+Eyl1GwkNaHekoCA4= X-Google-Smtp-Source: ACHHUZ6QfUlustG3ZTrw5pvS4lw9fyls7iRIDHTpHj/WTAuW0JkNIfBtU89b2+cX4sgwbtlNPBGtcQ== X-Received: by 2002:a9d:12ca:0:b0:6af:75ad:3e41 with SMTP id g68-20020a9d12ca000000b006af75ad3e41mr1649114otg.2.1684759911592; Mon, 22 May 2023 05:51:51 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:b71d:e403:4337:204f]) by smtp.gmail.com with ESMTPSA id r126-20020acada84000000b003943e08ee03sm2676408oig.16.2023.05.22.05.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:51:51 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: marex@denx.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, conor+dt@kernel.org, Fabio Estevam Subject: [PATCH v5 3/4] ARM: dts: imx6sx: Add LDB support Date: Mon, 22 May 2023 09:51:28 -0300 Message-Id: <20230522125129.526604-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522125129.526604-1-festevam@gmail.com> References: <20230522125129.526604-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_055152_257007_594E560F X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam i.MX6SX has an LVDS controller that is connected to the eLCDIF. Add support for it. Signed-off-by: Fabio Estevam --- Changes since v4: - None. arch/arm/boot/dts/imx6sx.dtsi | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 4233943a1cca..442106565025 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -844,7 +844,38 @@ iomuxc: pinctrl@20e0000 { gpr: iomuxc-gpr@20e4000 { compatible = "fsl,imx6sx-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x020e4000 0x4000>; + + lvds_bridge: bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + reg-names = "ldb"; + clocks = <&clks IMX6SX_CLK_LDB_DI0>; + clock-names = "ldb"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif1: endpoint { + remote-endpoint = <&lcdif1_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds_ch0: endpoint { + }; + }; + }; + }; }; sdma: dma-controller@20ec000 { @@ -1278,6 +1309,14 @@ lcdif1: lcdif@2220000 { clock-names = "pix", "axi", "disp_axi"; power-domains = <&pd_disp>; status = "disabled"; + + ports { + port { + lcdif1_to_ldb: endpoint { + remote-endpoint = <&ldb_from_lcdif1>; + }; + }; + }; }; lcdif2: lcdif@2224000 { From patchwork Mon May 22 12:51:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13250515 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2316C7EE26 for ; Mon, 22 May 2023 12:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YimuLQJKICATR1H849iogYlBBhT+l4pex5uO67xPMBM=; b=BsUZJkTfkUDHNJ GhbkF7jEZZAC0nSAPTjjrfjucUjjRiUfEa4qi9LCMl7HLO1raR0XO1HQcSCRn394Yv0Tn8x19PYpw JJRLSRnUYNuF5UiWezeri7qaQHRFrgJMu+kM71BO+iu9uAhc5jhjLnuF1/Zz9D9nT39cklzwXTUGF T3/IXTr9x9V2f84atm0L2MTh4W0CSpNB4AsoDtsiA9DZmohcjf9itT7gmA7rXSLTFZtYRWcSffyp2 2l5x+OxT3oQidn4pA7d52nyxLq5ghgJf5ZAXTAanmLDasFRwbRFq2vfd85qacUEYzH+8Zrx9PlNs9 wJ7Gkga/OX/uYViK/SeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q151H-006YfD-1b; Mon, 22 May 2023 12:52:11 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1515-006YaV-1J for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 12:52:00 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-555486c9196so184769eaf.0 for ; Mon, 22 May 2023 05:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684759914; x=1687351914; 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=4P84udYyunLJpSMM/Fy+TsLscHs9AVq2BXmY6gDUQhU=; b=TNMKsd1aQIL2WeLzwtg5arme2EtDV4KipIcg8twoR81cMYwj/AeuGO0SGCwF3vrEJZ sRGNGPIjuueTFFab4D6lA10n9bs1fH+GvzFKYQG4ufoub/IP3SpzTm0YCj4/ndmi087x ZEIfFfAHyNHtS/x8AMlalCsL1a6+Nx0tzsalTFBnwQmG0V/0LzALOkWFPO3hPBU3THKH UubOiTOdwDLpza8xNsAZ+so7XyFoBqj2eRZ4hHmMN2zQadORZTcLBz98b7VssB/ldQA0 Jrwa3AY2pQNZ1yD9C3K4ZAjwTOCll3mB1vKB8Su9eXlaYYx6X7/Y53oSEwoTUVqfUG1g RpcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684759914; x=1687351914; 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=4P84udYyunLJpSMM/Fy+TsLscHs9AVq2BXmY6gDUQhU=; b=BtN9ueVVHIL2+GkDTSEjPViwt0vASg8dCW0xqwnyMVw4R2mvhvoddhbYy3o+60IdXr pGfaM9Li9iOFY+rWU7Hn14PgaI/q0AGG0SrNTy2sqbyaFHTWFsDDwI0AFhmzDnlRYAjS TJzNseEIiYzzNYLfOW9HFo4q8DU5lH2+LtG7p8/KESiOa1D/DkFoabCmYQn8wnRP8xi6 ESMJCry5hw4hgfBkFHGlUqoK6OzmH+n86XdHP7irpoLVxLYtvoxMe1JkL4p+6rEYHjGH FCl/nH2B2DCN1w6xQL6H2hwNfv8Vq7vXSCn3AUQvBbJ54mTQ9BbugDoYBBMCe3eSIXBR h8EA== X-Gm-Message-State: AC+VfDx8Qvnl3n7SxnizQyYnFFGQQJ7ws8np5RyuF+xIBU20f+mzpGf8 z2D7q/Cd+pJq9+2k6x0it0w= X-Google-Smtp-Source: ACHHUZ7bR/1ZHHF+LzMo3YMtaBqGLqp+aWguHo+x5/nouVIuik5oa4EMnEzhuyPLIoxUk1S+0133Ew== X-Received: by 2002:aca:3287:0:b0:387:1922:2e74 with SMTP id y129-20020aca3287000000b0038719222e74mr4911006oiy.2.1684759914291; Mon, 22 May 2023 05:51:54 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:b71d:e403:4337:204f]) by smtp.gmail.com with ESMTPSA id r126-20020acada84000000b003943e08ee03sm2676408oig.16.2023.05.22.05.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:51:53 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: marex@denx.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, conor+dt@kernel.org, Fabio Estevam Subject: [PATCH v5 4/4] soc: imx: imx6sx-gpr: Introduce a GPR driver Date: Mon, 22 May 2023 09:51:29 -0300 Message-Id: <20230522125129.526604-4-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522125129.526604-1-festevam@gmail.com> References: <20230522125129.526604-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_055159_450225_1BEB4864 X-CRM114-Status: GOOD ( 16.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam The motivation for this imx6sx-gpr driver is to allow describing the LVDS LDB bridge as a GPR subnode. Signed-off-by: Fabio Estevam --- Changes since v4: - None. drivers/soc/imx/Makefile | 1 + drivers/soc/imx/imx6sx-gpr.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 drivers/soc/imx/imx6sx-gpr.c diff --git a/drivers/soc/imx/Makefile b/drivers/soc/imx/Makefile index a28c44a1f16a..9840d4c41015 100644 --- a/drivers/soc/imx/Makefile +++ b/drivers/soc/imx/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_ARCH_MXC) += soc-imx.o endif obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o obj-$(CONFIG_IMX_GPCV2_PM_DOMAINS) += gpcv2.o +obj-$(CONFIG_SOC_IMX6SX) += imx6sx-gpr.o obj-$(CONFIG_SOC_IMX8M) += soc-imx8m.o obj-$(CONFIG_IMX8M_BLK_CTRL) += imx8m-blk-ctrl.o obj-$(CONFIG_IMX8M_BLK_CTRL) += imx8mp-blk-ctrl.o diff --git a/drivers/soc/imx/imx6sx-gpr.c b/drivers/soc/imx/imx6sx-gpr.c new file mode 100644 index 000000000000..7684acbe43ff --- /dev/null +++ b/drivers/soc/imx/imx6sx-gpr.c @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include +#include +#include + +static int imx6sx_gpr_probe(struct platform_device *pdev) +{ + return devm_of_platform_populate(&pdev->dev); +} + +static const struct of_device_id imx6sx_gpr_ids[] = { + { .compatible = "fsl,imx6sx-iomuxc-gpr" }, + { } +}; +MODULE_DEVICE_TABLE(of, imx6sx_gpr_ids); + +static struct platform_driver imx6sx_gpr_driver = { + .driver = { + .name = "imx6sx_gpr", + .of_match_table = imx6sx_gpr_ids, + }, + .probe = imx6sx_gpr_probe, +}; +module_platform_driver(imx6sx_gpr_driver); + +MODULE_AUTHOR("Fabio Estevam "); +MODULE_DESCRIPTION("NXP i.MX6SX GPR driver"); +MODULE_LICENSE("GPL");