Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp595689pxu; Thu, 15 Oct 2020 11:27:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhZco1ith4R1+nbQDKAo4giQNFFp+qAszvOjEUgrtLAXndQeSYnj0yCEpslP2vdAmwld/M X-Received: by 2002:a17:906:3bc9:: with SMTP id v9mr5749596ejf.340.1602786450240; Thu, 15 Oct 2020 11:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602786450; cv=none; d=google.com; s=arc-20160816; b=ul23q9YESqq1FL7bX+bJf1N/4wqNDynE88PpyAilT48PkdXQoAleV1PIP8Qqcpi/rF rJitW5XWxSPWetMo+jtccAbyKQ3p/xH0FCgWI6IxDwKv1pkQb3tBQhzNAK67TI+lVJvX vU8oMMWOTs0aBdss7OuXjs4ghrp85Ny/n3IgmXqdNdshwETo+wFII4C9WV4Uo+81Wp4S WXnkOoOjuE2wwQ9wutNinxxqcLcewl6eZUO7yia7FQ6P6zCCwvFeLx0uTtn5Ykj4m2zn FEQY1FSCKY8KBrlIyqQDWPP9bS8s5lfFO7+aAYspy3JsZzL4ZpOq3di9ywrMTz+7mzcq zBTw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b84hsRMoXS6GSIJgvfo2S0Egn1CWq+Hpix6sK2IAdUE=; b=gU2Ur5Hc4VChNZmg9XZc+7OQUPWHEz9JSxImzUKfrqCEkhGKhNBePgKcoZ1IIOviLC NqlJsrB5m3RHIzwDpNt+ER5o1NCc0/zBUR36X62s8I5G3NC/zss0voK4GqVaPmFRPpcR Ax9mhTnzENDFrHmPwFq8LIj4hmAjb/sjWQIrtfWxgbRArE3SdX8tVT/QTp2ZYPyZITyu gW57nQWOg5evJSVDfSA4BOQ14Jfzsrq3eOX/S2NIuBYtSlwIGaYkV0VuULVw1ccjqwJI DqeckgtaRBIK27v6B3CtkGPXr6amCp7ZU//iIQIn4beSHgIFNcFQF0YU6VdFuzsZjU0s 9QIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M9pJeRxW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si2758418ejc.669.2020.10.15.11.26.59; Thu, 15 Oct 2020 11:27:30 -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=@gmail.com header.s=20161025 header.b=M9pJeRxW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726709AbgJOMFJ (ORCPT + 99 others); Thu, 15 Oct 2020 08:05:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgJOMFI (ORCPT ); Thu, 15 Oct 2020 08:05:08 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD41DC061755; Thu, 15 Oct 2020 05:05:07 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id a5so2830754ljj.11; Thu, 15 Oct 2020 05:05:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=b84hsRMoXS6GSIJgvfo2S0Egn1CWq+Hpix6sK2IAdUE=; b=M9pJeRxWl/yzHIyVox8DH1/36P4oGErk7sMFdyEZekt4dWZSdmimLtSAx+AVZmf29u j+8kssj4JNre8sIqmrLLZElE9YkOeSjXvejl/F1a5MryXWtsdg5I8BgEo+ospPwV+VwC f7NVefdUm+SkIPSkOmoWF5fUjO/Ugjx37AgGm/sVpMVB5J3OsfSXF8RGdzVAFwb50oU1 ZXTRFtX3qtNLgoLtvewOvHwDDY7tPS7dyYA/Yye62dAhp40wo13id8JKWEq8jCkd8D21 RKerY4o82571VLersFP83OuHuOrND8iT1eME1mpPn0B4X+v90jcbB09ont9P3Bf5G1BE baoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=b84hsRMoXS6GSIJgvfo2S0Egn1CWq+Hpix6sK2IAdUE=; b=U3zRRhB62QQpvrt4s5z1dDsQliPw9jCgiUbuoDD6kyuTDY/sMsh8FApqxMM9QwYZB/ GbueC+OMdwOGTFxoIiLllR9K/pnaVyG7oEdiasJ4M17JDUZy5jN4tMhPwr7Dg/IR+Do7 UBIhnLZrmjjJXIpkLUJ5IEH9xAXZmcLxEY414f3tYW5taE98LIAucynsYrBNYRgGpmv+ GiMAM4BH8qqlrduZIKnKrLgRb5RNLY+XLY2dU3p6vRoOEa50573VomB5xf9xcAYwTn9f lGlg81xTrV0aqxlgZkF8zGe0djW8inAKJcEjqkGJAVLgJCkCbsHw05c1SOruRSWf01rH ZuBQ== X-Gm-Message-State: AOAM531ct0URv4LeyxkALFBwLnk9YWgL4PJup+WHJ0I6BXlOwzIJHQ3i 5AkUvFub1gmAN+BDVMJjUN0= X-Received: by 2002:a2e:864c:: with SMTP id i12mr1075757ljj.396.1602763505518; Thu, 15 Oct 2020 05:05:05 -0700 (PDT) Received: from mobilestation ([95.79.141.114]) by smtp.gmail.com with ESMTPSA id x4sm1213347ljj.62.2020.10.15.05.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 05:05:04 -0700 (PDT) Date: Thu, 15 Oct 2020 15:04:57 +0300 From: Serge Semin To: Jisheng Zhang Cc: Hoan Tran , Linus Walleij , Bartosz Golaszewski , Rob Herring , Sebastian Hesselbarth , Dinh Nguyen , Khuong Dinh , Manivannan Sadhasivam , Wei Xu , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 8/8] dt-bindings: gpio: dw-apb: remove never-used "snps,dw-apb-gpio-port" Message-ID: <20201015120457.qaooft5y5dzl4z7s@mobilestation> References: <20201015115524.24e3c36b@xhacker.debian> <20201015115903.2a782f78@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201015115903.2a782f78@xhacker.debian> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 15, 2020 at 11:59:03AM +0800, Jisheng Zhang wrote: > The compatible string is never used. Before sending v2 could you run "make dt_binding_check" for the DT schema modified in this patch? Like this: make -j8 ARCH=mips CROSS_COMPILE=mipsel-baikal-linux- dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml > > Signed-off-by: Jisheng Zhang > --- > Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml > index 1240f6289249..76e7b07d592f 100644 > --- a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml > +++ b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml > @@ -50,9 +50,6 @@ patternProperties: > "^gpio-(port|controller)@[0-9a-f]+$": > type: object > properties: > - compatible: > - const: snps,dw-apb-gpio-port > - Yep, you've removed the "compatible" property but forgot to do the same from the "required:" property of the sub-nodes schema. That's why the suggested make-command above would have failed during the DT schema examples validation if you ran it. Please, fix it and resend the series. > reg: > maxItems: 1 Yeah. Here I've forgotten to add the "reg" property constraints. Since certainly the controller won't have more than four sub-nodes by design, could you add one in an additional patch of the series since you'll need to resend the patchset anyway? Like this: reg: - maxItems: 1 + minimum: 0 + maximum: 3 -Sergey > > @@ -111,7 +108,6 @@ examples: > #size-cells = <0>; > > porta: gpio-port@0 { > - compatible = "snps,dw-apb-gpio-port"; > reg = <0>; > gpio-controller; > #gpio-cells = <2>; > @@ -123,7 +119,6 @@ examples: > }; > > portb: gpio-port@1 { > - compatible = "snps,dw-apb-gpio-port"; > reg = <1>; > gpio-controller; > #gpio-cells = <2>; > -- > 2.28.0 >