From patchwork Sat Mar 2 10:41:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10836547 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 AEB9A139A for ; Sat, 2 Mar 2019 10:41:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95D9A2B5FA for ; Sat, 2 Mar 2019 10:41:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86EA52B65F; Sat, 2 Mar 2019 10:41:43 +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 2B89C2B5FA for ; Sat, 2 Mar 2019 10:41:43 +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=Nzg3kJaSE0JV2Ky7JSQnYP7wxF Ib2VfU+NQeeoemCTQp0FnE6c+NOpfaDQg4Tblryg2lJOM62RoPUyBry1e6bVE8PZ3SpPmjbpx8NvL ge5lrzlIFPLGugFjs+7JDf04Q87RcxMdDAMrOwNsy3Gn8TGQY3IMvlftPLzBhQOS7Vwnyaib3LjSs KDy4fOGGcEnbu65l1xTL9wW13dxA0vWdm4JjrtEu5W5GyCTwIsP0gYhWOgHuUtBQpcLNlM0Z0Xoxp I/7lclkJSINx/Wz4CApTmdPMzxtOxHUSBE7G1f53cw9ZwyHF1shHmXXHtiPfENxoX05agaOkrXjxz C03W4Pcw==; 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 1h025N-0006ev-Oi; Sat, 02 Mar 2019 10:41:41 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h025E-0006TF-0D; Sat, 02 Mar 2019 10:41:33 +0000 Received: by mail-ed1-x543.google.com with SMTP id a16so442517edn.1; Sat, 02 Mar 2019 02:41:31 -0800 (PST) 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=tYrSBWMv9+Fa+PnaHaPKYmQixFWT8FiTyvkmA7d9FH1G3+LBNsIPH6Q9LNEyebLWim PjZWG74lnlniN8TCzxtALi6cG82TBs+oAVa3CJGGsCZKOJi8auc01EXoTUGTCmPLStNz aC/CtkCzORFLVa3OEcAIOgJlaX9cotlPDl6DlhMI4/ipNGGMEsjWeiZnRj5ASqvfqHYV FcTVhzXWRjTAaCq4lPDxKvDgwj3HGNQCihpF754gRwdASxNX0DowpCPTvX2UM+oRM018 k+Ho0m4goQIEO6EnoW6msx58hrC0gD7u5Qg1osnHGcPO/gKJK4IQJ3912nbmA8MGQX0I 8qEw== 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=eeMsu5SdkpxWfkAqKJz1A38d8y8VAa0xwQIZlUvR8LmY754c+UxMgZ2UlsqOXAGIwF nP0yfkFCMNlqOmMozA2HxGMz/hCae8e+ed605faOK96aE1c362FGoAGlxz0jLmdAjuq2 oz1b6CE5v+8h2LZHijigqjwyNrHEMl1U1dvPUfclUvw/o1ebnI5ainuJq+PAnQm1NHuw HUpWsAri5uw/9p6rkz7Z2gR9eyhiuHXFTpOYJaT38pomC91mRVeD2RPVySqT0I8wgTiG Rgd2EFL4TncWY+M/eNxC0mBzZYfawUYLRIVf8sErqmRiVV4OE4HRq5xSEXxVCb+R6slr DH+Q== X-Gm-Message-State: APjAAAV84o4YrBBEVPk+ctvs3N2SrIThBDOWjgW28fxmg48vM5rxkaNm wPO1l0u3YfSpiAmo2rNc8AHLuuNX X-Google-Smtp-Source: APXvYqxfvN2XVMA+JGudiRVoh5xytUnclWTTtqkF9ZxCsZctCF93bFplk7MGU1735mqMdOqyY8tdmQ== X-Received: by 2002:a50:e8cc:: with SMTP id l12mr7417882edn.125.1551523290507; Sat, 02 Mar 2019 02:41:30 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 36sm247711edz.58.2019.03.02.02.41.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 02:41:30 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v3 2/4] ARM: dts: rockchip: add rk3066 hdmi nodes Date: Sat, 2 Mar 2019 11:41:14 +0100 Message-Id: <20190302104116.1535-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190302104116.1535-1-jbx6244@gmail.com> References: <20190302104116.1535-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_024132_046859_570EB3BF X-CRM114-Status: GOOD ( 13.12 ) 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 = ;