From patchwork Thu Aug 17 21:37:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 714416 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 DFC64C6FD22 for ; Thu, 17 Aug 2023 21:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355363AbjHQVjh (ORCPT ); Thu, 17 Aug 2023 17:39:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355339AbjHQVjK (ORCPT ); Thu, 17 Aug 2023 17:39:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E49910C9 for ; Thu, 17 Aug 2023 14:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692308314; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t+Q9qx3hi2h+g9EvT9tp6a1ezCBYFQCJEttZz/Qfdlg=; b=Y4QLRDilqiuJSUAggZ5U/5t1QTJkd1KSre5+GsI9nx+ohdwoJVLN3TPdpF5P5hYu/9WSti PP5Q4x9h95qDBiket7hd/m58Xs0RAFuKrr8r/API4n563Onb11nWq9DrMtboF78hXf41NA hXP7bVgxXEg42y1w1QpGFsUhpe1mxDI= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-221-Wg5uUTE7NzGM94NIQcrnMg-1; Thu, 17 Aug 2023 17:38:33 -0400 X-MC-Unique: Wg5uUTE7NzGM94NIQcrnMg-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-76d7a2c8133so37003685a.0 for ; Thu, 17 Aug 2023 14:38:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692308313; x=1692913113; 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=t+Q9qx3hi2h+g9EvT9tp6a1ezCBYFQCJEttZz/Qfdlg=; b=LzI3U9vu+JerUBa2OGhgUj/wlYHbTEJe8wM0ESFbKdhocfSSpn7UINtQorngMcnQhB 3CeETIsnp80wbtHDoy41RUOIk6netyKmgKWi5Kwdet6Y6OXh90ai4U3I1D/7FtHC6/RA 3sPQ+zCRrERWjEMvk26UrgIGlWXznwhCs9mGTmq86QYS2nQsidgaGallGqnlM+BTwFZn 8TGCPGb6R3GkBpu70i2xZ1dfb8P89zG1CEgpIkCndb2fp6Gao2L/ZSTIQ9RbnUryAWzZ XXQbMgoT7Zn2jBSuZSbRoSzANSGdBwij2m9KAclxFGuh58+ccVjqu4rUtS+5lo3E25kF g3sA== X-Gm-Message-State: AOJu0Yx6bOY0HgnVmSc765Rhi4NYYmA3V8HAj+lL2LgY/G/xnUEKxkry a+3B0IFz7xncZ5YVLVT3pkB/tRmYalEUQZtprY1YV5OWOcqTdkrIC1D+kt00mDgzmyYRZtalmuA 16xEvxbq6gD7iQxzam4qKPyvFSA== X-Received: by 2002:a37:ac1a:0:b0:76c:a908:a50a with SMTP id e26-20020a37ac1a000000b0076ca908a50amr864838qkm.64.1692308312820; Thu, 17 Aug 2023 14:38:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHq1VG3xXKaLS9P5CbXK1T90KNGC83SeOzg9rVLkO2mrfMJbAHDwmt3qJWv5sUZsTvUTHMI+Q== X-Received: by 2002:a37:ac1a:0:b0:76c:a908:a50a with SMTP id e26-20020a37ac1a000000b0076ca908a50amr864819qkm.64.1692308312563; Thu, 17 Aug 2023 14:38:32 -0700 (PDT) Received: from fedora.redhat.com ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id s1-20020ae9f701000000b0076c71c1d2f5sm96547qkg.34.2023.08.17.14.38.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 14:38:32 -0700 (PDT) From: Andrew Halaney To: andersson@kernel.org Cc: agross@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brgl@bgdev.pl, Andrew Halaney Subject: [PATCH 1/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy0 irq Date: Thu, 17 Aug 2023 16:37:16 -0500 Message-ID: <20230817213815.638189-2-ahalaney@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230817213815.638189-1-ahalaney@redhat.com> References: <20230817213815.638189-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There's an irq hooked up, so let's describe it. Prior to commit 9757300d2750 ("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging showing that the GPIO was in fact asserted, resulting in the interface staying down. Now that the IRQ is properly routed we can describe it. Signed-off-by: Andrew Halaney Reviewed-by: Konrad Dybcio Reviewed-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 81a7eeb9cfcd..8fde6935cd6e 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -285,6 +285,7 @@ sgmii_phy0: phy@8 { compatible = "ethernet-phy-id0141.0dd4"; reg = <0x8>; device_type = "ethernet-phy"; + interrupts-extended = <&tlmm 7 IRQ_TYPE_EDGE_FALLING>; reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>; reset-assert-us = <11000>; reset-deassert-us = <70000>; From patchwork Thu Aug 17 21:37:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 715459 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 313A3C7112F for ; Thu, 17 Aug 2023 21:40:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355378AbjHQVji (ORCPT ); Thu, 17 Aug 2023 17:39:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355435AbjHQVj0 (ORCPT ); Thu, 17 Aug 2023 17:39:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95BC810C7 for ; Thu, 17 Aug 2023 14:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692308316; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FqqZicTGV7T3Kk10xXAHHZqVsDBeCNcyh9Qza7vGkZ8=; b=YeMvHaUt5zk9gEnSROnoS/kHej1HobcpJA2tVKDCHUNlIRqtZvbbqI8bCCbAogvAW42tjJ CzbKs810Z3ygIjgX2Ks/Ez+DnwAN/+wWEcTomRRBMMYGQHduoYlkwB/wqbQCl/jxTFnIsY YMuiOOVXg4K1RGs9hM7edSYo4Hf4veA= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-657-enpUwI47Neartenrfakp9w-1; Thu, 17 Aug 2023 17:38:35 -0400 X-MC-Unique: enpUwI47Neartenrfakp9w-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-76d84238ec4so32172285a.3 for ; Thu, 17 Aug 2023 14:38:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692308315; x=1692913115; 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=FqqZicTGV7T3Kk10xXAHHZqVsDBeCNcyh9Qza7vGkZ8=; b=NY2dh1IxQ7Ch7W4V0n06wIuasDxXormpWAS8fZBgWgY47qDFW62AXg2KBNW9luLIFC 0SUal7cbTOnNxDKcmObwjvFu+c2NVAKqunvwk3ltMNRM8om30cwm+OLGy73bOmY+Vt+0 08xMB3fL5CO10Hoj1UDdbJUhKli9BceJiyaJ6SBlzbmxjRSIbuxfoZbzcA2TTkkbNH5k o4XmEDeGC0rZMhQnBqMM0gd2SjhxZkHSfYQ5OBDrNFNWIRIcp763O1F4root/jGK+zJz apMXNt9p1hGouDMlxj52ZMcTHXRR7fb8yqJZdedX1BLwwBGgdfvDm+ehr/t5srP70jFM TiOQ== X-Gm-Message-State: AOJu0YwYOasHcv9Zxc1gL3CHsb63xpSiqkd6dK6olz+yrPR4xA6ImBMm adEqmGNJCoq3hXumOR8DvAmVcGlC8vRxuqDPiqcJERbZ6FitMHqbe5DAEJqFcYXYNcAcuwPNDDW DTrH+0GF71Xl+ofaS7e5z3HgAeQ== X-Received: by 2002:a05:620a:4451:b0:75b:23a0:d9e1 with SMTP id w17-20020a05620a445100b0075b23a0d9e1mr1197243qkp.55.1692308314959; Thu, 17 Aug 2023 14:38:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkp3rZRvDcTzFKJ6Hqm2t/JobO+mLJ0a7jWTkq/V/9LaaPUGogroqre6KXatk72o3i6DIw8Q== X-Received: by 2002:a05:620a:4451:b0:75b:23a0:d9e1 with SMTP id w17-20020a05620a445100b0075b23a0d9e1mr1197225qkp.55.1692308314722; Thu, 17 Aug 2023 14:38:34 -0700 (PDT) Received: from fedora.redhat.com ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id s1-20020ae9f701000000b0076c71c1d2f5sm96547qkg.34.2023.08.17.14.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 14:38:34 -0700 (PDT) From: Andrew Halaney To: andersson@kernel.org Cc: agross@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brgl@bgdev.pl, Andrew Halaney Subject: [PATCH 2/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy1 irq Date: Thu, 17 Aug 2023 16:37:17 -0500 Message-ID: <20230817213815.638189-3-ahalaney@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230817213815.638189-1-ahalaney@redhat.com> References: <20230817213815.638189-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There's an irq hooked up, so let's describe it. Prior to commit 9757300d2750 ("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging showing that the GPIO was in fact asserted, resulting in the interface staying down. Now that the IRQ is properly routed we can describe it. Signed-off-by: Andrew Halaney --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 8fde6935cd6e..9760bb4b468c 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -295,6 +295,7 @@ sgmii_phy1: phy@a { compatible = "ethernet-phy-id0141.0dd4"; reg = <0xa>; device_type = "ethernet-phy"; + interrupts-extended = <&tlmm 26 IRQ_TYPE_EDGE_FALLING>; reset-gpios = <&pmm8654au_2_gpios 9 GPIO_ACTIVE_LOW>; reset-assert-us = <11000>; reset-deassert-us = <70000>;