Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4751865pxu; Mon, 21 Dec 2020 23:05:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2D74TRXWf1Q2GXDlN/5MGrAIxQ9wnzvKWcy16Wumb63c67P9nTVFuBbTZmk7oV/LzYZud X-Received: by 2002:a17:906:f1c8:: with SMTP id gx8mr19007824ejb.524.1608620706978; Mon, 21 Dec 2020 23:05:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608620706; cv=none; d=google.com; s=arc-20160816; b=AzovJlzsUWmORoKsGXWF02QxMeqmhpz80ojuYDRsZAEOWht1TnAAo0x4z542LPfdUa 6lr/BDJ3svxprrUo/VdSw4DodST6m3zUX0L8owmilX1R2kWgNsZaZlDAgiuWjS1SCm+1 PVrQxOvFTBXWKjBnwMmmkl+pN93y0/7FXeZ87B3tLv75uoosC2Pe3nK2BSYPx7a1rTe4 go9ttzCyC/mOGSYFasTr1H4Ff9rnlzZUyBIsYYrk66O1+e7PELgcXvtG9RXosS/geNzj ExIyFhXMAzuEUU3p83WOclG5tzsvesFbQymN3j+uGiVg4bxKJlKaP9/feE0h622uoMK3 fV+g== 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=tPIdAZksaeHX1Dt4fqfRwoArE8yqRNsXeCz0XXo8Tgo=; b=o3NtDXDMyCiY31oLNaw6hsc2EWbVuXs+ofoIEJvww8ewjhfvTncEyGSyfqT0DAAzDV HajWX+rDPd73vE1w6asIGncQjmciKk+vqW8Eynr6cn2toWV5FusdUtNqQ0XUH7z7k+9B 8cSNizafSE811h29n1U4I1kcQgec83HpuXzH4fa+bJ0QV4a0Meyhs+UTU5VStO/L9PhS NQdaXAuXIgvSUbMhGYB5t+jX8p9glk51uEy4Oafce7IYDF78Bj0ZeW9Qq/5iz1JRUvu0 ASEcGDUiAECveGHlfwVEnzmyUq9WMr4QTEkt+MLyzBTrXXYdxVxGDxFhTlLAQm8YzYgG ks1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=oRhDZ+hU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si11149035ejk.668.2020.12.21.23.04.44; Mon, 21 Dec 2020 23:05:06 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=oRhDZ+hU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725881AbgLVHEF (ORCPT + 99 others); Tue, 22 Dec 2020 02:04:05 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:41810 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbgLVHEF (ORCPT ); Tue, 22 Dec 2020 02:04:05 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id ECB619E6; Tue, 22 Dec 2020 08:03:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1608620601; bh=wr2c/JvrpoqpuCs/EGNX0coXs6l9cQeH37ivwLJhHX0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oRhDZ+hUb1+7clW6B0GbznIznWZFsOAtCA/OUxeJ/fHeXgZuNxhvHN1SdLok7c0eh diGC0VvpIDLU16mWknRPfe5jGZRhUSrHH01XJbLMrchfnUsp1a+TPhNu/PBh2IehYO 7xG4UnwvoyxJvcKA+4KlGGVo2HZoErt8uMvA8GUc= Date: Tue, 22 Dec 2020 09:03:13 +0200 From: Laurent Pinchart To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Dmitry Torokhov , Laurent Pinchart , Mauro Carvalho Chehab , Sakari Ailus , Lee Jones , Mark Brown , Maxime Ripard , dri-devel@lists.freedesktop.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH] dt-bindings: Drop unnecessary *-supply schemas properties Message-ID: References: <20201221234659.824881-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201221234659.824881-1-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thank you for the patch. On Mon, Dec 21, 2020 at 04:46:59PM -0700, Rob Herring wrote: > *-supply properties are always a single phandle, so binding schemas > don't need a type $ref nor 'maxItems'. > > A meta-schema check for this is pending once these existing cases are > fixed. > > Cc: Jonathan Cameron > Cc: Dmitry Torokhov > Cc: Laurent Pinchart > Cc: Mauro Carvalho Chehab > Cc: Sakari Ailus > Cc: Lee Jones > Cc: Mark Brown > Cc: Maxime Ripard > Cc: dri-devel@lists.freedesktop.org > Cc: linux-iio@vger.kernel.org > Cc: linux-input@vger.kernel.org > Cc: linux-media@vger.kernel.org > Signed-off-by: Rob Herring > --- > Documentation/devicetree/bindings/display/bridge/anx6345.yaml | 2 -- > .../devicetree/bindings/display/bridge/ite,it6505.yaml | 2 -- > .../devicetree/bindings/display/bridge/lvds-codec.yaml | 3 +-- > Documentation/devicetree/bindings/display/bridge/ps8640.yaml | 2 -- > .../devicetree/bindings/display/bridge/simple-bridge.yaml | 1 - > .../bindings/display/bridge/thine,thc63lvd1024.yaml | 1 - > .../devicetree/bindings/display/bridge/toshiba,tc358775.yaml | 2 -- > Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml | 4 +--- > .../devicetree/bindings/iio/humidity/ti,hdc2010.yaml | 3 +-- > .../devicetree/bindings/input/fsl,mpr121-touchkey.yaml | 3 +-- > .../devicetree/bindings/input/touchscreen/edt-ft5x06.yaml | 3 +-- > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 1 - > Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml | 3 --- > Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml | 3 --- > Documentation/devicetree/bindings/media/i2c/sony,imx274.yaml | 3 --- > Documentation/devicetree/bindings/mfd/st,stmfx.yaml | 3 +-- > .../devicetree/bindings/regulator/anatop-regulator.yaml | 1 - > 17 files changed, 6 insertions(+), 34 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/bridge/anx6345.yaml b/Documentation/devicetree/bindings/display/bridge/anx6345.yaml > index 8c0e4f285fbc..fccd63521a8c 100644 > --- a/Documentation/devicetree/bindings/display/bridge/anx6345.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/anx6345.yaml > @@ -26,11 +26,9 @@ properties: > description: GPIO connected to active low reset > > dvdd12-supply: > - maxItems: 1 > description: Regulator for 1.2V digital core power. > > dvdd25-supply: > - maxItems: 1 > description: Regulator for 2.5V digital core power. > > ports: > diff --git a/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml b/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml > index efbb3d0117dc..02cfc0a3b550 100644 > --- a/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml > @@ -35,11 +35,9 @@ properties: > maxItems: 1 > > ovdd-supply: > - maxItems: 1 > description: I/O voltage > > pwr18-supply: > - maxItems: 1 > description: core voltage > > interrupts: > diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml > index e5e3c72630cf..66a14d60ce1d 100644 > --- a/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml > @@ -79,8 +79,7 @@ properties: > The GPIO used to control the power down line of this device. > maxItems: 1 > > - power-supply: > - maxItems: 1 > + power-supply: true > > required: > - compatible > diff --git a/Documentation/devicetree/bindings/display/bridge/ps8640.yaml b/Documentation/devicetree/bindings/display/bridge/ps8640.yaml > index 7e27cfcf770d..763c7909473e 100644 > --- a/Documentation/devicetree/bindings/display/bridge/ps8640.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/ps8640.yaml > @@ -35,11 +35,9 @@ properties: > description: GPIO connected to active low reset. > > vdd12-supply: > - maxItems: 1 > description: Regulator for 1.2V digital core power. > > vdd33-supply: > - maxItems: 1 > description: Regulator for 3.3V digital core power. > > ports: > diff --git a/Documentation/devicetree/bindings/display/bridge/simple-bridge.yaml b/Documentation/devicetree/bindings/display/bridge/simple-bridge.yaml > index 3ddb35fcf0a2..64e8a1c24b40 100644 > --- a/Documentation/devicetree/bindings/display/bridge/simple-bridge.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/simple-bridge.yaml > @@ -60,7 +60,6 @@ properties: > description: GPIO controlling bridge enable > > vdd-supply: > - maxItems: 1 > description: Power supply for the bridge > > required: > diff --git a/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.yaml b/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.yaml > index 469ac4a34273..3d5ce08a5792 100644 > --- a/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.yaml > @@ -74,7 +74,6 @@ properties: > description: Power down GPIO signal, pin name "/PDWN", active low. > > vcc-supply: > - maxItems: 1 > description: > Power supply for the TTL output, TTL CLOCKOUT signal, LVDS input, PLL and > digital circuitry. > diff --git a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml > index fd3113aa9ccd..b5959cc78b8d 100644 > --- a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml > @@ -28,11 +28,9 @@ properties: > description: i2c address of the bridge, 0x0f > > vdd-supply: > - maxItems: 1 > description: 1.2V LVDS Power Supply > > vddio-supply: > - maxItems: 1 > description: 1.8V IO Power Supply > > stby-gpios: > diff --git a/Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml > index 6a991e9f78e2..f04084fae5e8 100644 > --- a/Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml > @@ -16,9 +16,7 @@ properties: > enum: > - lltc,ltc2496 > > - vref-supply: > - description: phandle to an external regulator providing the reference voltage > - $ref: /schemas/types.yaml#/definitions/phandle > + vref-supply: true I'd keep part of the description as it's not just the device's main power supply (at least if we can trust the current description). vref-supply: description: Power supply for the reference voltage Reviewed-by: Laurent Pinchart > reg: > description: spi chipselect number according to the usual spi bindings > diff --git a/Documentation/devicetree/bindings/iio/humidity/ti,hdc2010.yaml b/Documentation/devicetree/bindings/iio/humidity/ti,hdc2010.yaml > index 7037f82ec753..88384b69f917 100644 > --- a/Documentation/devicetree/bindings/iio/humidity/ti,hdc2010.yaml > +++ b/Documentation/devicetree/bindings/iio/humidity/ti,hdc2010.yaml > @@ -22,8 +22,7 @@ properties: > - ti,hdc2010 > - ti,hdc2080 > > - vdd-supply: > - maxItems: 1 > + vdd-supply: true > > reg: > maxItems: 1 > diff --git a/Documentation/devicetree/bindings/input/fsl,mpr121-touchkey.yaml b/Documentation/devicetree/bindings/input/fsl,mpr121-touchkey.yaml > index 378a85c09d34..878464f128dc 100644 > --- a/Documentation/devicetree/bindings/input/fsl,mpr121-touchkey.yaml > +++ b/Documentation/devicetree/bindings/input/fsl,mpr121-touchkey.yaml > @@ -31,8 +31,7 @@ properties: > interrupts: > maxItems: 1 > > - vdd-supply: > - maxItems: 1 > + vdd-supply: true > > linux,keycodes: > minItems: 1 > diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml > index 4ce109476a0e..bfc3a8b5e118 100644 > --- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml > +++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml > @@ -55,8 +55,7 @@ properties: > > wakeup-source: true > > - vcc-supply: > - maxItems: 1 > + vcc-supply: true > > gain: > description: Allows setting the sensitivity in the range from 0 to 31. > diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > index 9ea827092fdd..68ee8c7d9e79 100644 > --- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > @@ -40,7 +40,6 @@ properties: > > poc-supply: > description: Regulator providing Power over Coax to the cameras > - maxItems: 1 > > enable-gpios: > description: GPIO connected to the \#PWDN pin with inverted polarity > diff --git a/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml b/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml > index 0df0334d2d0d..bb3528315f20 100644 > --- a/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml > @@ -39,15 +39,12 @@ properties: > > vana-supply: > description: Analogue voltage supply (VANA), sensor dependent. > - maxItems: 1 > > vcore-supply: > description: Core voltage supply (VCore), sensor dependent. > - maxItems: 1 > > vio-supply: > description: I/O voltage supply (VIO), sensor dependent. > - maxItems: 1 > > clocks: > description: External clock to the sensor. > diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml > index 1a3590dd0e98..eb12526a462f 100644 > --- a/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml > @@ -37,15 +37,12 @@ properties: > > vdddo-supply: > description: Chip digital IO regulator (1.8V). > - maxItems: 1 > > vdda-supply: > description: Chip analog regulator (2.7V). > - maxItems: 1 > > vddd-supply: > description: Chip digital core regulator (1.12V). > - maxItems: 1 > > flash-leds: > description: See ../video-interfaces.txt > diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx274.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx274.yaml > index f697e1a20beb..a66acb20d59b 100644 > --- a/Documentation/devicetree/bindings/media/i2c/sony,imx274.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx274.yaml > @@ -33,15 +33,12 @@ properties: > > vana-supply: > description: Sensor 2.8 V analog supply. > - maxItems: 1 > > vdig-supply: > description: Sensor 1.8 V digital core supply. > - maxItems: 1 > > vddl-supply: > description: Sensor digital IO 1.2 V supply. > - maxItems: 1 > > port: > type: object > diff --git a/Documentation/devicetree/bindings/mfd/st,stmfx.yaml b/Documentation/devicetree/bindings/mfd/st,stmfx.yaml > index 888ab4b5df45..19e9afb385ac 100644 > --- a/Documentation/devicetree/bindings/mfd/st,stmfx.yaml > +++ b/Documentation/devicetree/bindings/mfd/st,stmfx.yaml > @@ -26,8 +26,7 @@ properties: > > drive-open-drain: true > > - vdd-supply: > - maxItems: 1 > + vdd-supply: true > > pinctrl: > type: object > diff --git a/Documentation/devicetree/bindings/regulator/anatop-regulator.yaml b/Documentation/devicetree/bindings/regulator/anatop-regulator.yaml > index e7b3abe30363..0a66338c7e5a 100644 > --- a/Documentation/devicetree/bindings/regulator/anatop-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/anatop-regulator.yaml > @@ -59,7 +59,6 @@ properties: > description: u32 value representing regulator enable bit offset. > > vin-supply: > - $ref: '/schemas/types.yaml#/definitions/phandle' > description: input supply phandle. > > required: -- Regards, Laurent Pinchart