Received: by 10.223.185.116 with SMTP id b49csp4930681wrg; Wed, 7 Mar 2018 03:37:26 -0800 (PST) X-Google-Smtp-Source: AG47ELs+pcP8TU+/4Sk7ggsSJxMBba6JgJPD+48Fe4FxZ8Jx7Q1rEZXg2VrjwR3aBtRYZ7L4+tih X-Received: by 10.99.179.77 with SMTP id x13mr17025255pgt.148.1520422646008; Wed, 07 Mar 2018 03:37:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520422645; cv=none; d=google.com; s=arc-20160816; b=iXE2g3vyaUCjZ2YGgRMP2OujAwTuX7UBqA/Yp/hAgkS2dUZB5oosdMJdtylp2/VsVe wyNjyq8zHH9egC/awyhTMQiBOpytsDvKte1gVk8ywQHIeNiqruWWK7fMTfDhpGppCuJV GGUXXlUO1oS/pdweU5mTxpgy/6ogpJkAIoic/X2LSX7DFFwXNL8li96ErCd4by8gbQoC hgLzFvI4OWcENTAcvbhRs0z220oo+xKkggqwAIu5UBGEk4nCeMYC5ifAEJSwshy/EoEX uce/2dv1G9A1igOiQ0IgWGUHZPxwTymEpgfoAsjG6Ef7FThaoFOSwjeenyXlZMix+0U+ 1mUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=tQSUjfVeRhpk4XU09F6rYHPIv/4TC5hu48K2Zcqsuc8=; b=f+jY4fkxTQs3Yk3jIo1VLLswb80YeZKwnhV1H0SYUTuk8Aes17oi/QZEq1T8oliegQ cE9UgRCdj7q18KNKHztX0mYchnbGoThCoM70P2Mhw5gluZeXUiXI/aJy2uQnX0L5Mm40 ya2P7vU01pxiObuVTqxFz/2zzbXe/E95SpS8zZmeJzpsBq0Ul6LmU45S/SDb20e6JUTe iXvZA6ptrv0rrBAsDiCl94Cqg5Fue2FAY0r3P2G8OjLHBbKa6M8TDLa0WQAWEmEbv5Eb R4oNOKWPu+FL+gnQA4POlB2qLd5SrzkXRiv1xlFXAm766Bq7s8wZ+wv3zGE0Vq+vsyqV ryOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rutqCxvY; 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 e18si11283425pgv.684.2018.03.07.03.37.11; Wed, 07 Mar 2018 03:37:25 -0800 (PST) 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=rutqCxvY; 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 S1754398AbeCGLf5 (ORCPT + 99 others); Wed, 7 Mar 2018 06:35:57 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37733 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754382AbeCGLfz (ORCPT ); Wed, 7 Mar 2018 06:35:55 -0500 Received: by mail-pf0-f195.google.com with SMTP id h11so816426pfn.4; Wed, 07 Mar 2018 03:35:55 -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; bh=tQSUjfVeRhpk4XU09F6rYHPIv/4TC5hu48K2Zcqsuc8=; b=rutqCxvYqcIV9BPue5SPH4Z/y6bz2FQOCV3p/gwN5A4Nq4pcK3nKBSg/yAY6GZ62va JYR0FrmaIZl81uiBnoFcg6Ibr3hjJ9OvOfZTUjJWFwjtbUowOuxK8p67cw/H/y9TTGdk 6BQpLtnWKDmKLaEZLdmBxfYCJq8x+ME7x1ALY0njszIDgVCyK4+JKp70o/DsJwRtaWcj E7HcZPmHT/ypmD4Pue/dI6qHgu8ZDUY3dPxafKtgCGQ/+tN+Ejedkx35xlUg/ZWQ5oIC b33EiM5NZWGEBWiN1tqWzvc+xRD7XH/65+Eiam7qvkoKXwGSLmxeaIimwmH7IB5WGEMY oe+g== 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; bh=tQSUjfVeRhpk4XU09F6rYHPIv/4TC5hu48K2Zcqsuc8=; b=jUwlTC4S7RAisan/RWKMdHS31gDxMKAnXihJtau2x/oXT4qfnldAmbcSf3rqJVJzn1 tYz66/3OFG7HZcjK4fQLQ2cl01wNwxbEe8P6tWyUHAkbifCo2Xz/3D+ytFjCQofHZC2r 1q3B3OC+X8P4ihhvXkN7uDKA52RRal9jqHt8P4lkylJxEsUYDyMBfsgTOaB9IK+uR0Pi 7vtv9WCvJkT6CdUnycbZGyUXc2cxCHp/juEU5ydd2vjZH5tM100DmqprXf9T3WR3w+4d 0OjMk1isO6inqI7H1h5eVzjZVmTBhtcaCbU3pSG+mAxzhBoj1JmtldiemsveUwFCYqeO pJAA== X-Gm-Message-State: APf1xPD7FqgPmKIZ+zq2xLtDItLJP9rY9Dg4d0tz89fQ656h4eWuuD8g IK+SiVpPLFv+L6Nz4tocji6W/wiE X-Received: by 10.98.247.9 with SMTP id h9mr22406635pfi.212.1520422555059; Wed, 07 Mar 2018 03:35:55 -0800 (PST) Received: from Tofu-H170W10.localdomain ([240b:12:500:6500:c4e9:46c5:fc35:5092]) by smtp.gmail.com with ESMTPSA id i125sm36028780pfe.176.2018.03.07.03.35.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Mar 2018 03:35:54 -0800 (PST) From: musashino.open@gmail.com To: f.fainelli@gmail.com Cc: hauke@hauke-m.de, zajec5@gmail.com, jonmason@broadcom.com, bcm-kernel-feedback-list@broadcom.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, INAGAKI Hiroshi Subject: [PATCH V2] ARM: dts: BCM5301X: add missing LEDs for Buffalo WZR-900DHP Date: Wed, 7 Mar 2018 20:33:56 +0900 Message-Id: <1520422436-9405-1-git-send-email-musashino.open@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: INAGAKI Hiroshi Buffalo WZR-900DHP has 8 LEDs, but there is not LED definitions in the dts and cannot configure these LEDs. I Added missing LED definitions for WZR-900DHP. Signed-off-by: INAGAKI Hiroshi --- arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts index 8bef642..87ea6ba 100644 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts @@ -35,6 +35,74 @@ 0x88000000 0x08000000>; }; + spi { + compatible = "spi-gpio"; + num-chipselects = <1>; + gpio-sck = <&chipcommon 7 0>; + gpio-mosi = <&chipcommon 4 0>; + cs-gpios = <&chipcommon 6 0>; + #address-cells = <1>; + #size-cells = <0>; + + hc595: gpio_spi@0 { + compatible = "fairchild,74hc595"; + reg = <0>; + registers-number = <1>; + spi-max-frequency = <100000>; + + gpio-controller; + #gpio-cells = <2>; + + }; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "bcm53xx:green:usb"; + gpios = <&hc595 0 GPIO_ACTIVE_HIGH>; + }; + + power0 { + label = "bcm53xx:green:power"; + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-on"; + }; + + power1 { + label = "bcm53xx:red:power"; + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>; + }; + + router0 { + label = "bcm53xx:green:router"; + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-on"; + }; + + router1 { + label = "bcm53xx:amber:router"; + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; + }; + + wan { + label = "bcm53xx:green:wan"; + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-on"; + }; + + wireless0 { + label = "bcm53xx:green:wireless"; + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>; + }; + + wireless1 { + label = "bcm53xx:amber:wireless"; + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>; + }; + }; + gpio-keys { compatible = "gpio-keys"; #address-cells = <1>; -- 2.7.4