From patchwork Thu Aug 17 09:05:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9905397 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 2997860244 for ; Thu, 17 Aug 2017 09:18:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2672128ACD for ; Thu, 17 Aug 2017 09:18:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B4C428AD6; Thu, 17 Aug 2017 09:18:58 +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=-2.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 75C7428ACD for ; Thu, 17 Aug 2017 09:18:57 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=V6+CYyfYsEWsrxGnQbeWPt5fk3A/oF3ClCwuMIbmz1E=; b=Y6DLNtkysv3hba 676Lf1rGDZZ3w25+VG2nvA3mzRgQlMEZl60on53Madd8GirqdLKy3CbCi6Z/q3GMzwA19Yi2j0bQJ IBiA8BWGETibfr18J/qNJRtJAnIj+q+LVtr5PwV+lH+fPljmLfgoyL8lCnGFgL5rQJCL0jkSdG+6+ 38BCOjZP1v/6T9rWl2zYPW6NeAX2dWYsDK1WN6xqFtFW34rVRbaRlsi8lAqC1PSL5ktdJ5zmBySnx zvzPu+3DC1QhZDn0Coz4k7v3WoHAOAi37vTgfWnZ4gv+P4uc9FrT/Yi1ZYHO/j2JiY+MwUx7IxQ2E igVnp7qUabGeHz9XC/NQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1diGx6-0003ax-U4; Thu, 17 Aug 2017 09:18:56 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1diGkR-0001oO-Vm for linux-arm-kernel@lists.infradead.org; Thu, 17 Aug 2017 09:06:06 +0000 Received: by mail-lf0-x241.google.com with SMTP id t128so3996566lff.3 for ; Thu, 17 Aug 2017 02:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8lja7dUpKbKG9nCIToemIF1ZL80RxwFZ1q6+bRVw6HI=; b=OE6SI8/Dk9+jnD6CLn3cNeNtmoMnJg2z/vkepJWaYuflPHsEngd3Mro5EGP7lYVwtu rQtuNdKVcc+rN6UMg8nZjv9nNtQfvLTkRg1mk0hLryRTcLZfRL1S3EN6ewdZi34UwE5s LUo6+NXeE3TmmPsEvOPt/jadnfju+MJ5QBZpvANs5pMDmaabOZ7BLL4STZeuAJrg6egm OVuocTB362CfJYHuxLv2djUzK+nakGCggldF1H0xaUoZleNldd5ha8ubarcm5Z14DGME jQ+ZSu+0Egnl3YDpj4cfp/Px2axx/XhoJ9Oo5n6WAma/IRX5fvyUg72aX2HMSEssj6oY CDgw== 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:mime-version :content-transfer-encoding; bh=8lja7dUpKbKG9nCIToemIF1ZL80RxwFZ1q6+bRVw6HI=; b=SWbMEqM/unTHQCRlSVBrf8YfXE4Enyd1UlgljLTJsQOzUf3FAc2aUkPErtu7JKQdps KtcWbyApZoQQxBlFjn/ZmjJpkIVXSYJX5QUGPXv4hQUTEVTzvI/RrzJ/73YNaM08GOJG GqHLx59OlXs568i5Cihfj9/DGG+EHQtP9L5wkZsvAUDLMPEcRgVGMaYo1utLe3QKay/1 IBEZmcz6ZaT8U3kjyqZkowlPzXPyO1rLht48hcgQs6UmHSwuRwNUaQc74aZY7idzXy7c 3KPXCsBRHOXS5cgzyQJaXLe6DJMzCpdnl7jzBCZPouRr/Wpe5lylQIq6srcCIEIwJoOS cMQg== X-Gm-Message-State: AHYfb5jw0OEtYuhUvs08vt89HozjoBFqcEkmOQfOs5wJ8qLMHBY0XmV0 q6P+Xw1cpi9pzA== X-Received: by 10.46.9.197 with SMTP id 188mr1523449ljj.57.1502960729073; Thu, 17 Aug 2017 02:05:29 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id j125sm687889lfg.28.2017.08.17.02.05.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Aug 2017 02:05:27 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH] ARM: BCM53573: Specify ports for USB LED for Tenda AC9 Date: Thu, 17 Aug 2017 11:05:14 +0200 Message-Id: <20170817090514.4503-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170817_020552_999251_79D89113 X-CRM114-Status: GOOD ( 10.47 ) 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 , devicetree@vger.kernel.org, Hauke Mehrtens , Russell King , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-arm-kernel@lists.infradead.org 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: Rafał Miłecki This uses trigger-sources documented in commit 80dc6e1cd85fc ("dt-bindings: leds: document new trigger-sources property") to specify USB ports. Such an information can be used by operating system to setup LEDs behavior. Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 2 ++ arch/arm/boot/dts/bcm53573.dtsi | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts index 34417dac1cd0..19e61b5b066c 100644 --- a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts +++ b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts @@ -26,6 +26,8 @@ usb { label = "bcm53xx:blue:usb"; gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; }; wps { diff --git a/arch/arm/boot/dts/bcm53573.dtsi b/arch/arm/boot/dts/bcm53573.dtsi index eae623f76401..c698a565b8ae 100644 --- a/arch/arm/boot/dts/bcm53573.dtsi +++ b/arch/arm/boot/dts/bcm53573.dtsi @@ -138,10 +138,12 @@ ehci_port1: port@1 { reg = <1>; + #trigger-source-cells = <0>; }; ehci_port2: port@2 { reg = <2>; + #trigger-source-cells = <0>; }; }; @@ -158,10 +160,12 @@ ohci_port1: port@1 { reg = <1>; + #trigger-source-cells = <0>; }; ohci_port2: port@2 { reg = <2>; + #trigger-source-cells = <0>; }; }; };