From patchwork Thu Mar 21 00:14:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10862703 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 F216617E9 for ; Thu, 21 Mar 2019 00:15:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCE642988D for ; Thu, 21 Mar 2019 00:15:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEB6C29EB3; Thu, 21 Mar 2019 00:15:09 +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, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DD35829D4F for ; Thu, 21 Mar 2019 00:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=P36T6JLZ2ZAl1qF99wqEwHe28mFCpiW3w6ufbIBaSdg=; b=KObIbSPX9JEUzsVMfCYxP0vO2N MqnUusV6fxmDFTy+BgR3c7Wbrtx4m+UJLmzhmaeg9JfETCEWpERRrO19QXIREwSy4tFeFIgtJtU02 IHUmKwblzFFeXnEBRKbiHKJpj+TwPJKR+cIkoM0Phq2yFKTbmHWyYor+TTX8xR8sVpYMo8CgwuKQB JCiDgw9qoHzAMLLa3h9ddbrHP2Ml3+R4Y3LTSwafMnvLXkwljPwYMAHA4LpiQW8hcLRL5k315JG/J M4LKuo4QuZzAKqB/NNeF5NYZO+XBhYKRQdGAvcyRUMhn+wRy2NxPAMfatw01d6oJ9JeQ7M4He4pNv dlv9Kyww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6lMM-0000iN-0w; Thu, 21 Mar 2019 00:15:02 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6lMJ-0000ge-95; Thu, 21 Mar 2019 00:15:00 +0000 Received: by mail-ed1-x542.google.com with SMTP id x10so3532117edh.11; Wed, 20 Mar 2019 17:14:58 -0700 (PDT) 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=X5/8Bqk0R2CuS7lKySOQguWH2ZW9uuQQNvxSmQ2s+TwtTmosA/ynjQICjSySkFSg+T aBKlaCe0zotysRKOtmNZgUpSHcSg+EKVRGktMAAxcePl0ZisI41djsChJRygzi28Flmt hCYfUtMVqmkGN6qvlOBZnziwR381BH53hcsRP1BNhQ8hTzF8RD2uK5bqfHXVCvYOtlf6 B8YZJj7XNjnaPc6mxSkYgYDgZe4xvfQOap+b5t6yJExncrInWBUXBLw+HyHZvZM5kEA5 dm0nRtCptUcWk/3an/hcSXCRWlWenoweNaSpGlC4L9BRPrRS0ZwpE9PMsBjBxrBMMlXb VWHg== 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=i4gVVIh+zP63pJZY/DoK5qAmc2U+w9drlCHtBMvGDcb8ep1aU6wZkzy+c8dK2U1m5N Nn+H8Rzea2/ubpwq4IBJXbvByFxyHBxD552L8xxbFsyrGXqb2zK0Cp/hPqsP/JoGtCyj N8KJUXtLhYDVWWCQPVW2X6v6mg2sZErHJeVYKWs4XoWdtIbjU4UtC6DkiWfE5YrUIhrJ 4q8Dj5jv5zbPzKek/MYy5z9/LrIgJGbuWbnxTOeTnckpg97bglsuTECvu9K+lHE7nO4T sG65tCBetinV3gH5h5Tic5Sg7vmTveNIU5Ie3CaZ5F9+bjYBo6DRQIYGhAvHWxxZKQBQ MW/w== X-Gm-Message-State: APjAAAWfe+yqcEVAOZQohPegxwD07fAjZ89BsP7NNZVlYob5mM8L/uDq 7CBgpQ0AUvSWtKq8TXDXPTM= X-Google-Smtp-Source: APXvYqwcFQYlDPfG8eljpron08J42gxy7am2u5pvLHFSAyHWMSbnrvJY2Yo6GPjwJTM8SEiaX5u1xw== X-Received: by 2002:a17:906:4bc8:: with SMTP id x8mr517764ejv.114.1553127296772; Wed, 20 Mar 2019 17:14:56 -0700 (PDT) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id j34sm1107660edb.30.2019.03.20.17.14.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 17:14:56 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v5 2/5] ARM: dts: rockchip: add rk3066 hdmi nodes Date: Thu, 21 Mar 2019 01:14:37 +0100 Message-Id: <20190321001440.31057-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190321001440.31057-1-jbx6244@gmail.com> References: <20190321001440.31057-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190320_171459_317309_B8FE18BB X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, airlied@linux.ie, hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, daniel@ffwll.ch, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 = ;