From patchwork Tue Jan 3 14:54:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9494973 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 0BB0C60405 for ; Tue, 3 Jan 2017 14:55:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D019627317 for ; Tue, 3 Jan 2017 14:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4F552780C; Tue, 3 Jan 2017 14:55:33 +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 7DF4927317 for ; Tue, 3 Jan 2017 14:55:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C3B4A6E59A; Tue, 3 Jan 2017 14:55:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x229.google.com (mail-wj0-x229.google.com [IPv6:2a00:1450:400c:c01::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id E3F1F6E59A for ; Tue, 3 Jan 2017 14:55:12 +0000 (UTC) Received: by mail-wj0-x229.google.com with SMTP id v7so447012666wjy.2 for ; Tue, 03 Jan 2017 06:55:12 -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=VGN+K+tALzaFPYp+ZherDQy75LEgcq3bYlB1rldCA00=; b=AHaUKdw2xJJjndRiEJuF2JuVJ4WGagrcht4T6qulKkBTo95a+pM0kwSb27RtzFNgoN IfPtjK/6TMhkF9bkv/bYuNMlrwd3lHrqDoVzhSpQSBIEYWxdnU866GquM8SyOZgdZ+HJ rv5ElGp5uJV6KyFTsiFe3tSFPWLqFaRb5txLo= 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=VGN+K+tALzaFPYp+ZherDQy75LEgcq3bYlB1rldCA00=; b=GfJ/Nfmw12mxcBTl6WTn+rZQUE3G7YCiQDc0c7xAW93URlKb3RyLxvHBvvMF2IXaVt 2gXvKU4Yh1HV1hV3vsmOsE8GStNPNDr8WjJYC7nhJqowcCy9bVgvwzThrYbWYL1I0TW4 4/v+HHuoH1olGjaYBFhusBs49ogjmWO9lYlgUSUcFd6L+nVxSfRHGZMBKWGI+wKxLQ6+ gZcCn6qpBm2Hdo6O7SxBrgWA03a6l0c/deV88u1iPj7Dd28oIZZpT7/OqrODJ4EksX8D Tym8xpEDJLnJZlynqinHFVR6GDlhag5yKcP/utnXobq8pbt9bLzItlYRAtx54Sfm5qG0 OhSg== X-Gm-Message-State: AIkVDXLI8vPpO7zSBbD33JZL/4jJv+ATXtuvq0Av/JWhLw8PeDWy9ykIoqL+BLCY1WiZo6f6 X-Received: by 10.194.5.165 with SMTP id t5mr59517614wjt.107.1483455311153; Tue, 03 Jan 2017 06:55:11 -0800 (PST) Received: from lmenx321.st.com. ([80.215.99.28]) by smtp.gmail.com with ESMTPSA id jz1sm67997274wjc.38.2017.01.03.06.55.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jan 2017 06:55:10 -0800 (PST) From: Benjamin Gaignard To: linux-media@vger.kernel.org, hverkuil@xs4all.nl Subject: [PATCH v2 3/3] arm: sti: update sti-cec for HPD notifier support Date: Tue, 3 Jan 2017 15:54:57 +0100 Message-Id: <1483455297-2286-4-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483455297-2286-1-git-send-email-benjamin.gaignard@linaro.org> References: <1483455297-2286-1-git-send-email-benjamin.gaignard@linaro.org> Cc: linux-fbdev@vger.kernel.org, linaro-kernel@lists.linaro.org, linux@armlinux.org.uk, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org 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 --- 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..e8c01f7 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>; + st,hdmi-handle = <&sti_hdmi>; + }; }; };