From patchwork Wed May 31 11:00:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 100739 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp263573qge; Wed, 31 May 2017 04:00:38 -0700 (PDT) X-Received: by 10.84.217.21 with SMTP id o21mr1361459pli.50.1496228438787; Wed, 31 May 2017 04:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496228438; cv=none; d=google.com; s=arc-20160816; b=arQw+WBtEM0ihjcEM/WXUGha7Ce76Z9DxPr1LMsV5ZhKH1RUtyktIXRZndK/ZC30WN Ud77QyuJChtDfA2iNOLd4G0AlfynLM0Wmv9wmw0aN9l8skchJqlj9hXXkpLJN9LUC7kR fVVuEjfPNFiHWcksycASNU2tU91Uw0zfzp8R8ivIgUGT5OQu+dYbEXvdCqrpWF8wm5xJ r5sDt0LdSgqJ7ZUJTKEZh+IaGV3kH4MfzmLBNBfm7J0Aq7xjIpSmqa7gZ0kGl4NxryPR 5UygUZS+7Gyj/mrW9H6+wkXfvL+JnvGjCqHGLWYKMYZ/NcyLdEV6r0taWFE7xEBkBeOL gn3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:arc-authentication-results; bh=VOu/3rksmEDcwAUZ2vbhOPPR5dXMfZw2BWzNMkcBYZE=; b=KBPZse4S99vMkUwdOoRofZmKfUCuenUwyTv/qZlDsGPfIt2OXuuKJf7Bmnri9kuQeI Tut+JWsX9D0DebI6UeYsXCYTuSXuWtulmD+dCxrxKd92lz/7g3JdnlFlo5xEVeNa0pMm oYjO6L/oHnfOxZtkiMJRFBrbLD84R+KUgDV+ZUOaZ2SxAI0Y0lNMp8a0Z0r3SIrFDrKc uRjLzxP8hXX+pPuMPGSd4XDCZnSnRnpdkxS87osMzszyLTEjrwzTzEFwsmcNkg0C5/7X WbYvNNyVomDbmpNLrhA3zle3f4HutNA5tlLKyaPr49GC7o+32G5Ewo2JD1KoeF7AoY0m t8tQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35si20948047plh.23.2017.05.31.04.00.38; Wed, 31 May 2017 04:00:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751116AbdEaLAh (ORCPT + 4 others); Wed, 31 May 2017 07:00:37 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:26349 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbdEaLAe (ORCPT ); Wed, 31 May 2017 07:00:34 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OQT00AVED8V1J50@mailout2.w1.samsung.com>; Wed, 31 May 2017 12:00:31 +0100 (BST) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170531110030eucas1p21b249216b1dd4c2998404b34e2a538f5~Dq9R5bgrr2549925499eucas1p2h; Wed, 31 May 2017 11:00:30 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 2C.C7.04459.D42AE295; Wed, 31 May 2017 12:00:29 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170531110029eucas1p14bb9468f72155d88364c0aa5093ac05d~Dq9RCQxZ00963509635eucas1p1P; Wed, 31 May 2017 11:00:29 +0000 (GMT) X-AuditID: cbfec7f1-f796e6d00000116b-05-592ea24d7e62 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 4C.63.17452.D42AE295; Wed, 31 May 2017 12:00:29 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OQT007NAD8PPY90@eusync3.samsung.com>; Wed, 31 May 2017 12:00:29 +0100 (BST) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Andrzej Hajda , Hans Verkuil Subject: [PATCH] ARM: dts: exynos: Add HDMI CEC device to Exynos5 SoC family Date: Wed, 31 May 2017 13:00:17 +0200 Message-id: <1496228417-31126-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsWy7djPc7q+i/QiDZr6DS1urTvHarFxxnpW i1OTnzFZnD+/gd2iZ8NWVosZ5/cxWaw9cpfdgd1j06pONo++LasYPT5vkvM49fUzewBLFJdN SmpOZllqkb5dAlfGzF+mBXcVK7bcbWZqYPwn3cXIySEhYCLR9mo3O4QtJnHh3nq2LkYuDiGB pYwS8479ZQRJCAl8ZpRoaImBabh1cD0jRNEyRom2F8uZIZwGJonvp6Yyg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fgQowAHoxIPr0GZbqQQa2JZcWXuIUYJDmYlEd4tLXqRQrwpiZVVqUX5 8UWlOanFhxhNgZZPZJYSTc4HxkteSbyhiaG5paGRsYWFuZGRkjhvyYcr4UIC6YklqdmpqQWp RTB9TBycUg2MSfWPdQ0+xXvIJ/lz/VrqOuGwx0+HuAX1U05cuRLg8Pir3osHUVuiVusXJ9yJ fJfqf7t26+PTqzce51xY9q5IXt9MLvpi83UJg7ajW1hF9bsSDm+u/7Et9WTONZNljTq7XA4X bn0bVFm/IZRBSpbnUN6txxJLFN59CH/bePXdm55q9tjSedYblFiKMxINtZiLihMBq4q/DV8C AAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170531110029eucas1p14bb9468f72155d88364c0aa5093ac05d X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170531110029eucas1p14bb9468f72155d88364c0aa5093ac05d X-RootMTR: 20170531110029eucas1p14bb9468f72155d88364c0aa5093ac05d References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Exynos5250 and Exynos542x SoCs have the same CEC hardware module as Exynos4 SoC series, so enable support for it using the same compatible string. Tested on Odroid XU3 (Exynos5422) and Google Snow (Exynos5250) boards. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow-common.dtsi | 4 ++++ arch/arm/boot/dts/exynos5250.dtsi | 13 +++++++++++++ arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5420.dtsi | 13 +++++++++++++ arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 4 ++++ 6 files changed, 48 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi index 2f6ab32b5954..1fd122db18e6 100644 --- a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi @@ -589,6 +589,13 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + hdmi_cec: hdmi-cec { + samsung,pins = "gpx3-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_1 { diff --git a/arch/arm/boot/dts/exynos5250-snow-common.dtsi b/arch/arm/boot/dts/exynos5250-snow-common.dtsi index 8f3a80430748..e1d293dbbe5d 100644 --- a/arch/arm/boot/dts/exynos5250-snow-common.dtsi +++ b/arch/arm/boot/dts/exynos5250-snow-common.dtsi @@ -272,6 +272,10 @@ vdd_pll-supply = <&ldo8_reg>; }; +&hdmicec { + status = "okay"; +}; + &i2c_0 { status = "okay"; samsung,i2c-sda-delay = <100>; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 79c9c885613a..fbdc1d53a2ce 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -689,6 +689,19 @@ samsung,syscon-phandle = <&pmu_system_controller>; }; + hdmicec: cec@101B0000 { + compatible = "samsung,s5p-cec"; + reg = <0x101B0000 0x200>; + interrupts = ; + clocks = <&clock CLK_HDMI_CEC>; + clock-names = "hdmicec"; + samsung,syscon-phandle = <&pmu_system_controller>; + hdmi-phandle = <&hdmi>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_cec>; + status = "disabled"; + }; + mixer@14450000 { compatible = "samsung,exynos5250-mixer"; reg = <0x14450000 0x10000>; diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi index 3924b4fafe72..65aa0e300c23 100644 --- a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi @@ -67,6 +67,13 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + hdmi_cec: hdmi-cec { + samsung,pins = "gpx3-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_1 { diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 0db0bcf8da36..acd77b10b3df 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -624,6 +624,19 @@ reg = <0x145D0000 0x20>; }; + hdmicec: cec@101B0000 { + compatible = "samsung,s5p-cec"; + reg = <0x101B0000 0x200>; + interrupts = ; + clocks = <&clock CLK_HDMI_CEC>; + clock-names = "hdmicec"; + samsung,syscon-phandle = <&pmu_system_controller>; + hdmi-phandle = <&hdmi>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_cec>; + status = "disabled"; + }; + mixer: mixer@14450000 { compatible = "samsung,exynos5420-mixer"; reg = <0x14450000 0x10000>; diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index 05b9afdd6757..01d6ac99e974 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -265,6 +265,10 @@ vdd-supply = <&ldo6_reg>; }; +&hdmicec { + status = "okay"; +}; + &hsi2c_4 { status = "okay";