From patchwork Fri Feb 14 16:10:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H. Nikolaus Schaller" X-Patchwork-Id: 11382695 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E0617138D for ; Fri, 14 Feb 2020 17:20:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF684222C4 for ; Fri, 14 Feb 2020 17:20:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=goldelico.com header.i=@goldelico.com header.b="I826faO5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390285AbgBNRTu (ORCPT ); Fri, 14 Feb 2020 12:19:50 -0500 Received: from mo4-p03-ob.smtp.rzone.de ([81.169.146.175]:14760 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391595AbgBNQKt (ORCPT ); Fri, 14 Feb 2020 11:10:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1581696641; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=tz5FT9e8j/vOF6dHesX7jElKIt8MXbKvwaqQV2chsVc=; b=I826faO5T/TvkRm4b44fKQRk6/GbQN4VWUSiNG6gkDRGy/JUhuMJR+8xnFMppsb0zP 0BrRdW88d+ASFDdpKjHypiL1falTEQwChfC+lJQCYX2BRRJT/dstJOlQXJlXDUklq2mJ +ePGLjINTi2K/kg//9/R3MDpLPC5kvN44r7pgAsY6orpKztBLC4Ta8mt6IU7xcfelct6 T9r0h2O9vhj82Wl5gsKg9spBZWHJVum/EtXPu5Tc2dzELQr74ZWzQv9MOO08MbWQKsRp uAzIRgPbD4b3oUiaWh9AwTm4lPF0aGGq417yfIl02jkb1+D58wcaN1R8GVdtyzTWrSTr UpQg== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1OAA2UNf2M7OMfsfQx3" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id U06217w1EGAUFl3 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 14 Feb 2020 17:10:30 +0100 (CET) From: "H. Nikolaus Schaller" To: Paul Boddie , Paul Cercueil , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , David Airlie , Daniel Vetter , "H. Nikolaus Schaller" , Andi Kleen , Miquel Raynal , Kees Cook Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com, Alex Smith Subject: [PATCH v2 08/12] MIPS: DTS: CI20: add DT node for IR sensor Date: Fri, 14 Feb 2020 17:10:20 +0100 Message-Id: <31af38e43747fbcc1248bcb83975997d1385838e.1581696624.git.hns@goldelico.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: Alex Smith The infrared sensor on the CI20 board is connected to a GPIO and can be operated by using the gpio-ir-recv driver. Add a DT node for the sensor to allow that driver to be used. Signed-off-by: Alex Smith Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index e1364f941c7d..b4a820313992 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -62,6 +62,11 @@ enable-active-high; }; + ir: ir-receiver { + compatible = "gpio-ir-receiver"; + gpios = <&gpe 3 GPIO_ACTIVE_LOW>; + }; + wlan0_power: fixedregulator@1 { compatible = "regulator-fixed"; regulator-name = "wlan0_power";