From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C867C433B4 for ; Tue, 6 Apr 2021 12:05:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2F2A76108B for ; Tue, 6 Apr 2021 12:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241518AbhDFMFd (ORCPT ); Tue, 6 Apr 2021 08:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbhDFMFc (ORCPT ); Tue, 6 Apr 2021 08:05:32 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D64FFC06174A for ; Tue, 6 Apr 2021 05:05:22 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id o6so4301307wmq.3 for ; Tue, 06 Apr 2021 05:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=Zq1H+3FDfTaqKwXlT1gl6y8xv4DH7ZmvL1jkdV+ZIFA=; b=UNqbHUT9aqmO/0xJgvfKU5Uyo+8g+tsb3lGnA1Hy7s5ndUImRaJseP4umBwkEGrl6D Skr7JQ6J7EmqkdFCasX7lr492piHKB8YppVgePbbgwYwhTQ1vl8kRfb6Hkb2UF90VD/3 2uumo4ehIW+PG9PAzX6kts9GPWTjNNBA81SCgm90hTKKwZxub1Lq9Ma6D67CTLWDs4QT IlsSSJN0sXc0yLL97Zm/RtvnW6ztnqw3bWKKGDB9HIb/XkcvmGBK7lqlgTOa/MMZ5H49 sIyRJMV0rOPaSmbrw9CaDbqelNgcI+eC2xdl4cCxWKjdyquShiloYLvGhS2efAWNDRDf Pl4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Zq1H+3FDfTaqKwXlT1gl6y8xv4DH7ZmvL1jkdV+ZIFA=; b=owXHuTL3kJ/3T6NDllOErOFCxcbsnuE+r+EBqX7Rp/MOj48ZvT6nkEcazqPGOJoR2+ 4L1nOvLTqe3V9QwoMs8TwvaldrztyBmXk0bVjAYdc3EOGtb0eeHCDZ85TZV420e3fm6U MGrYPXY+axePi9mnNdbOgol6MtE1jGW9oXF39mVU5O8iA6OKaLI4MpJEAZuYytIQh1c9 N4biHUGG647DBNj30+fg8FoxuB+pF2fCRLTa9RV/l27yDG0W7xRg5D34YcD6RVDjcZNK 9G0iPczZqD/5v+TPij0SeNsHRxLDybV996onratoG5cQJBziWjMps524yh6q/7ebEgZP t33w== X-Gm-Message-State: AOAM530udDM/gjxr9eK4+/JbytaXruuiTkPO9Ai8UJWWORTB1naWe99U VD3ps3ilVy0QMnzd/L16S48= X-Google-Smtp-Source: ABdhPJykKoG3XcB1LfsgR5fv5fy/w8P6/RSshU0xetPetaBj8h7U5Au5F/PEpQNMsyH5zz3uu7CLJg== X-Received: by 2002:a1c:e341:: with SMTP id a62mr3927720wmh.152.1617710721671; Tue, 06 Apr 2021 05:05:21 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id g1sm10238082wru.61.2021.04.06.05.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 05:05:21 -0700 (PDT) Date: Tue, 6 Apr 2021 14:05:19 +0200 From: Corentin Labbe To: Linus Walleij Cc: Hans Ulli Kroll , Linux ARM , linux-kernel Subject: Re: gemini: sl3516: Mainlining of NS 2502 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Tue, Apr 06, 2021 at 10:15:51AM +0200, Linus Walleij a écrit : > On Mon, Apr 5, 2021 at 8:39 PM Corentin Labbe wrote: > > > I own an Edimax NS 2502, which is a NAS based on StormLinix 3516. > > I successfully upgraded it with a recent Linux. > > Pretty cool! > > > mdio0: ethernet-phy { > > compatible = "virtual,mdio-gpio"; > > gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ > > <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ > > #address-cells = <1>; > > #size-cells = <0>; > > phy0: ethernet-phy@1 { > > reg = <1>; > > device_type = "ethernet-phy"; > > }; > > }; > > This looks like the most typical way to attach an MDIO phy. > > I always try to identify the exact component used on the board. Do you have > a high res board photo? > Hello You could find photos at http://kernel.montjoie.ovh/gemini/ There are also photos of another SL3516 SoC based device (a SSI 1328 NAS), but I fail to setup a serial on it, so I keep it for later. > Realtek RTL82111 is the most common configuration. > > Compare to the D-Linux DNS-313 DTS: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/gemini-dlink-dns-313.dts > > Try just copying the whole pinctrl-gmii section! > > > > syscon: syscon@40000000 { > > pinctrl { > > /* > > * gpio0agrp cover line 0-4 > > * gpio0bgrp cover line 5 > > */ > > gpio0_default_pins: pinctrl-gpio0 { > > mux { > > function = "gpio0"; > > groups = "gpio0agrp", > > "gpio0bgrp"; > > }; > > }; > > Change groups to > > groups = "gpio0agrp", "gpio0bgrp", "gpio0hgrp"; > > So you mux in group h which is where the GPIO 21, 22 go out > to the MDIO on 3516 IIUC. The right mux out is pretty important, > if you have vendor source code, please share so I can check how > they set it up. > No change, probably due to all pinctrl-gemini 40000000.syscon:pinctrl: could not map pin config for "R8 GMAC0 RXDV" Please see http://kernel.montjoie.ovh/gemini/bootlog6.txt , I have added some pr_info in gmac. I have put in the directory, the final dtb which I use. The vendor source could be found at https://www.edimax.com/edimax/mw/cufiles/files/download/OpenSourceCode/transfer/Wireless/NAS/NAS-GPL-source.zip > > BUT neither ethernet nor USB works. > > For USB try this patch: > https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?h=gemini-usb&id=cbaf6cdf770b90de5f10bfa5112c679f1dffe948 > One of the USB port is now working. > Pls report progress! I hope we can mainline this device. > I hope too. Note that I have also started to work on the gemini crypto driver. Thanks for your help From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A58DC433ED for ; Tue, 6 Apr 2021 12:07:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E8DFB6108B for ; Tue, 6 Apr 2021 12:07:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8DFB6108B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=akV1DCVa3H1CjpEhIzt52/ruc5klagla40SVKfswCi4=; b=K18rA7fNzpQqPpvq3OM5vFHmi s3TNVF+ReLJ2YeymurGZrjAqJTmdCaMQpPDZJmu4rsGA4JqizZ07be3p43GDrbnBEzO3YxwLCW7Pu Dyz61qhPTO8NOMF+lJ/yTG1btx/1h1O86JBoMwXcVD7LaufbI+SFzVhetUgoJa0ebSFCS7X+byJ41 QVhaGd8SSZ6Qi05yQH9noBosmRrICan4wkA7WZYh0/1fteBgslbillkkWyiiyCteyPg/nfafDwStT gz44Ro+YWAhf9UeUEp0Ecrq94e89WlMibJDp0GZhPay39ydsDtwM830TLAGOE+GVGOCFFCzWIV9CK AGko0T9qw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkSZ-002VHK-La; Tue, 06 Apr 2021 12:05:31 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkSQ-002VFq-EH for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:05:26 +0000 Received: by mail-wm1-x334.google.com with SMTP id z6-20020a1c4c060000b029010f13694ba2so7164488wmf.5 for ; Tue, 06 Apr 2021 05:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=Zq1H+3FDfTaqKwXlT1gl6y8xv4DH7ZmvL1jkdV+ZIFA=; b=UNqbHUT9aqmO/0xJgvfKU5Uyo+8g+tsb3lGnA1Hy7s5ndUImRaJseP4umBwkEGrl6D Skr7JQ6J7EmqkdFCasX7lr492piHKB8YppVgePbbgwYwhTQ1vl8kRfb6Hkb2UF90VD/3 2uumo4ehIW+PG9PAzX6kts9GPWTjNNBA81SCgm90hTKKwZxub1Lq9Ma6D67CTLWDs4QT IlsSSJN0sXc0yLL97Zm/RtvnW6ztnqw3bWKKGDB9HIb/XkcvmGBK7lqlgTOa/MMZ5H49 sIyRJMV0rOPaSmbrw9CaDbqelNgcI+eC2xdl4cCxWKjdyquShiloYLvGhS2efAWNDRDf Pl4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Zq1H+3FDfTaqKwXlT1gl6y8xv4DH7ZmvL1jkdV+ZIFA=; b=ivLtYneC37ybTnYgjHNniE8UZeemN1W65OLnQv/gaWq5I3N4A8OD8/8L9akro2UoVN iRXWO1LxwUidcP6yKNmK8yQ/km33LipjbeG53Dnp5f6dPZCZaAJVn9icM1sfWkNPn8s5 F19IEiR07BVyhBwDqvC4dH04dJ05qmmndU8cg7ST8TOOCr2d2xvT/AnZN6qjLd5/zZIw iOxk04tMpyFVFkeD5uI/nqrWJO8If4jeukDEn/LkP3TDcNVH9s5mD2u8iQvWaJG1ppL3 96iAwH09x7XX8v+gmlFltaHtR507teAYWpoxTrWtCV5+s+1elz4YvA3rRVZXefUN/j+E 1qxw== X-Gm-Message-State: AOAM5330MSPcoy+AudQ+aylYxMbhBEivkUkYdpWuJ8mWfriA4UwKjQds p1LTTmXXRxm+BIwogcd23yg= X-Google-Smtp-Source: ABdhPJykKoG3XcB1LfsgR5fv5fy/w8P6/RSshU0xetPetaBj8h7U5Au5F/PEpQNMsyH5zz3uu7CLJg== X-Received: by 2002:a1c:e341:: with SMTP id a62mr3927720wmh.152.1617710721671; Tue, 06 Apr 2021 05:05:21 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id g1sm10238082wru.61.2021.04.06.05.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 05:05:21 -0700 (PDT) Date: Tue, 6 Apr 2021 14:05:19 +0200 From: Corentin Labbe To: Linus Walleij Cc: Hans Ulli Kroll , Linux ARM , linux-kernel Subject: Re: gemini: sl3516: Mainlining of NS 2502 Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_130522_801812_AE788037 X-CRM114-Status: GOOD ( 23.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Le Tue, Apr 06, 2021 at 10:15:51AM +0200, Linus Walleij a =E9crit : > On Mon, Apr 5, 2021 at 8:39 PM Corentin Labbe = wrote: > = > > I own an Edimax NS 2502, which is a NAS based on StormLinix 3516. > > I successfully upgraded it with a recent Linux. > = > Pretty cool! > = > > mdio0: ethernet-phy { > > compatible =3D "virtual,mdio-gpio"; > > gpios =3D <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ > > <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ > > #address-cells =3D <1>; > > #size-cells =3D <0>; > > phy0: ethernet-phy@1 { > > reg =3D <1>; > > device_type =3D "ethernet-phy"; > > }; > > }; > = > This looks like the most typical way to attach an MDIO phy. > = > I always try to identify the exact component used on the board. Do you ha= ve > a high res board photo? > = Hello You could find photos at http://kernel.montjoie.ovh/gemini/ There are also photos of another SL3516 SoC based device (a SSI 1328 NAS), = but I fail to setup a serial on it, so I keep it for later. = > Realtek RTL82111 is the most common configuration. > = > Compare to the D-Linux DNS-313 DTS: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/a= rch/arm/boot/dts/gemini-dlink-dns-313.dts > = > Try just copying the whole pinctrl-gmii section! > = > = > > syscon: syscon@40000000 { > > pinctrl { > > /* > > * gpio0agrp cover line 0-4 > > * gpio0bgrp cover line 5 > > */ > > gpio0_default_pins: pinctrl-gpio0 { > > mux { > > function =3D "gpio0"; > > groups =3D "gpio0agrp", > > "gpio0bgrp"; > > }; > > }; > = > Change groups to > = > groups =3D "gpio0agrp", "gpio0bgrp", "gpio0hgrp"; > = > So you mux in group h which is where the GPIO 21, 22 go out > to the MDIO on 3516 IIUC. The right mux out is pretty important, > if you have vendor source code, please share so I can check how > they set it up. > = No change, probably due to all pinctrl-gemini 40000000.syscon:pinctrl: coul= d not map pin config for "R8 GMAC0 RXDV" Please see http://kernel.montjoie.ovh/gemini/bootlog6.txt , I have added so= me pr_info in gmac. I have put in the directory, the final dtb which I use. The vendor source could be found at https://www.edimax.com/edimax/mw/cufile= s/files/download/OpenSourceCode/transfer/Wireless/NAS/NAS-GPL-source.zip > > BUT neither ethernet nor USB works. > = > For USB try this patch: > https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/= commit/?h=3Dgemini-usb&id=3Dcbaf6cdf770b90de5f10bfa5112c679f1dffe948 > = One of the USB port is now working. > Pls report progress! I hope we can mainline this device. > = I hope too. Note that I have also started to work on the gemini crypto driver. Thanks for your help _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel