From patchwork Fri Dec 24 05:23:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Yushchenko X-Patchwork-Id: 12698796 X-Patchwork-Delegate: kieran@bingham.xyz 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 0C66BC4332F for ; Fri, 24 Dec 2021 05:23:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351318AbhLXFXn (ORCPT ); Fri, 24 Dec 2021 00:23:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351105AbhLXFXm (ORCPT ); Fri, 24 Dec 2021 00:23:42 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 338AEC061759 for ; Thu, 23 Dec 2021 21:23:42 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id g11so16962800lfu.2 for ; Thu, 23 Dec 2021 21:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3vLn3V8hakrMnbWh9eTJX5Ws7e/fiZzoe10eOrTOCq8=; b=FHrkXdgcVJ6I4Cr7CEfnkrWcfzhb5v4om4TFV9enflli5haSp9odJBhecbmC0B6AxC KhnWcCb5UIRr97Mz8M9vGJrPmONYz1N/M5slOOb13NiXTQ3Y1NDq8kz2GYav6Q2dl6Gh Swfa1I2I1CGrFdWpDd4mghTZ4OrSM+NwvmWs4kl7dX8smza3jVzszNAsyxLzCfAZCc7R wSmZg0Vao3qr3XblzmeDyVm0Z/ziLWxLk1zdXJEzkqIOoZczP/ePCMKYCokEz+xI6Zw8 BhSJggBkaTjwZqLz44xkUebaHLarLYH5rAncMhcVLfSk5+2aEny3N/Rm9VMP/bCC9jz4 ZD9A== 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=3vLn3V8hakrMnbWh9eTJX5Ws7e/fiZzoe10eOrTOCq8=; b=SSCdvO4izSOuCmCe2WqXelr1L1RUR7mU4hYCWdoAvKG7GU+wc82bAuB6H/oUjBolMs ZxnlKB6K+GIjKkN60wpBX5EdPitM8kKpdbFDBBsESMbcCAPsUeQxeGENtQRN2K2qWSdL DwczizQssUtTuWNBR5rggruzrTjJ4l6AmvCGDllPaDEkDEBnCHejTKsY0VVutIdm4Pl2 U1GcVLZph7C6E4L0fGZfEDcex4W9mTZGxac5okENrDyLR3AHMzWZygb2N/HMLn8QhXRU X/Cth33teTK7963wgV8c1pEIowpFMMTpEuqASx8hRO1GNc/uy9vG7BqV4qFIjt/M9sqv SLCg== X-Gm-Message-State: AOAM531x26TWSCzkjJFQIU+Oo7L9D2oXX7/bJxLQCmgPZ0zXFzU7FCMm 03N9JBupwqpJKUVra+5BshcLvg== X-Google-Smtp-Source: ABdhPJycx87ictKT8G0oaGXYgKX3KGQb93rTh2lVD1X1vPRpPeQuD1GsvVvaBwhKLFj/JYCBabnhFw== X-Received: by 2002:a19:f241:: with SMTP id d1mr3883660lfk.131.1640323420407; Thu, 23 Dec 2021 21:23:40 -0800 (PST) Received: from cobook.home (nikaet.starlink.ru. [94.141.168.29]) by smtp.gmail.com with ESMTPSA id e13sm702858lfs.306.2021.12.23.21.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 21:23:40 -0800 (PST) From: Nikita Yushchenko To: Geert Uytterhoeven , Magnus Damm , Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Rob Herring Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Yushchenko Subject: [PATCH 1/3] drm: rcar-du: lvds: Add r8a77961 support Date: Fri, 24 Dec 2021 08:23:07 +0300 Message-Id: <20211224052309.1997096-2-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211224052309.1997096-1-nikita.yoush@cogentembedded.com> References: <20211224052309.1997096-1-nikita.yoush@cogentembedded.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The M3-W+ SoC has the same LVDS encoder as other R-Car Gen3 chips. Add support for M3-W+ (R8A77961) SoC to the LVDS encoder driver. Signed-off-by: Nikita Yushchenko Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c index 72a272cfc11e..8dbfbbd3cad1 100644 --- a/drivers/gpu/drm/rcar-du/rcar_lvds.c +++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c @@ -901,6 +901,7 @@ static const struct of_device_id rcar_lvds_of_table[] = { { .compatible = "renesas,r8a7793-lvds", .data = &rcar_lvds_gen2_info }, { .compatible = "renesas,r8a7795-lvds", .data = &rcar_lvds_gen3_info }, { .compatible = "renesas,r8a7796-lvds", .data = &rcar_lvds_gen3_info }, + { .compatible = "renesas,r8a77961-lvds", .data = &rcar_lvds_gen3_info }, { .compatible = "renesas,r8a77965-lvds", .data = &rcar_lvds_gen3_info }, { .compatible = "renesas,r8a77970-lvds", .data = &rcar_lvds_r8a77970_info }, { .compatible = "renesas,r8a77980-lvds", .data = &rcar_lvds_gen3_info }, From patchwork Fri Dec 24 05:23:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Yushchenko X-Patchwork-Id: 12698797 X-Patchwork-Delegate: geert@linux-m68k.org 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 DB247C433EF for ; Fri, 24 Dec 2021 05:23:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351336AbhLXFXp (ORCPT ); Fri, 24 Dec 2021 00:23:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351317AbhLXFXn (ORCPT ); Fri, 24 Dec 2021 00:23:43 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E738C061759 for ; Thu, 23 Dec 2021 21:23:43 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id bp20so16899991lfb.6 for ; Thu, 23 Dec 2021 21:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8p5cAhIlsS0RVNWJwJlMF76TH5CwTtvB0RF/Dz+Mi38=; b=baDEms+uzCHi3HYHok74MXuUK46KTsfuP+YqAZsGbvywpwmxu85G64pCns3LNg5DMj KvYpjVmlpfJIVLW+YVLOUBXNMPFfjT+Mso/TSTweOI7XL4chwg7e5beZKzLhRebQsfel MeMg5iU6Kt6QLWm9UIruT5H32QK0aZ5y6Fqa51RxIi4hH4zr9zn514OqyJR/2TQJy0Mp F1Wei/sB1BvZe7YoM5YxUqL47A9uZ+/T6vrw9VXwjVTweXHkyF9v6sqEGfjg7cVGlDmI L8SlMVzOCw+M6puwGUckor6tOuzmGewZ9wwWJdOl7fIgfoqCJ+FkloY386QdSKQupmOg QkHA== 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=8p5cAhIlsS0RVNWJwJlMF76TH5CwTtvB0RF/Dz+Mi38=; b=8Gmn3kNycmDexQ4ABzFwziSB5j2OYCuRqkkskuNRAppkKZHwHb0gAjL1Mvs16So+DH TI6hVGxauzXKdCJHfdN8OV+uStxSFK8dKMhS5Gc5k2Zd/OUZFPDulxmasKTgJ9JZ6y0i d63P1ovTOj3sLMVLi7eP/HaUnYmBl9fJDQ3LtZi9bovXLw+W+2kuIuvukax6eIMq1Tlg iEWdEtDgX8CDsuXpRXp3SRQxS4Ems2fNsOtoRY+uvvn6wzKWPmAry8LRnKz35f/OLs7u hIDUQvYL6cMgxZWgx9V2omcdEuVq8NPmlzDKHXJ6QCfy2H65BaQbhvrp+VxNfky6M+RL Ol9A== X-Gm-Message-State: AOAM532P6xPX/r7ER2iWRuTH8OfovWe+ys9dLm37V9gMyNUjsdxBy2B1 1pDA9nRubiQhts8/bNwoLejxcQ== X-Google-Smtp-Source: ABdhPJy+HN9Nf9T96QkeX0cpn8ucbeHE1l2R9SUX2XR+Qg6BdgeJDGp6k+PB5axfuBITIXZDhvTjTA== X-Received: by 2002:a05:6512:15a7:: with SMTP id bp39mr2903128lfb.363.1640323421226; Thu, 23 Dec 2021 21:23:41 -0800 (PST) Received: from cobook.home (nikaet.starlink.ru. [94.141.168.29]) by smtp.gmail.com with ESMTPSA id e13sm702858lfs.306.2021.12.23.21.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 21:23:40 -0800 (PST) From: Nikita Yushchenko To: Geert Uytterhoeven , Magnus Damm , Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Rob Herring Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Yushchenko Subject: [PATCH 2/3] arm64: dts: renesas: r8a77961: Add lvds0 device node Date: Fri, 24 Dec 2021 08:23:08 +0300 Message-Id: <20211224052309.1997096-3-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211224052309.1997096-1-nikita.yoush@cogentembedded.com> References: <20211224052309.1997096-1-nikita.yoush@cogentembedded.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Add the missing lvds0 node for the R-Car M3-W+ SoC. Signed-off-by: Nikita Yushchenko Reviewed-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77961.dtsi | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi index 86d59e7e1a87..a34d5b1d6431 100644 --- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi @@ -2718,6 +2718,33 @@ du_out_hdmi0: endpoint { port@2 { reg = <2>; du_out_lvds0: endpoint { + remote-endpoint = <&lvds0_in>; + }; + }; + }; + }; + + lvds0: lvds@feb90000 { + compatible = "renesas,r8a77961-lvds"; + reg = <0 0xfeb90000 0 0x14>; + clocks = <&cpg CPG_MOD 727>; + power-domains = <&sysc R8A77961_PD_ALWAYS_ON>; + resets = <&cpg 727>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + lvds0_in: endpoint { + remote-endpoint = <&du_out_lvds0>; + }; + }; + port@1 { + reg = <1>; + lvds0_out: endpoint { }; }; }; From patchwork Fri Dec 24 05:23:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Yushchenko X-Patchwork-Id: 12698798 X-Patchwork-Delegate: kieran@bingham.xyz 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 E9804C4332F for ; Fri, 24 Dec 2021 05:23:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351345AbhLXFXq (ORCPT ); Fri, 24 Dec 2021 00:23:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351338AbhLXFXo (ORCPT ); Fri, 24 Dec 2021 00:23:44 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB41EC061401 for ; Thu, 23 Dec 2021 21:23:43 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id bq20so16913313lfb.4 for ; Thu, 23 Dec 2021 21:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+A6R7NBtfUQnLlLDkSBl+KL94Li6QNQFhWmSmSRXFes=; b=T+j4o5YtE3hx3HWodazGWr+DMJhdsDMjBjNNr4kfrcKEjB/Y+DnF80FniEAppTSWJZ fI2O5+RlOFitBe88RtpukpDWl+6K/rT0/dD8YzPDqH8rooaogqsUe9CMFaDw771YLCSz 5MzAlJGEHjfDMwMHb0/l82bvl5RXauwU9xBpmhdM4KXf+9A3lAYQIauW2QaZbEvl+Q0B 4a0a98BtRewN1Zdzkp3Xk6Je0rFf//bGxe1b+wY0KpnxmwOY6LeetVrlPiuBj2tlgyqH BE1pWujq2lYxsZglorCeEMdwZHSC3rTvvC2IG5FHrRcPTeENjJV3XU+hlag1ZhIgD2CQ MtLg== 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=+A6R7NBtfUQnLlLDkSBl+KL94Li6QNQFhWmSmSRXFes=; b=i9KN2QAwKQ4fWiGKxyBROZiUkMDBUMXjjmC1b7GPdYjI4SthmbjBlBNYhOR3PAELnE wD3Kr5K1glu0IMfqujbkd2Vhr+zlKpXR/sxPhOOt/6oyj1Zuuj+TO5mIOfmwKNpdALS7 QZ6lpIZK4EbCemPZPjZ62mD+AzU1eRMG1b838NO75w5qQ1tN9rxaYteQ610SwnCXf3cQ lDSLl7nGxRpM/8OaNtWvMKI7zYZTkQ+lA25N3o4wuddzNUGcVYgfA4ARmt+fCTEH/THr wskvMTXrOkkVEY46IKWKXdkdvDz6XyXkQERnyIeFmHy7mjwjkxEMn7N8wtl7gyVvmMx8 QpiQ== X-Gm-Message-State: AOAM531KkHxv2gs/UcCjdiIRHiTa49GOoUNnXoTqNXrgXD6NrJRGpjA8 mfrfWyqkpRWK+zRe53rERSmDRQ== X-Google-Smtp-Source: ABdhPJw2hgZNyZhh1NpwjrhB8tKAf5hRDZK9f2T43eAkIbL4fGq35UrtZxCmRf3mIhJTxldmA6SbVQ== X-Received: by 2002:a05:6512:10d3:: with SMTP id k19mr4010796lfg.448.1640323422107; Thu, 23 Dec 2021 21:23:42 -0800 (PST) Received: from cobook.home (nikaet.starlink.ru. [94.141.168.29]) by smtp.gmail.com with ESMTPSA id e13sm702858lfs.306.2021.12.23.21.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 21:23:41 -0800 (PST) From: Nikita Yushchenko To: Geert Uytterhoeven , Magnus Damm , Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Rob Herring Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Yushchenko Subject: [PATCH 3/3] dt-bindings: display: bridge: renesas,lvds: Document r8a77961 bindings Date: Fri, 24 Dec 2021 08:23:09 +0300 Message-Id: <20211224052309.1997096-4-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211224052309.1997096-1-nikita.yoush@cogentembedded.com> References: <20211224052309.1997096-1-nikita.yoush@cogentembedded.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Document the R-Car M3-W+ (R8A77961) SoC in the R-Car LVDS encoder bindings. Signed-off-by: Nikita Yushchenko Reviewed-by: Laurent Pinchart Acked-by: Rob Herring --- .../devicetree/bindings/display/bridge/renesas,lvds.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml b/Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml index acfc327f70a7..ca5443e5c2e3 100644 --- a/Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml +++ b/Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml @@ -27,6 +27,7 @@ properties: - renesas,r8a7791-lvds # for R-Car M2-W compatible LVDS encoders - renesas,r8a7793-lvds # for R-Car M2-N compatible LVDS encoders - renesas,r8a7795-lvds # for R-Car H3 compatible LVDS encoders + - renesas,r8a77961-lvds # for R-Car M3-W+ compatible LVDS encoders - renesas,r8a7796-lvds # for R-Car M3-W compatible LVDS encoders - renesas,r8a77965-lvds # for R-Car M3-N compatible LVDS encoders - renesas,r8a77970-lvds # for R-Car V3M compatible LVDS encoders