Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1710263pxt; Sat, 7 Aug 2021 22:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweX8kQDPbQLoKGtrXad4TYqpJ6n4Se0f0iM9DlgQoP97uNU7cYQ7XFVn19IxQWc++j1/Yb X-Received: by 2002:a02:c6c3:: with SMTP id r3mr17296526jan.7.1628399543980; Sat, 07 Aug 2021 22:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628399543; cv=none; d=google.com; s=arc-20160816; b=uODVDHFL8qOOHeOfMjVD5RWYXch4IW/liu3tcgg/sJP/bqusAEhKQcBXIoHrVE2uhh XVpoT7Ea0vZL6QMkBjXDaUg5jdAuqjD0DE8HPLSzsMaz5VAcZXe5yUUI5E/a6nhztInS gOyAs2ZQyfpgdyfswyw2NGLp9nosFx+l4P/8Kmp3bTgA3n4oiKCxML8AV+Hq4SFFaC+B qeikkug2rFBWq+ofosc7cP1KYXL6UoFdZvpmWcj6+3+/dq5v5DlKk/6ea+HFdupByCpl ukE08kk4Bgm90OtAEg20xJs4cIsnVt/qadWYRx864vxqhQ0uv9pXPGTq5J9V3veDpMYp ZDWA== 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=c/7kMwv6t15ZsEIxHiem9O0XiNG0vvEI86p1Tw6MO/o=; b=CfPFuQnwR+Iya+DmrXmLuX34dJgM6/9GeeI81Hp9pGcc8CCE2en02PTM0N1Y+w2pxc A46Q37nCqI8kkbi0+v1Gs3I4VYB5NtrINu9dSeWiRWM8IAmofrDbjKE9YPFkXEYH/CiU fJPyqoMw8hf9E8iCqXRu77bHnYk6y0cE8eR4omvGX58jkiF/pxR4cE3H5w7DR4BJYmcp nhjkYt4wW0KEcDXg34FhqIxQV9BobNAwW8DzuWkdTMXxndEec7O+07PKM1cN7z9ET3ls zbytkc+fa5DhAxokefuTZtO8lrLqV+7h961hOcZV/PrUn0vlGkJZ4VQM38kQXx36zsOD QawA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=cWilIxWz; 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 l4si8165564iol.18.2021.08.07.22.12.13; Sat, 07 Aug 2021 22:12:23 -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=cWilIxWz; 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 S230425AbhHHFLc (ORCPT + 99 others); Sun, 8 Aug 2021 01:11:32 -0400 Received: from mo4-p04-ob.smtp.rzone.de ([81.169.146.177]:25287 "EHLO mo4-p04-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbhHHFL0 (ORCPT ); Sun, 8 Aug 2021 01:11:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1628399449; 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=c/7kMwv6t15ZsEIxHiem9O0XiNG0vvEI86p1Tw6MO/o=; b=cWilIxWzZ6eaRMcoU5KQ0bAewIOJPx7ff78CplMTbbej1hXO4vK5ao1w1HpeFxvyIO a85XK9U+4uhIU0mm3gHuYV0ZG7nxynZNL68wGHUo4D58T6dkxN/7KMVy59bQ0EkLYgg4 bwsInDW1tQIuFvoXbvM8QHE8n8AWoq0v/MtqWmJQ+X72Uviww6qHfkcNj4qmqCO2YskG LA+WTEgQm1tH/ixn2t90aqRJ4atq+GeqK0j1juW/x/HJqZCuHTp6T8+1Xo9aW5Q7qJbL RDLzvlm3ybRQr26RLzyjdQdLKyq0lGoLxypRMXgNnVggDplIxce2BTnBgiMjsRSnJjE1 chSw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o12DNOsPj0lByOdcKVX0" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 47.31.0 DYNA|AUTH) with ESMTPSA id Q02727x785AmEyi (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 8 Aug 2021 07:10:48 +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 Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, Paul Boddie , Jonas Karlman , dri-devel@lists.freedesktop.org Subject: [PATCH v3 7/9] MIPS: DTS: CI20: add HDMI setup Date: Sun, 8 Aug 2021 07:10:41 +0200 Message-Id: <898d84cd77b84754910e2b81eeb2313f24acf542.1628399442.git.hns@goldelico.com> X-Mailer: git-send-email 2.31.1 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 power regulator * HDMI connector * DDC pinmux * HDMI and LCD endpoint connections Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 64 +++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index a688809beebca..9e87b1169dbdc 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -78,6 +78,28 @@ eth0_power: fixedregulator@0 { enable-active-high; }; + hdmi_power: fixedregulator@2 { + compatible = "regulator-fixed"; + regulator-name = "hdmi_power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpa 25 GPIO_ACTIVE_LOW>; + enable-active-high; + regulator-always-on; + }; + + 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>; @@ -506,6 +528,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 +564,39 @@ pins_mmc1: mmc1 { bias-disable; }; }; + +&hdmi { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pins_hdmi_ddc>; + + 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.31.1