Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2351424ybb; Sat, 30 Mar 2019 02:57:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjvlJ5Bx3PSRy5sJFi6VYs0PlUPJTQh0zBiH15S1i4JFfoWsQ5sh27zTeN47Hfrr4SCVLB X-Received: by 2002:a62:ab13:: with SMTP id p19mr51181831pff.131.1553939877802; Sat, 30 Mar 2019 02:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553939877; cv=none; d=google.com; s=arc-20160816; b=xanIonYo8u3KnbSoaBlJxrsvQOnGQdN46T6aHISoa7y+G9+PIjkVxwCPt0gvZhgSD7 MjXwKB6eQHltdW9c9Dahl7BYirrqAA95SrhYjy7C3alrvpUiSmPezVcGDQbf0NmehjSn Fwi8tkm0rNbG3OoUZVn/OLpkkc7YmX3UwLUZH4/u/eZ9G9YWjjE1vnBAavdbV9SuVMjF Fz1Sk8BAJvAx37ymwHuFjsFAFQVDXOLwxatQ2tMsyN4xWJz42PYvNqJAyiQD9b26UEKY T5mQjuIvVHqdgA+ISyN33//TEzamF1Obb/NdrLHZtedtoMZ8im2rRXif0ayNXPn1XN36 3v8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=dTKwYbQIva6CKsd1LUqtMQIO+qEhpGYGHu2q1dPaq70=; b=Sru5UaelsBB4bPyAGGDk4KZzJU94tanVtq/nSpo1WqPLgasDKfmalw/THPi8d6O1sA Ls3cow0+gpzLrp8tuo4GgMmDfJ/mODtgSBR41Ow5EolOSjKb5dBNc741NEjxSNFvvJjc I/iMSLTc/tcM2eUc5VfcbtBlSybmxoBB1RHXQSe28O/T/WfDnD3GtUnhGyzNXOLwbZDK OCiSOUNujIF16CGuI5YiPFbTLAY0OX/tKPj6hfp5OcubtCCRd4rIQcx9v3/9XbltJ57L VPW7VX5j4JVc0mTk0qy5WbzQld+YEsqcj2mbONCsu6y5VMVAdBiq9du66idVS7TddbN/ Ylmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dNaChbFT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cm17si4397863plb.139.2019.03.30.02.57.42; Sat, 30 Mar 2019 02:57:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dNaChbFT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730668AbfC3J47 (ORCPT + 99 others); Sat, 30 Mar 2019 05:56:59 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:39370 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730646AbfC3J4z (ORCPT ); Sat, 30 Mar 2019 05:56:55 -0400 Received: by mail-ed1-f68.google.com with SMTP id p20so4076055eds.6; Sat, 30 Mar 2019 02:56:54 -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=dTKwYbQIva6CKsd1LUqtMQIO+qEhpGYGHu2q1dPaq70=; b=dNaChbFTEko2b/rb5zceB9+iH3wKrG9DBRY/VSOlAFL4GhoqdYmWX+umGG7jv1n+Jb dF3FeIPKpZXhgP9XxKGtl7CobQxhDaWbR9c3BqK+EyOQ8n3WYFAE2Jzc6X+bd2enYw1t XFPOBsUlln603b57/qoJNcElFiedaLPxoYs62XTidwf+FMWi4lHZzVBHyhtBv7VAc9zD PYfpCyqwedAEdzZc4pul7lL3qANitHli2AxRVnSAsXmAC/L30Q5pszWOMA9kedrTNHH/ HXAtgkiMi4L7NUeNlbGwH5Qlhg0fcuQDDCjT4IV6DA7sN5dnRl8X226GTRXE51s3+xu5 rghQ== 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=hAP00yMei+g8+wSZWFmuOkh0fovrLKilaiwVA0/bqbfg6i1kHLu+XvJVv19/1vynJY CREVn2SkO2qPyOjio8aP/F73uKEXf/G8NfIG2dF9XjWdH1WOUW/xaH9VisFvdQl2fN+9 MN/oxnNA8UIREFIt8ETa1H9s6xUMEZArVKeK2pVtdxqI6dSjIxWSfi6QamxPvLu20ApG y2NWW0bg/yhbFVPDjFzPz3516GTU003Up05PYUv7HOwZwFDO1aoi+oW9tV+tpi0VruWP D6PzNB0RRShrZcteO1o6p2kyveNe8w3L9O02HW88ZHRLUJbR3ADXn4QlW1XmttOrFwLO Zh/A== X-Gm-Message-State: APjAAAXgLo7fXq7MiiZCn+dqWySF0IcWSRjZFmXbWExRfgIOAJ/VhytL +2tO+DLDk2qQpdIu8LBQ3JBF+LUS X-Received: by 2002:a17:906:c7c2:: with SMTP id dc2mr28733856ejb.182.1553939813418; Sat, 30 Mar 2019 02:56:53 -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.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Mar 2019 02:56:53 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: hjc@rock-chips.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mark.rutland@arm.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 4/4] dt-bindings: display: rockchip: add document for rk3066 hdmi Date: Sat, 30 Mar 2019 10:56:39 +0100 Message-Id: <20190330095639.14626-5-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + }; + }; +}; -- 2.11.0