Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp798765imm; Fri, 11 May 2018 06:37:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoIoPCqYk6/+ropBXuB+IEdCAIu9B/tkYwDUVbeBesuu5gitN7O52ISUfTb1xMfiJlSRnA+ X-Received: by 2002:a62:3dc9:: with SMTP id x70-v6mr5488009pfj.85.1526045833067; Fri, 11 May 2018 06:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526045833; cv=none; d=google.com; s=arc-20160816; b=is0IF6U8dXNRr09QHu5tSXTD5sdEHHY3S87tfMTr1brkDKuPfexLI1HjctcRiCfKmc pIRg9sfGqgGl94EquPE6f4rvXEax/YBvokWHFy6Sak4pgLPkWIWIAxpdNodc995bxped wAr+N9f7h8JeyOh9VkTUxSaA5OpflQpoBZ/mjdWYqsOAPFPUnwPQ5kmovZf7nWCp/920 nrpediIAIIc1/ifZYD92OFTDBfUvdIp0x3KAuCUlxlEVXEN8lshk4pqImt4gKD9zxycq HcpCWA/sjkzlqRQZ9wAs7SntN8YeYXH6xczyaW+68gIQQjlXcDaz9ZltqJI42FxuUTS/ x8tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dDf+3hm1CYxc4RkEuGGc1ABEJA7+wuiobmi16OeRGLY=; b=K2lH5IXXI8vgbevP4PMsCRySa+KmrTnJQvrCubWgyX8o/RCWPht8jUzBFm+kbR/Dmm XOR5AbcDNoMx7j/u21jUrwnYa7PXRMX/ZeDRhzjZKDLULl0VrDuu2HrpJb8Pn/PEDBR7 HTW/t8uql1u4KuZyQxRo3wfh2rVOJLvtO27betT2XGqscYasV7VojkK/3/8x0XbmWcgV l+5SOkRM8O/doSY3lBG9kifyx1wINWx7MyLMSsxj/fi2vZy2HxoyYSXKMbLJCjn4Sypn 5KavS/tdX+Zy5e/Tid2jk/WXGN78kZIu36EIGlULNPevxvbcI7J221/X1gBQpK7m3yLD 5TGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QAtv5WR7; 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=pass (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 i1-v6si2582586pgq.327.2018.05.11.06.36.28; Fri, 11 May 2018 06:37:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=QAtv5WR7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753174AbeEKNfj (ORCPT + 99 others); Fri, 11 May 2018 09:35:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:36288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983AbeEKNfh (ORCPT ); Fri, 11 May 2018 09:35:37 -0400 Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 41B7321784; Fri, 11 May 2018 13:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526045737; bh=qTrMEm4+gop0mX3q5cX9Bl3IwGpQ5QoIxPqm6v2teNY=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=QAtv5WR7WvqxJw8pQKs4Q6EiF3C5d3oGXReigkL+YFDJ4YC+mxU8qI/DpHRJNaF0G rvGqRYgez8MPRV6bmfmIorgzdgu/UAO9H75D8i3Jd5ikraTm66R1Ne00f+Q2EzdznB Y95A9cJc8AIyoegMiHtvga7LkpEm+gEIRZ4Q7CkU= Received: by mail-qt0-f177.google.com with SMTP id m16-v6so7016918qtg.13; Fri, 11 May 2018 06:35:37 -0700 (PDT) X-Gm-Message-State: ALKqPwcLhaYCq6kr3jnyaZ9/c6rX2iB5fJsHHeVUuX3XVJErarAu4wi9 IVYtRUIzKD0/0Le/FkoDWmEd2E8vX0hxqol+1A== X-Received: by 2002:ac8:396f:: with SMTP id t44-v6mr5233985qtb.22.1526045736412; Fri, 11 May 2018 06:35:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.155.2 with HTTP; Fri, 11 May 2018 06:35:15 -0700 (PDT) In-Reply-To: References: <20180505213448.8180-1-andrea.greco.gapmilano@gmail.com> <20180508161636.GA23960@rob-hp-laptop> From: Rob Herring Date: Fri, 11 May 2018 08:35:15 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020 To: Andrea Greco Cc: Michael Grzeschik , Andrea Greco , Mark Rutland , netdev , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 11, 2018 at 5:50 AM, Andrea Greco wrote: > On 05/08/2018 06:16 PM, Rob Herring wrote: >> 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. > > Ok >> >>> 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? >> > > Changed in: > SMSC com20020 Arcnet network controller > >>> + >>> +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. >> > > Timeout is arcnet propelty: > Other is smsc params, then become: > - timeout: Arcnet timeout Needs unit suffix as defined in property-units.txt. > - smsc-clockp: Clock Prescaler > - smsc-clockm: Clock multiplier > - smsc-backplane: Controller use backplane mode inside of transceiver Vendor properties are ,. > > I forget backplane propelty, but is required > >>> + >>> +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. >> > > Ok, change to standard > >>> + >>> +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? >> > > Then: arcnet@28000000 > >>> + compatible = "smsc,com20020"; >> >> Not documented. >> > I miss something? Where add this doc? > Is not this file? Yes, this file up above with all the other properties. The example is just an example, not a binding definition. Rob