From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B47E5C83F01 for ; Sun, 27 Aug 2023 18:05:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbjH0SE2 (ORCPT ); Sun, 27 Aug 2023 14:04:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbjH0SEU (ORCPT ); Sun, 27 Aug 2023 14:04:20 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BB2013E for ; Sun, 27 Aug 2023 11:04:15 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5008faf4456so3844298e87.3 for ; Sun, 27 Aug 2023 11:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693159453; x=1693764253; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gVnsqblWQkwO3gPfAsGjnlwJGNuNWvof44bXfeUPon4=; b=XthCKJDJ+miNktFmTB1qst8pbgiWx0eJCLyU8/bHE4iCC8KJFOYek3vgneXmUjj8yd F3CwGFiQhUlB9/kd5gOGzHLBgR1GaNjeHpMdsZDzyowmOqwB+KTRodgPnsJ0ek2x5M4i Y6hbdWFXyNWdb2ce8hBxAysNOjlQ77WWNIPSTrJHhhH/dbl1H2MflI33yGAQ4yNQ3uG9 WLAPOyl9e6XfRnx/nfkvvCRGYWxlwkOc29d3mDyd8/OQB6PDFOVofEsL+k4BpgrePySH qjGEsT8KbV8rIaIr1MfE+fgEbCodJEJ/cvblk1BVy5IvUjujPSZz/QjV4HJNlaUMfwZQ 2a2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693159453; x=1693764253; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gVnsqblWQkwO3gPfAsGjnlwJGNuNWvof44bXfeUPon4=; b=QUKhv0D5Wbh3f7xECmQgFiqnZshgsFmL1MLdD+3nJ6ViBO0JTZ8NQqWJrVaMJBlFyy gZR2VQrBRO8hS/AWupoW6+QLaoIhj+lUdXD2M02MQf1e/yp9zXsQsixMTJcNtt1/wVef YjtxZRFWZat8CggbWr0IMt3l5brwmIh+F1FQ5cLnZQpI5148yTGC8OtvSWDaJ0b399F5 EG89kNXlA1fPtbniIlTQ0RqbHHtKurfngMrtOgPAYMZPnKMvWLKbe1zt7Sqx19SCNGmf 9+yAuYJtJmjWUvKi5kyS4XU0+ESPUSYvBT9b4Av1vgTEdcZYNGikO4l0mYzvTpNQ8hPi vL2Q== X-Gm-Message-State: AOJu0YyaGAlQgdFoV605UuJ8i9ra6NrCMvV54+03Ci3duOBtOMIBPHmM aXX+Q/fd3Vj9X71JGVXRMlIQxg== X-Google-Smtp-Source: AGHT+IG30d/KpP8cEvTO0ka59sjlKPUk+qeSYW9X0JaYYBH5ESIkTjswQQdnDXTO1zf7kJFi6SmaKw== X-Received: by 2002:a05:6512:1042:b0:4fe:d0f:1f1e with SMTP id c2-20020a056512104200b004fe0d0f1f1emr20474537lfb.25.1693159453433; Sun, 27 Aug 2023 11:04:13 -0700 (PDT) Received: from [192.168.0.22] ([77.252.47.225]) by smtp.gmail.com with ESMTPSA id l5-20020a056402124500b005222c6fb512sm3586828edw.1.2023.08.27.11.04.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Aug 2023 11:04:12 -0700 (PDT) Message-ID: Date: Sun, 27 Aug 2023 20:04:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH RESEND v5 1/2] dt-binding: pinctrl: Add NPCM8XX pinctrl and GPIO documentation To: Tomer Maimon Cc: Rob Herring , linus.walleij@linaro.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, avifishman70@gmail.com, tali.perry1@gmail.com, joel@jms.id.au, venture@google.com, yuenn@google.com, benjaminfair@google.com, j.neuschaefer@gmx.net, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230809185722.248787-1-tmaimon77@gmail.com> <20230809185722.248787-2-tmaimon77@gmail.com> <20230821170941.GA1915730-robh@kernel.org> <53987f0f-dfda-3572-1545-755072328be4@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 27/08/2023 17:30, Tomer Maimon wrote: > Hi Krzysztof, > > Thanks for your comment > > On Sun, 27 Aug 2023 at 14:13, Krzysztof Kozlowski > wrote: >> >> On 27/08/2023 11:44, Tomer Maimon wrote: >>>>> + pinctrl: pinctrl@f0800260 { >>>>> + compatible = "nuvoton,npcm845-pinctrl"; >>>>> + ranges = <0x0 0x0 0xf0010000 0x8000>; >>>>> + #address-cells = <1>; >>>>> + #size-cells = <1>; >>>>> + nuvoton,sysgcr = <&gcr>; >>>>> + >>>>> + gpio0: gpio@f0010000 { >>>> >>>> unit-address should be 0. >>>> >>>> Otherwise, >>> The unit-address is correct f0010000 >> >> Then how does it pass W=1 builds? How unit address can be f0010000 but >> reg is 0? Really... > Maybe because the ranges are ranges = <0x0 0x0 0xf0010000 0x8000>? And how does this mapping should cause the unit address to not match the reg? What type of rule is it? Except also incorrect address in pinctrl node.. but your DTS nuvoton-common-npcm8xx.dtsi has so many other bugs (duplicated nodes, not matching, unit addresses), that I don't wonder that you do not see other errors. But that's not a reason to add more. Rob gave you quite specific advice, so I really do not understand why do you keep arguing with it? > I didn't get any warning regarding the unit-address > bash-4.2$ make ARCH=arm64 dt_binding_check W=1 DTS, not binding. BTW, your patches have errors. Please fix them: patch:226: new blank line at EOF. warning: 1 line adds whitespace errors. Best regards, Krzysztof