From patchwork Sat Mar 30 09:56: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: 10878243 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 3275513B5 for ; Sat, 30 Mar 2019 09:57:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15B1028555 for ; Sat, 30 Mar 2019 09:57:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 087F928936; Sat, 30 Mar 2019 09:57:15 +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 9F4DD28555 for ; Sat, 30 Mar 2019 09:57:14 +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=PEwZiJF9HPd7Kdk13CNkF1XQrb gEhjQE4qb6eyqFKFEzvLrbTFtRADy8lg7bbEr1XKOE1DgXzA1gZryaRLh+i3yflOt8LjD69UYrAX/ 7sgMeNfOUiju8cQG2ywbe0vLsQB7v85e2Cvizj09m0hy9cbbLEXr6ukZc3U0nuNFqPWmdBh9tA/vc hXwHUexCUAhdZkLQas+zuD7isyZDCUNg/xbk3aNPBUcrhai8Dj9Dr3pjpZ9n2vi79i9mdHkobAoaq jStouZqVK7m/AZLj13Im96vRuV8zAY8V6Usp/qtpzqL3rhMcCJ8bt/D1ZCtqgrU61rR3jSIQeMZxE WjqtzGKA==; 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 1hAAjg-0003gj-TM; Sat, 30 Mar 2019 09:57:12 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAAjN-0003ME-FX; Sat, 30 Mar 2019 09:56:54 +0000 Received: by mail-ed1-x541.google.com with SMTP id x10so4035728edh.11; Sat, 30 Mar 2019 02:56:53 -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=HlzAXK0womW+Hf9QD73UxMsBj2WICfrLQScI+NOIwpLCyjN81HO15fehq+cNUEQ1US 7HChdWkGKIM0+VT6z8DCHaAfMidI4L1dh0Wf4BSdqhytNfiRUgSFIgqMv77SQjDobP77 6QtjOQ1uJJLDmHnM9W7BbPKqy7oOfSzlgJM81EvLw+Ya/Kyu2DV1BZrT+A5GZMKE+OCz 10WJst8IFMWwZZgiwrfuUDLVqivLmxhliT9f1R4rNTjnTlgRgVjYRd49I61cMdgd2EFR wV66f1Gx18uxQxstZ6D3lDxKogiCVxtKUB4zxdq24hZG/9Y5979i3FNBUGkYF01Llxgx gJ9w== 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=objT+pO94ASsFf0X/c7NmdqN8h/OzTXmVykUNjpMROuUQ9h+LEGYcYZPrLx3GOZr/3 Uob2N4W7SHf8E9jCV5I2tmkVpkdanz2Ok4YyP3KheODOarzgb3+qrcF2w0xWmHG6xb9G 8/CP4xLBkgV40qdK9nYojpCYB4TUlorPB9gIKhx7lmLFxkrfVaTlojfzXgmmNVdJXyDk fN6p4brbEygBp53AyWmTmRUsplDMftd91AKXD5gNBOGO5BnSCpTIWO7yP8UqmcD0XWi8 C25foje6IqB8EOs41TvUpCmxY+0PNo4DHLYMc+h4/pn6X66hlNVb0ParGo+CHXhsFXIm IR8w== X-Gm-Message-State: APjAAAXwdzVR2XlSzn4p7nbwMkO3HbiyMgAKlmR5T1DRT0+ZqA9WjjvD bBCFOjeS4FidcT9GavQQ67U= X-Google-Smtp-Source: APXvYqx8xE1kifuBFQ7GziX/ADjOZkRLAIcZkENI0mvPq1mHQZLG9oiDkEkX1tBYWyFn9J1lA+UHgg== X-Received: by 2002:a17:906:583:: with SMTP id 3mr7637305ejn.217.1553939811795; Sat, 30 Mar 2019 02:56:51 -0700 (PDT) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id b34sm1087921edd.24.2019.03.30.02.56.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Mar 2019 02:56:51 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v6 2/4] ARM: dts: rockchip: add rk3066 hdmi nodes Date: Sat, 30 Mar 2019 10:56:37 +0100 Message-Id: <20190330095639.14626-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190330095639.14626-1-jbx6244@gmail.com> References: <20190330095639.14626-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190330_025653_515547_51EF0E07 X-CRM114-Status: GOOD ( 12.37 ) 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 = ;