Received: by 10.223.185.116 with SMTP id b49csp2653946wrg; Mon, 5 Mar 2018 06:40:18 -0800 (PST) X-Google-Smtp-Source: AG47ELtRZWT7QCUu5aQCU5fU4oqVOUQeGvtHwc9Qqz++210CFLp9Gn/diScc764l2lhW0wBTuAek X-Received: by 10.99.105.70 with SMTP id e67mr12390898pgc.342.1520260818682; Mon, 05 Mar 2018 06:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520260818; cv=none; d=google.com; s=arc-20160816; b=Qt+Ao+Lrx8W+HfL1jMTNH44wikrGRZS2FdhI2rYsYhh0MJ7lv3Pd3ptbZ7Koob68XR 4sYtj44FCBVczpQfPcADtVjJHVYN4eYg+JboES/YhAJKN2OfvryfHbUguKh0j+VVcmPI 2rDtAr7np2zZaQymH1WKKMRPi6vjcHZEkb+CE2rHKwkcY7zi9xGYaj21aGeimhOMi7DV DmFtJK85zj+xSfGgeb1zEVSdqaaoIwgNzms2GRoZ76rnVk5/DYxqt0H1POG4TaChp8/4 R8EKs0/P1twAQ4Ad2Ef4euS+l9A3nz0r7e4iEHETucZWDnS0IUNsuXCjIQndM0/94bz9 DkYg== 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=nxJKlMFsE8+5aHhC2Fn7XDLshIyVid4j1VSHaiYGMq8=; b=WL+tohcmLneCiQDHpYwCW8dfSoc4MdbTAJjsW7aX2/0vVBrKw3e2g2Mn/W9kNEU4MY 6I4i26vJSy4NK6Fmkx9BsG5A1KOsIJpXZ6ZwFv/ROHU27XbFkcOIz6BFd8y38Ns534iy x4fSqM6cHweIMvLmWkKu46IS2V8NZqcO1IIpTNDhgFAf0F+V6JUID2QTVlGQSaV3bRZ/ 7sISN6CsE/PIAMFwtbVaXfDGucDyo2a3nneSXx1IkmIOjQ5jt3sMJuvjSwJ/zH7sHXyN kXLdtwWCjU7mhW2ypd1qDg5jjw9AUdR50QLQbTVX+8FdI4S8/grHN7/95noIVDCcFXHb PDvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tjb/DRAX; 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 5si10291592pfx.208.2018.03.05.06.40.04; Mon, 05 Mar 2018 06:40:18 -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=Tjb/DRAX; 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 S1752720AbeCEOhu (ORCPT + 99 others); Mon, 5 Mar 2018 09:37:50 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:35206 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbeCEOho (ORCPT ); Mon, 5 Mar 2018 09:37:44 -0500 Received: by mail-pl0-f65.google.com with SMTP id bb3-v6so9749191plb.2; Mon, 05 Mar 2018 06:37:44 -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=nxJKlMFsE8+5aHhC2Fn7XDLshIyVid4j1VSHaiYGMq8=; b=Tjb/DRAXM471i7A7qPj5qxfjm5AKZaaKGzrwtiG6tfBafCsLH6ytmFeV65pkkxywXR CBEh9b+udU+gTAe6NEy09X3wbgDLiPMGWXgt8v3kpmFlFo5wn37CMFAs363l8xOWEaM/ U61BCi7pzMw62wP6nvLluEqa8v8zY95oG/3xlt1EYQoltr0BzRwCLKiHlSWl1M3E8GhD fEjQ6JgIx0qxh+5Q+wlDL+Kcu+MUk9rQeBhaHuEtyX9Z4AQ2rpqOB5/SbbPAtoplR1iX Z5dcS+peFVJf/7iX6EFmbFlPabk9gbwvb/GVWm35bjko1GMRHHlufuhG6Dv9T+rcIfsv z6vA== 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=nxJKlMFsE8+5aHhC2Fn7XDLshIyVid4j1VSHaiYGMq8=; b=rP4Mf08blXD/6UYbHdWMYlcgWz5Fpz44d9QooAKc/YHYNhTIyvF6KukYbuMolcT0Es wkpXlQTtA4ofornJsINgJs++wNF7pUHYKX2oTYW++yaOzdVsv2GLP0d47rvHR/CUe1eC bLSKlK0DsE2oIqidaX1GwJCaofuGQhsbaKPh6Qt4w7QT+b5SmCDBdEiW0lemaILYQ+dV 3RNkHbbuNCapgYHQ1j+7Y8km/GGvg+F7HZ+/3GmnvMtb6uww1GSkzMRMvFKs9FtDF67L EmyzG/+FyUwnu0+Dbm5UvLbnJaOYsMFQ9sezBuvp/FpTYJ5NL+QO1nwLEBmzT+ZO97XS nxtw== X-Gm-Message-State: AElRT7FXBtEnbpBk+pa3I4umPu4dAf/ys5oI3GplcRFQcioLCLvyWjH7 Ia+5KsFIX5hbMZ7pG4PbHSY= X-Received: by 2002:a17:902:6b43:: with SMTP id g3-v6mr1636909plt.153.1520260664195; Mon, 05 Mar 2018 06:37:44 -0800 (PST) Received: from Tofu-H170W10.localdomain ([240b:12:500:6500:1e7:182b:b229:fec]) by smtp.gmail.com with ESMTPSA id r78sm27240644pfb.24.2018.03.05.06.37.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Mar 2018 06:37:43 -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] ARM: dts: BCM5301X: add missing LEDs for Buffalo WZR-900DHP Date: Mon, 5 Mar 2018 23:36:03 +0900 Message-Id: <1520260563-4167-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 | 73 +++++++++++++++++++++++ 1 file changed, 73 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..fa8f917 100644 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts @@ -35,6 +35,79 @@ 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>; + linux,default-trigger = "default-off"; + }; + + 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>; + linux,default-trigger = "default-off"; + }; + + 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>; + linux,default-trigger = "default-off"; + }; + + 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>; + linux,default-trigger = "default-off"; + }; + + wireless1 { + label = "bcm53xx:amber:wireless"; + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-off"; + }; + }; + gpio-keys { compatible = "gpio-keys"; #address-cells = <1>; -- 2.7.4