From patchwork Wed Mar 6 22:41:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10842365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2BD57180E for ; Thu, 7 Mar 2019 08:16:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B5EB2D3E2 for ; Thu, 7 Mar 2019 08:16:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F4E52DF18; Thu, 7 Mar 2019 08:16:41 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 892A82D407 for ; Thu, 7 Mar 2019 08:16:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6C1316E262; Thu, 7 Mar 2019 08:16:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2A1466E1CE for ; Wed, 6 Mar 2019 22:41:28 +0000 (UTC) Received: by mail-ed1-x542.google.com with SMTP id g19so11823146edp.2 for ; Wed, 06 Mar 2019 14:41:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WgnfejoohWcdh8LAG9lSSLEUXDC2hzIwdSjwLa5g5iI=; b=HGMsvWn+QwgpTvtmCCsmUUlRfETR371rUTIAdsVTsBGs1y7CRrBbSbjxCvrT2JZWLw Bawtg4iQnkbm+mSw88BDg1AdiyZ/DkMgP4w5peRQzayhkM68m8ADxWtWY3/nwApqWQmP LqEw9sxmYmDbwX6J5KM6S1EAt+MR1HuRulGzEmfe7p/3oBFNNKhOjiv/n4jWxd8eLWiM BWbXx3p3hB9wpL9mxSEIyt83AJElWC8Ak6q+hn7qYkZFxdDS6v1FAxNfcFfX9L9iu3jv Yac8cQzjqT9CTnRBVwA0f+tyuMYMVCbFQWUFoCY6cH9PqAjfUDao+N/pgR9LuPUwpjQB U4Mw== X-Gm-Message-State: APjAAAVK02MZIIq7qRPDMg/NGmR01gLmRwZ/71UG7xX8+vtlwwF4FCFQ efPlg4NTp+6aMOiuJCfcbaM= X-Google-Smtp-Source: APXvYqx8YiJr1dlwgs7sisLyVrfa3nMX358pNStosFeKeS5f9coAkaq2pWbcqjSLHapx331ao4XO5w== X-Received: by 2002:a50:b786:: with SMTP id h6mr25369459ede.85.1551912086698; Wed, 06 Mar 2019 14:41:26 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 36sm801356edz.58.2019.03.06.14.41.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 14:41:26 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v4 2/4] ARM: dts: rockchip: add rk3066 hdmi nodes Date: Wed, 6 Mar 2019 23:41:11 +0100 Message-Id: <20190306224113.24853-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190306224113.24853-1-jbx6244@gmail.com> References: <20190306224113.24853-1-jbx6244@gmail.com> X-Mailman-Approved-At: Thu, 07 Mar 2019 08:16:24 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WgnfejoohWcdh8LAG9lSSLEUXDC2hzIwdSjwLa5g5iI=; b=Am6u+R1M57Q77JRUcnj6M+Mc/Ryk4ODwE1rBV2WoxlGBGSI1gv6riDoxOS2W9uBYMb ZHKwVlkm6mKPq3v9ksR2z6ITHXXGL1eYQ44eFhmbJJ9oWrLH+HtDev79xDBdhT4D0iUQ QuQNyvPX039BWl3lVct9QcJpHLZMfXkJ9hNojAlXyADMAtXoIiIABsYgq6mBRzHfS/r5 mtYO2c49zhMbBVrmLz0FrC0EHdFnEPH8Qt6OHH+U8BeCnIAPT9DlXQKINUieLXltrH4t TQc2KruI3s2MVI35dYjqqjr595TO5NVsTU2vV8o6B8DbdPdI8GIJ6moIj0HzPPl0KUKB hrHA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Zheng Yang This patch adds the hdmi nodes to rk3066. Signed-off-by: Zheng Yang Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a.dtsi | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi index 653127a37..9c43b985a 100644 --- a/arch/arm/boot/dts/rk3066a.dtsi +++ b/arch/arm/boot/dts/rk3066a.dtsi @@ -80,6 +80,10 @@ vop0_out: port { #address-cells = <1>; #size-cells = <0>; + vop0_out_hdmi: endpoint@0 { + reg = <0>; + remote-endpoint = <&hdmi_in_vop0>; + }; }; }; @@ -101,6 +105,44 @@ vop1_out: port { #address-cells = <1>; #size-cells = <0>; + vop1_out_hdmi: endpoint@0 { + reg = <0>; + remote-endpoint = <&hdmi_in_vop1>; + }; + }; + }; + + hdmi: hdmi@10116000 { + compatible = "rockchip,rk3066-hdmi"; + reg = <0x10116000 0x2000>; + interrupts = ; + clocks = <&cru HCLK_HDMI>; + clock-names = "hclk"; + power-domains = <&power RK3066_PD_VIO>; + rockchip,grf = <&grf>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmii2c_xfer>, <&hdmi_hpd>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + hdmi_in: port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + hdmi_in_vop0: endpoint@0 { + reg = <0>; + remote-endpoint = <&vop0_out_hdmi>; + }; + hdmi_in_vop1: endpoint@1 { + reg = <1>; + remote-endpoint = <&vop1_out_hdmi>; + }; + }; + hdmi_out: port@1 { + reg = <1>; + }; }; }; @@ -415,6 +457,16 @@ }; }; + hdmi { + hdmi_hpd: hdmi-hpd { + rockchip,pins = <0 RK_PA0 1 &pcfg_pull_default>; + }; + hdmii2c_xfer: hdmii2c-xfer { + rockchip,pins = <0 RK_PA1 1 &pcfg_pull_none>, + <0 RK_PA2 1 &pcfg_pull_none>; + }; + }; + pwm0 { pwm0_out: pwm0-out { rockchip,pins = ;