From patchwork Fri May 19 11:29:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248245 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 659A5C77B7A for ; Fri, 19 May 2023 11:29:54 +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=jlRtGvk1Fj2QRlXhp2ZjLjbKQDfyBJT8zckzGDodtvU=; b=GCjCXFetnm8vAQ FJwSderyfwC4f8FoMaugWhWT9Jc71Og0gS6oL5ctaI4XPPQiQ+daRRfG+dRtvm2T38UtEjRn+UGpc m8Wbpt+wzYAvl69CKIZcEYR/kY6TBgWxXceCi2bzxJCPUq12Fn/ZwjlbyL/kncSjOe0+0Via/2D4W 91rBSs70mAqR1CAGBqNI+DXNbN6ly/G8M8eqyJ5HfqTFjpfD1G0F+vr/EfugVgEMiMMazFbo2rXi1 8OJ1DmJWrE27IwC2i9dP+hJvv1X/XtOUbwdKdaR7qK8L+PXdOVn5YueWBDH0TiFR8NdnXbrdF1I+f Z39eVD60qtDQz4/5VBKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIa-00G6qM-1F; Fri, 19 May 2023 11:29:28 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIX-00G6pu-20 for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 11:29:26 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1840ad6769fso512385fac.0 for ; Fri, 19 May 2023 04:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684495764; x=1687087764; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pv4K+qiU1O4o8owbKu+jiaXfleyVInvL+71QwhxE4qo=; b=hLUNg+CEJwuxnfC4QvugTTW6++MLbFlnLM30RfeFRh+qQJvBpLwqg63agS5sAZ8CW9 UMGZ3ICcKk4DcL4NY+q10+asR6Ms5ggTvKQ6Y99GwBFJixSawOgLQUtmSt+yBNO/aRPU XqKUdY9DU+eNugWX+xZflJDBBoNRcKSJeNI+inMt5XoH4EG4vLf/rsHCL5etF0lYPv1R fVRg+6JiBwfIJz+m+7yUsnSdCQYm/TihGXiLDP5OCI9qECH2NXvcz4f38GwE9/WHmZC8 NvTjOlWa80rR7GlO0beCnikHiBqbrr64VGLavRlu89XCoDlGWidfiEn//dIAOEkd6ee6 C53A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684495764; x=1687087764; 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=pv4K+qiU1O4o8owbKu+jiaXfleyVInvL+71QwhxE4qo=; b=dqhCKNzIpOavEvF4WY1eW9r/3aR/qsk4mIl2+RnTCmxJ1c4JYjsK/n9EdBLbK14k9K BH4ccv5TaMpuV6/quvXTBYOEuywYT30V65VCHn4aclGTcc9DDSCQZ1p/ScXZ+QmlI6GM TIIPlj4oaqAX63Py1yUmB5pNjrd1nRGr6GP3pnAh+jxu6xjnay41eG6NEpTfSNI58riS Q2dCtYsUpektGIgSsU5nAU7DFm44uuUj/YNoEKFqRp3d27cISuwfYU6jhnK3rBbIWwpm E3nqStlwO7ht9ucAsZQHfRa2Yf2sGcq48vbW/tUdvwySZQXMlfw/6zahulNT5AeLlXBP IYFg== X-Gm-Message-State: AC+VfDweE29vD4bytFlSN4+/UBB52Xotd2D51I64bBlAFNqNAVdY3RJU Z1Ltetny+l/ToSpqqiCPqT6DMCqVoL4= X-Google-Smtp-Source: ACHHUZ7VxDjfQos10tGqW88CSYV8XKWr+Vg+fHUv0h2JGafB5OlJ5XKLUbAyKuq9Kfca0MQMIoMurw== X-Received: by 2002:aca:efc6:0:b0:385:d91:ee30 with SMTP id n189-20020acaefc6000000b003850d91ee30mr885517oih.3.1684495764248; Fri, 19 May 2023 04:29:24 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id u1-20020a4ae681000000b00549f4d87eecsm1327679oot.30.2023.05.19.04.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 04:29:23 -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 v3 1/4] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Fri, 19 May 2023 08:29:11 -0300 Message-Id: <20230519112914.309669-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-20230519_042925_664057_D9CF3357 X-CRM114-Status: GOOD ( 10.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 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 v2: - Newly introduced. .../bindings/display/bridge/fsl,ldb.yaml | 28 +++++++++++++++++-- 1 file changed, 25 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..cd63f9ef9484 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,28 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + enum: + - fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + reg-names: + items: + - const: ldb + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: From patchwork Fri May 19 11:29:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248278 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 D23B0C77B7F for ; Fri, 19 May 2023 12:30:59 +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=0I3mNRst5UXMVML24FpFGw71S5hRXGNvGyeGfP9I1FU=; b=Xd7tFyFCV4rWDD 1qDSqo3lgEc8HGVe5nQJVSGE8KndVxFpY4640LQTMmi+po/kBrEPJsJz5W42/2z956q1cxfYa5Wof QVqdobTp0Lg3fFUJZuROhDe14E0DIWNviSBx9NqB4UWP3UCfJT1pZ2d6o6NvFth6UdzUomswBOMk6 WGPVjhi+FHlAq/zMtegUh+4m5SF6AD3IfmvcnLBSdX0L3sMi5VxjvulrBBuXL7CMSp4P9rapPRiSM vgxBuUvztsnsfMVV4JMnDf/LhrYyLhX92W0qpUrfH8WLYDu4eUtrRIt/T0ydJ8NUSIuZdm8asA5Xm GFGMvjdgtmedieVjLS4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzG2-00GGae-11; Fri, 19 May 2023 12:30:54 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIa-00G6qL-2M for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 11:29:30 +0000 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6af440f3243so190978a34.1 for ; Fri, 19 May 2023 04:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684495767; x=1687087767; 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=Q5VCh3splQllakU0zsuqaptJDBVLQ8dXVBWCNrZtq0Y=; b=BPgfGHDEgQjFTtmkUwx711buzWEoIcVtbUNPWP8/wShtX8zNlYgEURTD8X/k6bD+hb qznIWvga3Y8ntQ3udYs2hanYT681Hp40zKroaVghp2ya1aPv8STV6CT18EfDRp0QjCyd Epy0gbLdSJr1WagYfU3gX7IAe5d/KznUuxDE4+7///JPGWyn1qhBtsR5PBTPlzhLvlmB S1C8pNrekQfISGsUjDbt5HM5LqtOEInq4G0fSToS4p8wGU285GJY2SD9c7ftdgBqDjXc 5T5nPqNmi0p+p/fnJzEQNsOMHWyH8VYYmOvjlrXuMPP+UM8XsdwRZ+CY3ZHqHAmTuiva oCcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684495767; x=1687087767; 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=Q5VCh3splQllakU0zsuqaptJDBVLQ8dXVBWCNrZtq0Y=; b=FmlaLr1Pnfyx4eNVl9euj29+EqI3x4ggr0COWckdhEeIxzX+Y8cWkAxdcpTzeHnoq8 1lGppAQEcltttFNy+5AbX3NjXZE412Lvf0jkT6mLB7C3X+tDS9hsihTzShT+rBHJznhn Vs4lKntR3xJOkXHOXpe6SiPNc95t9w9/afa8fpIRPrLO0dJjn9SMskw+CO+BB8GqU4R8 dMib8IFyEqEvTk19aKSbvHI+vbOq1QoLvDVfV/Ic3pCbmXW39euNB9LVkzSUczHnXzIK 7p+8WD3t2mPBMrcSf9CSFJ3Y2pkJse0A4fyfkd2KF4jTkRsl4oBkiKMfRFaPbwutFKBq rN+Q== X-Gm-Message-State: AC+VfDwydsLuoGc0I6gOjMhlYM7HsltjAgckzXm2LxhnV+M9IPmfYnjJ txDikicQMR0uLWseKqsAiyc= X-Google-Smtp-Source: ACHHUZ4xTLFMlmsGu66HllebCh5EENHjSQnBB8Nl0EXeTenRz8HpRK+uqbF7FFnaWnygi8fo0D8f9A== X-Received: by 2002:aca:c1d4:0:b0:38d:ce1e:30a3 with SMTP id r203-20020acac1d4000000b0038dce1e30a3mr718983oif.1.1684495767526; Fri, 19 May 2023 04:29:27 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id u1-20020a4ae681000000b00549f4d87eecsm1327679oot.30.2023.05.19.04.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 04:29:27 -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 v3 2/4] dt-bindings: soc: Add i.MX6SX General Purpose Register Date: Fri, 19 May 2023 08:29:12 -0300 Message-Id: <20230519112914.309669-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519112914.309669-1-festevam@gmail.com> References: <20230519112914.309669-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_042928_767529_168388AC X-CRM114-Status: GOOD ( 14.34 ) 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 v2: - Newly introduced. .../bindings/soc/imx/fsl,imx6sx-gpr.yaml | 83 +++++++++++++++++++ 1 file changed, 83 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..9336e87cc976 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml @@ -0,0 +1,83 @@ +# 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-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 + + iomuxc-gpr@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 Fri May 19 11:29:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248279 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 CD795C77B75 for ; Fri, 19 May 2023 12:31:00 +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=1Yx9VuyRpNwZVuBaHXn2pkCHukIBuJfDe9EfNiisJUU=; b=i1s5JzKeRa60d/ 3DRj625ZqpHnl3fCmvsAoNQGbUxjrShi32nmHCfC6qXLj85rAzYxo8JkZu2kTBKB09Bssg9xTBad1 71Jxc4kQjLeMdBLf0a0+1BGEmYQ4L3e/DZXIW29qJ4DnsOp9L+kQgrpPFswt4cohXh63slLT9KJ2i wio1ciM5JGuCrwwrhkcyGI+/cxCFTiNYMcPl/n3bLfr9wl/kGf3G9EbSTY7usmorr3IneSfklIQi9 /6JDXHKtimS4mFZrFXL+kKTeHwokw6gy9jFpR64E+Ehlldp3J/T72DuCDmAx1liT7Eg1pWGXaRmRH e6qfru0O9ltTS/OIKDEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzG2-00GGau-2b; Fri, 19 May 2023 12:30:54 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIg-00G6rA-0Q for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 11:29:35 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-54f8e5472a4so469713eaf.1 for ; Fri, 19 May 2023 04:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684495773; x=1687087773; 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=ejT1HekoTuTtiQ5rliaJhJUFFTJ26UWGUs+MnEQ+4SA=; b=qGeFcBQk1WGA1ZaWRCqqnHaPCeN+NAjGrk71UGRbatQRDqVV99uqPYtgt26pPMlSVg 4Ral0RyhMIJttyY1YPnxV6qMFejSvRPqg7CoD/6nRgMEEALIJkVr2Zt7K88GtNfO7GF+ WK3vUMTM6cKJmTapqQebj1XaHLLM6M5rjhU/F748QrFgd7uJqKO0bjcOSnC6KgaBucO+ ekOG3dhaxt5hbZg6aEvlEvTjwnpt4iqKyMSeEdjWLZ8O042FqeERBB9k8M9fwKfINIi2 3L5nFrsgr0YcG56O/1/B70CtlkwPxRjiCMCuAU7imCUU46aOmMgMkEmOF2Iz35LoevYt iRJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684495773; x=1687087773; 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=ejT1HekoTuTtiQ5rliaJhJUFFTJ26UWGUs+MnEQ+4SA=; b=hNs0L2uaoRU0aKagZgye+oiUBCbWog9OxSGAdIy+Q5j3oAKyt6QNo2dQYBTvJYQqnd e4sqv/Dcr2sdK68y1zwgiWvOfcjRJbp3cy7ZQ4vTXTUQKiG0cjE4AzxULrAsEPSRWkDB 1jptZ3jJWKNK1poTtaaAFxAtsEtsi5lgv/B9oATdyje2zn4JfUJE5ApqDi5zKtamLFtq DI5CXK7B75gKlptunqjVKKi4Iro5BSYGrrVcNp4PzqJWCPFjwLfMgzp3qe11xAfK1ufM nC1XhWDPJNTqYZkEt3zAaJCj03KWcCjxntnahTLDEjOdWh1G+Nwl/Z5D3VzD/Xf8+kW0 Nx1g== X-Gm-Message-State: AC+VfDxjvhfgJXCub5aonTQnc7JgxNsswBELuoy60dNZ9HeMKZg/m+P8 cKbTcypDFui7c432XwTEITY= X-Google-Smtp-Source: ACHHUZ6wU4RRaQBqezoxRjWB9ZC2LARmL/O+oU6TTN72et49AdQnJqLBhL44+nCuVbqvqLppgN9BoQ== X-Received: by 2002:a05:6820:16a3:b0:54f:d702:a405 with SMTP id bc35-20020a05682016a300b0054fd702a405mr765990oob.1.1684495770981; Fri, 19 May 2023 04:29:30 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id u1-20020a4ae681000000b00549f4d87eecsm1327679oot.30.2023.05.19.04.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 04:29:30 -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 v3 3/4] ARM: dts: imx6sx: Add LDB support Date: Fri, 19 May 2023 08:29:13 -0300 Message-Id: <20230519112914.309669-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519112914.309669-1-festevam@gmail.com> References: <20230519112914.309669-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_042934_169617_16018661 X-CRM114-Status: GOOD ( 11.66 ) 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 v2: - 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 Fri May 19 11:29:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248288 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 38B34C7EE26 for ; Fri, 19 May 2023 12:41:58 +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=KS7oodMoL5EzlTQxvFLh6uwt9es0XRt41O7aWcvzEpM=; b=mJNc4Djl10wPf4 /cZNTTmhog8CD7FLeuHq52y9tWcRKA3f7NYSH09ZRi0vo+wTRVOHob4Y7Nmlcr+pRI9KT2WYNdyH6 K/HWq1xVzpJuxpX7W/NPG/I40LvFhBzth9y3nfMQmqfKn/qj9fdZ+d0YVS05KBD5OhP4i8NGWr9gv OIpfcBE2JCg9hJJ15dOeAhAJXqJOOVb7Mqezn3nGJB90u/iBgMhUHc/VLmz+vxE7FXv/HY3qsa03L 2FW9MRRZPurUO38ZBQycVmcGEBiyhSsPQaMCOVmnBCnEtc6/qGpdv/K9G/qoRPKV2lcFI3XUnviuF l0TNevgE9zIcnDMt+7NA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzQL-00GI3y-1H; Fri, 19 May 2023 12:41:33 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzzQK-00GI32-0i for linux-arm-kernel@bombadil.infradead.org; Fri, 19 May 2023 12:41:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=h5jOz9GqDO0KJYsyRHy4DW8Mcq383K9trAtwF3q01V8=; b=gVl9vlUIf6lMvq6B2NDvT7X2yM UysW0gy0s2nfq6TXCcUagLZwYo41mns1vkJxQibYeaJUIZF6gMNHawk8Dfr8/FvLoqpzuurFhcWCm 1V+nghJW/wWf/CLjzndLj2L+z1BaiDY4yVd7qMKOB7vyoE30bRCRrbjShfxzHcEqk37nzYZfED2Kh xLUU6kfw5QROjoOudmKb8+wJokfuXtdXGzVb+QJeJe/OBGc6pAd8vGa/kKU7BPyY2gF0eOKDkBfGr HGLEDSnjk0qjKwAA+gp8wXyFVEyJuNCn2x368TBg/Tzx2yJzlKqXO7+T1c12qsPr/KokjoeSS458y 8IFStmOQ==; Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIj-00FsVZ-0j for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 11:29:39 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6ab1b3aabc9so472558a34.1 for ; Fri, 19 May 2023 04:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684495774; x=1687087774; 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=h5jOz9GqDO0KJYsyRHy4DW8Mcq383K9trAtwF3q01V8=; b=glFVwK6PywemTdJqDbe6Kz9RGom4br6AysaRmaenZoJjPJ+167CSyTcm3g287yQyqz V06YwSkL9uq++k1UuO9QFaXTDp/Z2VWZhdE3YKtLVZXyqo7veNF5lfaqHm2x47i9DvCP Et0bIURnx6i9HqwhMori7LWf1hLQBY2ZLfxP5QsGznybSnEUV3wU2L6uIeq0G0PkbSbe S3Um3e3mpdfj+bHqSF3tNnnx43N1Zfca+HRqpp0JuHxrcgjPoZFpZwxArAQw1aldhk5O seZd86c/UCKfmQdNMkiul69Tqj/H87KYYI0wtZ7Dgmacb7/3Dq5f2mbVy/Eqg18s+GLd W0Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684495774; x=1687087774; 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=h5jOz9GqDO0KJYsyRHy4DW8Mcq383K9trAtwF3q01V8=; b=eS47wW6GZQTKxTQEXf584ip52WgvCSR+hjmZmMElpVu8hUFvn9zmUk8WHMIZqe0l+S U/73t7Z6oyRi3n7lug8qcQUYvbmLPKcq2GebD1b31OpNacwQzadCYUG5P6nU/Rn4Ipox lWSQsT+qBBlLJvT/AWtuLnMXEC1TX+TRvwfSPIxsRAEA7AAFGlZGLz58ybMTq5l6EiBe zbVjqUy0JZF6hMxghbJCaGzk2L5zbw/ORR6Y1lJ5bg6P0EnECvxJ4agkoyAamK7iCx74 avMMccKkcxHSoEkW+aWnfWrKn3YHftGEA5HQraM4mS6A0QreWxHE/HMNaYs5EhdZ4W7v fkvA== X-Gm-Message-State: AC+VfDwH6Hy0LuuyCuiGlv2y2kRVmtC0qnvtBsOZKco1zQ9GNEysOsse Y5iDQ6cwja7OmieYIranufM= X-Google-Smtp-Source: ACHHUZ74AD+Yed5cmsPbLg6/tlT/KpxTCGSu0UwTl1RgCBI48ApO1/TB3TX3CwXH6dqe7P6/Krm56A== X-Received: by 2002:aca:a808:0:b0:394:66dd:cb47 with SMTP id r8-20020acaa808000000b0039466ddcb47mr816882oie.0.1684495774317; Fri, 19 May 2023 04:29:34 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id u1-20020a4ae681000000b00549f4d87eecsm1327679oot.30.2023.05.19.04.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 04:29:33 -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 v3 4/4] soc: imx: imx6sx-gpr: Introduce a GPR driver Date: Fri, 19 May 2023 08:29:14 -0300 Message-Id: <20230519112914.309669-4-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519112914.309669-1-festevam@gmail.com> References: <20230519112914.309669-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_122937_339495_5AA50634 X-CRM114-Status: GOOD ( 16.54 ) 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 v2: - 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");