From patchwork Fri Feb 17 10:46:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9579583 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 61656600F6 for ; Fri, 17 Feb 2017 10:47:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5468727E5A for ; Fri, 17 Feb 2017 10:47:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 494FF2843B; Fri, 17 Feb 2017 10:47:11 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 0D22D27E5A for ; Fri, 17 Feb 2017 10:47:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 558506ECD1; Fri, 17 Feb 2017 10:47:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F4466ECCA for ; Fri, 17 Feb 2017 10:47:07 +0000 (UTC) Received: by mail-wm0-x234.google.com with SMTP id v186so11136578wmd.0 for ; Fri, 17 Feb 2017 02:47:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qajtggMDVhl9CILU+74kb2C60yUvyw5sZt1ZKF8w324=; b=NxxjNmZZVi7epCpa2np6ZzX6Ty3RIwEda83zq8XEEGokTVqjWed1fYvGKaTp+WFZ+V cijR8q5jnMGeGMX6InPT6RO7Oc5D5XArZO/PUEGivDacfk1BxYq5mTDBlG43O87FXS/q wEgpljs7a3/YBHFpPvJbU4LGTkx6bhyvvzk1c= 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=qajtggMDVhl9CILU+74kb2C60yUvyw5sZt1ZKF8w324=; b=TQd1PQYojaZQAbHxWZ5X2pIDGGJ5HmrBV/ygCfw8wDvlzeKIn2amFa0jEM0WMfOrov qZmS+kAeb61hre8xOOHDtyv0VqWotjRR+6oMTPGxMFIVaIMWoIZa8pgX1/uVBFn96nB+ rmWjZb3i29LruUGYDsN7yuthrBnr8tgeNRApEzfYwOA9w9U5VuqhZV2VTK1xjM4v1tZn 1rtj9xD/EmNRvx4a8TDIrZBzIpEtZkqY2qapGa71irDz06t6Upif9/WeRvnV8ORL0uBN jGwLY3SIcDHBiYlX922+1R9B14AJ7KFP1K90U/xNXVj6fX3xGb6LDbC6VBw5iyREN7Dr 3mcQ== X-Gm-Message-State: AMke39nFFPB0/qqWQ13x3DbY6HaMjlJfDlWd116atMKlMdC/UB/3AvmX+jiNdAu2GiFVQVXO X-Received: by 10.28.148.66 with SMTP id w63mr1569892wmd.43.1487328426316; Fri, 17 Feb 2017 02:47:06 -0800 (PST) Received: from lmenx321.st.com. ([80.215.199.19]) by smtp.gmail.com with ESMTPSA id u42sm12460346wrc.1.2017.02.17.02.47.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Feb 2017 02:47:05 -0800 (PST) From: Benjamin Gaignard To: hverkuil@xs4all.nl Subject: [PATCH v3 3/3] arm: sti: update sti-cec for HPD notifier support Date: Fri, 17 Feb 2017 11:46:52 +0100 Message-Id: <1487328412-8305-4-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487328412-8305-1-git-send-email-benjamin.gaignard@linaro.org> References: <1487328412-8305-1-git-send-email-benjamin.gaignard@linaro.org> Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux@armlinux.org.uk, krzk@kernel.org, javier@osg.samsung.com, hans.verkuil@cisco.com, dri-devel@lists.freedesktop.org, daniel.vetter@intel.com, linux-media@vger.kernel.org, m.szyprowski@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP To use HPD notifier sti CEC driver needs to get phandle of the hdmi device. Signed-off-by: Benjamin Gaignard Signed-off-by: Hans Verkuil CC: devicetree@vger.kernel.org version 3: - change hdmi phandle from "st,hdmi-handle" to "hdmi-handle" --- arch/arm/boot/dts/stih407-family.dtsi | 12 ------------ arch/arm/boot/dts/stih410.dtsi | 13 +++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index c8b2944..592d235 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -756,18 +756,6 @@ <&clk_s_c0_flexgen CLK_ETH_PHY>; }; - cec: sti-cec@094a087c { - compatible = "st,stih-cec"; - reg = <0x94a087c 0x64>; - clocks = <&clk_sysin>; - clock-names = "cec-clk"; - interrupts = ; - interrupt-names = "cec-irq"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_cec0_default>; - resets = <&softreset STIH407_LPM_SOFTRESET>; - }; - rng10: rng@08a89000 { compatible = "st,rng"; reg = <0x08a89000 0x1000>; diff --git a/arch/arm/boot/dts/stih410.dtsi b/arch/arm/boot/dts/stih410.dtsi index 281a124..71deb02 100644 --- a/arch/arm/boot/dts/stih410.dtsi +++ b/arch/arm/boot/dts/stih410.dtsi @@ -259,5 +259,18 @@ clocks = <&clk_sysin>; interrupts = ; }; + + sti-cec@094a087c { + compatible = "st,stih-cec"; + reg = <0x94a087c 0x64>; + clocks = <&clk_sysin>; + clock-names = "cec-clk"; + interrupts = ; + interrupt-names = "cec-irq"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cec0_default>; + resets = <&softreset STIH407_LPM_SOFTRESET>; + hdmi-handle = <&sti_hdmi>; + }; }; };