From patchwork Wed Mar 7 11:33:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: INAGAKI Hiroshi X-Patchwork-Id: 10263859 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 033F260211 for ; Wed, 7 Mar 2018 11:36:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E89152949C for ; Wed, 7 Mar 2018 11:36:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD566294A0; Wed, 7 Mar 2018 11:36:20 +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 CD5C12949C for ; Wed, 7 Mar 2018 11:36:19 +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=MqIOxVfTc0rd/H43xH9SqC4zjn5twrr3fi36wa+ccfw=; b=JW9 QXBrXFjy60cGYsuvzHKhJJ/3Myhb0ABaqPfFVmN5gyOqzoxdeD7Nb5bVamadKhJXnIDS3Udr/7oJb 22F4gRb1pd0JNmXgIPXMc4Jt6CsawLoqhQwGMyXGq3ZuEbWi6p0St2dbpY/rSvrR2mpLFvvuKp8RE msvLCL4PHHKG84S8vzYIYVFx03IYaOsQJN76Ay+l2rOgK+Fnvf0Dow+vF7GxpvpBn65zL0Zemn2nf vwclQk4NvxJ60CipDcNX9NlQjDf1XKbD67i8SoEHYJ0wHEeI12PYskiCMcWvrifEgmNHhJDzYpCvn aA2s1/hxKGFu4dIXDISL62a0oMWUeaQ==; 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 1etXMg-0007n1-53; Wed, 07 Mar 2018 11:36:10 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1etXMb-0007le-HX for linux-arm-kernel@lists.infradead.org; Wed, 07 Mar 2018 11:36:07 +0000 Received: by mail-pf0-x243.google.com with SMTP id 17so806011pfw.11 for ; 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=Kg7bzSTKKYhVi0LHaUAiDTfjPMisnXVXS1IJjz0I2HRNWkRW10+S6IOrsRRlc1wEXT 8xxudpctiRpnStVFslsa3zxPd8prh1Kb4xhuU5V2QjXCPq1kvgGAxJefLrdEuB1rluNc 2t8uyuwgvcxpgd+yUU4+MViAOFLdCYswf/7mpCUtcKh4FqBCglTmsxpKe/d2oh5TR6jI j3vMttZ68dvdM106Ny9a5gOxvEmgf9SfYgIaVX2QNYx3WrSJH+PdBvw5Um4sPAmU4qpV HSdmMHjRQThDp2U1xXxg78AzLvtYtNBVgEl8QIyqa3FitRdY0fSchTF+TF+K5ajbJthR 7fKw== X-Gm-Message-State: APf1xPA8l3LAc6I0eogVRepy8TBC6+ha/gmNJoLlpMxDuqytfzjqQXvC oSFDHX5G2JHnT+fDPr0MDVQ= X-Google-Smtp-Source: AG47ELvxmf60IX7fw1HpGTy3+WVgZNB1672nFro3rs/eSWjvVtA5LA5H3vo+Ga9+Y6RFBZm+9X8jhw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180307_033605_690553_FB647C21 X-CRM114-Status: GOOD ( 10.94 ) 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 Reviewed-by: Rafał Miłecki --- 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>;