From patchwork Tue May 15 12:20:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10400885 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 57280601F9 for ; Tue, 15 May 2018 12:20:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42F4528773 for ; Tue, 15 May 2018 12:20:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 375AC287AE; Tue, 15 May 2018 12:20:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9345C28773 for ; Tue, 15 May 2018 12:20:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753211AbeEOMUz (ORCPT ); Tue, 15 May 2018 08:20:55 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39181 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752421AbeEOMUy (ORCPT ); Tue, 15 May 2018 08:20:54 -0400 Received: by mail-wm0-f65.google.com with SMTP id f8-v6so691705wmc.4 for ; Tue, 15 May 2018 05:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=2hDG6xhJdV51+jsQW+ZpGYD393OnrV5KIfuxpGfc1T4=; b=VZlftWj9/ZYrxcvtAFbn+RMiSTYV2LneIjvj5pxiKkNa9CWN+TiALumdKlTQjlPNgt 64l9SL6XJe71CWKoI1pn2PqMBT6ERwB2B2s20prM+Bwz1WUL7ilRIfU0xVJh3lB2RhDM oL+YSUIWslSTOJL26WQOTwpyWAAnrdkYL5/JDT3D5AtoT1Jke6Vb/rhDYYloYoWPkBZb bTRsuyP+wgXNuAxyd42wRgia3PQVtm6x/kEBqqgRtVioD6/QzKctgaBeiddXsAyAECiJ Xb3ZkA9B1bwgOnbIS+F9k+HkVpRTkVoSfBqR1XnCEDJlaUdJbIJJ94YaFv/nHI5eTI8y LAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=2hDG6xhJdV51+jsQW+ZpGYD393OnrV5KIfuxpGfc1T4=; b=GxQnaqbSbFcJ8+6Xcf1je/FB07LIYOM75wTlxptuMkiDLNWE2DqSUn1SxIg9WCHw6l RAlHtG5H08mLJcbOafJ34xDY4J0WdGPtK3OG1IWKkOIyRpheQ75PNgRCY7tBOnJIYnA3 HCHXtThf1eda4Ha+epWVLdtnaORl5+G4QVpdcYz5jny3WL+LwruLkvs7LkX7BC84hcRx rBxDDVyYPsWXgDxOm3Jtr2c/vVgPIEDQba5SpUQKqV6815yeU9I7Af+fNt14KE0jCC9v qC/BrDDBgWZX+R5EjpdmsBN2KP+Nm9r2pTOSpBouWlCAjkbRt0lcRYWDPZ6FE6GWniTj 0/iA== X-Gm-Message-State: ALKqPwdwlLTLxNdZbpAleZ7IH5tH7y3+S4giHSeMREGRrXwcwIngCuy8 AQLYpHyk7fdk1S1R2SYahDLv5iA= X-Google-Smtp-Source: AB8JxZrMMjW5LijpQCWUavu1tHW+A3FRRsADUBkf9jbmq0XYUljJ430frsG5vCV+wFwdykwn3upmAg== X-Received: by 2002:a1c:2cc2:: with SMTP id s185-v6mr7207756wms.62.1526386853227; Tue, 15 May 2018 05:20:53 -0700 (PDT) Received: from groucho.site (ipbcc0cec6.dynamic.kabel-deutschland.de. [188.192.206.198]) by smtp.gmail.com with ESMTPSA id x81-v6sm16819357wrb.23.2018.05.15.05.20.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 May 2018 05:20:52 -0700 (PDT) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, Kieran Bingham , Ulrich Hecht Subject: [PATCH 3/5] arm64: dts: renesas: r8a77995: Add LVDS support Date: Tue, 15 May 2018 14:20:38 +0200 Message-Id: <1526386840-15368-4-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526386840-15368-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1526386840-15368-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kieran Bingham The r8a77995 D3 platform has 2 LVDS channels connected to the DU. Signed-off-by: Kieran Bingham [uli: moved lvds* into the soc node, added PM domains, resets] Signed-off-by: Ulrich Hecht Reviewed-by: Simon Horman Reviewed-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi index ba98865..8e78110d 100644 --- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi @@ -757,12 +757,68 @@ port@1 { reg = <1>; du_out_lvds0: endpoint { + remote-endpoint = <&lvds0_in>; }; }; port@2 { reg = <2>; du_out_lvds1: endpoint { + remote-endpoint = <&lvds1_in>; + }; + }; + }; + }; + + lvds0: lvds-encoder@feb90000 { + compatible = "renesas,r8a77995-lvds"; + reg = <0 0xfeb90000 0 0x20>; + clocks = <&cpg CPG_MOD 727>; + power-domains = <&sysc R8A77995_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 { + }; + }; + }; + }; + + lvds1: lvds-encoder@feb90100 { + compatible = "renesas,r8a77995-lvds"; + reg = <0 0xfeb90100 0 0x20>; + clocks = <&cpg CPG_MOD 727>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 727>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + lvds1_in: endpoint { + remote-endpoint = <&du_out_lvds1>; + }; + }; + + port@1 { + reg = <1>; + lvds1_out: endpoint { }; }; };