From patchwork Thu Mar 21 00:14:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10863091 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 2FC8F6C2 for ; Thu, 21 Mar 2019 08:25:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17EA029F21 for ; Thu, 21 Mar 2019 08:25:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B8F629F81; Thu, 21 Mar 2019 08:25:07 +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 C663C29F21 for ; Thu, 21 Mar 2019 08:25:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8716F6E026; Thu, 21 Mar 2019 08:24:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id B5B0989D81 for ; Thu, 21 Mar 2019 00:14:59 +0000 (UTC) Received: by mail-ed1-x543.google.com with SMTP id e4so3575503edi.3 for ; Wed, 20 Mar 2019 17:14:59 -0700 (PDT) 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=dTKwYbQIva6CKsd1LUqtMQIO+qEhpGYGHu2q1dPaq70=; b=Z+HPV6fs2tq+BgSoaaNMTHwH3ZtiyW/9nSiOSS02l1xDXASUZNrdQGFKhwGK98Tf6S yAyV5KAt4bd/E9BL0r3XKMLf2DUH7/E8VeVlWgRCnPhlVnx5OGJYZXLX97kUpkvoSga3 mNsWBiaR2xnvqdADKBLCP2AfzcHoPnEfgRiyfYNZRDgQ44hUNQuG9W9wqi1H1997z3fm itlikwHn0bPK8I3KV2u7PTvh2vizGKPKuQAo2C0250KYAL0GE/eQoOv+7udzVIAUTTau 8cR26OdEGuhcSeKRr1Qm12djzqYZNNxO84RDn1o9NO7yASWtk8IZhkCY0oJbQTuRpaic n7wg== X-Gm-Message-State: APjAAAVVFkJabXI4G5cQ/e5BbTGH3PXpYqzjEsc6XK1foeqgIDa0dIl0 jjI4yA8xgjhKC5drlE+huAA= X-Google-Smtp-Source: APXvYqyWPxWkyTSS6YFduEwaJMphTu0vutcRhPd/A4N9EvuqVA7Pz5Z5nA68aYy8aDIW0/h9slsUbw== X-Received: by 2002:a17:906:2f15:: with SMTP id v21mr511410eji.157.1553127298436; Wed, 20 Mar 2019 17:14:58 -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.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 17:14:57 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v5 4/5] dt-bindings: display: rockchip: add document for rk3066 hdmi Date: Thu, 21 Mar 2019 01:14:39 +0100 Message-Id: <20190321001440.31057-5-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-Mailman-Approved-At: Thu, 21 Mar 2019 08:23:39 +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=dTKwYbQIva6CKsd1LUqtMQIO+qEhpGYGHu2q1dPaq70=; b=b1qba68LPQqge4WaX5gk+DHLFh3LQ1+Mdls/HgkiGjcz3gS80mjSoWz+TblknGRRuk HxsV74wMxRBp86o6U9ij4ARimqzBfF45UwfM285czn1X7fSmkGKIM+4y+lGCVtWHMjgY 5IFzMhw2Q2vgwDn4h7ZhSxu7pxfqKRSYk/hlWDrh2uIqDdqbjVr/70KANjL3F9rsWPWN iStiv95aFgwB8hZ0L1gmv+UKq/9g92BYI1HLrQUl2tm+Zvpm69NHciAbNTuVk480pQT/ Y4bGlX+j2duX021Q1Dw5HUmPCrK/i+8y8QO96ZRF01cQRtthYZLrZ5rCTmgPoJ9chi27 J3rA== 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 This patch adds a binding that describes the HDMI controller for rk3066. Signed-off-by: Johan Jonker Reviewed-by: Rob Herring --- .../display/rockchip/rockchip,rk3066-hdmi.txt | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,rk3066-hdmi.txt diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,rk3066-hdmi.txt b/Documentation/devicetree/bindings/display/rockchip/rockchip,rk3066-hdmi.txt new file mode 100644 index 000000000..d1ad31bca --- /dev/null +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,rk3066-hdmi.txt @@ -0,0 +1,72 @@ +Rockchip specific extensions for rk3066 HDMI +============================================ + +Required properties: +- compatible: + "rockchip,rk3066-hdmi"; +- reg: + Physical base address and length of the controller's registers. +- clocks, clock-names: + Phandle to HDMI controller clock, name should be "hclk". +- interrupts: + HDMI interrupt number. +- power-domains: + Phandle to the RK3066_PD_VIO power domain. +- rockchip,grf: + This soc uses GRF regs to switch the HDMI TX input between vop0 and vop1. +- ports: + Contains one port node with two endpoints, numbered 0 and 1, + connected respectively to vop0 and vop1. + Contains one port node with one endpoint + connected to a hdmi-connector node. +- pinctrl-0, pinctrl-name: + Switch the iomux for the HPD/I2C pins to HDMI function. + +Example: + 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>; + + 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>; + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + }; + }; + +&pinctrl { + 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>; + }; + }; +};