Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp698938imw; Fri, 8 Jul 2022 10:04:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tySlxI1VNRJ0owo7eYviRE5B9PXwg4zZrav2gj4i4B8zRvg/Ivp75jFM1KyQ0VsuKxhgZ5 X-Received: by 2002:a17:90b:3887:b0:1ec:e6a1:b965 with SMTP id mu7-20020a17090b388700b001ece6a1b965mr895171pjb.162.1657299893838; Fri, 08 Jul 2022 10:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657299893; cv=none; d=google.com; s=arc-20160816; b=ZY0aESiS5JUKS6zStNRXRmmQuMZig3PPHC96nmzAcMCKC4CESwZT0eIVH+3yOqPF/o qV93eWfG7Wd5SypmgAj44lYcmumqRUnE1cgwA3IxMvt1crml/iv+fRqJ+NUDo/7z6uuO CvRv2gyB95LLtbL3Y8adnQwyhpMGwSJjd9Bu5xnmuSO2oAMcZ2b+SIRLRR/BoUzOeJ02 VhuA/3tbGpvJy2FoHCieoG7uuw1uBAoY8/ck1My3lIi1RngPQOPqYY1aux6E//NweNiI Lh8QSRYHHfPT/TplpcKOk3spFvzAakzAxtZyHfcCydrgC1U06NTA7NnNkIKX7sR4HihA P9SA== 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=Td9D1Rfm5il4c6uvGFPQ4c+NEA5E5UJLPGG31MSUQGw=; b=PfG2wo9PkOg4Z39tDbXGNMESJS5mRcKqm+FiANJM38aDEAmotNS2PqZ0FLoa1Ko0p2 eqiLjVUrN7IxjadwYIedSUN9h8yUw4Bc0ZYDVGdNQ6S6JG57FHItiFAY0uVyAHOFCXzK NJtjEoxhGdUB7sNpNwhDTSWAQsPER1nE3KGNlnpx0HB3WELF+KN5Oa4JGR8Sy0WbQzs4 8qd9F6h98LcsAhMj2d1fz9O8+GY1wgikI674QwV78a8i4kO+0+3SM3mpL/6hLBEJDtty IBGRLlIsRiEmV8/XYcAZgvqhleapk7vycWz1CdIfWFJZrMOQKQGjKuN8ghL6OGoJ/KT4 V6Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cDM+Z62u; 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 n5-20020a635c45000000b00412a9231955si10015179pgm.233.2022.07.08.10.04.29; Fri, 08 Jul 2022 10:04:53 -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=cDM+Z62u; 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 S238250AbiGHQFl (ORCPT + 99 others); Fri, 8 Jul 2022 12:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238368AbiGHQFe (ORCPT ); Fri, 8 Jul 2022 12:05:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2833376E92; Fri, 8 Jul 2022 09:05:33 -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 dfw.source.kernel.org (Postfix) with ESMTPS id BCE5E61E0C; Fri, 8 Jul 2022 16:05:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF4C1C341C0; Fri, 8 Jul 2022 16:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657296332; bh=JefiE6hn4GGAi5d/hMAhgEIxdj1+a6Tc7d5lQkIB1vk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cDM+Z62uOBHFET6KSRrG+a7pXjeS0FU+vp9Sd9y/be8mn5cZNNIDk6TsKQifMxRyM gO99IUkzAJWGYKnCBeYzLP4pwRk+iO3p7aBDJhHV+wYsV0/+ZRU81g1wtvEMo1LYuO ZWzrGzG/B8ze1OEhnuAJw8BroTajJHyXuCSJe/YUsmuQnNysXiV+/UEyHPrvL5RtJx 9MWj4YcI5zS2+8cE3fVJwv22n1ApOYkKFdtyKvlHrAzbxuxNT6Bso+PwsuDbxcDPF9 RCmw5fEjTnuQRUdWdaA7cwFpwbC+TNfL55ykF1+wiN+VVIvwOMWdUHDY1BVGOXXyDH dVnnmyak4BujQ== Received: by pali.im (Postfix) id C3DB57D1; Fri, 8 Jul 2022 18:05:28 +0200 (CEST) Date: Fri, 8 Jul 2022 18:05:28 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Krzysztof Kozlowski Cc: Marek =?utf-8?B?QmVow7pu?= , Pavel Machek , Rob Herring , Krzysztof Kozlowski , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] [RFT] dt-bindings: leds: Add cznic,turris1x-leds.yaml binding Message-ID: <20220708160528.ysy4lzxfpwobfiwr@pali> References: <20220705000448.14337-1-pali@kernel.org> <20220705155929.25565-1-pali@kernel.org> <20220706131507.353f0bed@thinkpad> <20220706111912.hz2mx4dc35lgq6l5@pali> <20220706172732.6228d180@thinkpad> <25b43586-eeb3-4b7b-7362-2d599aa89cf0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <25b43586-eeb3-4b7b-7362-2d599aa89cf0@linaro.org> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.8 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,T_SCC_BODY_TEXT_LINE 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 On Wednesday 06 July 2022 17:36:43 Krzysztof Kozlowski wrote: > On 06/07/2022 17:27, Marek Behún wrote: > > On Wed, 6 Jul 2022 13:19:12 +0200 > > Pali Rohár wrote: > > > >> On Wednesday 06 July 2022 13:15:07 Marek Behún wrote: > >>> On Tue, 5 Jul 2022 17:59:28 +0200 > >>> Pali Rohár wrote: > >>> > >>>> +examples: > >>>> + - | > >>>> + #include > >>>> + > >>>> + cpld@3,0 { > >>> > >>> The generic node name should be just "bus". That it is a CPLD > >>> implementation should come from compatible string. > >> > >> Sorry, I do not understand why "bus". Why other memory chips are named > >> e.g. "nand" or "nor" and not "bus" too? > > > > As far as I understand this is because that is the preferred name for > > busses and this is a bus, since there is also the simple-bus compatible. > > > >> By this logic should not be _every_ node called just "bus"? Hm... and > >> are names needed at all then? > > > > :-) > > > > The schema > > https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/simple-bus.yaml > > allows for different names (soc|axi|ahb|*-bus) to avoid warnings on > > existing old dts files. > > > > The preferred way is to not have the implementation in nodename, > > similar to how we use 'switch' instead of 'mv88e6xxx', or > > 'ethernet-phy' instead of 'mv88e151x', or 'led-controller', ... > > Thanks Marek for detailed explanation. > The cases above rather trigger my comments and this one here, after > Pali's explanation, do not fit them. pld is a generic class of a device, > so it is okay here. cpld probably as well (although one could argue that > it is a subset of pld, so the generic name is pld, but then one would > say fpga also should be called pld). For me it does not have to be bus, > just don't want mv88e6xxx or any other vendor/model names. Therefore > cpld is fine. Exactly. cpld, fpga, nor, nand, soc... all of them are not real buses. simple-bus here is just name invented by device tree and without which existing kernel drivers refuse to work. > > > > I wasn't there when people started requesting for this to be that way, > > but I guess it makes some sense to make it more readable and less > > redundant (the generic name in nodename and the implementation in > > compatible string...). > > > > > Best regards, > Krzysztof