Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4482438imb; Wed, 6 Mar 2019 14:42:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyBG/5yTObC78tQz1GfmLH6bhXnoy+VDcVfOgGApgu1KbdGvAFMj1enD4i/zW3Ztg+G4rFV X-Received: by 2002:a63:2d3:: with SMTP id 202mr8548966pgc.104.1551912143377; Wed, 06 Mar 2019 14:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551912143; cv=none; d=google.com; s=arc-20160816; b=JhRL1PRWd1W8y7xSxFYUMhm3C1U5FrqsaHrHQOUVaXXpWKQwzxypgB+qNVC24rXXxH QZxz19smUmxIHFv2IaW9KrbZQnTMd8YyPXXEpIzm/oM+FIaTEciN+6DRwGMSivNRWuTU w74qhWoSfXbBSlFMzikQj/Nr7lycwp2tlBdkr4ACcgYLa3jSn8o7Qr/PNtkP8jLVE2d0 UxECqSvit0BPyVoP6ICa8f8RA7XX7n9361EWrt0xD0sjyNfUCmtB/YdZU65Rv+PW4jio KRDDLCf7ju7zGZFTzFzg4PoDEVqghZCVVFlNlwoizcRzAAktVJWOHiBu9TIxAYM49BI5 3hKw== 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=lYw/rfpnmdx5PH54T9Dya+xirh/mbWltaop30jtIhxc=; b=u9fnJd6IYzBHByZFb8KQUDJD8xnUCHkuMntdXj1D5lGH23UfCSUtL8iiZzWpadqWBF zCCwzOmIFxuBNdtKspX5afhl1+LtFjhZ2qvzSR9E03sLCCHMnYpq7VJFEjUKQYyXXt/t /7zMvLFRxhd4KR3ZCIrreYlAu8tAGwapXfSjuhkbwZC5hrnA70WVVGhwNBPy9LM5AATl I+ZXN18m6RB8WgjQFff5O+ZhJVsqFfWrf0roi/SAYkaRMI6He/b70/Bvg49f+OcrBWnr dXgktzK/1XoRjvuxCG7ERoGUQ3Bwqf9DE7Ce+gM2fsblJ+EF19ykZ5YYsV/1SV+5WHaq i/nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BrIv6U2U; 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 v1si2419842pgn.583.2019.03.06.14.42.08; Wed, 06 Mar 2019 14:42:23 -0800 (PST) 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=BrIv6U2U; 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 S1726254AbfCFWll (ORCPT + 99 others); Wed, 6 Mar 2019 17:41:41 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38638 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbfCFWla (ORCPT ); Wed, 6 Mar 2019 17:41:30 -0500 Received: by mail-ed1-f67.google.com with SMTP id h58so11803487edb.5; Wed, 06 Mar 2019 14:41:28 -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=lYw/rfpnmdx5PH54T9Dya+xirh/mbWltaop30jtIhxc=; b=BrIv6U2U3tq4P/QFhr3m+VGM/e62k41EH3dT5i520PqOf01CtztW+EgmZjnWNvag8q a8qSLoxDOcTV+ujRW1/FY3EPGiz7ZQN6QInVgf6IOLkvwXs8SIFgzMlYLULkkOB9tkdv FhdpFIQRhqdd824LhxkZWl1buIUcNpZt7QQoCNQbkUY8mnR2e0jb+UGYMTp5A7yXw5dX F1Fg+Uq/WMwahhpLdOE15BaBi+tXWJbXoHknYnjh/xLw+YAvsIc1hAb5kUBLBzgABflt KR3FYL47t7bN0irto1EreuC0HL4VRRrVwWdcd8YnqcQ3Bg8XDz+lycUURd5hkkWDKlcm 4XwA== 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=lYw/rfpnmdx5PH54T9Dya+xirh/mbWltaop30jtIhxc=; b=qrV9z4w8ErresiqXSYLr+GISc8zhMLGSur3Pu0KS2W3cVL/VbXVoiNteWYs9a23DjY pPMpyqSrgIqjyUjvntwYMKNwYVSqJdcr8l3fATrhS98LCuAJ/SrcVZWx0y13CKQzL4va +qKUd0J1dKIgb8/N064PHnDSV23gZMnVI7YoV7Hf9hL6fCs09hBZrtIyndFczwydxAsP YaJmsVWpIAW0e6ENM6Dg4T7tZKgrk/F2qlX1nUh7EoE94RL5W6cEBlcJMGuZ6sxuKw+V LWCVjJ0aERF+C3apo9eMgGJYf1+9w9kq1qE0tLz2rdKcMMnFq592EdkXH9ay8YQqSfyJ kkrw== X-Gm-Message-State: APjAAAUsw/NBYPNlGraNyagheE/sy3qwSh8pUDqG4amyNQyNdFiJBv4I 5tSB5j/BW3uVKwyd9ypXny8= X-Received: by 2002:a17:906:49c3:: with SMTP id w3mr5600623ejv.148.1551912088257; Wed, 06 Mar 2019 14:41:28 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 36sm801356edz.58.2019.03.06.14.41.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 14:41:27 -0800 (PST) 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 v4 4/4] dt-bindings: display: rockchip: add document for rk3066 hdmi Date: Wed, 6 Mar 2019 23:41:13 +0100 Message-Id: <20190306224113.24853-5-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190306224113.24853-1-jbx6244@gmail.com> References: <20190306224113.24853-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 --- .../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