Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp944975rwb; Mon, 26 Sep 2022 07:48:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5uYbe8IzZZIE0uBzozSdw5FqPbIVM0S6lsnRMfsslZtIr+/sH/83UmO19gGGBHo8XWAtTB X-Received: by 2002:a17:906:2699:b0:781:a473:9791 with SMTP id t25-20020a170906269900b00781a4739791mr18987198ejc.644.1664203698363; Mon, 26 Sep 2022 07:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664203698; cv=none; d=google.com; s=arc-20160816; b=gbm6HcnnqdXeZxkhSLB024mcjdQFZKiBbNQpzGcqs77zjPrKQogZP1rYvnA2dLvcxR x2EeDpGUxBaf4P4zZoyVWUaKGWHdpSutUKLaXfG/0k2vB84Nbs0LUA1EMdQ/9j8gnPvx 6gwd43cFXRurfQNppSXLVt4LUM+l9yCPIgjoIZzCaenVMUdeys1RKFrIZL0/Sv8so4K8 oBMSpqvYfqPxM3jJOMOn8NOcRWOkiXFb6gTqAOibobr/OLOfjTWeX4tAcZYRH/bHMNhv 7dqHlHc9PYkrWHbYDqicr+WpV4caAvrFhRIcnSmWfTFYbyLFgA0UVMG5bPqUNKSUSBpf kaPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LLphTisyqhglVG8m0yJtJlj/axtSCaP85xq31ESHhs8=; b=lvVcNYLeAp+2PD8SefDK7F7FhWijoW1ycrPtgWfsXki/Cr1EHCc5Jtr25o2GhTPuNe 0yN5BgNxa0aYSRu/dq0mhOqrgtlySO7FPIlyaFYY/ly0uOXduJX3ShNapH+4LVte0lyJ 16Tofukju2Z7Q5v1h8WQ0aCNXK+92uhS6VqT+7p/Fi9ylXLmFWKMJPPO1I6U9nK3QuiB NQmzwPkdAT9myBrBEtCIYxG8bS7/lBnojJR+bkiPMU+h3TbtRfyXVuIp3BtkPAD4bowd 4B8w/fHtRzn3eZsUZC8xk2Gfckwi3NkB+YDdE0OLo9X/M176DsSD0dkevXBy+H5WAYwc tOQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gbyrea2m; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a1709063a8100b00780e022dfb8si58563ejd.494.2022.09.26.07.47.52; Mon, 26 Sep 2022 07:48:18 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=gbyrea2m; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234277AbiIZONA (ORCPT + 99 others); Mon, 26 Sep 2022 10:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbiIZOMD (ORCPT ); Mon, 26 Sep 2022 10:12:03 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D97D13F10; Mon, 26 Sep 2022 05:23:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 515C5CE112F; Mon, 26 Sep 2022 12:23:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B1FFC433C1; Mon, 26 Sep 2022 12:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664195001; bh=zJEciUTP3+aG+EbLavhrKXahpwLSGkfJv3iF/kQWSrc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gbyrea2moJjfhNJ9wppnS3mkMIjCqY+vQS3CSOZmxwWQLx2eKP4kMjgE8qZhWtNoJ pKmIH6TZssORI4AHPo4YmeV5a0KOXEneaudIRGSfdCrvYNCKtXmMBAms/hPJNugGGT RgKyTfEuHOekvEeRbOsJVLIX7g84Sl3d5tiC4EdhdazO5hPiifXbcPUW39bO6Ykqhs 5ft4KC7n8I5kEgVvh/gXW+A965RPTidsNMZ2KmZWVF5c+Ksw5NYSMuYDTrAKHIRn40 n99d1dmKGuwTJe6IAkLgOvMKoP/dqEg8AFcY8NmYGnNj2lWGt7Opg07Z6qgAseJnyr KO+oaJCR9cPpQ== Received: by pali.im (Postfix) id 54A1D8A3; Mon, 26 Sep 2022 14:23:18 +0200 (CEST) Date: Mon, 26 Sep 2022 14:23:18 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Elad Nachman Cc: maukka@ext.kapsi.fi, Andrew Lunn , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, arnd@arndb.de, olof@lixom.net, sebastian.hesselbarth@gmail.com, gregory.clement@bootlin.com, linux@armlinux.org.uk, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] ARM: orion5x: Add D-Link DNS-323 based on Device Tree Message-ID: <20220926122318.qmt4dnes7caua333@pali> References: <20220427162123.110458-1-maukka@ext.kapsi.fi> <20220922202458.7592-1-maukka@ext.kapsi.fi> <20220922202458.7592-4-maukka@ext.kapsi.fi> <6dc27862f8460f875c31ad2de56baa9f@ext.kapsi.fi> <20220923180226.vmjcefxlujg2r6u3@pali> <74f2b413a617a4315cc34a0ef386dd8d@ext.kapsi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <74f2b413a617a4315cc34a0ef386dd8d@ext.kapsi.fi> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Hello Elad! I hope that would not bothering you. We are doing here cleanup of kernel code for older Marvell SoCs (Orion) and there one unknown thing about 88F5181's 0x10008 register. See below. On Monday 26 September 2022 14:56:48 maukka@ext.kapsi.fi wrote: > On 23.9.2022 21:02, Pali Rohár wrote: > > On Friday 23 September 2022 14:12:24 Andrew Lunn wrote: > > > > > > + if (of_machine_is_compatible("dlink,dns323a1")) { > > > > > > + writel(0, MPP_DEV_CTRL); /* DEV_D[31:16] */ > > > > > > > > > > I spotted this in dns323-setup.c as well. Do you have any idea what it > > > > > does? > > > > > > > > > > > > > No idea. I have tried to replicate what was in dns323-setup.c as exactly as > > > > possible. > > > > I can try to leave it out and see if anything changes. > > > > > > It is best to keep what we don't understand. It will be there for a > > > reason. > > > > > > Andrew > > > > Hello! I tried to index all publicly available Marvell SoC > > documentations into kernel documentation subfolder: > > https://docs.kernel.org/arm/marvell.html > > > > For Orion there is linked Datasheet and User Manual, so you could try to > > find in those documents that mentioned register and check what it is > > doing. > > MPP_DEV_CTRL refers to register at address 0x10008. According to the 88F5152 > user manual it's > 'Device Multiplex Control Register' Offset: 0x10008. > > Bits Field Type/InitVal Description > [31:0] Reserved RES 0x03FF0000 Reserved. NOTE: Must be 0x03FF0000'. > > DEV_D[31:16] receives no hits in the documentation, only to DEV_D[15:0] are > referred. In linked public document I found same thing. Register is for 88F5182 reserved. (You have typo in comment, it is 88F5182, not *52). > Maybe 88F5151 is different, hard to say. I have feeling that for 88F5181 it is not reserved and has to be configured correctly. (Also typo in your comment, it is 88F5181, not *51). But I have not found any copy of 88F5181 user manual document on internet. In past 88F518x and 88F528x documents and user manuals were available publicly on Marvell website, visible from web archive: https://web.archive.org/web/20080607215437/http://www.marvell.com/products/media/index.jsp But Marvell deleted these documents from their public website and for kernel developers they are now probably lost. I do not know about any other backups. Elad, could you please help us? Do you have access to functional specifications / user manuals for 88F518x and 88F528x or have information how kernel developers can get access to those documents? Hopefully they were not totally lost. We just need explanation for register 'Device Multiplex Control Register' Offset: 0x10008.