Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3580816lfo; Mon, 23 May 2022 08:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygzynIv2nk2/7GCPusWOICA9UQPrguaWw2xMb2AH74Mv13mtvWWC5uSmfERltURIf8DbkH X-Received: by 2002:a17:903:290:b0:15c:1c87:e66c with SMTP id j16-20020a170903029000b0015c1c87e66cmr23676796plr.61.1653319521082; Mon, 23 May 2022 08:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653319521; cv=none; d=google.com; s=arc-20160816; b=kGGcjgdbWp09YtGChBsEV6dOlyIkh2N/5Znwnm2upevhm125jArilBswlphLpvq4Yj vuuWUYrt9aPxBzsr3F+5ZaZdX0sCtKvnz4iEU29pNVrxuJ6h6mieEHbfWcEtp7QaM7bo Tlral/iZIIoSh4wgCnLDHqv2BqplwVp2VsNdBS22wPf+CheLIfzina8ykVWOXyQo8UW5 egXcskmByAXBWmoY9+JQhdUONZeAsdQUD6sDbyquF6tUHEJ2yTASwtJltZkkgiz0HRnU hJOTOxlrlgEHkB8jADqAu3AvFWHWned6r9HziRblT+Vijx9bLZnT6/0Zbxb9ERhqfuqX 9Qew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=2w+Ay74cy7OoOg37g3PaLjsP1sHLBt98ivncMEHUTZE=; b=cxRjWyhvkWhXoxyljcApwxp/X6QvfAwHehe3SyZRSd5s1cHIlnYJB1bWoUbYzJhNQL 9VYJ2L7tsgArLEf1AJaVSGC+ZRIK3/JLsSbNz6UtCYsYSSpgTAzvIgZZgAgleGP0DB7U aAhf2gQddWW97WMYrp7vQmkPCsqR5oLYqfVDMz/mjZ1+5kTtI0FyeoU2D+RKHsVqP6HD x4U8fCPKRg8a1+dUTo2T8mHZNdJZS1kT2LGKWWk3KORUV6bjnVDw+LJejuwCnlGvA9sA 7G9yXD5ez3Iym7MsYS1pD6IpevJ7hKQwOqRc5xbHajKMOqaSju4MjcR1TTj/Hun6fPmI hRgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=orFcSTvp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p7-20020a634f47000000b003f2543a2ae3si10236696pgl.302.2022.05.23.08.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 08:25:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=orFcSTvp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2335B5DD03; Mon, 23 May 2022 08:25:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237844AbiEWPZF (ORCPT + 99 others); Mon, 23 May 2022 11:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237797AbiEWPZD (ORCPT ); Mon, 23 May 2022 11:25:03 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C85D85DBE4 for ; Mon, 23 May 2022 08:25:00 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id r3so10760041ljd.7 for ; Mon, 23 May 2022 08:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=2w+Ay74cy7OoOg37g3PaLjsP1sHLBt98ivncMEHUTZE=; b=orFcSTvpnjF2Ul0w/eFhjws6UEFRdIdVSVYukzC2tF+nVYSnHFaaxmflPfpw8qz8qF ik6PDz0cc8Oj7SbKnxObem78aoMCd+xjnQdgKZpY6s9du2FQPRFqXEjMx84zUfHaUSK5 +5aDtV1uK8iokGkuUohuvW0L7k1LR2OiZl2HdjndCXqss8DzPENH45G9Pn+m8EbPTZWj s+yQdMDgWjXD29XD7VpFK84XPEWt40wdVzAc/6a6ogfXkT3SjLENjQgnwyFLEMwVUB+D l6dZ/senYVrTWPdoKxCU+dfRc+i8YOVwhR0C5kGIt9sZB5w8tkbzjEogHF6UqQKtnniS cVUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=2w+Ay74cy7OoOg37g3PaLjsP1sHLBt98ivncMEHUTZE=; b=YcwSIC00R2xeMQwBroyvFUBe6z6uZYhx2WnLUZ/tkdf1X8qYncTcDX/6i8hCBzQDly i+ergkp9QzyqTZ+2VjafpJ8hhWvqNcCD1CxM+BmGnQ9ttfv5Vujkockt/vXjX43BSiO8 rarOzrH1geJ63yTiWwVEpu4La9q3egVAIJNpETgY/lz4+rZVQG5LdiQzVmLeRzDDCPKF hswMShYArFAvOgc3cfU8r+qjsCmlmwbAPM01dca61aJwgRJRRNZUEwclLvfJD9G/FLox SlHd39mRelsFWtO1NoQgIjFRcenGD8BQcv/veWVSZ4vBUw/DX1x9C7djDEpdeZ9Kghw7 M0Ig== X-Gm-Message-State: AOAM532E/DDgguZ9JbsOE1OnDH2mQpkq+FA6+ZtoMAWlSLU19KvGT+1X pADjgKrUJpwiGmdg7phWkZp0EQ== X-Received: by 2002:a2e:9c43:0:b0:250:a467:414 with SMTP id t3-20020a2e9c43000000b00250a4670414mr13242328ljj.358.1653319498852; Mon, 23 May 2022 08:24:58 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id v4-20020a056512096400b0047255d2119bsm2026580lft.202.2022.05.23.08.24.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 08:24:58 -0700 (PDT) Message-ID: <4a69902f-a545-23a1-1430-e5ece16997e9@linaro.org> Date: Mon, 23 May 2022 17:24:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v1 11/19] dt-bindings: reset: npcm: Add support for NPCM8XX Content-Language: en-US From: Krzysztof Kozlowski To: Geert Uytterhoeven Cc: Tomer Maimon , Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Philipp Zabel , Greg KH , Daniel Lezcano , Thomas Gleixner , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Arnd Bergmann , Olof Johansson , Jiri Slaby , Shawn Guo , =?UTF-8?Q?Bj=c3=b6rn_Andersson?= , Marcel Ziswiler , Vinod Koul , Biju Das , Nobuhiro Iwamatsu , Robert Hancock , =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= , Lubomir Rintel , arm-soc , devicetree , Linux Kernel Mailing List , linux-clk , "open list:SERIAL DRIVERS" , Linux Watchdog Mailing List , Linux ARM References: <20220522155046.260146-1-tmaimon77@gmail.com> <20220522155046.260146-12-tmaimon77@gmail.com> <86cd6a37-70ad-3a90-bc8a-dcd8b41f1175@linaro.org> <62562cdf-93e3-f642-5bbd-48329eff33ea@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 23/05/2022 17:22, Krzysztof Kozlowski wrote: >> I think you are taking a too-extremist standpoint. >> The two extremes are: >> 1. Numbers correspond to hardware numbers, and are easy to look up >> in the hardware documentation (e.g. GIC SPI interrupt numbers). >> => Use the hardcoded numbers in DTS. > > And such numbers (like GIC_SPI interrupt numbers) do not go to bindings. > They go to DTS only. > >> 2. Numbers do not correspond to hardware numbers, so we had to >> invent our own definitions and numbers, usually loosely >> based on some table in the hardware documentation. >> The driver will have to look up the numbers in a data >> structure, to know how to program the hardware. >> The numbers become part of the DT ABI, and cannot be changed >> (header file is append-only). >> => Use the binding definitions in DTS. > > Correct. > > However this patch is some mixture of both approaches. > > The same pointed by Arnd: > https://lore.kernel.org/linux-devicetree/CAK8P3a0fDJQvGLEtG0fxLkG08Fh9V7LEMPsx4AaS+2Ldo_xWxw@mail.gmail.com/ ...and one more from Arnd: https://lore.kernel.org/linux-devicetree/CAK8P3a1APzs74YTcZ=m43G3zrmwJZKcYSTvV5eDDQX-37UY7Tw@mail.gmail.com/ Best regards, Krzysztof