Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1506431ybt; Thu, 25 Jun 2020 07:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjjWSLf7VqDAyN2kEdoz1d2bSqyA4TfSxzsFev0gxzwKQ5Li3+bcq+VPVWzffwpMSZmVRq X-Received: by 2002:a17:906:87c8:: with SMTP id zb8mr13827056ejb.35.1593096033137; Thu, 25 Jun 2020 07:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593096033; cv=none; d=google.com; s=arc-20160816; b=FwNrDx6vhDgOW0F/LIo5XZc/5z6eRDiUhluiZuIosDEoPZ5JJQ/Rp2vpnixXz8ocNW ramNgZHYdsiKvepRsHlOdCWlC3RbT04Wg4Uqs4F58rSYVL2J4HpUasqO0khDf2pNtrqS mFEkCc5NiUaec62zcnfnMQaikBKsadFhNY+bhR8Tn91Tl7/P4dJ/FWN/FDiBx8Jf13BN u1S8BFDZi+ifRHOnlhxzhBQS/WQcb+5Iolgt3/4eg5vQEYlzgLTiOUGLD3z08qJttRQI PaBtLoJts+4Xwo4euH9/2ZmX72zPeCCfayotkihisrANXqb9hAJERrToxY5T1ji7GvBL CqXw== 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 :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=ijPZb1cfulvfr7nl4mn4pmwbl3GKFLftlqTTQQ9OMEc=; b=BrFGjkddAHMgdeUjc0AllHtrYPCpRqobX47jx8UU/CAc2aB02EuCWGMNb8Q6vglk9n SyKct9UMFQNYNoTBqT628ifOeM3G5SDXi8yX12pjYhveGCE+P5epDp8O4LtKEo41lk8K aeEw8w+jAn2im0Xskj5O0HPA7dbY0vww8fjc7jkPS4y96yPIeK5PBrJEGSmYv7dp1y1D 0wwvQMtYiHRZtbcWc0hR+Mr2MBiqfSq2wjb8fULtg4FrA7KI5xlK4+S1GgZf/Q95R5mE DSe+nJUmsGxgjwGiSDA38pVw5P8FVs681CUu2P2DaX/ZsZLViODpdEJd7XaXkKPiNzMw nRUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=OznUSqNE; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g26si711752edq.238.2020.06.25.07.40.09; Thu, 25 Jun 2020 07:40: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=@nifty.com header.s=dec2015msa header.b=OznUSqNE; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405425AbgFYOiu (ORCPT + 99 others); Thu, 25 Jun 2020 10:38:50 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:45184 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405411AbgFYOiu (ORCPT ); Thu, 25 Jun 2020 10:38:50 -0400 Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 05PEcQAX008959; Thu, 25 Jun 2020 23:38:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 05PEcQAX008959 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1593095907; bh=ijPZb1cfulvfr7nl4mn4pmwbl3GKFLftlqTTQQ9OMEc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OznUSqNEqRwb9eSqLiT0Q6D+ovJNlmwc02GFYtezeKuLjq3Zl4BfDOXROeFx9tON1 iqmr3lKpeEos+rVdZDVXay4TD4UVgiNzFvAUTs1BGs8Rz3IYk46DXgzcqynWLhwOSZ OrsNx0HahNWTZTy9eSXlZbad+a/RXhmssSP9eHOlh0+R8A2NVdFwqhXIgjDcquRXd6 09DKR5pTWf+f3pDkm4PIxV4IlNruY0BhnF3Q+W+R6U7C1dNB3jC7ChnBoV+XlJlxwF JJYeXuVH82yC1cfbXnxlJqEOdmSrh6SLm8j+G3jEn0fZl6qc1VO2F2hstm/1U5M4P+ TIP02jpz6v7ug== X-Nifty-SrcIP: [209.85.217.54] Received: by mail-vs1-f54.google.com with SMTP id m25so3668741vsp.8; Thu, 25 Jun 2020 07:38:27 -0700 (PDT) X-Gm-Message-State: AOAM5307P+XvSxbN/q+ZzGCSLLPCo+tIIvB1VgWhqsvu/GVxq5azQBsX TnPnx+lPRG7zRasNs/Lw+ztxxEqah60AVWaWlHM= X-Received: by 2002:a67:2d42:: with SMTP id t63mr26451715vst.181.1593095906216; Thu, 25 Jun 2020 07:38:26 -0700 (PDT) MIME-Version: 1.0 References: <20200623114614.792648-1-yamada.masahiro@socionext.com> <20200623114614.792648-4-yamada.masahiro@socionext.com> <20200623122413.GA954398@dell> <20200624181605.GJ954398@dell> In-Reply-To: <20200624181605.GJ954398@dell> From: Masahiro Yamada Date: Thu, 25 Jun 2020 23:37:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] ARM: dts: uniphier: change support card to simple-mfd from simple-bus To: Lee Jones Cc: linux-arm-kernel , Rob Herring , DTML , Linux Kernel Mailing List 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 Thu, Jun 25, 2020 at 3:16 AM Lee Jones wrote: > > On Thu, 25 Jun 2020, Masahiro Yamada wrote: > > > On Tue, Jun 23, 2020 at 9:24 PM Lee Jones wrote: > > > > > > On Tue, 23 Jun 2020, Masahiro Yamada wrote: > > > > > > > 'make ARCH=arm dtbs_check' emits the following warning: > > > > > > > > support-card@1,1f00000: $nodename:0: 'support-card@1,1f00000' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' > > > > > > > > Maybe, simple-mfd could be a better fit for this device. > > > > > > The two should be equivalent. > > > > Yes, I know. > > That's why I can change "simple-bus" to "simple-mfd" > > with no risk. > > > > The difference is schema-check. > > > > The node name for "simple-bus" is checked by 'make dtbs_check'. > > > > See this code: > > https://github.com/robherring/dt-schema/blob/v2020.05/schemas/simple-bus.yaml#L17 > > > > Even if I rename the node, it does not accept the > > unit name '1,1f00000' > > > > > What do you mean by "maybe"? Does this squash the warning? > > > > "maybe" means I am not quite sure > > which compatible is a better fit > > to describe this device. > > > > As mentioned above, simple-bus and simple-mfd > > are interchangeable from a driver point of view. > > > > This add-on board is integrated with various peripherals > > such as 16550a serial, smsc9115 ether etc. > > The address-decode is implemented in a CPLD device. > > It has chip selects and local addresses, which are mapped to > > the parent. > > > > It can be either simple-bus or simple-mfd, I think. > > > > > > dt-schema checks the node name of simple-bus. > > Currently, there is no check for simple-mfd. > > > > So, I think this patch is an easy solution > > to fix the warning. > > Yes, looking at the documentation it seems as though 'simple-mfd' > would be a better fit. Is the device a single IP with various > different functions? Not an IP. This is a small board that consists of a CPLD + ethernet controller + serial controller + LED, etc. > > > Rob is in Cc. Please add comments if any. > > > > > Isn't the issue caused by the ','? > > > > Right. > > > > The node name of simple-bus > > must meet the regular expression: > > "^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$" > > > > > > Even if I rename the node > > "support-card@1,1f00000" > > to "bus@1,1f00000", the warning is still > > displayed due to ',' > > > > "1,1f00000" means > > the address 0x01f00000 of chip select 1. > > Is this an officially accepted format? I am not sure if it is official. Rob said the data fields should be separated by commas. https://www.spinics.net/lists/devicetree/msg201565.html -- Best Regards Masahiro Yamada