Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1011050ybi; Fri, 14 Jun 2019 07:09:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwV7G4upHyswVfN8dNB0X4ZCjSperM5eYkpRqMkz3V8Wf/zw0+w15RPS56yM/S33bkWeqG7 X-Received: by 2002:a62:1a8e:: with SMTP id a136mr60544663pfa.22.1560521378870; Fri, 14 Jun 2019 07:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560521378; cv=none; d=google.com; s=arc-20160816; b=wLXblXCH+aWgUQlvszfxPp4UtN/4nPHnhGhs7BMxfv9xPlA0wRo8ZTfADmMpt4Dp7y Vu8uUSPLWM2pjWETbNKJxZyb8R4MExrsvjkyZgQjXYLjNWFQir6SIJH3gFdcd40zRJOS 9fQWFaeTdL9/60JK/FI+fulV60VUrhoEdcK5GEy/TxLPTioUxoAMiHNS/w47eN6J3+0r S1yOQZA4lz1HId6jwmk5odvBpiyS3FTvZgjqxkxvK5pTDmbXoyCYCjgo2TPJ+W6fBmtN +vAb9Pfc7lOoXXw36PKg01w2cw65g+/mksfZj/Z5Ogv9CSh8Vg/S74pGEPEdGtdYMSBU LXIA== 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; bh=GQTbMofHx6ihnY6hv/q/Pjtwumkc7ogl2iTrngkVtvc=; b=FjtxbKje8S8xy8KrsvCnKaLyYhJljouB+Uyx7UFJdocDmjdtmMnwP4iQ6r+8c9kwr5 EsPkeFKxwDE9h0k736D6v48d3VcvwINubZw70vWl/L+4MIQOUvfe7G4qlO6hwJWiX0IE nhTKS84TyzBwRttOJbUOKGiOqplnUkQx1yDOZMKRn1EhkZmZAaPuF3jLXNagxkOdKsv+ 6rT6/WsLJ7K3+o7ajRv8WPdJIqQNypieljyV1WAMoWUT9a6GtT+sBcKAFf/jT5xIP5aJ qZ/4WimFl5tj7X3yED6kyBaC6LKbBNMcS1MUMRE0spJl25Nc3JfTFP12ifvUTR7mBG8r TsvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="V0fqh/To"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23si2587031pgj.185.2019.06.14.07.09.21; Fri, 14 Jun 2019 07:09:38 -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=@gmail.com header.s=20161025 header.b="V0fqh/To"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728422AbfFNOJJ (ORCPT + 99 others); Fri, 14 Jun 2019 10:09:09 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:37311 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727382AbfFNOJJ (ORCPT ); Fri, 14 Jun 2019 10:09:09 -0400 Received: by mail-ed1-f66.google.com with SMTP id w13so3711520eds.4; Fri, 14 Jun 2019 07:09:07 -0700 (PDT) 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=GQTbMofHx6ihnY6hv/q/Pjtwumkc7ogl2iTrngkVtvc=; b=V0fqh/ToYT65uEuFt6uNfdklxYbXJW90bygOIQrCOe1G5s+fy3oUGD74h+NjAMMeB3 BBZHRgx1vzsnOGS/nstZAzpBV7gMG0ZqrG/36RAfHZAgQocOeBa+sTuLgU3VgU2uZDx/ Ffc98er/pmLyyxcYbLRUsx5q+p08rd6mpMEXDvxojsXq52XzYDiIBVtGRLUo3ITFouNL M176HRXmPGUyjFRBy8Od7R31GNWv1JpggyPfrQuUSA2puNj7aoLcdfFpOkJQ1unGJQKM ufptnveFLuUASMzZsWdjoRvGXL0xkEoz9+krC3mBJgiKGhYisySboo8jK/71mutI3Sd9 jK6Q== 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=GQTbMofHx6ihnY6hv/q/Pjtwumkc7ogl2iTrngkVtvc=; b=GXV9zdCp0xNYIXemUahFfhLV2jbDmg9afQAFzQe1GnWCMg+owRdkgTT3xj3foekTLO hReEpc4a7wcVtdPDyYsaeWoSqJvce8KlIVcvaK+Uv64iJ3w//5b83jNkA1SsSHLvU1ET qZjiXHhnywXO4xTgQw8rbpVBiRi5SP5Ko0Nt7ELmb1U0vvg1fJtUOu7JsOEW6nQC+yu2 X+kl3JCaZy0IuVi2YRxqp1RxhXBjyxRhsOh+kEgkvjaNukOGeoZe1dfoF3rg+lg/Uizf 0nn7LJlv0a7XmJchnhUlJp02Vdk4rykJBlXI8FY564ZYx09TCQp1k0ttz+WYPpObs+DV lUIg== X-Gm-Message-State: APjAAAXCRCBbY1zJoo00o1UjkGvSxV74oj/6XcL8OOT2DaaVnlvIJ4nd hhCR/GsQYbF8odAECSryHp/UNAJPXFCy/3TgHsI= X-Received: by 2002:a17:906:583:: with SMTP id 3mr14648315ejn.278.1560521346837; Fri, 14 Jun 2019 07:09:06 -0700 (PDT) MIME-Version: 1.0 References: <20190612212604.32089-1-jeffrey.l.hugo@gmail.com> <20190612212748.32246-1-jeffrey.l.hugo@gmail.com> In-Reply-To: From: Rob Clark Date: Fri, 14 Jun 2019 07:08:52 -0700 Message-ID: Subject: Re: [PATCH v6 3/5] arm64: dts: qcom: Add Lenovo Miix 630 To: Jeffrey Hugo Cc: Bjorn Andersson , agross@kernel.org, Benjamin Tissoires , Dmitry Torokhov , jikos@kernel.org, Hans de Goede , Lee Jones , xnox@ubuntu.com, Rob Herring , Mark Rutland , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm , Linux Kernel Mailing List 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 Fri, Jun 14, 2019 at 6:44 AM Rob Clark wrote: > > On Thu, Jun 13, 2019 at 10:17 AM Jeffrey Hugo wrote: > > > > This adds the initial DT for the Lenovo Miix 630 laptop. Supported > > functionality includes USB (host), microSD-card, keyboard, and trackpad. > > > > Signed-off-by: Jeffrey Hugo > > --- > > [snip] > > > diff --git a/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts > > new file mode 100644 > > index 000000000000..407c6a32911c > > --- /dev/null > > +++ b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts > > @@ -0,0 +1,30 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* Copyright (c) 2019, Jeffrey Hugo. All rights reserved. */ > > + > > +/dts-v1/; > > + > > +#include "msm8998-clamshell.dtsi" > > + > > +/ { > > + model = "Lenovo Miix 630"; > > + compatible = "lenovo,miix-630", "qcom,msm8998"; > > +}; > > > So, I'm not sure if there is some precedent for this (but maybe we > haven't really had this problem before).. but as I mentioned on > #arch64-laptops, I think we should put vendor/product/board-id strings > from SMBIOS table in the dts files. That could be used by grub to > find the correct dtb file to load in a generic way. (Ie, look for a > match of all three strings, and maybe fallback to a match on just > vendor+product??) > > At any rate, how the strings are used can be refined later. But I > think we should include the strings from the beginning for anything > that is booting via UEFI. It's perhaps more useful than the > compatible string. > perhaps something like: dmi-compatible = "LENOVO 81JL/LNVNB161216", "LENOVO 81JL"; ?? (well, those are the strings from my yoga c630, not sure what they are on the miix 630.. but you get the idea) BR, -R