Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp73775imw; Tue, 12 Jul 2022 14:55:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uvAZ9pjTfuw4iNbtS3GEdgNz4+IwuY0hB002U0XUaZWi1poOA8m6mlS4ld6MBlvUgRtW90 X-Received: by 2002:a17:907:a067:b0:72b:8f93:dff with SMTP id ia7-20020a170907a06700b0072b8f930dffmr235335ejc.238.1657662943250; Tue, 12 Jul 2022 14:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657662943; cv=none; d=google.com; s=arc-20160816; b=jPjo1i/LteAK0J8UBEcivOFX1LOFWQwyxEiuswbuIK/5Oa5z0B7qPY3GT1jQgUyiWv Wksu37Rfc+OX4E4ARIygN0JBmx4a5MQYozeiHh7NAJImH33fP9bocOZVIngGu4jv0N+G BxuQY2nRdC41mITK+HT34vnEkuWC0bI/POp/thVd8ru0oorFb1ItBPIKXaJkJe62rIa6 ZI2EKmmlNzLOSuyIP5lJmH6ERYgILcJXcmQlM+rB1jqOviRMINpimP9PaxaBXd5qzPdL qpzn1oK+R+rOsqdOpiYoBKJJ/X8prcLJtkW5KbVDvMjR8ObwB2sdbC3jL2knJTAGhUgP wR/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6TLPAajBQT6bOULK9fb/tFfHBaPsFyW7O0ai+7s0acY=; b=KgjQJti12p/kAzey2tw/6KKojPUZfjQADbIcp7oqEvMgTu6kDXIeqtT+W91L/kyrZd bTZ0NNH4ePRJYY/Xj8/UOva6uasTZubUhHoA0qXPuqMGGoapbzhfOuWZ5un1wMtUDcDg OiGCBL24ofhHmv/aHPPq07FhREaYZW2v/mdCYKQjXcEk73H6VKeK5c7ODZcO8RvIwQCV 9/4bkQ2j+vEWTG3zrsA1FLHKxQSV2BpVyVCWhPV3DtBWB+9L8MXJ01cX9N0mDyFUeq5I ZPOi4uEXaAlU882Sn0ANEN1c+SMSL1WMnESlaGKtelYDtOJG+xXeRFkCVY7/NgStyyyz LGkg== ARC-Authentication-Results: i=1; mx.google.com; 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 l15-20020aa7c30f000000b0043a7983aeffsi14561849edq.61.2022.07.12.14.54.54; Tue, 12 Jul 2022 14:55:43 -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; 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 S232454AbiGLV21 (ORCPT + 99 others); Tue, 12 Jul 2022 17:28:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbiGLV20 (ORCPT ); Tue, 12 Jul 2022 17:28:26 -0400 Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9FFFD0E2F; Tue, 12 Jul 2022 14:28:25 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id e5so9176479iof.2; Tue, 12 Jul 2022 14:28:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6TLPAajBQT6bOULK9fb/tFfHBaPsFyW7O0ai+7s0acY=; b=2ffeUMEThBHAn/wnhhVjbdDDoe1vU0yNen4aKvHUWZiOkbFDt948KryvCjNw6KAjE2 0HAo7AsvjszfCZK41TVRpJwtZMKA2zdJ2gFuyvAStMnN1kIviTipQobQC0bipv+oZjcb n7fd3q3j3UEN34L7KR23wFctaK32ho732V0/5fEcy474ukkZJ3RkfYw0y3kUV/c0HKol OJjj3tKXPnHpJ14ruoOevTFcG9spVuAukryzc4lu2ocBObdPphxAdRHtMOinOi6skUH6 JpkDFuUwsMs2CzahwerwMiriA+oCY8GQ1LjexpPqNc+3edHRq6jU0RQG/oRTqd1SAhPg NEHg== X-Gm-Message-State: AJIora+2sH2oK9O6HPCvHSzujiz1f9dTkHJ4UpjX3741uIXuySiiBu1f LFWHymBdtSuWVvN/0gx31g== X-Received: by 2002:a02:84a7:0:b0:33f:4292:cf with SMTP id f36-20020a0284a7000000b0033f429200cfmr46679jai.319.1657661305105; Tue, 12 Jul 2022 14:28:25 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id j12-20020a056e02014c00b002dc1b615588sm4186648ilr.36.2022.07.12.14.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 14:28:24 -0700 (PDT) Received: (nullmailer pid 2392608 invoked by uid 1000); Tue, 12 Jul 2022 21:28:22 -0000 Date: Tue, 12 Jul 2022 15:28:22 -0600 From: Rob Herring To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Krzysztof Kozlowski , Marek =?iso-8859-1?Q?Beh=FAn?= , Pavel Machek , 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: <20220712212822.GQ1823936-robh@kernel.org> 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> <20220708160528.ysy4lzxfpwobfiwr@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220708160528.ysy4lzxfpwobfiwr@pali> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Jul 08, 2022 at 06:05:28PM +0200, Pali Roh?r wrote: > 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. I guess you could (and we do) have 'cpld' and 'fpga' as devices where the OS can reprogram them and such. But if the implementation is fixed with no implementation specific controls, I don't think naming how it's implemented adds too much. If there's nothing else to identify the device though, having 'cpld' in there does have some value I guess. Same could be argued for soc too perhaps, but that's in the list largely to avoid a bunch of s/soc/bus/ on dts files. > simple-bus here is just name invented by device tree and without which > existing kernel drivers refuse to work. Everything is just names invented by DT. simple-bus means 'a bus containing MMIO devices without any bus configuration'. You want to add a clock to it?, then no longer a simple-bus. Based on that definition, the kernel can enumerate child devices without platform specific help. Just use 'cpld-bus' and lets move on with our lives. Rob