From patchwork Tue Feb 28 14:45:18 2023 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: 657557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09B14C64ED6 for ; Tue, 28 Feb 2023 14:45:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbjB1Op1 (ORCPT ); Tue, 28 Feb 2023 09:45:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjB1Op0 (ORCPT ); Tue, 28 Feb 2023 09:45:26 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20CCFCA29 for ; Tue, 28 Feb 2023 06:45:25 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id t11so13570446lfr.1 for ; Tue, 28 Feb 2023 06:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AS4WvwLyb5IvtXzJGUQWxLiWhdnxdLa0eY1ifwUebww=; b=ivDcz8dm3b4iYjQeg0pKEqGjwQm2CpDDg7DzCdz7fBeOtnwOZf/ihYmKePSQOhi2z1 vse+/jcpwwD6IghpSahkEhujRqP3NgtaFzeEIQpaGCsDky0FRi5ktU4wCt3OwOE3NPAB 4+zy57UBHo2Ng714kkU2PNmBicm+eKGowasL5yCYGQpOaY5Bv+aj+YFFIdgFAnP+cxJ0 O4NioNcPc0cu2Y2MFgl0reiCaRzfN73XoD6zieSGid4DBE8vTWj77OhXEbxLOhaFuDau cI3b1SAqobW/aryqqqGkiist6XI05/SHJ+UAtsDr8PS/OVzucQRA9Bc6mIHUxjTOtWj3 VQoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AS4WvwLyb5IvtXzJGUQWxLiWhdnxdLa0eY1ifwUebww=; b=hbCnhvDazarthZhtLoSjgaxsCeVMwecB5gXzllhjYabVyOXabCp98glY0XoZLcUEjG jQdmCtl5wyX1ACunCpm4STlLVq+ckkVafaFhqOm+DGPX0atj0bhGizMdcXHgQqt5rIWa ViAxQa7kVHbWIQZVQQ07bbMc3CbiZTsB8pCPsEkadtn5h+zjTocBKtiTKJ2iFEAszyG/ XJQ0gtt1L/0dWq43SA39rOx3xU2r8HA5rTdZhDdHtJhi3U4A8iIrjbjx5HX0nSG6n4+D jShZuP0qZzjxbU/GZawgXWTPXnBq77hM3IPy57Av2YHHhBgIItKGD1FcG6Ea95rCHG5t PefQ== X-Gm-Message-State: AO0yUKV+/+kYf/zd3DLPE0sCV3LCmwvnZEGMu/OnkGOQ92jpWvzomQJC AiEBXIPAOxzbAKVYqyOIpwO8ueH52U8= X-Google-Smtp-Source: AK7set+cmhPgCsFWPjuLwq/QWwizug5xjH4UId9xs7OY/Nvxyu+YMCoBZQHo0j8bgdf7pg4xOEdDow== X-Received: by 2002:ac2:5690:0:b0:4e2:337d:65d3 with SMTP id 16-20020ac25690000000b004e2337d65d3mr710686lfr.40.1677595523404; Tue, 28 Feb 2023 06:45:23 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id z23-20020ac24197000000b004ddef915fe4sm1360514lfh.274.2023.02.28.06.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 06:45:22 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Rob Herring , Krzysztof Kozlowski , William Zhang , Anand Gore , Kursad Oney , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 1/3] arm64: dts: broadcom: bcmbca: bcm4908: add on-SoC USB ports Date: Tue, 28 Feb 2023 15:45:18 +0100 Message-Id: <20230228144520.21816-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rafał Miłecki BCM4908 has 3 USB controllers each with 2 USB ports. Home routers often have LEDs indicating state of selected USB ports. Describe those SoC USB ports to allow using them as LED trigger sources. Signed-off-by: Rafał Miłecki --- .../boot/dts/broadcom/bcmbca/bcm4908.dtsi | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi index f4cf0f835db7..457805efb385 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi @@ -148,6 +148,19 @@ ehci: usb@c300 { interrupts = ; phys = <&usb_phy PHY_TYPE_USB2>; status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + + ehci_port1: port@1 { + reg = <1>; + #trigger-source-cells = <0>; + }; + + ehci_port2: port@2 { + reg = <2>; + #trigger-source-cells = <0>; + }; }; ohci: usb@c400 { @@ -156,6 +169,19 @@ ohci: usb@c400 { interrupts = ; phys = <&usb_phy PHY_TYPE_USB2>; status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + + ohci_port1: port@1 { + reg = <1>; + #trigger-source-cells = <0>; + }; + + ohci_port2: port@2 { + reg = <2>; + #trigger-source-cells = <0>; + }; }; xhci: usb@d000 { @@ -164,6 +190,19 @@ xhci: usb@d000 { interrupts = ; phys = <&usb_phy PHY_TYPE_USB3>; status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + + xhci_port1: port@1 { + reg = <1>; + #trigger-source-cells = <0>; + }; + + xhci_port2: port@2 { + reg = <2>; + #trigger-source-cells = <0>; + }; }; bus@80000 { From patchwork Tue Feb 28 14:43:59 2023 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: 657558 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A507EC64EC7 for ; Tue, 28 Feb 2023 14:44:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229509AbjB1Oom (ORCPT ); Tue, 28 Feb 2023 09:44:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjB1Ool (ORCPT ); Tue, 28 Feb 2023 09:44:41 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C09DA1CF4F for ; Tue, 28 Feb 2023 06:44:40 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id bi9so13552933lfb.2 for ; Tue, 28 Feb 2023 06:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DmzBz7NB7zquvO4C89dxC07p/dlgjznxZJStXyBHdzk=; b=idZCfTxuU+hZAJ9gylO4iiuEY+lJtmXekJd+p7YG7pPOcYyltyFPMUOGos1VcR/yzs tYEcE3sf8nTZqIs5CL5GtWGHj3ceKD+V2V26+SCBIoynE/+O14oIa9a46O0cwIUGNYpY avZ0NqKDYBafrSDJGllYG3divYBiMCCLrSX30kcODHRKOWIYsnQRkXmkuQrLV/ushxdX 2wwIKcdi63SIjqi9OOy3cpBoC9aK8F/vGXE9H9Tv9DPBSPFzIWD1AfCSlEHE9oFMuDWX VyodxsHya4Y+jjNu0FGr9XlfmE53ZjQXKY1XQNTDkqbyc5wUsj9PSJzvz9Mx0MCK/GBa JtPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DmzBz7NB7zquvO4C89dxC07p/dlgjznxZJStXyBHdzk=; b=SZ9hN5f7RnrckzEYRt8tT+V7kU3HNvPEU7PT7DIER8VK40MfC2k6vVRuCBW+7qlALC wNIYpJyBcPgK0EqBmrr7smjRZ49aanc5eAiACkkOhBT6OiqL6f0ytnWCnfRH4mKNbd78 vdqVEikbUWd4nbvMyI9Jwfw0MXwp4jeC9qjF1Lkib0XcqMqAXT5dRWAqQh+oI+iC+q/P 4iNhBe9QVT/zxAoV0UcvwwEAWg360h6V0Vn32Ptxd0+NEt4/NH4VYZxwgToJgyALl0H3 cvHRAxgq6oZgv5dFZI+Kl3bg7G4GxsNtfSep+f5e3mPTDTPfpqPgW2M1dCCeXNyCVDA/ NTBw== X-Gm-Message-State: AO0yUKU9/MULJWYD1UXG4AGWAVRr5+ZWdwEb67cDQWZWSiRU+lplHuT8 D3LJ6twJTKafn7loVtfw8Ms= X-Google-Smtp-Source: AK7set8sASwflS+zi2t2TfkAtb/el69p5IgOYEDQVuYs4rpXCOcnLoh8G0VBAgEvY3m+0URaMzVscA== X-Received: by 2002:ac2:46f3:0:b0:4d5:8dd8:75f9 with SMTP id q19-20020ac246f3000000b004d58dd875f9mr780076lfo.24.1677595478928; Tue, 28 Feb 2023 06:44:38 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id b10-20020a056512024a00b00498f67cbfa9sm1365554lfo.22.2023.02.28.06.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 06:44:38 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Rob Herring , Krzysztof Kozlowski , William Zhang , Anand Gore , Kursad Oney , bcm-kernel-feedback-list@broadcom.com, Brian Norris , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 2/3] arm64: dts: broadcom: bcmbca: bcm4908: fix LED nodenames Date: Tue, 28 Feb 2023 15:43:59 +0100 Message-Id: <20230228144400.21689-2-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230228144400.21689-1-zajec5@gmail.com> References: <20230228144400.21689-1-zajec5@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rafał Miłecki This fixes: arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dtb: leds@800: 'led-lan@19', 'led-power@11', 'led-wan-red@12', 'led-wan-white@15', 'led-wps@14' do not match any of the regexes: '^led@[a-f0-9]+$', 'pinctrl-[0-9]+' From schema: Documentation/devicetree/bindings/leds/leds-bcm63138.yaml Signed-off-by: Rafał Miłecki --- .../dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts index 839ca33178b0..d94a53d68320 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts @@ -120,7 +120,7 @@ ethernet-phy@3 { }; &leds { - led-power@11 { + led@11 { reg = <0x11>; function = LED_FUNCTION_POWER; color = ; @@ -130,7 +130,7 @@ led-power@11 { pinctrl-0 = <&pins_led_17_a>; }; - led-wan-red@12 { + led@12 { reg = <0x12>; function = LED_FUNCTION_WAN; color = ; @@ -139,7 +139,7 @@ led-wan-red@12 { pinctrl-0 = <&pins_led_18_a>; }; - led-wps@14 { + led@14 { reg = <0x14>; function = LED_FUNCTION_WPS; color = ; @@ -148,7 +148,7 @@ led-wps@14 { pinctrl-0 = <&pins_led_20_a>; }; - led-wan-white@15 { + led@15 { reg = <0x15>; function = LED_FUNCTION_WAN; color = ; @@ -157,7 +157,7 @@ led-wan-white@15 { pinctrl-0 = <&pins_led_21_a>; }; - led-lan@19 { + led@19 { reg = <0x19>; function = LED_FUNCTION_LAN; color = ; From patchwork Tue Feb 28 14:45:20 2023 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: 657556 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EA55C64EC7 for ; Tue, 28 Feb 2023 14:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjB1Opc (ORCPT ); Tue, 28 Feb 2023 09:45:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjB1Opa (ORCPT ); Tue, 28 Feb 2023 09:45:30 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A09B424107 for ; Tue, 28 Feb 2023 06:45:29 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id s22so13513146lfi.9 for ; Tue, 28 Feb 2023 06:45:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1qX3hwcRokdU3hinWHR32cKszj+OQJlUP6xOgQsDKuU=; b=G0PIV4YbsGCm2FmJtHapjEd8xztJVYNtQraB+KxSCyiHVSKEeGVIS2+jFuV9cmZVOU mWxYs/30HPC80vmUPwGtvBOD/tWNzYLfI8Y6NUfiienmQm5qb7iRG2SxqDJyrwaCJsyD 7AIns8d87QMAO7z20Re3cM22SROtfw/uXL/YXuGkGDNIzYP/EbJMF2fl5LQIMmofHXVW MVR0khXnuZMi1BkqIh0euwBWdfk4eIaoPdIqTkwF2rmZm7C51/1yltFQTkrJoIr5qTLN y+iZNdWjelQB3VuFtEjbKsIMFUaUbM83Thjk5ETJehT1E3j5ejmNf7DiYXrmYp1XlyY+ pFHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1qX3hwcRokdU3hinWHR32cKszj+OQJlUP6xOgQsDKuU=; b=H7+fRjRwiWMgqBr8MluMPZzPKvrYF651qlQxNpo8nkmQcOCEOZGoIGhdpJYx+VPN42 7q3X+YGwiGw6K2/5rp2BK7bAdS0IjA+R3Uglf4SgoWpddT/hE3UuReZAXSXbKH/HjwNn vzkqlwyLdujXWZibQxzcw29psmmifbx0/yuAV507s2kBXdz4JIOIuP4RuVL6lV1MfvQy /LU9/mkVaEsVBl7TQdgu7azb15RyrUccHHQh65ID7GG++sWyts7gqyJ/JBT4SRLC2+iy YsSoP1AnX8+YasrxnLaMUO+vCqYMG5h1ERorw+ihcCS2I6Jzz2fJahFwd3Y/9KUE3cSb yQuA== X-Gm-Message-State: AO0yUKUZcnuBw7hnKENtt/0jb0kBqrdvkv0DFr0i2fFIDTDLnW8nJUCW Eq+8AV328NxfnvTZC3ObQJ8= X-Google-Smtp-Source: AK7set8fzBGACnGwldAdO66hDd5EWX06yExwxCYFvTBCLPG86ardOvWhoF+IMM7YSyYqCpriujSylg== X-Received: by 2002:a19:7417:0:b0:4d8:5e8e:b138 with SMTP id v23-20020a197417000000b004d85e8eb138mr712480lfe.14.1677595527918; Tue, 28 Feb 2023 06:45:27 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id z23-20020ac24197000000b004ddef915fe4sm1360514lfh.274.2023.02.28.06.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 06:45:27 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Rob Herring , Krzysztof Kozlowski , William Zhang , Anand Gore , Kursad Oney , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 3/3] arm64: dts: broadcom: bcmbca: bcm4908: add TP-Link C2300 USB LED triggers Date: Tue, 28 Feb 2023 15:45:20 +0100 Message-Id: <20230228144520.21816-3-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230228144520.21816-1-zajec5@gmail.com> References: <20230228144520.21816-1-zajec5@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rafał Miłecki This device has 2 USB LEDs meant to be triggered by devices in relevant USB ports. While at it fix typo in USB LED name. Signed-off-by: Rafał Miłecki --- .../dts/broadcom/bcmbca/bcm4906-tplink-archer-c2300-v1.dts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-tplink-archer-c2300-v1.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-tplink-archer-c2300-v1.dts index 296393d4aaab..fcf092c81b59 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-tplink-archer-c2300-v1.dts +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-tplink-archer-c2300-v1.dts @@ -64,12 +64,16 @@ led-usb2 { function = "usb2"; color = ; gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; }; led-usb3 { - function = "usbd3"; + function = "usb3"; color = ; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port2>, <&ehci_port2>, <&xhci_port2>; + linux,default-trigger = "usbport"; }; led-brightness {