From patchwork Wed Mar 25 02:28:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 202870 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA0D4C54FCF for ; Wed, 25 Mar 2020 02:35:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9154A2074D for ; Wed, 25 Mar 2020 02:35:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flygoat.com header.i=jiaxun.yang@flygoat.com header.b="DjuCOQ4e" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727313AbgCYCfh (ORCPT ); Tue, 24 Mar 2020 22:35:37 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17898 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbgCYCfg (ORCPT ); Tue, 24 Mar 2020 22:35:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585103557; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=npt681j7OlP7ZSLk8k6P4PyWCdxxnt6o5Olle4tXENs=; b=DjuCOQ4erRnLLiXGEbfrRUs43h9P4HLYMuXPb1FGlzWCV8FKI6xsFeYRowUydzRf Xb2WgmTQxWLp+zfflNUpcgcdszYSnrytwSiCiYncfWEOQ5cl+G2Vzq/FLc38H9f+3DC 8mr5kZ6sQsEP3dfCmRLc/5b4lZNDXSJ3n83EOHkk= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1585103555009451.3472600108754; Wed, 25 Mar 2020 10:32:35 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Alex Smith , "H . Nikolaus Schaller" , Paul Cercueil , Thomas Bogendoerfer , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Jonathan Corbet , Huacai Chen , Jiaxun Yang , John Crispin , Matthias Brugger , Jean Delvare , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Jonathan Cameron , Andy Shevchenko , Andi Kleen , "Eric W. Biederman" , Kees Cook , Paul Burton , Miquel Raynal , Krzysztof Kozlowski , Yinglu Yang , Tiezhu Yang , Allison Randal , Bartlomiej Zolnierkiewicz , Manuel Lauss , Serge Semin , Matt Redfearn , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-ide@vger.kernel.org Message-ID: <20200325022916.106641-5-jiaxun.yang@flygoat.com> Subject: [PATCH v7 02/12] MIPS: DTS: CI20: add DT node for IR sensor Date: Wed, 25 Mar 2020 10:28:20 +0800 X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200325022916.106641-1-jiaxun.yang@flygoat.com> References: <20200325022916.106641-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 X-ZohoCNMailClient: External Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Paul Cercueil Signed-off-by: Thomas Bogendoerfer --- 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 c340f947baa0..fc4e64200c3d 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -62,6 +62,11 @@ eth0_power: fixedregulator@0 { enable-active-high; }; + ir: ir { + compatible = "gpio-ir-receiver"; + gpios = <&gpe 3 GPIO_ACTIVE_LOW>; + }; + wlan0_power: fixedregulator@1 { compatible = "regulator-fixed"; regulator-name = "wlan0_power";