Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp179440pxb; Wed, 3 Nov 2021 02:14:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKdJIbqBkv5Lb8SOZohjFK1Xf6QO0EdgAYA6YJFVlizSMhV5xgvKpu64jkAyBuKhzQY+da X-Received: by 2002:a5d:96cc:: with SMTP id r12mr30200637iol.33.1635930873612; Wed, 03 Nov 2021 02:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635930873; cv=none; d=google.com; s=arc-20160816; b=wcWh+SNkjMVSOHwzHaDmC1SYya6aO3Z+t6Z/0CjKLueULtvQf0KTtInEUASjaFgoBZ /sfxTYJIWiL4AhYUejm+mJfDbGS5k9YX2nI7gh8iZGQM84elmHBODOx8kIxX/mBDDi6b TS9mdV78GepcWqhMwm4yjzD1QHmJWf2w/zuPsTSpRmrV9yaalnPs3MfOzPJ/ca/mrfyZ LTNzBJPUciS6xEBYjwYJqCfZmNdn8vP0sHx/dF5JKx2GeDIHeVbd8PoGLASZEgB5QKNP uE1jsea6BHZGZYPypKGNx79PxjgkAvka+UoGxRhXt85KqVB9/A/dvCb74rbKbkQQsTis 51gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=B9PO03tEZQxGDCWOiWP9E4WHsaZ/xui8yPJ2nq9Ie+E=; b=dBBO2JvF/fKeHyjURKo9K3pX9PN3RpuewDWKPKrJD6d2kgLwRfJm835hoQ8p6ykh+7 dRcSrmptRyZcxGJSSXw9Y8oHJ/1ogNN60zS0HwiQcIHyhamTfz9jcOX3pkUljubz4aRw h+0eadbs6o+x1wtqJ8uf17VvABnN8CZHBUO9mjP6vVhYGIh1Ytk0TWwedRGveRAkmi0G qTxIq5IZVakxv6kbA8fQQSn8GSqWolp7tsQ3LUGDvtYuVQKcFkuNVed3p2CPV2lQGl5c p1577UZ3MdU/A0VmQyQIOVtLDvptsWKGHhq8IDY8uMoIQGKb5P1rUMzl1pzQXDUlehdG dk9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KNkljUFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si2326638ioh.99.2021.11.03.02.14.16; Wed, 03 Nov 2021 02:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KNkljUFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231915AbhKCJP5 (ORCPT + 99 others); Wed, 3 Nov 2021 05:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbhKCJP4 (ORCPT ); Wed, 3 Nov 2021 05:15:56 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA91C061205; Wed, 3 Nov 2021 02:13:20 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id d10so4763095ybe.3; Wed, 03 Nov 2021 02:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=B9PO03tEZQxGDCWOiWP9E4WHsaZ/xui8yPJ2nq9Ie+E=; b=KNkljUFA7c2Z2y1ulLlQsP7Ck0sCiTe9vVMCyYsujALg8/+6C1sTuzdfujkKce2TSP 2qc3FJADfMuB/Dkf3wAWX1tNWyKGhsi1X/vIYT2I4dFb63ADvugoIAjwBSoyf1YVnCuP UjYlAlHZcTxh0mAA4eF++mz/VcVZH/iXBLc5TBoplRRfdKWSc24lMgXTGcX1Mo//I4lb 0wBsK+ruU1brPD+R1um24lQM9ztWRNvk7R2gcznkFTeJy5TuZjos7StSNgZ5u4dJUh8y EQg/PS+44XnptkjqcWiQ438ZCekYA8zhoxGBkJYeVkUfHs3DqCDZ2J8TuLeP48JKv9Fe IpKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=B9PO03tEZQxGDCWOiWP9E4WHsaZ/xui8yPJ2nq9Ie+E=; b=qjze0JxdvXZdTesxmngL0FM8MI1Y6BKhRQ5T3zOgOQKU8RZErcKJnqUe7gbv+7b8ov Jsl+MLYZZOMZLOGNBEaGR4Ld7Rbsgejn7+FKUSBK5Y1LfNnX3W6KbPaASWMV5u6xo78g d+PQuydPbNA8H7CxELm4asxfiTz8e8EzcmSjr7WiuVuve5Z641QmsizP5tsBy8wQ3yBp J+IxW+8xlrKV3DSlE2uOqJ4j1tdzErmvggCOTcBZLOeeXQmVLSN0DrVmTEZqfRDluwme G3HT5xcfwkXlPsAHuceyXrzoKlmshcF524wLObg76yRO3e2luwe5fQyv0ZuZmzhrxNNb UaSA== X-Gm-Message-State: AOAM530ojlcCuYhGZxsEDTigbRnlTqRCrObNPahpeIAzuI67mIIVdZCs hOR284oknolZSM1xTW/SarJecfpHNWS7pLpEC2cofGoWZ79b0g== X-Received: by 2002:a25:dc4d:: with SMTP id y74mr16947684ybe.422.1635930799289; Wed, 03 Nov 2021 02:13:19 -0700 (PDT) MIME-Version: 1.0 References: <20211025205631.21151-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20211025205631.21151-8-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Wed, 3 Nov 2021 09:12:53 +0000 Message-ID: Subject: Re: [PATCH v2 7/7] memory: renesas-rpc-if: Add support for RZ/G2L To: Wolfram Sang , "Lad, Prabhakar" , Lad Prabhakar , Krzysztof Kozlowski , Rob Herring , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Geert Uytterhoeven , Sergei Shtylyov , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-mtd@lists.infradead.org, linux-spi , Linux-Renesas , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, On Wed, Nov 3, 2021 at 8:41 AM Wolfram Sang wrote: > > Hi Prabhakar, > > > Oops I missed that, does the below look good? > > Yes, only a minor nit. > > > > > #define RPCIF_PHYADD_ADD_MD 0x00 > > #define RPCIF_PHYADD_ADD_RDLSEL 0x22 > > #define RPCIF_PHYADD_ADD_FDLSEL 0x24 > > #define RPCIF_PHYADD_ADD_RDLMON 0x26 > > #define RPCIF_PHYADD_ADD_FDLMON 0x28 > > > > #define RPCIF_PHYADD_ACCEN BIT(31) > > #define RPCIF_PHYADD_RW BIT(30) > > Maybe we could leave this because we don't use it? You decide. > Agreed will drop RPCIF_PHYADD_RW macro. > > > + regmap_write(rpc->regmap, RPCIF_PHYWR, 0x00000030); > > > + regmap_write(rpc->regmap, RPCIF_PHYADD, 0x80000032); > > > > > For the above do you have any suggestions? As I couldn't find any > > details about it or shall I just go with magic numbers for now? > > Ack. I couldn't find docs about these as well. I suggest to add a > comment where this value came from. We can ask the BSP and/or HW team > for details and update this pair incrementally. > Thanks, I'll add a comment stating the values have come from the RZ/G2L HW manual. Cheers, Prabhakar > > thanks, once we agree upon above I shall re-spin v3. > > Cool, looking forward to it! > > Happy hacking, > > Wolfram >