Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4545894pxb; Tue, 5 Oct 2021 05:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH9c5sVhe6Ch3IK4FZh0OFO5Dx6dXWHcbCatBO8L7pydaS6C7hYLzWrLZRU5FRzRhQ3b1T X-Received: by 2002:a17:906:7091:: with SMTP id b17mr23585280ejk.395.1633437111675; Tue, 05 Oct 2021 05:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633437111; cv=none; d=google.com; s=arc-20160816; b=yXThFMooeWNu8P7vlR3MJkFFLKqvWEd7CQ/gqxrl6KWk/K07/f4gIhZcKtzzBfLD1L Atyn2Il0LCs6lappGkq+Dh9EPysWQzpHGIXFkEr7s/lzOlZdJAxDi+H84W+ojoKUzoLB aHqjVdP0ECkvAmNIWKt0ckIswYGgMmM5mTcj1kI1U7icSPx25Ns1iXkUv5P2urcRr3wV 4OLIrdyOvDLDbG9Kxu4P830Mdn/MXwfYbpiUhZ+yGAg+KLdy/BAGY2n02eudCpYYmxZh QjBqJQ1jdBlu79u74yr7QmV6w4RpjcQFf4+ogVoMc6YjHByqCgCw+fhRA2ZZzTFUJX// gS0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ocl+XJoUOJtXVniSzL7b8uu6IhspiZmAHAv7O6D76A4=; b=QLEmwkfb3ILQdr1J0NwIaEDPciXjg6Z7xWfjgOPFEdHv6OzPdPv9savb9WWz/4zA5o g3oTK1Q9qWE4NCR4EAU2vLaWGUiP1ZISrFKYYgAEaSC2uhcWIozVneO0V1brdPk5msot Pw37WhPG2kKl1yGOpxklL8dHm8Mk720/aT5KISJ4WunkYYBz2ADWIYpae5cV6ipsl2xT dqrOSAoc5dAwNJw1YvZF/uQvde1OfEMbf2G96Y4RAipD7ty15JG9q1c9Z4aRYdX8E7HV 8vOIDAEjzTFmcLv33XsUiSwDvisXEdLNzjkwxZjZoJnxrsSBDG4/N0AemykzYR7b8CIc 0T/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=rlGEHqus; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si20905424edc.107.2021.10.05.05.31.27; Tue, 05 Oct 2021 05:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=rlGEHqus; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234396AbhJEMbm (ORCPT + 99 others); Tue, 5 Oct 2021 08:31:42 -0400 Received: from mo4-p04-ob.smtp.rzone.de ([85.215.255.124]:10873 "EHLO mo4-p04-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234601AbhJEMbf (ORCPT ); Tue, 5 Oct 2021 08:31:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1633436967; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=ocl+XJoUOJtXVniSzL7b8uu6IhspiZmAHAv7O6D76A4=; b=rlGEHqusTvXpgoPArUnpQSXlbAE3w7xlD7215dZs+dEi1xUQG6V2hUktjC4deN+Vus HCayzqh1CP+lekROIt6OHK+8/rLo//u/m4xh3U8djVt5ryjBrSg5RJyzd7nUZw/hz2QB oC5xbileBoHMv6q7Xov1elvaQTAcjr2Zus7aEr6Qin9+2FKwd2Qx+VnF8tDrdHtWNh4r AOT1vjRnha2G9QecDMPUPlgxnmZ5Zve7f6NIWTe8WJ6rl5F41qBg2UCd5iMkQ+1B8XuC pKrcaArhlp+DBa+kgUumxwOZ6Nf9rTILfG9XMGfOd2oDl3w7yU7xtg+p21HnfI30rs3A db0Q== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o12DNOsPj0lByOdcKlH0" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 47.33.8 DYNA|AUTH) with ESMTPSA id I01f74x95CTQ50h (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 5 Oct 2021 14:29:26 +0200 (CEST) From: "H. Nikolaus Schaller" To: Paul Cercueil , Rob Herring , Mark Rutland , Thomas Bogendoerfer , "H. Nikolaus Schaller" , Geert Uytterhoeven , Kees Cook , "Eric W. Biederman" , Miquel Raynal , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jernej Skrabec , Ezequiel Garcia , Harry Wentland , Sam Ravnborg , Maxime Ripard , Hans Verkuil , Liam Girdwood , Mark Brown , Paul Boddie Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, Jonas Karlman , dri-devel@lists.freedesktop.org Subject: [PATCH v5 6/7] MIPS: DTS: CI20: Add DT nodes for HDMI setup Date: Tue, 5 Oct 2021 14:29:18 +0200 Message-Id: X-Mailer: git-send-email 2.33.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Boddie We need to hook up * HDMI connector * HDMI power regulator * DDC pinmux * HDMI and LCDC endpoint connections Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 67 +++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index a688809beebc..4776be35b14d 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -78,6 +78,18 @@ eth0_power: fixedregulator@0 { enable-active-high; }; + hdmi_out: connector { + compatible = "hdmi-connector"; + label = "HDMI OUT"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&dw_hdmi_out>; + }; + }; + }; + ir: ir { compatible = "gpio-ir-receiver"; gpios = <&gpe 3 GPIO_ACTIVE_LOW>; @@ -102,6 +114,17 @@ otg_power: fixedregulator@2 { gpio = <&gpf 14 GPIO_ACTIVE_LOW>; enable-active-high; }; + + hdmi_power: fixedregulator@3 { + compatible = "regulator-fixed"; + + regulator-name = "hdmi_power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + gpio = <&gpa 25 GPIO_ACTIVE_LOW>; + enable-active-high; + }; }; &ext { @@ -506,6 +529,12 @@ pins_i2c4: i2c4 { bias-disable; }; + pins_hdmi_ddc: hdmi_ddc { + function = "hdmi-ddc"; + groups = "hdmi-ddc"; + bias-disable; + }; + pins_nemc: nemc { function = "nemc"; groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe"; @@ -536,3 +565,41 @@ pins_mmc1: mmc1 { bias-disable; }; }; + +&hdmi { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pins_hdmi_ddc>; + + hdmi-5v-supply = <&hdmi_power>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dw_hdmi_in: endpoint { + remote-endpoint = <&lcd_out>; + }; + }; + + port@1 { + reg = <1>; + dw_hdmi_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; +}; + +&lcdc0 { + status = "okay"; + + port { + lcd_out: endpoint { + remote-endpoint = <&dw_hdmi_in>; + }; + }; +}; -- 2.33.0