Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4774272imm; Tue, 7 Aug 2018 07:10:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfjUSOr/UpTIlyRW0z9bL5CGvsv6a+dD039+fQRkTEbggcHT+S59oxkAbT0V5xHG7oRbHb5 X-Received: by 2002:a17:902:a987:: with SMTP id bh7-v6mr7934264plb.182.1533651021644; Tue, 07 Aug 2018 07:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533651021; cv=none; d=google.com; s=arc-20160816; b=xeM7WP9DWqlTmTBwbF8LEW/DbSKuRubeY+ozwwsEPMOJ4ypo9ztlT42M4pt0Q74Fvt tEdD5yiPyOH93ptW4UjE4/tigFC7j0FdXYyTtmnbgwba7QBo9sgvOcOVi9uBL+rs8oqf UgfvRldgUWr+HdWeMz5Uk2Map0qzf3oup5iSi9/IDrkX1Gp92i0t9+0oRCqcVUx7PaL1 IOcxbxypRJOaB430aJNu9IVW9jRP1aS/NE+56Ibt8Y2Hcav853EQf0UwWq012ylSPyW7 1fnaVfEHvR+7c5wbEoU8zdRcRdQ1Ns5dD03yprGjyc35eyWAVjLSuX3zR9NPQP3weDDC UweA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=g+6D0xlegwslJ1FSHgRy3tXo4o8PwAU6xt3gH8MSLZw=; b=C19qtNlmzAIP90wb37e3K6n7iAl1BdM2XhXU+RRWEQe2dxXFdA/Wxv+P709xEWRxi/ 63xpYtIq5akHqsRfDOVkRzq6QdAHD2Dp2Ebhqw2XSMz0DdHliHFO4pZ1iFzjkl5p5AjP DwEazltG4cy+oa7m26UWgEb4kJZ4wcUPlTk5DDp2cX7V8z8+m3TP6pF4UEb64XSXAG3i oQSJFs1OdIySf+EurrwEpFK6JuaQtD4xrzm7ikTPOiop8l5mAqiP7iAG0vpcqmxZmVJO pWVAO9zgMWcrJXn7UNVpiY6IW41ZzFtjd7vBWhqR9US/f9I+NFBv+sW0srFtEtmMyJu5 yWNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jkke3DrI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l190-v6si1439372pgd.375.2018.08.07.07.10.06; Tue, 07 Aug 2018 07:10:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jkke3DrI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389378AbeHGQXm (ORCPT + 99 others); Tue, 7 Aug 2018 12:23:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:47288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388872AbeHGQXm (ORCPT ); Tue, 7 Aug 2018 12:23:42 -0400 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9553A218D7 for ; Tue, 7 Aug 2018 14:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533650951; bh=ZWf1APqy+NBCV2bAW6dRT7dbi2FfAWAKPV2bW4qsYd0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Jkke3DrIdxorZEHnsHT1vwV4+Ks6ZRi+dOF9brhLxBSB84Q1Gsu67/i8PqvDxNc1n 37UJRnpCXvD6eATo08T6b6623xpzR4iMuvGg8Vu/zP1KLTkczoXoUAoB7Oy7QLNbwS ypV0dpH6YBGABz4h+sc+fKWoNZ28szsO/1QDH7Ro= Received: by mail-wr1-f54.google.com with SMTP id g6-v6so15948431wrp.0 for ; Tue, 07 Aug 2018 07:09:11 -0700 (PDT) X-Gm-Message-State: AOUpUlGDyGW+AbdpZN5sz+LLwEQhB0lfG5SUNF+R523Ej05rito6tjgi zJ9RvK0+O52JvdO0spRZvSBhvG/GDgHWF4cdGcYhHw== X-Received: by 2002:adf:a354:: with SMTP id d20-v6mr13011927wrb.31.1533650949947; Tue, 07 Aug 2018 07:09:09 -0700 (PDT) MIME-Version: 1.0 References: <1533646500-4028-1-git-send-email-patrice.chotard@st.com> <1533646500-4028-4-git-send-email-patrice.chotard@st.com> In-Reply-To: <1533646500-4028-4-git-send-email-patrice.chotard@st.com> From: Rob Herring Date: Tue, 7 Aug 2018 08:08:58 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/3] ARM: dts: stm32: Fix DT dtc warnings for stm32f4 To: patrice.chotard@st.com Cc: Rob Herring , Mark Rutland , linux@armlinux.org.uk, linux-arm-kernel , Linux Kernel Mailing List , devicetree@vger.kernel.org, alexandre.torgue@st.com, Lee Jones , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 7, 2018 at 6:55 AM wrote: > > From: Patrice Chotard > > Fix the following DT dtc warnings for stm32f429 and > stm32f469 boards: > > Warning (node_name_chars_strict): /soc/pin-controller/usbotg_fs@0: Character '_' not recommended in node name > Warning (node_name_chars_strict): /soc/pin-controller/usbotg_fs@1: Character '_' not recommended in node name > Warning (node_name_chars_strict): /soc/pin-controller/usbotg_hs@0: Character '_' not recommended in node name > Warning (node_name_chars_strict): /soc/pin-controller/sdio_pins@0: Character '_' not recommended in node name > Warning (node_name_chars_strict): /soc/pin-controller/sdio_pins_od@0: Character '_' not recommended in node name > Warning (node_name_chars_strict): /gpio_keys: Character '_' not recommended in node name > Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name > Warning (unit_address_vs_reg): /soc/pin-controller: node has a reg or ranges property, but no unit name > Warning (unit_address_vs_reg): /soc/pin-controller/usart1@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/usart3@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/usbotg_fs@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/usbotg_fs@1: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/usbotg_hs@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/mii@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/adc@200: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/pwm@1: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/pwm@3: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/i2c1@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/ltdc@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/dcmi@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/sdio_pins@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /soc/pin-controller/sdio_pins_od@0: node has a unit name, but no reg property > Warning (unit_address_vs_reg): /gpio_keys/button@0: node has a unit name, but no reg property > Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property > > Signed-off-by: Patrice Chotard > --- > Change since v1: > - update nodes name as following: @0 to -0 > > > arch/arm/boot/dts/stm32429i-eval.dts | 11 +++-- > arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 30 ++++++------- > arch/arm/boot/dts/stm32f429-disco.dts | 7 ++- > arch/arm/boot/dts/stm32f429-pinctrl.dtsi | 74 +++++++++++++++---------------- > arch/arm/boot/dts/stm32f429.dtsi | 8 ++-- > arch/arm/boot/dts/stm32f469-disco.dts | 11 +++-- > arch/arm/boot/dts/stm32f469-pinctrl.dtsi | 76 +++++++++++++++----------------- > 7 files changed, 102 insertions(+), 115 deletions(-) > > diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts > index 7eb786a2d624..116232b589e4 100644 > --- a/arch/arm/boot/dts/stm32429i-eval.dts > +++ b/arch/arm/boot/dts/stm32429i-eval.dts > @@ -60,7 +60,7 @@ > stdout-path = "serial0:115200n8"; > }; > > - memory { > + memory@0 { > reg = <0x00000000 0x2000000>; > }; > > @@ -111,17 +111,16 @@ > }; > }; > > - gpio_keys { > + gpio-keys { > compatible = "gpio-keys"; > - #address-cells = <1>; > #size-cells = <0>; Think you forgot this line. > autorepeat; > - button@0 { > + button-0 { > label = "Wake up"; > linux,code = ; > gpios = <&gpioa 0 0>; > }; > - button@1 { > + button-1 { > label = "Tamper"; > linux,code = ; > gpios = <&gpioc 13 0>; > @@ -145,7 +144,7 @@ > }; > }; > > - mmc_vcard: mmc_vcard { > + mmc_vcard: mmc-vcard { > compatible = "regulator-fixed"; > regulator-name = "mmc_vcard"; > regulator-min-microvolt = <3300000>; > diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinctrl.dtsi > index 35202896c093..244c7ab8c76d 100644 > --- a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi > +++ b/arch/arm/boot/dts/stm32f4-pinctrl.dtsi > @@ -45,7 +45,7 @@ > > / { > soc { > - pinctrl: pin-controller { > + pinctrl: pin-controller@40020000 { pinctrl is the documented node name, not pin-controller. > #address-cells = <1>; > #size-cells = <1>; > ranges = <0 0x40020000 0x3000>; > @@ -163,7 +163,7 @@ > st,bank-name = "GPIOK"; > }; > > - usart1_pins_a: usart1@0 { > + usart1_pins_a: usart1-0 { What's wrong with just "usart1"? I think I would like to see "-pins" appended to the node names. > pins1 { > pinmux = ; /* USART1_TX */ > bias-disable; > @@ -176,7 +176,7 @@ > }; > }; > > - usart3_pins_a: usart3@0 { > + usart3_pins_a: usart3-0 { > pins1 { > pinmux = ; /* USART3_TX */ > bias-disable; > @@ -189,7 +189,7 @@ > }; > }; > > - usbotg_fs_pins_a: usbotg_fs@0 { > + usbotg_fs_pins_a: usbotg-fs-0 { > pins { > pinmux = , /* OTG_FS_ID */ > , /* OTG_FS_DM */ > @@ -200,7 +200,7 @@ > }; > }; > > - usbotg_fs_pins_b: usbotg_fs@1 { > + usbotg_fs_pins_b: usbotg-fs-1 { > pins { > pinmux = , /* OTG_HS_ID */ > , /* OTG_HS_DM */ > @@ -211,7 +211,7 @@ > }; > }; > > - usbotg_hs_pins_a: usbotg_hs@0 { > + usbotg_hs_pins_a: usbotg-hs-0 { > pins { > pinmux = , /* OTG_HS_ULPI_NXT*/ > , /* OTG_HS_ULPI_DIR */ > @@ -231,7 +231,7 @@ > }; > }; > > - ethernet_mii: mii@0 { > + ethernet_mii: mii-0 { > pins { > pinmux = , /* ETH_MII_TXD0_ETH_RMII_TXD0 */ > , /* ETH_MII_TXD1_ETH_RMII_TXD1 */ > @@ -251,13 +251,13 @@ > }; > }; > > - adc3_in8_pin: adc@200 { > + adc3_in8_pin: adc-0 { > pins { > pinmux = ; > }; > }; > > - pwm1_pins: pwm@1 { > + pwm1_pins: pwm-1 { You have a mixture of the number suffix being a pin mode # and block instance #. pwm1 or pwm1-pins? Similar comments on the rest. Rob