From patchwork Mon Mar 5 14:36:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: INAGAKI Hiroshi X-Patchwork-Id: 10259091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1159060211 for ; Mon, 5 Mar 2018 14:38:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0034A28950 for ; Mon, 5 Mar 2018 14:38:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8D6028979; Mon, 5 Mar 2018 14:38:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7A6C028950 for ; Mon, 5 Mar 2018 14:38:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=2kdYnjJUeiz+ERjDrxCGteftbmWqRN3kP6rVU4skKhc=; b=ty9 sZGiOHa+Kq9wVMzKMOrd3Z3A53/JS0iPPaE5+xUMYIOAdkpliCYrVndT9BKjI+fOVuZztjeH+lrdV +Tnh2g1OEEAWj1AANoSfEeNvltpI4vI/sbXqqPATWFuydqXlj1fgM9RTaFpGASGNWN0KfF6uCmMy+ cSq+T9qPIEN0/N5a3gGVbEoOFJILxGvr+g0181VOpY0rLESxq8oEmXf32YaTW6CN0CWtQIbgsK+iH dgYfkZbFxpI04KdJ2EafEy9P4OjRsd2yAONx3QjQhtvreM3n11fYrNCvCmeOrd2jwXXTqzc1DGK+R CSyTAVInGrk86v+tPp5Qj1GUVig4KFw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1esrFc-0007Dt-Nf; Mon, 05 Mar 2018 14:38:04 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1esrFT-00076B-2T for linux-arm-kernel@lists.infradead.org; Mon, 05 Mar 2018 14:38:01 +0000 Received: by mail-pl0-x241.google.com with SMTP id v9-v6so9722032plp.12 for ; 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=I6tJisPi3KoqBPM55OACixWiZzvMV8ClNHwVMFIK2kl5cP725MgfHnGeTv8rCpm6Bi G9gKIr6FNz2CpDWeqM18kvbzwxB2yivcYgrIhiS1aRuW79pVF5VBSIqO0f6ETyVvFrxY gEioWFGNi55m9lZmAfqzC3qrt1Sox4FVU3iSsNDlZb0JIi7NvhCXYS/r7Oq6knZGxIvL C1IFRcCrrTYOmtpxxiQv0KDZePosZV1hFWyI8FzTpv5JOzmsE8DHtc7xDdv2yqPNeLGT Kob43NmmFJYT0v7ULt/oJ3GNgueS4tbQMnswB5nclXFN+Z5irHKNS3a1b8z0b/dYY5sE +FcA== X-Gm-Message-State: AElRT7EKHI7YzytCff/t6nbyeuVtdQqwF27oQZlqx9gNaFe06GuVbnvn D5NpslvoPqJOrQPMV/mCkDIPPfa1 X-Google-Smtp-Source: AG47ELutb1BiDphaUhXeJhNsx2Q/Ng7ZtnYe+YvRvBXo/Y9r3BIfpocpDRQrSpOn7P3wwBryHzQ3dQ== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180305_063755_807858_68E8FC84 X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, INAGAKI Hiroshi , jonmason@broadcom.com, hauke@hauke-m.de, zajec5@gmail.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>;