From patchwork Wed May 17 08:37:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 99917 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp127469qge; Wed, 17 May 2017 01:39:18 -0700 (PDT) X-Received: by 10.84.236.12 with SMTP id q12mr2880411plk.123.1495010358413; Wed, 17 May 2017 01:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495010358; cv=none; d=google.com; s=arc-20160816; b=LOdsCDbIvG9XE9CYOSmHS6gtDlXvIuKUzbhDn+VmM77CdN4RsFknqeRMVEQggW4wfO cgcnxDnOqw3qDb1/0ib9cYdP/Xi13aNS9Oe4VmOeYrIm2sPl6QFJV2HU1RAPPEI4/sM/ cdY6wkDR/5SAHCBLDcvFw1hm+dnpFSfvjOK75dc2qG0EKwI0ov1DfVQLmMbcgXN0h/xL oG4QuhxSZL51pjkECOhhhGq8upi+PnumE9JfQ+VQpuZhf2an91V9boKlKpgukxle5TnV SgVhu8RMBiuQpDmNy9Ock8DGTltcGGOfcVlbR6+PHN8AkfwyKf8AQbDrCQ+uK4TmsJz0 5EsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=vpIl6UTioqscPZ/6Y5AHCaOTAxoIgL5KilOwruZ7UfA=; b=DoHA/iEzEarpwALRvDM6AVMVi6YSO3zUtqwyKnOwo95rwyPYVpt1kRyfouZPWPfsU1 M1r6amG4D+dvWbqsrRahsKrcwSO9iqrI4p14f2TQKJNIWleuikMLWJSadJgxzt/i9s+D hKzmc0H3J7AnCRQug7ZexjDWLe49gSm7NIHuI3zq0QX/qTyeOYBEnpVChUPbJbCLt/Tp NAbI6ieZbMBSPLALULQ1I8DbA9Dud03rlIROpvca4bcz/3N5LZdu1WbLCmCk+gfu44vm fBvxCIen5gjBy43R9q1jVORy8a0+/t4zEkUmRNAhz9CBfrsAV9231e+V2IlRXl/Ba8F+ 5znw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1477579pgn.278.2017.05.17.01.39.18; Wed, 17 May 2017 01:39:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754266AbdEQIjO (ORCPT + 7 others); Wed, 17 May 2017 04:39:14 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36564 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754260AbdEQIjJ (ORCPT ); Wed, 17 May 2017 04:39:09 -0400 Received: by mail-pf0-f182.google.com with SMTP id m17so3956161pfg.3 for ; Wed, 17 May 2017 01:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XQG3jLNAKCdaavzcr5ZRCJk5/GVomXK3lU+SfAZlrio=; b=Q1hy1QPlVk5m3dkyYSHhIJfVOMD7ISy+3KPbwZ0Cz8mLqYYs0duv9PuIDscx0Aw5YG 0PpoWOUhPn/hsZ9/tFIPKspZFl5Gr4PC0GlQ46nm3bR0w9OGwEtG5TI99vfcsTVAnolW FJM47tGnbnb1rlk8FOS/l6XnWU/NF7G9Y0DsY= 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=XQG3jLNAKCdaavzcr5ZRCJk5/GVomXK3lU+SfAZlrio=; b=ERb8aNZuHIjF3whuiBVEdn1YIdyhYzc94ZJPOABSQqdpYssskd13QuRxoamccuxn/g B4vAuZG2Q/pRz9iJHXTpUe2h1gIsCaYCSmRSZIP74tgzRKb6A2wCqtiC/jAkzYJw07Ky 86wpTOAbpmFy8ZiHmT5QrtgiU+6zEmox9Idl5ndlYYCKHcOvpD/K1DqpRRSWvT3UN9mQ nAiDzjVJ5lHeJK9ZfbgmosELw0h1moEcRayfnwG+f8/QNnpGr5zYlpPrCEQ/Yh8Do+jB jatUxpDAkHeDBqwHoQ+03gakneTm3Ivxz3+4xJUUD0wy1ato66Slh6AncUY/qwNm3ueH vqog== X-Gm-Message-State: AODbwcBaNLT05m0NgZHhVpPS3YNztiio1UfEnRNbmuTHnnuOn0bQlkGc r5syQ2ER3AFHesvD X-Received: by 10.98.222.133 with SMTP id h127mr2384121pfg.63.1495010348183; Wed, 17 May 2017 01:39:08 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.164]) by smtp.gmail.com with ESMTPSA id u9sm3029519pgn.55.2017.05.17.01.39.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 01:39:07 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, puck.chen@hisilicon.com, xuejiancheng@hisilicon.com, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu Subject: [PATCH 12/12] arm64: dts: hikey960: add LED nodes Date: Wed, 17 May 2017 16:37:45 +0800 Message-Id: <20170517083745.24479-13-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170517083745.24479-1-guodong.xu@linaro.org> References: <20170517083745.24479-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org HiKey960 has four user LEDs, and two special purpose LEDs: WiFi and BT respectively. All of them are implemented as GPIO. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 6de86c0..4839885 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -48,6 +48,54 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + status = "disabled"; + user_led1 { + label = "user_led1"; + /* gpio_150_user_led1 */ + gpios = <&gpio18 6 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "user_led2"; + /* gpio_151_user_led2 */ + gpios = <&gpio18 7 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "user_led3"; + /* gpio_189_user_led3 */ + gpios = <&gpio23 5 0>; + default-state = "off"; + }; + + user_led4 { + label = "user_led4"; + /* gpio_190_user_led4 */ + gpios = <&gpio23 6 0>; + linux,default-trigger = "cpu0"; + }; + + wlan_active_led { + label = "wifi_active"; + /* gpio_205_wifi_active */ + gpios = <&gpio25 5 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "bt_active"; + gpios = <&gpio25 7 0>; + /* gpio_207_user_led1 */ + linux,default-trigger = "hci0rx"; + default-state = "off"; + }; + }; }; };