Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5172453pxu; Tue, 22 Dec 2020 10:01:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYknb090uXKuGiaGLi83q8zC/w8e6IPx/Mvx+rvu4WGZalVrEiyiwQNUXmKJlk4NjJqT6H X-Received: by 2002:a17:906:a015:: with SMTP id p21mr11845949ejy.49.1608660089930; Tue, 22 Dec 2020 10:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608660089; cv=none; d=google.com; s=arc-20160816; b=FukJmV1Xu/gk3wwwW2LlezSMjZ7Ornin0DFYpgHG6iN5x5XvSvok26u81UJgsomCih HJfgazDQqXiCPxcgHqzyphrVgyDC/mY7V198ORgl7TssG9f855+Ml5+aW+9E6Qds3d4b Ox0PyXdcVFwonCzR1lHnir5sow1jl++bLzHWX4Hdf7lJhG3gu+SyrosqQHcEPEbQOXzZ OIzEuHRvry3P1feM64NEdKlsEQWRqJzHRcHNS0pl6CikPV3kPb6jFkkI43tVcgM8L3dK D+IeRcNuDXNrfVUPAXkiZ4xE2kOPYcmhG9IImEloExPhB6QCZAYeIITFjvUERQgBfmQI UH1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PfXAXQ8kBE2vb/nUDtD4To0JchlXyJ1Qy383TUCdL5w=; b=aegJ8P9vBnHpMpbBH4qUmi2zqJCPrgOU9mEk0pAY9mzWrgHQdhxQFYE9R+9xIKjDne Q2uvWohrFL+jL54e+1H/VwC/D9k6S2cXZXP8vjpNonmIq34KVLww/3o/kPwhUiJnEnuF F5MR+lsP+G+E1hxNndEKT9ZY8D6yY4OcukE+v/ZYHo80FAo6h6KzJ9Aigq/0KcQyDMQQ qmIBPG0Jhsn7I5n5t4wImJglSm39KZhmkC1eQHw53JRgO7filQljN1JAVcapgjEyrUxA 4iWOwpbF0X23B7VEofzTlxsndp64V1hHkBY0vtP0YDzPO900M/8Cm0gBn0SoPwjU/Oyi U8Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="bUt7/Ewo"; 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 di24si12392053edb.234.2020.12.22.10.00.58; Tue, 22 Dec 2020 10:01:29 -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 header.i=@gmail.com header.s=20161025 header.b="bUt7/Ewo"; 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 S1727829AbgLVR7V (ORCPT + 99 others); Tue, 22 Dec 2020 12:59:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727094AbgLVR7U (ORCPT ); Tue, 22 Dec 2020 12:59:20 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33E7FC0613D3; Tue, 22 Dec 2020 09:58:40 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id m12so33994417lfo.7; Tue, 22 Dec 2020 09:58:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PfXAXQ8kBE2vb/nUDtD4To0JchlXyJ1Qy383TUCdL5w=; b=bUt7/Ewoudd8Ppjf+R80lF3XO9mPK8pM3OhJPkyh7wcro70W1s2ps19o+kAMZu9Bo5 IamxHUDH1WQg7+353HzRyVnc84N3pGo1MkoWpdqQq2S/gGSvvU+VBQDQ1ZWH6IS9yvJx uCPKZLZSOVX8lWdf3X4efSbHJb0LTFWLs69HHKjITTfrzqi/CSI38LH4wOt9kG8S9ldD oqfc84awKOYe35uJWz33WRhGOv7p/UHi4pqaho4F7vvfb899441quA9DJVWo+Zjt8uCT duCf3wDNI03Me+YoKe3sx4tBTiIH7N9py30uqYdRqCRgbknlP+0gaXWoUUgunOAx/lsp CRLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PfXAXQ8kBE2vb/nUDtD4To0JchlXyJ1Qy383TUCdL5w=; b=mGW4l+PVCnKf00cxvaYfXz9wZLi9G2HkDGuWBZnXhWw3PVeEKiWTm6lJ/blYYY12Ap sn4q5qMD5yibY4jTayRFWapiuKop7I+uoXKoPmmB/ER+P/mhh4dBp/N90Jt+BrJru4VG 2BWCNjitydHIDXLx567Ms/WxoZOi/Y1FWcRdmkLqDzUJMu1/kij9557MrBbIMX7CrY2y 6ayJ5WBx/YoEFc6KDM9QP+qAPQZujHImcizpiJoHTLshxqWQ7HGYpDVVceaZwjXI2RBK lOZLmMeF+6ArL8pQxH1S2U7mzUqPzGSh2GFfuPq4q1mji4v20RA0iduvdKc9V/8XOX4F xbPA== X-Gm-Message-State: AOAM532e/E159kwNofEmlyrSDptMYDLKtLlMaYmG+31X0SodvkYrO43U tgbc+JHgJlLNanwCYb/hfJhWq/7bxLGRolzydAlAcibmSjs= X-Received: by 2002:ac2:4431:: with SMTP id w17mr8772863lfl.223.1608659918710; Tue, 22 Dec 2020 09:58:38 -0800 (PST) MIME-Version: 1.0 References: <20201125161815.2361-1-lukma@denx.de> <20201125161815.2361-3-lukma@denx.de> In-Reply-To: <20201125161815.2361-3-lukma@denx.de> From: Fabio Estevam Date: Tue, 22 Dec 2020 14:58:27 -0300 Message-ID: Subject: Re: [PATCH 3/3] ARM: dts: imx28: Add DTS description of imx28 based XEA board To: Lukasz Majewski Cc: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, On Wed, Nov 25, 2020 at 1:19 PM Lukasz Majewski wrote: > diff --git a/arch/arm/boot/dts/imx28-lwe.dtsi b/arch/arm/boot/dts/imx28-lwe.dtsi > new file mode 100644 > index 000000000000..cb2eb4377d9c > --- /dev/null > +++ b/arch/arm/boot/dts/imx28-lwe.dtsi > @@ -0,0 +1,185 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2020 > + * Lukasz Majewski, DENX Software Engineering, lukma@denx.de > + */ > + > +/dts-v1/; > +#include "imx28.dtsi" > + > +/ { > + compatible = "fsl,imx28"; You can drop this one. > + > + aliases { > + spi2 = &ssp3; > + }; > + > + chosen { > + bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 ro rootwait console=ttyAMA0,115200 panic=1"; You could remove bootargs and let the bootloader pass it. We usually don't pass bootargs in the i.MX dts files. > + }; > + > + memory { memory@40000000 otherwise you will get dtc build warnings with W=1. > + reg = <0x40000000 0x08000000>; > + }; > + > + regulators { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <0>; No need for this 'regulators' container. > + > + reg_3v3: regulator@0 { reg_3v3: regulator-reg-3v3 { > + compatible = "regulator-fixed"; > + reg = <0>; Remove the reg = <0> Same applies to other regulators. > + reg_usb_5v: regulator@1 { > + compatible = "regulator-fixed"; > + reg = <1>; > + regulator-name = "usb_vbus"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + enable-active-high; Why passing 'enable-active-high' when this is not gpio controlled? > + }; > + > + reg_fec_3v3: regulator@2 { > + compatible = "regulator-fixed"; > + reg = <2>; > + regulator-name = "fec-phy"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + enable-active-high; Same here. > +&ssp3 { > + compatible = "fsl,imx28-spi"; > + pinctrl-names = "default"; > + pinctrl-0 = <&spi3_pins_a>; > + status = "okay"; > + > + flash0: s25fl256s0@0 { Node names should be generic flash@0 > + > +/dts-v1/; > +#include "imx28-lwe.dtsi" > + > +/ { > + model = "XEA"; compatible = "xea,imx20-lwe", "fsl,imx28"; You should add xea to the vendor prefix in a separate patch. You also need to add thie board to Documentation/devicetree/bindings/arm/fsl.yaml