Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1887443rwb; Fri, 11 Nov 2022 01:43:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf69QL9jQtoB+e5HmbKhMk/R15cixOeRo1fXtF44dSUowptBcax0lPB7qcgUT3xWHnwprZDw X-Received: by 2002:a17:903:26c6:b0:178:b4b7:d74d with SMTP id jg6-20020a17090326c600b00178b4b7d74dmr1760660plb.83.1668159824465; Fri, 11 Nov 2022 01:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159824; cv=none; d=google.com; s=arc-20160816; b=B7Bf0LnqKaW24SVq/jXcWsMxPaV0HJ0FQxRCf9QlfKIjL6cWcrRRxlZTOp9Mt9qa8W fQSDhkOPf8CY0+PZKOz3E9Y+oe0KQJM5UJR6wUL8a8nLDK+0Zy3N35MZ5OFsCynifIfG qyXyN57sSaDeOpJO7NQMEog1/nETk83Fcup/ctNzS/4dSGa2HJEo6OS70vhoE22RfE6j G3BkgGImR8/fYL5I9HyRL01sBNXEdHfeaHJxrc/vw9+UCgOv+M/yML4lYj78MWB2jEBu AECNku2xyF47N1f+zlN/zK1E4WP0jB4x9rAN1XqS91+WmrWD+VbBib9X2jF4H3WV5vGY KlYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=1QviO7g0X9TaU2BPfKXn+/uDSwn9+ZcxkSHMkagSvBQ=; b=Ub0oXnitP5qEXoxc7hKh+hDD75v+mtfkpyD2wIztO5FmGhRkyLYsLKAJnrWX8nLTgb 2LmN27mAg9snBPCiEAMpAGG8YdY5uX8YFpSBK4HFQMh5t6iPmp4uD1O8ANTmxYWQ7QUe /Li6NIcvyKjXj+QyRFoiMijnYrMphJDkAtZ/kajPgseMas6rToVAazLjJrHsLScuhaRi TVrdem4vUPv25mq1cd+WsU2l5PWYMMGKba09yhal9f9f1p3khW9cJWUTAHBWM4Hauj9c QCUdRgmhs4WyzNTkqYDDampGgNXf+kYM8pJL1tQGyGct1SF11ykY/pDjaqvS2k+u6I7o ntuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="XH7/0SMY"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a170902e74200b00186a076362csi2370238plf.315.2022.11.11.01.43.32; Fri, 11 Nov 2022 01:43:44 -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=pass header.i=@gmail.com header.s=20210112 header.b="XH7/0SMY"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233273AbiKKJGD (ORCPT + 93 others); Fri, 11 Nov 2022 04:06:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233571AbiKKJFn (ORCPT ); Fri, 11 Nov 2022 04:05:43 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D68951122; Fri, 11 Nov 2022 01:05:41 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id j15so5637932wrq.3; Fri, 11 Nov 2022 01:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1QviO7g0X9TaU2BPfKXn+/uDSwn9+ZcxkSHMkagSvBQ=; b=XH7/0SMYFxcygZBP/lXF+7e071JADn9twF2Wzsu12Te92AbupuMte1rSifd+asp7zY m7ZZ2eKEOK8HhQYGiAIqYQXpyRljjlMXVfstuvWKERhG3gJnDgdSPB0K8JXrnxD7Kk+2 0uvQRV5C4MFPOSgA3jhqSBPaS6l98ohw1nHuLHRipMSzEGVI1B4c58RM9TlM7AoMx4k3 ZXbg1AUUduuFtWLNmWmPNDUVr4kUejMwnwFQbbRq05nZf+zu49I/dY+T8ZITK51DPGYk f2IFeKYc/YOR4Q7vTpztl13WvEtiOCY5uInpO9olCCpTD7yIboP4gupAqNBm1IvPUfbk lxcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1QviO7g0X9TaU2BPfKXn+/uDSwn9+ZcxkSHMkagSvBQ=; b=J0FT3CbVSjIkDQGtskRBtJiRgvlFHSYy/SQ2G5D4uMKJCOawgCdA4q0cVqBoqXP2jL hT8C6XUu3hH1tFt3Jtvj8xw1th5ys1uMePUkZJTtfxqbRuMHZ15At1AKiZmDrFeZFa04 5IsgBNLEVV6Sgkr0mcHN42vC4XmudVJ0xtQ6MkWOUOAoUpNyCKhbdVJkyOgGiHT+7nsm z4dt2PDDDPN8JXlFJSshISGJaLDVDQYSh905OVh5BWoo3zl4R1vLPnj1T0hrUIWyiQv3 XYJxkg/IroJAmCr7Wvqno65flGBJbNvH9QYiUR2XeUipJE34bXoGzPoCWhIV/DVXJAjH gL2Q== X-Gm-Message-State: ANoB5pnE8rYmy9BUth+/O8JLMV2klXUv4qeD/y9nYKCJQOcZ0FtEExV+ qQf9nT59pAksfidypXLVadc= X-Received: by 2002:a5d:4841:0:b0:22e:38b:95ff with SMTP id n1-20020a5d4841000000b0022e038b95ffmr610851wrs.202.1668157540379; Fri, 11 Nov 2022 01:05:40 -0800 (PST) Received: from [192.168.1.131] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id p25-20020a05600c1d9900b003c64c186206sm2203693wms.16.2022.11.11.01.05.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Nov 2022 01:05:38 -0800 (PST) Message-ID: Date: Fri, 11 Nov 2022 10:05:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [RFC v3 01/11] arm64: dts: mt7986: harmonize device node order Content-Language: en-US From: Matthias Brugger To: Frank Wunderlich , linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sam Shih , AngeloGioacchino Del Regno References: <20221106085034.12582-1-linux@fw-web.de> <20221106085034.12582-2-linux@fw-web.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 11/11/2022 09:55, Matthias Brugger wrote: > > > On 06/11/2022 09:50, Frank Wunderlich wrote: >> From: Sam Shih >> >> This arrange device tree nodes in alphabetical order. >> >> Signed-off-by: Sam Shih >> Signed-off-by: Frank Wunderlich >> Reviewed-by: AngeloGioacchino Del Regno > > Applied, thanks! > I realized that wed_pcie: wed-pcie@10003000 is'nt ordered correctly. Please send a follow-up patch to fix that. Regards, Matthias >> --- >> i modified sams patch >> >> https://patchwork.kernel.org/project/linux-mediatek/patch/20220427124741.18245-2-sam.shih@mediatek.com/ >> >> by moving pio-node up instead of moving uarts down to ensure alphabetical >> order for switch-/wifi-node. >> >> And moved uart0 and wifi in mt7986b-rfb too. >> --- >>   arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 94 ++++++++++---------- >>   arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 22 ++--- >>   2 files changed, 58 insertions(+), 58 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts >> b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts >> index afe37b702eef..6189436fe31d 100644 >> --- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts >> +++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts >> @@ -54,6 +54,53 @@ switch: switch@0 { >>       }; >>   }; >> +&pio { >> +    uart1_pins: uart1-pins { >> +        mux { >> +            function = "uart"; >> +            groups = "uart1"; >> +        }; >> +    }; >> + >> +    uart2_pins: uart2-pins { >> +        mux { >> +            function = "uart"; >> +            groups = "uart2"; >> +        }; >> +    }; >> + >> +    wf_2g_5g_pins: wf-2g-5g-pins { >> +        mux { >> +            function = "wifi"; >> +            groups = "wf_2g", "wf_5g"; >> +        }; >> +        conf { >> +            pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", >> +                   "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", >> +                   "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", >> +                   "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", >> +                   "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", >> +                   "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", >> +                   "WF1_TOP_CLK", "WF1_TOP_DATA"; >> +            drive-strength = <4>; >> +        }; >> +    }; >> + >> +    wf_dbdc_pins: wf-dbdc-pins { >> +        mux { >> +            function = "wifi"; >> +            groups = "wf_dbdc"; >> +        }; >> +        conf { >> +            pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", >> +                   "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", >> +                   "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", >> +                   "WF0_TOP_CLK", "WF0_TOP_DATA"; >> +            drive-strength = <4>; >> +        }; >> +    }; >> +}; >> + >>   &switch { >>       ports { >>           #address-cells = <1>; >> @@ -121,50 +168,3 @@ &wifi { >>       pinctrl-0 = <&wf_2g_5g_pins>; >>       pinctrl-1 = <&wf_dbdc_pins>; >>   }; >> - >> -&pio { >> -    uart1_pins: uart1-pins { >> -        mux { >> -            function = "uart"; >> -            groups = "uart1"; >> -        }; >> -    }; >> - >> -    uart2_pins: uart2-pins { >> -        mux { >> -            function = "uart"; >> -            groups = "uart2"; >> -        }; >> -    }; >> - >> -    wf_2g_5g_pins: wf-2g-5g-pins { >> -        mux { >> -            function = "wifi"; >> -            groups = "wf_2g", "wf_5g"; >> -        }; >> -        conf { >> -            pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", >> -                   "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", >> -                   "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", >> -                   "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", >> -                   "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", >> -                   "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", >> -                   "WF1_TOP_CLK", "WF1_TOP_DATA"; >> -            drive-strength = <4>; >> -        }; >> -    }; >> - >> -    wf_dbdc_pins: wf-dbdc-pins { >> -        mux { >> -            function = "wifi"; >> -            groups = "wf_dbdc"; >> -        }; >> -        conf { >> -            pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", >> -                   "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", >> -                   "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", >> -                   "WF0_TOP_CLK", "WF0_TOP_DATA"; >> -            drive-strength = <4>; >> -        }; >> -    }; >> -}; >> diff --git a/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts >> b/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts >> index 3443013b5971..7459ddb6b6f0 100644 >> --- a/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts >> +++ b/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts >> @@ -25,10 +25,6 @@ memory@40000000 { >>       }; >>   }; >> -&uart0 { >> -    status = "okay"; >> -}; >> - >>   ð { >>       status = "okay"; >> @@ -99,13 +95,6 @@ fixed-link { >>       }; >>   }; >> -&wifi { >> -    status = "okay"; >> -    pinctrl-names = "default", "dbdc"; >> -    pinctrl-0 = <&wf_2g_5g_pins>; >> -    pinctrl-1 = <&wf_dbdc_pins>; >> -}; >> - >>   &pio { >>       wf_2g_5g_pins: wf-2g-5g-pins { >>           mux { >> @@ -138,3 +127,14 @@ conf { >>           }; >>       }; >>   }; >> + >> +&uart0 { >> +    status = "okay"; >> +}; >> + >> +&wifi { >> +    status = "okay"; >> +    pinctrl-names = "default", "dbdc"; >> +    pinctrl-0 = <&wf_2g_5g_pins>; >> +    pinctrl-1 = <&wf_dbdc_pins>; >> +};