Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2990771pxb; Sun, 20 Feb 2022 06:23:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0U6CcB62RE8JqgQOjgc1baEwG0gRvKT5qf/P+egxum8pXW7J2K1EOCDKJmrbAjh/eUJsr X-Received: by 2002:a17:90a:13c3:b0:1b8:d015:66d2 with SMTP id s3-20020a17090a13c300b001b8d01566d2mr21533542pjf.96.1645367028094; Sun, 20 Feb 2022 06:23:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645367028; cv=none; d=google.com; s=arc-20160816; b=0sNr+1769TFa897dVrdn5BrTyg+EsIfz13mb+GQJpRFo/WKfzxwEV1NBxX2Y1UmKZC fXYj+x1ZK8oFsvkdXkJvMcdsUDcEcdK0wCpdLgowlPPJW/O5muCKwUunCFkuJ+iixyRN V08qF4FnE7hVU/AuMNavptTzn8jhhhcs0avI1cAeZS49J2p6kcg7GJwlpWFT3uBF6vQQ 4jktbJXa06X8iVEIIRf6wnMLiENn+vKvBR1we+cHJ7k+DrfnkwLB7CG/IslF5+nk5UOi 1f0g07LgJeyGb//57Rd6l4or+joANo7iQZVfvJv+WhigQYQ1W05j9Pnj6NZFQ5HSOo29 2OsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m8sEB9GrTA4GPwtivV3jg4rj+1a8Ftb8pAhyUy9NMhQ=; b=CU+e30/ihdwdLfznKSk2NlXu8MrAc4QjLsmVdiOdD6O5cj5jY7fNYOASt6V4VGvbAc ArrBFJXJ8N2oZSyBW29pJeLL265wu20AUg/nFym+S+p8FhWtowtEPO/lsE90Tn0U8vUt EOAQVPT5j8oc+J6kg5GgEX5jHduC07VP2IMpTX9/VZag18Gc+OhmUQy/tdDEuFkwJahm 35mdLn+MSkIwA4DRdBZgCxZJNuga2Wwx+jWX/VB9Bvehv7B603lqIqTgMxWbnGRFCCQQ dHiUaqD1BTLYuvkvs1qIR4NbhZWqgKl21gAPFO1PGW2pSrafPphama3m7FYcJ7x6f7pt WGMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=ULAnvRoe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7si13536890pgu.330.2022.02.20.06.23.31; Sun, 20 Feb 2022 06:23:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=ULAnvRoe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243065AbiBSTJB (ORCPT + 99 others); Sat, 19 Feb 2022 14:09:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243058AbiBSTI6 (ORCPT ); Sat, 19 Feb 2022 14:08:58 -0500 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFCF8286; Sat, 19 Feb 2022 11:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=m8sEB9GrTA4GPwtivV3jg4rj+1a8Ftb8pAhyUy9NMhQ=; b=ULAnvRoeJKfXcwmauHVweXPb4i rwS+HvLjsOjTLWbi2FDRXSQM72mjuU9k1DF/ZAbXI+v1VEeV9GqGNjVHP0mljHuljsQ6j0o60rnCB uT3f6snjqoHMwJ/95d+OdomYeAWjv3awAPfdfz6Ip3nWT2AdH2Jq2KKZ6rgDTWv2MQnC0IE5tEqIA MoQy1TaEwC4bz1Wyrj778NHW2s+Kv5I97Did5t4rwHfPWOJ+kMzO1flVUAI/x49E5PxIjC2X11pZ9 fb+hl76lPEV9o3EE/V2mtV2qu4FfPlN29nUmWsZ8jebDc5bqc5HxfN8SS4ewVE6vYNzVJGlPrzEYL /29Egm/g==; Received: from noodles by the.earth.li with local (Exim 4.94.2) (envelope-from ) id 1nLV5u-009gvf-6q; Sat, 19 Feb 2022 19:08:34 +0000 Date: Sat, 19 Feb 2022 19:08:34 +0000 From: Jonathan McDowell To: Ansuel Smith Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 16/18] ARM: dts: qcom: remove redundant binding from ipq8064 rb3011 dts Message-ID: References: <20220218002956.6590-1-ansuelsmth@gmail.com> <20220218002956.6590-17-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 18, 2022 at 02:11:59PM +0000, Jonathan McDowell wrote: > On Fri, Feb 18, 2022 at 01:29:54AM +0100, Ansuel Smith wrote: > > Mdio0_pins are now declared in ipq8064 dtsi. Usb phy are enabled by > > default. ... > > - mdio0_pins: mdio0_pins { > > - mux { > > - pins = "gpio0", "gpio1"; > > - function = "gpio"; > > - drive-strength = <8>; > > - bias-disable; > > - }; > > - }; > > - > > This sets the pins to "gpio". Your earlier patch sets them to "mdio", so > removing this will break MDIO0 on the RB3011. It's likely that your > fixes for MDIO/QCA8K mean that the RB3011 can be switch to use the MDIO > driver rather than mdio-gpio, but that will need tested and this change > alone will definitely break things. I tried the below patch to switch the RB3011 to the IPQ8064 MDIO driver (based on qcom,ipq8064-mdio.yaml) and get: [ 1.270310] qca8k 37000000.mdio-mii:10: Switch id detected 0 but expected 13 and none of the ports on that associated switch come up. Kernel is 5.15.23 rather than latest, but there are no updates to mdio-ipq8064.c in later kernels than I can see and none of the qca8k changes seem relevant. Is there something else I'm missing? diff --git a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts index c3e3070702f9..0cafee65ca22 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts @@ -24,13 +24,13 @@ memory@42000000 { device_type = "memory"; }; - mdio0: mdio-0 { + mdio0: mdio@37000000 { status = "okay"; - compatible = "virtual,mdio-gpio"; - gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>, - <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>; + compatible = "qcom,ipq8064-mdio"; #address-cells = <1>; #size-cells = <0>; + reg = <0x37000000 0x200000>; + clocks = <&gcc GMAC_CORE1_CLK>; pinctrl-0 = <&mdio0_pins>; pinctrl-names = "default"; @@ -318,7 +318,7 @@ mux { mdio0_pins: mdio0_pins { mux { pins = "gpio0", "gpio1"; - function = "gpio"; + function = "mdio"; drive-strength = <8>; bias-disable; }; J. -- /-\ | Shall I call the United Nations? |@/ Debian GNU/Linux Developer | \- |