From patchwork Sat Dec 16 02:49:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 10116807 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 B4A4E603FA for ; Sat, 16 Dec 2017 03:00:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A12BE2A0C2 for ; Sat, 16 Dec 2017 03:00:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 935AA2A0C7; Sat, 16 Dec 2017 03:00:27 +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.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 F35722A0C2 for ; Sat, 16 Dec 2017 03:00:26 +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=KWo2IaugSQunXkfZZXqt8/Ny39F+Gj1GCNm8C96YNHs=; b=ojpUatJJSCqsjGUZeUW1s3ngj+ ua/CQK2Ca0Ar9DxHAq0TOTweruIXbcrFx84/sBv8w6Zy6xnwXu3nHnH+u4bi0ZEz9qUioUIMGRYbY G33vx+lIuBVAimHrxzskFnmMgKVBGbLsjti6nXEauHbCx+OfCIj2gUVwOlZ7XG5lgcD8nQjBxIvuv AfnNwp8TnQlocwrnJr0/4pIWUUyyqZw8jxbjbSlM538YahA0KpJTAog+PqKaG2/KyoI3KO/3cbGUT BCHi1PXhU0RIYV1XiSURt2Q++61DRLZgV2DGVD88EuE4GTKIcRD+mGmtmx9rbFSB2ZFqcxA+uOEaT QWRFmWKA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eQ2i4-0007E3-58; Sat, 16 Dec 2017 03:00:20 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eQ2Xu-0000Hf-33 for linux-arm-kernel@lists.infradead.org; Sat, 16 Dec 2017 02:50:01 +0000 Received: by mail-wm0-x241.google.com with SMTP id i11so20624152wmf.4 for ; Fri, 15 Dec 2017 18:49:26 -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=vBclR2e9fP+/2lwVb3/gXugPI9bQEb7s96Bg6Z8f80g=; b=dLx2E8qGdDwHMuF65KrxT6iDEoQRkO6O1KmCW0OwBjX71EBPmLcq45fEgCVrt1vyeJ Jdzolyp6/Xj36fcxejVjaZP9yDc86jN+FgVRb7ORJxlo+WFfT/0Fgyu+wvSaZXGeZ3cN jzHrEi4IDKR44JtGJ4OnVuR7mu4uCQXc1Xn25E3ypoDwbtTWu2313OgE6+0Vd2ibxUSC K/by1q+SKGC+pQ2JdIRBh3IjCkNUMrUBkv7f+davb7yg4PKLqxreUaCm1yBLrJym1WW5 kVdf7/fF/evcpWK/QUQWl46kXVy7yzKmP+l1IxJgzyXKRJToZWKAWlG9b6kFnPWGPV5D NovA== 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=vBclR2e9fP+/2lwVb3/gXugPI9bQEb7s96Bg6Z8f80g=; b=sHzFfbVHORS+Sc7d7Lyszg9zq7SseDFJSS2whUIgqn0hNPsU3zV0IKlCdpSeUAO5SD xGWJw7L7i6teWPi1C1f7CAO//DC45198Tp5pdMUThtd88v4MJ2szb2ReT33TyhmOu8Lb 6tmXkCu6LgCBpSt8UVu5s5FSPQ1b0mMb7Il7aoMDSVTXfEdrbU2UauEmy0msUES1pE7Z EF83QPTVIXknOV41jH2O4UN7b6kxj8G2Nvn5d3/WXz3bkj6OZOfu9+6PyIKUs35QrvYw 9dRuYEAzvNeGSAjGp/7/lRJy5pQWW4+snsqoXrRVmZxt46ElIPTg8nsWKtvSPWrnTCFZ lxUA== X-Gm-Message-State: AKGB3mJHt1r4VIJTpz/GcJhtSZPb9wYxeytkIt8X4+WFWXu+nVzM5Aah cVdE2whpoASIltXuTX8+byI= X-Google-Smtp-Source: ACJfBosY9a6EWzsga63qFA1nKvY+c8Kz3w0fAvqZSqyDgOGI5tD1XNxdo4pet6hhwA7kT08uVZLkHg== X-Received: by 10.28.225.197 with SMTP id y188mr6434575wmg.12.1513392563872; Fri, 15 Dec 2017 18:49:23 -0800 (PST) Received: from debian-laptop.fritz.box (p5B3DDB65.dip0.t-ipconnect.de. [91.61.219.101]) by smtp.gmail.com with ESMTPSA id r19sm3713035wrg.83.2017.12.15.18.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 18:49:23 -0800 (PST) From: Philipp Rossak To: mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, sean@mess.org, p.zabel@pengutronix.de, andi.shyti@samsung.com Subject: [RFC 5/5] ARM: dts: sun8i: a83t: bananapi-m3: Enable IR controller Date: Sat, 16 Dec 2017 03:49:14 +0100 Message-Id: <20171216024914.7550-6-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171216024914.7550-1-embed3d@gmail.com> References: <20171216024914.7550-1-embed3d@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171215_184951_183705_6213F38D X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.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 The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Other than the other IR receivers this one needs a base clock frequency of 3000000 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 7 +++++++ arch/arm/boot/dts/sun8i-a83t.dtsi | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts index c606af3dbfed..2c92c501cd59 100644 --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts @@ -88,6 +88,13 @@ /* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls */ }; +&ir { + pinctrl-names = "default"; + pinctrl-0 = <&ir_pins_a>; + base-clk-frequency = <3000000>; + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 5dbf2f0891c1..679ce3a66b4b 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -470,7 +470,7 @@ #reset-cells = <1>; }; - ir: ir@01f02000 { + ir: ir@1f02000 { compatible = "allwinner,sun5i-a13-ir"; clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; clock-names = "apb", "ir";