Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp39805pxb; Mon, 11 Apr 2022 18:11:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxMDjcEQOkIZLWnYFaySoFDNUzl2zyag8bQN2szPlY75tPvngvDdE/gCoOllfwVPBpgZzv X-Received: by 2002:a17:902:8ec8:b0:156:847b:a8f8 with SMTP id x8-20020a1709028ec800b00156847ba8f8mr35775616plo.121.1649725901289; Mon, 11 Apr 2022 18:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649725901; cv=none; d=google.com; s=arc-20160816; b=k6OLJXicRa0yZ6d6XCpZIBWHFkixBTVQXie86Lj9yo/PJPthAhxweKauZKvWs5vES+ IaDuudMCyGdzp/KC99QOzCtfgFQozCQoU1b1RErY1JTyIf0UfJLP5Wmn3ko9MItup7kf K0TjwssncIv0obCS5gQHJAXTcjk9x9kmwJ3dTvO68h+UyHAce9D1LhSk9fERaC+EcIG6 1M8uOxIZsyai0CAWEQghl+PXQHfHdBbVagdpiQJ+2JqmI2ctSKE0/atIDL+bQCGkvcOM Jtsn+77GbBmYBgQj8l9zh46W3XE2sDnLEQ0q1xX0tFPhRefJnH9naTrtjmcztL4ElYZG MNPA== 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=U2m6sZvhn5jXhSxSuuwgVSE4PMt55EOgxxP4khF/1Ec=; b=vrvG/+m+lVGblm3mo4jkdNJ7cI3p6+rewAp3roZaea5hB6Lvtr9pBV51v2xs5NAm85 aCIFV28Y5WWbJy2bctFe63VV0E1UjaOPrd4llWuFbu8kUVBox9U1TefrneumG8obKrnh H26Olh0myXWrOY9SxoLSuIf2A2+IXN/GyU3947rXzZjih2L3CaBFZzTG2iMqj9BjI46L ZirTYKp8iENmROrG06APJpHBYoA2wsyqF+xLMykVbCGq3lMkjH9iBzmQlyagrpsktqxJ EbvDjrw2WMZp1lqiXxBlthgCcqrzJRwxDNNtA4VV+RY+e3GvBmiF4Lz9huj88CjMHSFA g4aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20210112.gappssmtp.com header.s=20210112 header.b=rqYiT3mO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a656cc5000000b003824910a3e4si1254589pgw.627.2022.04.11.18.11.25; Mon, 11 Apr 2022 18:11:41 -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=@gateworks-com.20210112.gappssmtp.com header.s=20210112 header.b=rqYiT3mO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237818AbiDHPyt (ORCPT + 99 others); Fri, 8 Apr 2022 11:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbiDHPys (ORCPT ); Fri, 8 Apr 2022 11:54:48 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F04E224975 for ; Fri, 8 Apr 2022 08:52:44 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 66so8091261pga.12 for ; Fri, 08 Apr 2022 08:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U2m6sZvhn5jXhSxSuuwgVSE4PMt55EOgxxP4khF/1Ec=; b=rqYiT3mO7OAW/9pQb4Bv0jmpQfS3eQThb0XDj5b3ab7mzXEjdprjcShcxuFmmXYxPw JJdr4ZfdWgGPOYTo2KE8ojdNMognZ5Bx7rp+PFZ2PfJpp0HkoKyvF90wCoZ4HN/eP7iO nE1jkN09Bd203oHQTIed9RNZ39dBBGBvh8DY/oEV9y2K2nAXLtT7eWaUtXDoF2hxvzwP j7ExPvqldNrnhmOYGu8Gf05hnfDKnqgyOvGAoaDgD6tUhDMUCFRe2DnOXIguQYGAtHIo urdkVcXhNch9/79pJgcEQF1zCr2mZLdlhWzi03SrrAklbRF6H/5d4cMhsumVv3mF81Ih pwiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U2m6sZvhn5jXhSxSuuwgVSE4PMt55EOgxxP4khF/1Ec=; b=MgG8SXctu+WgOzGNEizOUUB5pcFKvYqas6ESmpL1GFUW5hEfZ2i40OZ0bB3H6nIg+e o2kSF375GCxIXlE+ShJeqcUIBgQbmnfnr6VmKepT0Cm9p3Nmh+HdZ4HxbIuF//Xd8dba hzrmm+b4E06mGZ+j8iDiR1En1Ir573N6/Bnn5Ja7ow9xUOp2xq/0sbu+O+fqYDnYCue5 0H8SDGhDva+dbV/RGTKj1cNBJuKGMQe8eJ5areuYKC8upaNllSE+je5OM8w4ByaGMnKW cYvqzju9d0EoTsVSBAt3iKU9bcFQ43RXSwAF7+QNQopTPN03kigKZqgDtBttJHsuMfWM 1VLg== X-Gm-Message-State: AOAM533y8gH7elv110mIStvdL48MxsqHBAo0sJenqZSNslV8VwW3F2Ie uhAe9MbtTs/W7Tdtz/kn0s9dJMWmgz7lW2epnY/mbPTvxR1OiA== X-Received: by 2002:a05:6a00:1307:b0:4b0:b1c:6fd9 with SMTP id j7-20020a056a00130700b004b00b1c6fd9mr20103097pfu.27.1649433164360; Fri, 08 Apr 2022 08:52:44 -0700 (PDT) MIME-Version: 1.0 References: <20220407210411.8167-1-tharvey@gateworks.com> <20220407210411.8167-2-tharvey@gateworks.com> In-Reply-To: From: Tim Harvey Date: Fri, 8 Apr 2022 08:52:32 -0700 Message-ID: Subject: Re: [PATCH 2/2] arm64: dts: imx: Add i.MX8M Plus Gateworks gw7400 dts support To: Krzysztof Kozlowski Cc: Device Tree Mailing List , open list , Linux ARM Mailing List , Shawn Guo , Rob Herring , Fabio Estevam , NXP Linux Team , Krzysztof Kozlowski , Sascha Hauer , Pengutronix Kernel Team Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Fri, Apr 8, 2022 at 12:13 AM Krzysztof Kozlowski wrote: > > On 07/04/2022 23:04, Tim Harvey wrote: > > The Gateworks GW7400 is an ARM based single board computer (SBC) > > featuring: > > - i.MX8M Plus SoC > > - LPDDR4 DRAM > > - eMMC FLASH > > Thank you for your patch. There is something to discuss/improve. > Krzysztof, Thanks for the review! > (...) > > > + > > +#include > > +#include > > +#include > > + > > +#include "imx8mp.dtsi" > > + > > +/ { > > + model = "Gateworks Venice GW74xx i.MX8MP board"; > > + compatible = "gw,imx8mp-gw74xx", "fsl,imx8mp"; > > Deprecated vendor prefix. thanks - I wasn't aware 'gw' got deprecated. I will update to 'gateworks'. I'm in the habit of using 'make dtbs W=1' to check for errors. Is there something better I should be using that would catch this? > > > + > > + aliases { > > + ethernet0 = &eqos; > > + ethernet1 = &fec; > > + ethernet2 = &lan1; > > + ethernet3 = &lan2; > > + ethernet4 = &lan3; > > + ethernet5 = &lan4; > > + ethernet6 = &lan5; > > + }; > > + > > + chosen { > > + stdout-path = &uart2; > > + }; > > + > > + memory@40000000 { > > + device_type = "memory"; > > + reg = <0x0 0x40000000 0 0x80000000>; > > + }; > > + > > + gpio-keys { > > + compatible = "gpio-keys"; > > + > > + user-pb { > > Generic node names please, so "key-0" or "user-pb-key" (although adding > specific parts is really not needed, because you have the label). ok > > > + label = "user_pb"; > > + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; > > + linux,code = ; > > + }; > > + > > + user-pb1x { > > + label = "user_pb1x"; > > + linux,code = ; > > + interrupt-parent = <&gsc>; > > + interrupts = <0>; > > + }; > > + > > + key-erased { > > + label = "key_erased"; > > + linux,code = ; > > + interrupt-parent = <&gsc>; > > + interrupts = <1>; > > + }; > > + > > + eeprom-wp { > > + label = "eeprom_wp"; > > + linux,code = ; > > + interrupt-parent = <&gsc>; > > + interrupts = <2>; > > + }; > > + > > + tamper { > > + label = "tamper"; > > + linux,code = ; > > + interrupt-parent = <&gsc>; > > + interrupts = <5>; > > + }; > > + > > + switch-hold { > > + label = "switch_hold"; > > + linux,code = ; > > + interrupt-parent = <&gsc>; > > + interrupts = <7>; > > + }; > > + }; > > + > > + led-controller { > > + compatible = "gpio-leds"; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_gpio_leds>; > > + > > + led-0 { > > + function = LED_FUNCTION_STATUS; > > LED_FUNCTION_HEARTBEAT yes, thanks for catching this > > > + color = ; > > + gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>; > > + default-state = "on"; > > + linux,default-trigger = "heartbeat"; > > + }; > > + > > + led-1 { > > + function = LED_FUNCTION_STATUS; > > + color = ; > > + gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>; > > + default-state = "off"; > > + }; > > + }; > > + > > + pps { > > + compatible = "pps-gpio"; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_pps>; > > + gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; > > + status = "okay"; > > No need for status. ok. What is the best way to know if a binding uses status or not? Documentation/devicetree/bindings/net/fsl,fec.yaml for example does not mention it uses status, yet it does. Best Regards, Tim