Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1642104rdg; Sat, 12 Aug 2023 09:36:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHrW9h7GrPdD2AarbOE1t2LuxntEWTehx40/Ht4A/JgUeQxeyyseVZfygcE5k4o8/5co8U X-Received: by 2002:a05:6a20:1385:b0:135:4df7:f165 with SMTP id hn5-20020a056a20138500b001354df7f165mr4156954pzc.21.1691858217804; Sat, 12 Aug 2023 09:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691858217; cv=none; d=google.com; s=arc-20160816; b=XYkgGx03Zbc1n+SoDjNulsd6B3y4KBICYEToWm5wQaFhsNcnZrxX09k0/DVqUCm5uK Z9LWhKbdERH3pCdtp67ioinI5PF3cnGfRLiTorfIS0SRR+FXit6jZByPLo/leYz/U/Qr joseC85qXCTxemfvJQlvBpu341DZsjV//dK4vayt8Hf3LvHymm6fY3Xp4ie4q5RZH3j3 t4rejjw+8+LNFVdqg0+ha2QPdzY0MGTJw3XrFMtL8OJJ0poCA+374wgkFCuzrSk0H5G5 Prq5IjUIZEShvd8w+GqY/w7X2M83KXlmVuU8qYsFNpbFOkug6OOcrJsPQVF75O/FL83o Ib3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=LoAaVhVy0qLu2UIidV/2RKuvvjg2wk/gITqz6y98m3Q=; fh=1VJVsKLVPm4ME9+qDToKKUG1oNdzyI0fzDB7lR6RUdY=; b=0BEL6x4LVN/ZEtZ19iDXGx5m0uzmBlLG02Cr80aSJqY3WLv3w/+hLCEu+/of6OaJZp 1wTIbFWkOBzMEbwUCmW/5WGSj4a7E5yHuFvs5pd3LFyjBfyaAvr5F4ZMQrz/ADyJi5Xn vtFdRnMxNUzccR6tZsEycSe+X6jv21ab5d0w4xJHyGMqYNnNp5wOPcQz+vgkLFkoU8PM m6GpdxNHLUgruSSCvR3FKNi6G4NH8e8Qaslk/QEm0xvtE0n7kVWvb2mR5AHHDR/OnTdu q7W6vd6IYy/DS95gC5gjQqIU0Lqyf0taMsma5brdhyzVm9ODsLEcBr3lusyjnCWAsE42 e7TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pZ+GFez6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a656415000000b0056554d5dc32si5242216pgv.844.2023.08.12.09.36.45; Sat, 12 Aug 2023 09:36:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pZ+GFez6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231307AbjHLPGM (ORCPT + 99 others); Sat, 12 Aug 2023 11:06:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjHLPGK (ORCPT ); Sat, 12 Aug 2023 11:06:10 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E566F1984; Sat, 12 Aug 2023 08:06:11 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id D1D8A20004; Sat, 12 Aug 2023 15:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691852770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LoAaVhVy0qLu2UIidV/2RKuvvjg2wk/gITqz6y98m3Q=; b=pZ+GFez631+mShPkhsB93KVm+av4nO8WGaOvJRdCq79ZNke1eQ3M3K9pa1UwY6JNfg708p pWwnGenTLlM8f4YKBiEtY1C6HK7NR0n3mFRGpQA23lJKrUwnBAztiKrGQfb3PPWMG7ahbd 6rqG6kT4Xzm+t2pKGyD08ru7tAugAL/OpzbPj0hMmZ7rupd/dkjw+/SyTLjL8F1bQDcegV 37VGMdpvA4AwtvB3M5Yd4YOX1JWTV1NA5cE16T3wn7STDG4M7MiL2s/yvix+hb1fg+VLKz wHfCbEypy3ZG6EiqRAwkbhe+EC9f0NqEDRuFJ4cAPIN6OaX8LeliWL9dD9DbLA== From: Gregory CLEMENT To: Krzysztof Kozlowski , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: Re: [PATCH 2/2] ARM: dts: marvell: dove: drop incorrect reg in fixed regulators In-Reply-To: <20230726070254.103661-2-krzysztof.kozlowski@linaro.org> References: <20230726070254.103661-1-krzysztof.kozlowski@linaro.org> <20230726070254.103661-2-krzysztof.kozlowski@linaro.org> Date: Sat, 12 Aug 2023 17:06:08 +0200 Message-ID: <87msywti5b.fsf@BL-laptop> MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: gregory.clement@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 Krzysztof Kozlowski writes: > Fixed regulators are not in some bus and bindings do not allow a "reg" > property. Move them out of "regulators" node to top-level. > > dove-cubox.dtb: regulator@1: Unevaluated properties are not allowed ('reg' was unexpected) > > Signed-off-by: Krzysztof Kozlowski Applied on mvebu/dt Thanks, Gregory > --- > arch/arm/boot/dts/marvell/dove-cm-a510.dtsi | 18 +++++-------- > arch/arm/boot/dts/marvell/dove-cubox.dts | 29 ++++++++------------- > arch/arm/boot/dts/marvell/dove-d3plug.dts | 29 ++++++++------------- > arch/arm/boot/dts/marvell/dove-sbc-a510.dts | 28 +++++++++----------- > 4 files changed, 41 insertions(+), 63 deletions(-) > > diff --git a/arch/arm/boot/dts/marvell/dove-cm-a510.dtsi b/arch/arm/boot/dts/marvell/dove-cm-a510.dtsi > index 1082fdfbfe60..621cb145a8f6 100644 > --- a/arch/arm/boot/dts/marvell/dove-cm-a510.dtsi > +++ b/arch/arm/boot/dts/marvell/dove-cm-a510.dtsi > @@ -108,18 +108,12 @@ led-system { > }; > }; > > - regulators { > - compatible = "simple-bus"; > - #address-cells = <1>; > - #size-cells = <0>; > - > - wifi_power: regulator@1 { > - compatible = "regulator-fixed"; > - regulator-name = "WiFi Power"; > - regulator-min-microvolt = <3300000>; > - regulator-max-microvolt = <3300000>; > - gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>; > - }; > + wifi_power: regulator-1 { > + compatible = "regulator-fixed"; > + regulator-name = "WiFi Power"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>; > }; > }; > > diff --git a/arch/arm/boot/dts/marvell/dove-cubox.dts b/arch/arm/boot/dts/marvell/dove-cubox.dts > index dbba0c8cdab1..bfde99486a87 100644 > --- a/arch/arm/boot/dts/marvell/dove-cubox.dts > +++ b/arch/arm/boot/dts/marvell/dove-cubox.dts > @@ -28,24 +28,17 @@ led-power { > }; > }; > > - regulators { > - compatible = "simple-bus"; > - #address-cells = <1>; > - #size-cells = <0>; > - > - usb_power: regulator@1 { > - compatible = "regulator-fixed"; > - reg = <1>; > - regulator-name = "USB Power"; > - regulator-min-microvolt = <5000000>; > - regulator-max-microvolt = <5000000>; > - enable-active-high; > - regulator-always-on; > - regulator-boot-on; > - gpio = <&gpio0 1 0>; > - pinctrl-0 = <&pmx_gpio_1>; > - pinctrl-names = "default"; > - }; > + usb_power: regulator-1 { > + compatible = "regulator-fixed"; > + regulator-name = "USB Power"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + enable-active-high; > + regulator-always-on; > + regulator-boot-on; > + gpio = <&gpio0 1 0>; > + pinctrl-0 = <&pmx_gpio_1>; > + pinctrl-names = "default"; > }; > > clocks { > diff --git a/arch/arm/boot/dts/marvell/dove-d3plug.dts b/arch/arm/boot/dts/marvell/dove-d3plug.dts > index 5aa5d4a7d51d..a451fd576990 100644 > --- a/arch/arm/boot/dts/marvell/dove-d3plug.dts > +++ b/arch/arm/boot/dts/marvell/dove-d3plug.dts > @@ -37,24 +37,17 @@ led-status { > }; > }; > > - regulators { > - compatible = "simple-bus"; > - #address-cells = <1>; > - #size-cells = <0>; > - > - usb_power: regulator@1 { > - compatible = "regulator-fixed"; > - reg = <1>; > - regulator-name = "USB Power"; > - regulator-min-microvolt = <5000000>; > - regulator-max-microvolt = <5000000>; > - enable-active-high; > - regulator-always-on; > - regulator-boot-on; > - gpio = <&gpio0 8 0>; > - pinctrl-0 = <&pmx_gpio_8>; > - pinctrl-names = "default"; > - }; > + usb_power: regulator-1 { > + compatible = "regulator-fixed"; > + regulator-name = "USB Power"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + enable-active-high; > + regulator-always-on; > + regulator-boot-on; > + gpio = <&gpio0 8 0>; > + pinctrl-0 = <&pmx_gpio_8>; > + pinctrl-names = "default"; > }; > }; > > diff --git a/arch/arm/boot/dts/marvell/dove-sbc-a510.dts b/arch/arm/boot/dts/marvell/dove-sbc-a510.dts > index df021f9b0117..8585ee5533bf 100644 > --- a/arch/arm/boot/dts/marvell/dove-sbc-a510.dts > +++ b/arch/arm/boot/dts/marvell/dove-sbc-a510.dts > @@ -76,22 +76,20 @@ chosen { > stdout-path = &uart0; > }; > > - regulators { > - usb0_power: regulator@2 { > - compatible = "regulator-fixed"; > - regulator-name = "USB Power"; > - regulator-min-microvolt = <5000000>; > - regulator-max-microvolt = <5000000>; > - gpio = <&gpio_ext 0 GPIO_ACTIVE_HIGH>; > - }; > + usb0_power: regulator-2 { > + compatible = "regulator-fixed"; > + regulator-name = "USB Power"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + gpio = <&gpio_ext 0 GPIO_ACTIVE_HIGH>; > + }; > > - mmc_power: regulator@3 { > - compatible = "regulator-fixed"; > - regulator-name = "MMC Power"; > - regulator-min-microvolt = <3300000>; > - regulator-max-microvolt = <3300000>; > - gpio = <&gpio_ext 13 GPIO_ACTIVE_HIGH>; > - }; > + mmc_power: regulator-3 { > + compatible = "regulator-fixed"; > + regulator-name = "MMC Power"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&gpio_ext 13 GPIO_ACTIVE_HIGH>; > }; > }; > > -- > 2.34.1 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com