Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2095047ioo; Mon, 23 May 2022 09:59:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKe13i12iOTGnlZ6xRkcg5KnUJtP7mlOFoDCBE/0fsArj1OiYNduNSGfGIOTbwXe7pZ1ai X-Received: by 2002:a17:902:e2d2:b0:161:a6d8:3a0e with SMTP id l18-20020a170902e2d200b00161a6d83a0emr22974637plc.79.1653325171931; Mon, 23 May 2022 09:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653325171; cv=none; d=google.com; s=arc-20160816; b=kkBmwdz2dQKNqyjDl9wvHQpfh5DtJ1P/tIx6JDBhFMQKmw0l0joT3Q00SOKVFRnpAo j7C1M0Mh1qi+pP25k1oozKAGqo/o0ASdAh59c+NRofeW3pXIh2m9i6h4sUEd069EyzmL rv1vnpk9BWqS3EoWlkvYNZMlWmmpYy5sCdm9AQVLhiyvQp981acVunnjEE3e/eshpqVF hSKrQbtLQabn6pAX45uTlILj01JNfdC6+qmfcbJ3yK63BjMFfmlBXDTIkQPUMcQp+pPw UZbdHjN+ch1nw5jNmVIIbl2IyoukmAUJLwNqHjm8l8SM9bH+2/YZRAeRwUi0E2xzcx1J 8edw== 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; bh=FfAOhZNasQcy6TRDHmB8U+mc653MKDmGV3a61UnarkE=; b=MJMivT+3lORO9TaOc4gxnvXI35wnBqpSFpS6wZ29r3DYuqKR1++LbQcGkyQyTgAjEl c7uO/W9aqx7eySqVaRvk4rhI/ZA6+pXMdSe9Uag/UfK6eIqkzBgPVnEHIgEl9xgarSfz nWefNCtMq0fRJS47Hg0JKVGMFdqhhM1qgXlhBTtHeOkQzeq818a38r+k+WS/Oz4bAmyT 4Z6XVLPmvpC1yMpqZn8McgGfgPUBfjeqKsi9dvvoVENyMLri+kyM1W4BmV1RP+2Yz36W uEv0+t+KjmUwd8XfmGw6rXroxZkfdCSBMHD6mc0S4Ho2uH2K7ymlvg5JusGj3lXokpcP vVVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n15-20020a635c4f000000b0039cf337f6c6si10964486pgm.546.2022.05.23.09.59.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 09:59:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-crypto-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; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CC38764B; Mon, 23 May 2022 09:56:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239228AbiEWQ4U (ORCPT + 99 others); Mon, 23 May 2022 12:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239229AbiEWQ4O (ORCPT ); Mon, 23 May 2022 12:56:14 -0400 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40F4E40; Mon, 23 May 2022 09:56:12 -0700 (PDT) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-edeb6c3642so19212178fac.3; Mon, 23 May 2022 09:56:12 -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:in-reply-to; bh=FfAOhZNasQcy6TRDHmB8U+mc653MKDmGV3a61UnarkE=; b=4KkfVM5goTSkVfLLz4yJUTYK9jwLwzP8f/PpRo8aB8IkJKQi4ENdB4cz/bZLj0eHjb YEXOmwJPZz219J0oESUvV2cbqkJIpqB2mqP/ypOKRIxZB5Q9ecba77zNia8ciYFPTPbk vrPNx2dzj7Nu7sb5kIUa1SknUEJwHpW4RVMX3HI+Rcflbis/zJ+RO3KVWPHkHoMAjboW RPDv58ohM5ox6JZFx3SnjCEC6tUT4eWwAHijPFqTXLOB6kbQmb/HSuAr60U1UXZA/cFV IF9PfZ6TLKCtKhg8wZAkXPMRJlyHYLB34KalgVgU4A29QzcRkpiOUSSNuUBlkObVOCfG wCkw== X-Gm-Message-State: AOAM533vkLoWrjdNEctnWHVHHnoq5MUMqieCqa4zrXOERLLWtvOXgsOu fOCXzySz8awOAEzcFjzLRA== X-Received: by 2002:a05:6870:5823:b0:f2:2dfd:8df0 with SMTP id r35-20020a056870582300b000f22dfd8df0mr6004573oap.157.1653324972043; Mon, 23 May 2022 09:56:12 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id eb38-20020a056870a8a600b000edf5a12baasm3976216oab.46.2022.05.23.09.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 09:56:11 -0700 (PDT) Received: (nullmailer pid 1750116 invoked by uid 1000); Mon, 23 May 2022 16:56:09 -0000 Date: Mon, 23 May 2022 11:56:09 -0500 From: Rob Herring To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Linus Walleij , Bartosz Golaszewski , Dmitry Torokhov , Benson Leung , Guenter Roeck , Mauro Carvalho Chehab , Peter Rosin , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Kalle Valo , Bjorn Helgaas , Sebastian Reichel , Matt Mackall , Herbert Xu , Greg Kroah-Hartman , Mark Brown , Maxime Ripard , dri-devel@lists.freedesktop.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, chrome-platform@lists.linux.dev, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] dt-bindings: Fix properties without any type Message-ID: <20220523165609.GA1743214-robh@kernel.org> References: <20220519211411.2200720-1-robh@kernel.org> <6ae55a29-0b29-f53c-c9bd-fae929f3caf7@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6ae55a29-0b29-f53c-c9bd-fae929f3caf7@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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-crypto@vger.kernel.org On Sat, May 21, 2022 at 05:03:41PM +0200, Krzysztof Kozlowski wrote: > On 19/05/2022 23:14, Rob Herring wrote: > > Now that the schema tools can extract type information for all > > properties (in order to decode dtb files), finding properties missing > > any type definition is fairly trivial though not yet automated. > > > > Fix the various property schemas which are missing a type. Most of these > > tend to be device specific properties which don't have a vendor prefix. > > A vendor prefix is how we normally ensure a type is defined. > > > > Signed-off-by: Rob Herring > > --- > > .../arm/hisilicon/controller/hip04-bootwrapper.yaml | 5 +++-- > > .../bindings/display/bridge/toshiba,tc358768.yaml | 1 + > > .../devicetree/bindings/display/panel/panel-timing.yaml | 5 +++++ > > .../bindings/display/panel/raydium,rm67191.yaml | 1 + > > .../bindings/display/panel/samsung,s6e8aa0.yaml | 1 + > > .../devicetree/bindings/gpio/fairchild,74hc595.yaml | 1 + > > .../devicetree/bindings/input/google,cros-ec-keyb.yaml | 1 + > > .../devicetree/bindings/input/matrix-keymap.yaml | 4 ++++ > > Documentation/devicetree/bindings/media/i2c/adv7604.yaml | 3 ++- > > Documentation/devicetree/bindings/mux/reg-mux.yaml | 8 ++++++-- > > Documentation/devicetree/bindings/net/cdns,macb.yaml | 1 + > > Documentation/devicetree/bindings/net/ingenic,mac.yaml | 1 + > > .../devicetree/bindings/net/ti,davinci-mdio.yaml | 1 + > > .../devicetree/bindings/net/wireless/ti,wlcore.yaml | 2 ++ > > .../devicetree/bindings/pci/snps,dw-pcie-ep.yaml | 6 ++++-- > > Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 2 ++ > > .../devicetree/bindings/pinctrl/canaan,k210-fpioa.yaml | 2 ++ > > Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml | 1 + > > .../devicetree/bindings/power/supply/battery.yaml | 7 ++++++- > > .../devicetree/bindings/power/supply/charger-manager.yaml | 1 + > > Documentation/devicetree/bindings/rng/st,stm32-rng.yaml | 1 + > > Documentation/devicetree/bindings/serial/8250.yaml | 1 + > > .../devicetree/bindings/sound/audio-graph-card2.yaml | 3 +++ > > .../devicetree/bindings/sound/imx-audio-hdmi.yaml | 3 +++ > > Documentation/devicetree/bindings/usb/smsc,usb3503.yaml | 1 + > > 25 files changed, 55 insertions(+), 8 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.yaml > > index 7378159e61df..483caf0ce25b 100644 > > --- a/Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.yaml > > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.yaml > > @@ -17,14 +17,15 @@ properties: > > - const: hisilicon,hip04-bootwrapper > > > > boot-method: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > description: | > > Address and size of boot method. > > [0]: bootwrapper physical address > > [1]: bootwrapper size > > [2]: relocation physical address > > [3]: relocation size > > - minItems: 1 > > - maxItems: 2 > > + minItems: 2 > > + maxItems: 4 > > > > required: > > - compatible > > diff --git a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml > > index 3bd670b8e5cd..0b6f5bef120f 100644 > > --- a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml > > +++ b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml > > @@ -58,6 +58,7 @@ properties: > > > > properties: > > data-lines: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [ 16, 18, 24 ] > > > > port@1: > > diff --git a/Documentation/devicetree/bindings/display/panel/panel-timing.yaml b/Documentation/devicetree/bindings/display/panel/panel-timing.yaml > > index 7749de95ee40..229e3b36ee29 100644 > > --- a/Documentation/devicetree/bindings/display/panel/panel-timing.yaml > > +++ b/Documentation/devicetree/bindings/display/panel/panel-timing.yaml > > @@ -146,6 +146,7 @@ properties: > > Horizontal sync pulse. > > 0 selects active low, 1 selects active high. > > If omitted then it is not used by the hardware > > + $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [0, 1] > > > > vsync-active: > > @@ -153,6 +154,7 @@ properties: > > Vertical sync pulse. > > 0 selects active low, 1 selects active high. > > If omitted then it is not used by the hardware > > + $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [0, 1] > > > > de-active: > > @@ -160,6 +162,7 @@ properties: > > Data enable. > > 0 selects active low, 1 selects active high. > > If omitted then it is not used by the hardware > > + $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [0, 1] > > > > pixelclk-active: > > @@ -169,6 +172,7 @@ properties: > > sample data on rising edge. > > Use 1 to drive pixel data on rising edge and > > sample data on falling edge > > + $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [0, 1] > > > > syncclk-active: > > @@ -179,6 +183,7 @@ properties: > > sample sync on rising edge of pixel clock. > > Use 1 to drive sync on rising edge and > > sample sync on falling edge of pixel clock > > + $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [0, 1] > > > > interlaced: > > diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml > > index 745dd247c409..617aa8c8c03a 100644 > > --- a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml > > +++ b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml > > @@ -24,6 +24,7 @@ properties: > > > > dsi-lanes: > > description: Number of DSI lanes to be used must be <3> or <4> > > + $ref: /schemas/types.yaml#/definitions/uint32 > > enum: [3, 4] > > > > v3p3-supply: > > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml > > index ca959451557e..1cdc91b3439f 100644 > > --- a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml > > +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml > > @@ -36,6 +36,7 @@ properties: > > > > init-delay: > > description: delay after initialization sequence [ms] > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > > panel-width-mm: > > description: physical panel width [mm] > > diff --git a/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml b/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml > > index 5fe19fa5f67c..a99e7842ca17 100644 > > --- a/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml > > +++ b/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml > > @@ -26,6 +26,7 @@ properties: > > const: 2 > > > > registers-number: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > description: Number of daisy-chained shift registers > > > > enable-gpios: > > diff --git a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml > > index e8f137abb03c..aa61fe64be63 100644 > > --- a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml > > +++ b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml > > @@ -31,6 +31,7 @@ properties: > > type: boolean > > > > function-row-physmap: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > minItems: 1 > > maxItems: 15 > > description: | > > diff --git a/Documentation/devicetree/bindings/input/matrix-keymap.yaml b/Documentation/devicetree/bindings/input/matrix-keymap.yaml > > index 6699d5e32dca..9f703bb51e12 100644 > > --- a/Documentation/devicetree/bindings/input/matrix-keymap.yaml > > +++ b/Documentation/devicetree/bindings/input/matrix-keymap.yaml > > @@ -27,6 +27,10 @@ properties: > > column and linux key-code. The 32-bit big endian cell is packed as: > > row << 24 | column << 16 | key-code > > > > + linux,no-autorepeat: > > + type: boolean > > + description: Disable keyrepeat > > This should be rather a separate patch - it's documenting a missing > property, not only a type. Yes, I've dropped this hunk while applying. Rob