From patchwork Wed Mar 6 22:41:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10841879 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 37AEB139A for ; Wed, 6 Mar 2019 22:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EB8E2E2D8 for ; Wed, 6 Mar 2019 22:42:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FC032EF72; Wed, 6 Mar 2019 22:42:09 +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=unavailable 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 A604C2E2D8 for ; Wed, 6 Mar 2019 22:42:08 +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=dbY2HhPUaSdI6WXjoYRUHAJc1VxwFtO7bLaeZ85JBsg=; b=SH0CA46w8pZKKDpp/SPcE0Wyrj KEF6MDCk3wROZxrgeC4r0QHnxCdJTHI4xOE9bgb+QdrqXdib5ul3M9m/cvm0FhjJ6Bo9MsGUK2F+q wCNS3iOV9isPJV1naIGym8KlhJ9kQUmenk19Txzxy/xlG9TRWVPuNEUaN8jbaLAwWeyorjIkvL2J0 4VCPh77uRn1YkFLCseN5KM6XCK+2mjDwmragQRoyQgXVYdqaWIEtvcS/LXy4PAtIJ1aCeW71NB4yc y3YMJHoQX5S92JLfsKf/2WdtzQ0/oRqdRLJJ1P9oYbM6hpJ0udNfbvx1Jg6Yd9vmhfJ+lqJbEqf4r 9Ehy0EjA==; 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 1h1fEi-0004DG-Sb; Wed, 06 Mar 2019 22:42:04 +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 1h1fE9-0003Si-JE; Wed, 06 Mar 2019 22:41:30 +0000 Received: by mail-ed1-x543.google.com with SMTP id f2so11787676edy.13; Wed, 06 Mar 2019 14:41:29 -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=oH0bwzMJg9KozBqlxtQcjzZqCunhZ1dMW3oEG+891JXlYTK3a9ZNbG/6gxuNkduJPR aurcEDyqOXQERkqqqtp3Fg0LiRxCsSpX+6OSGV+WqyGdJ6ELB1pT9/P7Mbn/qTyHOX5E 65D/1kyvePcImfmjCm4gyJSs4vs5jEvEExs2yIlJSWLtr6EY4RTDSumNCU5n/t2Ucf1i dEpWD76C//CWn4aLBiWeRXWqyTuJRiN/dM0UTMKtZTPv47tqVeOAnRpQbvTTdS1+Jzb7 qHWnnxU0Ii1Cdq9JZ/zi0tZEDTwRw0TQRVWd5NCPLt1q1pF7cZUNnkpnqcSzELbjsHyz 5msA== X-Gm-Message-State: APjAAAVbxsdnwZgT97pQcUY6smjkRXibFXEOAyZlgXtFYNpMT/DqQN5Y yMfoil8/R8fudW1VMMT/hOk= X-Google-Smtp-Source: APXvYqxLvSYhPEHTA1aLKT+CtV1kNLINP0BIHrCRXxvBT24Sfu9VPvwxXvQvOzq4Fazi9pQl7vc10g== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190306_144129_639335_6C3BC5EB X-CRM114-Status: GOOD ( 14.06 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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>; + }; + }; +};