Received: by 10.192.165.148 with SMTP id m20csp4493770imm; Tue, 8 May 2018 09:17:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpAqWkaoejKlcMBKkqXITGTGZWzNelyLn85SssdvMCYg+lRLgfU16/BAyXX9ZkQ/5MpXve3 X-Received: by 2002:a65:58c2:: with SMTP id e2-v6mr22381733pgu.204.1525796245545; Tue, 08 May 2018 09:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525796245; cv=none; d=google.com; s=arc-20160816; b=Derc01jXymRdr7vgWzpDwbboCN8KsgaUilPubanamAAXsBy9FfJETxdt3hFL8mk8Y+ oE55zxMHIQGWyHQl/8HAnqJtD9DkIitBoUYvyo2yXZT2AVfDVj6Cq9nq0WcEUgfLPacr MQ5ZZ9bJx4I3fxN15zJi0FPAfsBmClZQJtKLHWHXDhO6UPPnSJEM28wOpE/RnMI2X1Wi 18BM9WNgPwmc1/RXNkFjjkPB/PmRAWnyIgs8SCRIvD4QH76jMbBDbxTs/MsEnzrCl1UE nR1UqTlKYXfPIAU8lMTQVLOR0CgCC4xjMTZ8d/MYjO1Ena7rPY4902AudZkUPjI9gHiM yw9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=jivlrqTDNIq2u9UGzgN1xoIOG2mQ5foS8/w2sKNPJzA=; b=CJYKjvxIK8T64TnrYjrKBg75mXWKhTLnLj5ll+hq9qbbpKTCDrPb1ronLEnyZPHMyR iYv1vAu7HmNTZX4osYTut42t5Xb5592S5F/vARrjL4nIEiKnKH3NwWo6Q55y8T1N9t4y CKsjizU2IDNQHiq84j6EjJMz4kuna5jxCk6GrkRvoeAhNayZvWlc/Se8tLd4Ht3OSTQv 8arYHQyaRDnRCscl5rfGf3JpZo/JTxO/9lvBLm89FYwGacVccTz//mFRuw8tn6rej7bn C98AvJqHJVsTGHLxJXg8TxOtpDCHk5RZMttfJlI6+4TuF31WmeGp0KvxoTOsM5xp9uh5 gkEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si19288087pgv.688.2018.05.08.09.17.10; Tue, 08 May 2018 09:17:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932316AbeEHQQk (ORCPT + 99 others); Tue, 8 May 2018 12:16:40 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:44191 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755051AbeEHQQi (ORCPT ); Tue, 8 May 2018 12:16:38 -0400 Received: by mail-ot0-f195.google.com with SMTP id g7-v6so36723046otj.11; Tue, 08 May 2018 09:16:38 -0700 (PDT) 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:in-reply-to:user-agent; bh=jivlrqTDNIq2u9UGzgN1xoIOG2mQ5foS8/w2sKNPJzA=; b=D9hVJCsWP9kEE44ipN6JWKAzArxJ4d5I8qZ275zXhQpJXrQrvjYh3s7a1suh8LQuC6 BNfSZ6wbfSGLxVBgiS+RKmZXcBuRWgGp3BZXmVbcPqwj6BXdGQ/aJ2xV6iNzxlYLan2A fLUKn3k/JGK5M8z/DeWiYFfb5rhjJH7W2/CZsIU7e/cSh9bwNKuCp2oKOgfOQPCiLbLr C1eGIE/+W+lFUQiB4XjakMYJ52fl/1xQuUIJgg75O00CgGRbeBOrDhrV31cs65jMh2qG rTzmSzDMBOMFiqfXBY+FUTHURYinaERg1Ed/C2s3uen5W0AkY/joJ2kca7XzeC/AKK2M Nv0A== X-Gm-Message-State: ALQs6tAPja97J7qszXT1Oo5jf7dVg+yXPQGiqZTWLG1pEPofpZt+x5f4 vICMN32szVpkQj+9Xa6CGw== X-Received: by 2002:a9d:2b72:: with SMTP id f47-v6mr28422008otd.69.1525796197691; Tue, 08 May 2018 09:16:37 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id c2-v6sm3251750otb.20.2018.05.08.09.16.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 09:16:37 -0700 (PDT) Date: Tue, 8 May 2018 11:16:36 -0500 From: Rob Herring To: Andrea Greco Cc: m.grzeschik@pengutronix.de, Andrea Greco , Mark Rutland , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020 Message-ID: <20180508161636.GA23960@rob-hp-laptop> References: <20180505213448.8180-1-andrea.greco.gapmilano@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180505213448.8180-1-andrea.greco.gapmilano@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 05, 2018 at 11:34:45PM +0200, Andrea Greco wrote: > From: Andrea Greco > > Add support for com20022I/com20020, memory mapped chip version. > Support bus: Intel 80xx and Motorola 68xx. > Bus size: Only 8 bit bus size is supported. > Added related device tree bindings > > Signed-off-by: Andrea Greco > --- > .../devicetree/bindings/net/smsc-com20020.txt | 23 +++ Please split bindings to separate patch. > drivers/net/arcnet/Kconfig | 12 +- > drivers/net/arcnet/Makefile | 1 + > drivers/net/arcnet/arcdevice.h | 27 ++- > drivers/net/arcnet/com20020-membus.c | 191 +++++++++++++++++++++ > drivers/net/arcnet/com20020.c | 9 +- > 6 files changed, 253 insertions(+), 10 deletions(-) > create mode 100644 Documentation/devicetree/bindings/net/smsc-com20020.txt > create mode 100644 drivers/net/arcnet/com20020-membus.c > > diff --git a/Documentation/devicetree/bindings/net/smsc-com20020.txt b/Documentation/devicetree/bindings/net/smsc-com20020.txt > new file mode 100644 > index 000000000000..39c5b19c55af > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/smsc-com20020.txt > @@ -0,0 +1,23 @@ > +SMSC com20020, com20022I What does this device do? > + > +timeout: Arcnet timeout, checkout datashet > +clockp: Clock Prescaler, checkout datashet s/datashet/datasheet/ > +clockm: Clock multiplier, checkout datasheet Would these 3 properties be common for arcnet devices? If not, then they should have a vendor prefix. > + > +phy-reset-gpios: Chip reset ppin Use 'reset-gpios' as that is standard. > +phy-irq-gpios: Chip irq pin Use 'interrupts'. Interrupt capable gpio controllers are also interrupt controllers. > + > +com20020_A@0 { Node names should be generic based on the class of device. I don't think we have one defined, but how about 'arcnet'. Unit addresses must have a corresponding reg property. How is this device accessed? > + compatible = "smsc,com20020"; Not documented. > + > + timeout = <0x3>; > + backplane = <0x0>; > + > + clockp = <0x0>; > + clockm = <0x3>; > + > + phy-reset-gpios = <&gpio3 21 GPIO_ACTIVE_LOW>; > + phy-irq-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; > + > + status = "okay"; Don't should status in examples. > +};