From patchwork Sat Mar 2 10:41:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10836563 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 5F0511515 for ; Sat, 2 Mar 2019 10:42:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47D0E2B5FA for ; Sat, 2 Mar 2019 10:42:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BFA92B65F; Sat, 2 Mar 2019 10:42:57 +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 E22DC2B5FA for ; Sat, 2 Mar 2019 10:42:56 +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=L1IRk3EYrL+S0TZAzzSU2JpgHOnGzFWyIksn4IBbhZc=; b=lI3+PMn1uJ7qE4MucNVgfFO7TT NZ+iUQ50Z8s6ND0X7UAFDk3sErC1hVJBZqTp3jSD56Z5sajBtkqq4yEia5ctbhugq/BhL2dZBlL97 9LifGahfEKfZ2Bo3jdw0fSCw0hHeaEpdigX2P5OpyLlkfOOBJSfiGHdv4VhBq3n9whWvhLK4P62dG QamkIco5u5AkaInlGVk+icUS4uwpMc4xDPw3Mza3OD4Y2p/7fceDjwaHi2tQ66+4Hm0mcJXhPUSGT XGQ00APk2j5QL9980zJxG5Xp16AbIZFmM2e8Xv8hylBRj/0EiaOjDJztB+mgvSTMBbWab6BDLSPe8 X3W5eVlg==; 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 1h026Z-00083x-KA; Sat, 02 Mar 2019 10:42:55 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h025F-0006Tu-Ea; Sat, 02 Mar 2019 10:41:39 +0000 Received: by mail-ed1-x542.google.com with SMTP id f19so419563eds.12; Sat, 02 Mar 2019 02:41:33 -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=k0IZOdvLCkGg4A1rG/jT9gs59rhyTgC9sJn60ktdxwY=; b=jeWD2o4AGv6UjXZu6suNlyvpGFu4DPSJLzkF+l1PO+5S0Z8Ahe2OWd+wDuhH9+nMKd 4WK3JqUhKZXEBiBHFvf+2eEzQFVbllTyD5DycWRyG/NZVih3wd9OTYNVSZNix9/4gBc5 P9mdV+ilJtTOuXBbbbzlAAZkeZVyE3Hr76MnXheWTebRgvYUU2hOCoVhk6HrVah6GEyw bU9j0ywGi9bLo+kYpBmrGaCGWv1WKCywSKXRMYc7XCOvAahnL+CSOWlLKoS9xXlR2QPt BdIMota+sZxDnHuve9NIsciWCi6RId4QqeNcgr8PFCTNdSA4XhZwODYvb3CV5Cb5+4sE N7Dw== 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=k0IZOdvLCkGg4A1rG/jT9gs59rhyTgC9sJn60ktdxwY=; b=h8eGCE/Nz3ITQHZXPnW8+1P62bYc8keM6h05Lx5YqCRQNmrGEe0MSUycbC1ezVu99v CFMkoIZLTWrVdYBCNfsn+pKP906YwKE3wKuxyhVLg1MJiBFDfGryxsF3HhcjkdYRunwC 79N/U50K8bicymX1FETS4/OxfRi+PDG9y3q4Uw7vtzibJ0A6lGUnCeCgJG/DTZkOZHBz guUSvh7f+w43bTeFoID8nD+X12MhLfUEFW+5+ROu3dYBwcT4CktyudR5uTYl054sMtrQ FQ43TwMJDW+FhmpUOe9JNttejGfLSGVKrRbGJ8dzKL8t6zmTwdDx//trAllpBSp009Sv S70A== X-Gm-Message-State: APjAAAVGjfvE65X7ynGBXCcP9S4HFBpe0SoXv6rdwW0OMl6MGM/ytRnj LFQU/JX4p+tRUf+89otMyeLanrN5 X-Google-Smtp-Source: APXvYqw6XTc5iltKzPZx2VMtZk7EH2Y/w3RFaiZcnnKw4gQHBYmygOvHy7pGsXpYeJncxfOah/S/Fg== X-Received: by 2002:a50:b482:: with SMTP id w2mr7817144edd.41.1551523292114; Sat, 02 Mar 2019 02:41:32 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 36sm247711edz.58.2019.03.02.02.41.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 02:41:31 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v3 4/4] dt-bindings: display: rockchip: add document for rk3066 hdmi Date: Sat, 2 Mar 2019 11:41:16 +0100 Message-Id: <20190302104116.1535-5-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190302104116.1535-1-jbx6244@gmail.com> References: <20190302104116.1535-1-jbx6244@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_024133_715435_B0D4F9BB X-CRM114-Status: GOOD ( 14.82 ) 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 This patch adds a binding that describes the HDMI controller for rk3066. Signed-off-by: Johan Jonker --- .../bindings/display/rockchip/rk3066-hdmi.txt | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/rk3066-hdmi.txt diff --git a/Documentation/devicetree/bindings/display/rockchip/rk3066-hdmi.txt b/Documentation/devicetree/bindings/display/rockchip/rk3066-hdmi.txt new file mode 100644 index 000000000..d1ad31bca --- /dev/null +++ b/Documentation/devicetree/bindings/display/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>; + }; + }; +};