Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp18291ybh; Fri, 13 Mar 2020 16:07:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvQJd9+ZwdjV5803P5FzGe8kUY9uZnMIB84uVu5JGj/hfg4r5OvPj3yiRAkp7wuZ/ar4P0P X-Received: by 2002:aca:5c46:: with SMTP id q67mr9119768oib.75.1584140827122; Fri, 13 Mar 2020 16:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584140827; cv=none; d=google.com; s=arc-20160816; b=NZ+PjqX4ry32FbhktqxnbFqbccZvRsSPiQk5yEsmWZPexycRK7E/QNPYq8yIJAikAy gbnnPCEe97gDM2zhrr6BsD4sU5I4pUXyj2E29PknZSxBsnrmGY8TcApiDYWuF+DEuUF/ 9SNyE4j+s5tCP30fl27IgePtQnCqutOuR9cdEVRfXGtIHsYuBILq9/LphS6vrkgu0hiY q3wHpE4TiBtN0q+QTzEX6SgId0lHZHcIiYZZuVVMQDmVOma41QnDmhe8ZA95uJR8hNds fbqjWp3GWC8QXgeeMapVA5e0f1jUGuv0nfQQ9uijuJHNhgtaEycGtO9l4yhc8oLfIw8g Wy1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=K19tWYumSLxb2jgL1zYdrr/V94anTYSOiMqlc5VxdrE=; b=KljQvQrbZISewZltfhfkFVHIpDgUBsw3EZmCkPw6YN1y47n1KxE1SzaWoqdU50cTvC OF//0n5YqRvvJJT5QCYLFZDyXtea7STWsasAzW30hpqY61G1L4C9lu1UMqr1KWvQclyL s3WBX4BPInGClA12QH6fzNF0qwE1Ct+csmkz3f7HnUOp6RSDHLhsbrF07v5dMrCQxBwa XWEwBHn0/tc/jo62aUP4sr5C1VdKnTaIx/VN6CR/vudRfuVjj4ow9sIEYPUyaf1xwmL5 XOJ0REpSJ7a52bYfqStUqTDv6PWFwF5DKlj8oU/oOXEERF0Pl42w4OF4XjHrvETkgVv7 Mzww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=alFec87B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si5209869ota.85.2020.03.13.16.06.54; Fri, 13 Mar 2020 16:07:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=alFec87B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727333AbgCMXFc (ORCPT + 99 others); Fri, 13 Mar 2020 19:05:32 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44447 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726681AbgCMXFb (ORCPT ); Fri, 13 Mar 2020 19:05:31 -0400 Received: by mail-qt1-f193.google.com with SMTP id h16so9104882qtr.11; Fri, 13 Mar 2020 16:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K19tWYumSLxb2jgL1zYdrr/V94anTYSOiMqlc5VxdrE=; b=alFec87BZpXN0KlqpPOND8yBwUN3qvnWceUs7RmxNXeRDLzbLwA4DYwSftKfaQlb/5 7CAPgS3YNllTd3voPPiwGOMxjOQZSYwCJA51vA5c2WrbGD0dXJDIk37PRPc9mHoyySa/ gIQjUk+ytd9tDQFbOxNsYc6bySk+TmEccp59iajt3fu5Fv8UiXif7ksXa1pNMPrSv3II c0pFJjeFk7YuM2R/Dsl0S74VPm2Wq6bFgbInkAYrPMvMgz2NxorHElKI3Z7GPyyxPvOO UHvD8Ewk/06FHXmloZqLkhsG/pS6FtdDbTO7EKDWK1SBmLHKgaVYuYCuUu7HS5LfHfbd JtQQ== 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:mime-version :content-transfer-encoding; bh=K19tWYumSLxb2jgL1zYdrr/V94anTYSOiMqlc5VxdrE=; b=cxPVexytEVah9blDzmMz4R5n/i6iI78FtLFAMt2XgUB9rnr36xoFICUT2PIupWfFV/ At5nEHNs/WjgWQf8DWKH/Yd60dfBdutC3q4GSGbKYyFrHhwGYN+A6cTPUbhCd9YDepCj +cj3IBbaK047pygZ5WgpkIa+HQot3nNzFmCPLjqGWc/Z8DEc6CcL3itqHQZI8nTpj17n A+R1uaQMERD7guOx2JiIP0KNfo9P1vygUDn+fP+qd95I6LBecrNYHLTaX5sgbzGSm6fb eP+EcUdz24NZdfRtfk9Vk/U4DM6y82fz0+C+xi6LEOtjsfcsd53SB5/QVDK0Lohj+VHq eqyw== X-Gm-Message-State: ANhLgQ3u5Jt1eUw5kcx35yrO0NNAIN/7ujeKZnCVJ7cSsEm4zESixHVi 4m+P6sI6DtBqK1sS43TXquY= X-Received: by 2002:ac8:6685:: with SMTP id d5mr15145698qtp.170.1584140730346; Fri, 13 Mar 2020 16:05:30 -0700 (PDT) Received: from localhost.localdomain (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.googlemail.com with ESMTPSA id i1sm25756015qtg.31.2020.03.13.16.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 16:05:29 -0700 (PDT) From: Vivek Unune To: robh+dt@kernel.org, mark.rutland@arm.com, heiko@sntech.de, npcomplete13@gmail.com, ezequiel@collabora.com, jbx6244@gmail.com, akash@openedev.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: rockchip: Add Hugsun X99 IR receiver and power led Date: Fri, 13 Mar 2020 19:05:13 -0400 Message-Id: <20200313230513.123049-1-npcomplete13@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Add Hugsun X99 IR receiver and power led - Remove pwm0 node as it interferes with power LED gpio pwm0 is not used in factory firmware as well Tested with LibreElec linux-next-20200305 Signed-off-by: Vivek Unune --- Changes in v2: - Changed led trigger from none to default-on - Changed led node name from power-led to led-0 --- .../boot/dts/rockchip/rk3399-hugsun-x99.dts | 37 +++++++++++++++++-- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts index d69a613fb65a..df425e164a2e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts @@ -29,6 +29,26 @@ regulator-max-microvolt = <5000000>; }; + ir-receiver { + compatible = "gpio-ir-receiver"; + gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&ir_rx>; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&power_led_gpio>; + + led-0 { + label = "blue:power"; + gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; + default-state = "on"; + linux,default-trigger = "default-on"; + }; + }; + vcc_sys: vcc-sys { compatible = "regulator-fixed"; regulator-name = "vcc_sys"; @@ -483,6 +503,18 @@ }; }; + ir { + ir_rx: ir-rx { + rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>; + }; + }; + + leds { + power_led_gpio: power-led-gpio { + rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins = @@ -539,10 +572,6 @@ }; }; -&pwm0 { - status = "okay"; -}; - &pwm2 { status = "okay"; pinctrl-0 = <&pwm2_pin_pull_down>; -- 2.20.1