Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2162559pxb; Thu, 28 Oct 2021 17:48:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyozeKhHC0uG0qR5jPdjqkP96lq0E7OGiZPy0xgF/kMLKengFJeceMgLRJhdrKgD/AtFom8 X-Received: by 2002:a17:90a:7e93:: with SMTP id j19mr16400672pjl.172.1635468533609; Thu, 28 Oct 2021 17:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635468533; cv=none; d=google.com; s=arc-20160816; b=SxttDISc6Mcu/q1TDvAHKJrlvCJnRidpKf6sy1gh/Qo3q2TXsDjYwUPLeMdwgqkacb oD87bodzVewqgY8OP/HzkqCQJDYeoCvZdeIludODQwRHVrLvAETNmRcZKdcY9UVslgDm RDeQmJJYAwCnP3jhXo6GehBFXS5PIA0P9iDa3CnNLN7ZsHmFuXiZGkOc9YyqTVLa2n5W 7UmHbm3BI6Jl2FJsSbMzS0NXVuC0WC7e3uXz0loGeH3w9JpUvdXI8X3T0cDG1Q7wrHwR lTGL/perQwZfdmEFD3/xTNNYFK8gwu0Rkkx9ZBYVYGSWfElrHliWfuoIi71H9YFhLB5C QoEA== 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=l6Z3hT+hoYUW7qrKxZESd0pukUxNUCHLDPZeenOW/D0=; b=PcpbOduips4tB3dHJdEWfxTXlbJQLqtfA5oKfFCWEYd8KDX6kzFeya9JGfjNPNCO6X iV2R0c3FpoiVS+Qoz2iEhkTVgE9L4zYTuQx5AhXxl05QSYdYOtvZyBXfPErew9Z5a3pH uvFSk+9V9+MaKnGuPw6hABolCI+L9h7KMdAfiG2qE8ofVV84lhiMdaWQGt0+K74v/BYi o2G/S09TvqoBO/rc/pZSFj7yFw5yTrx1VQ4r+11Mh3jKUnJRt1JM7OHQnkxAKfeq1q1P 0dhc5PkZbwQOytptOxnXacJ0q7+ULeSzEli2+xlUD4fl5EqzXQf9u3vQ7GfftYAQQMNI keKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=khFVs2e+; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si6239959pgv.458.2021.10.28.17.48.40; Thu, 28 Oct 2021 17:48:53 -0700 (PDT) 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=@chromium.org header.s=google header.b=khFVs2e+; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231347AbhJ2As5 (ORCPT + 99 others); Thu, 28 Oct 2021 20:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231423AbhJ2As4 (ORCPT ); Thu, 28 Oct 2021 20:48:56 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7348C061745 for ; Thu, 28 Oct 2021 17:46:27 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id q74so13975397ybq.11 for ; Thu, 28 Oct 2021 17:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l6Z3hT+hoYUW7qrKxZESd0pukUxNUCHLDPZeenOW/D0=; b=khFVs2e+ZwZHQITeBI3M2rwpL93M5POCAArAMwpxaIVBJEEOn7qjKFSTPvphPYZ7c7 OsPcTAY2POG+no9hjyixS2PRWzogYb2Z3wfFLctLSoUT8pyN5D6QvzFG1qpp7giH66dU 9B7T8l0Jt777BH7yXZF6fRVO0betB6QU/3kiE= 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=l6Z3hT+hoYUW7qrKxZESd0pukUxNUCHLDPZeenOW/D0=; b=vyhLnSx6JzyORrfnLOJCxZnZvqv9Xb70mg5zIKjWrZDWCfDF+2yJDpImaYOR213Iko 5i1F8NZMYXhF9+QfU09KLMCj+ISwg6V0cU/YYMhdgKQ1gulf4ll5SqSApE/T9tcR7xCb yTWvTuPt78z0MpQ6ijm59Sd4qB58p5/0wbdi2QZaYKdzSYlGz5w8KmkpQd5pGX0HLHhT csGzX3Bx9Hwa9QchVJvRWqCFe5y78g1gDD54a/Zbb7Zixl+Jm+ui4czmeAEAkRu213eR twhCtXf2bOxIdxD9IhDMkGvbN8glmj8+PB4P2a4yy8laKJOO/ONeyUs1uOg0vt5gqU6A b2Xg== X-Gm-Message-State: AOAM530mNQDyF1ukf0TylsVYpLqiyrQSvjh+6t/2Bgqtm+8/TcT7Rqtt mN4IQUUHwXhXtvffsjuFCSIDsLMwuehp3z7VhuU4Gg== X-Received: by 2002:a25:aa32:: with SMTP id s47mr7287894ybi.57.1635468387075; Thu, 28 Oct 2021 17:46:27 -0700 (PDT) MIME-Version: 1.0 References: <20211028151022.1.Ie56f55924f5c7706fe3194e710bbef6fdb8b5bc6@changeid> In-Reply-To: From: Philip Chen Date: Thu, 28 Oct 2021 17:46:16 -0700 Message-ID: Subject: Re: [PATCH 1/2] arm64: dts: sc7180: Support Lazor/Limozeen rev9 To: Doug Anderson Cc: LKML , Stephen Boyd , Andy Gross , Bjorn Andersson , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Oct 28, 2021 at 3:53 PM Doug Anderson wrote: > > Hi, > > On Thu, Oct 28, 2021 at 3:11 PM Philip Chen wrote: > > > > Support Lazor/Limozeen rev9 board where Parade ps8640 is added as the > > second source edp bridge. > > It probably wouldn't hurt to at least mention in the commit message > why the include of "sc7180.dtsi" was moved out of > "sc7180-trogdor-lazor.dtsi" so that people reviewing the change aren't > confused. Otherwise it just looks arbitrary. Sure, I updated the commit message in v2. > > > > Signed-off-by: Philip Chen > > ... > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r5.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r5.dts > > new file mode 100644 > > index 000000000000..a2a6e2515ee6 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r5.dts > > @@ -0,0 +1,31 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Google Lazor Limozeen board device tree source > > + * > > + * Copyright 2021 Google LLC. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sc7180.dtsi" > > +#include "sc7180-trogdor-ti-sn65dsi86.dtsi" > > +#include "sc7180-trogdor-lazor.dtsi" > > +#include "sc7180-trogdor-lte-sku.dtsi" > > + > > +/ { > > + model = "Google Lazor Limozeen without Touchscreen (rev5 - rev8)"; > > + /* No sku5 post-rev5 */ > > + compatible = "google,lazor-rev5-sku6", "google,lazor-rev6-sku6", > > + "google,lazor-rev7-sku6", "google,lazor-rev8-sku6", > > + "google,rev5-sku5", "qcom,sc7180"; > > Two issues. > > 1. "google,rev5-sku5" should probably be "google,lazor-rev5-sku5" Thanks for the catch. I fixed it in v2. > > 2. rev5-sku5 should sort to the start of the list, not to the end. Thanks. I fixed it in v2. > > > > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots.dts > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r9.dts > > @@ -2,16 +2,18 @@ > > /* > > * Google Lazor Limozeen board device tree source > > * > > - * Copyright 2020 Google LLC. > > + * Copyright 2021 Google LLC. > > */ > > > > /dts-v1/; > > > > +#include "sc7180.dtsi" > > +#include "sc7180-trogdor-parade-ps8640.dtsi" > > #include "sc7180-trogdor-lazor.dtsi" > > #include "sc7180-trogdor-lte-sku.dtsi" > > > > / { > > - model = "Google Lazor Limozeen without Touchscreen"; > > + model = "Google Lazor Limozeen without Touchscreen (rev9+)"; > > compatible = "google,lazor-sku6", "google,lazor-sku5", "qcom,sc7180"; > > Earlier you said "sku5" doesn't exist past -rev5. So it doesn't need > to be here, right? Correct. I removed "sku5" support here in v2. > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-r4.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-r4.dts > > new file mode 100644 > > index 000000000000..10f48f4b429a > > --- /dev/null > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-r4.dts > > @@ -0,0 +1,46 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Google Lazor Limozeen board device tree source > > + * > > + * Copyright 2021 Google LLC. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sc7180.dtsi" > > +#include "sc7180-trogdor-ti-sn65dsi86.dtsi" > > +#include "sc7180-trogdor-lazor.dtsi" > > +#include "sc7180-trogdor-lte-sku.dtsi" > > + > > +/ { > > + model = "Google Lazor Limozeen (rev4 - rev8)"; > > + compatible = "google,lazor-rev4-sku4", "google,lazor-rev5-sku4", > > + "google,lazor-rev6-sku4", "google,lazor-rev6-sku4", > > -rev6 is listed twice and -rev7 is missing. Thanks for the catch. I fixed it in v2. > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-kb.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-kb.dts > > new file mode 100644 > > index 000000000000..326ba9f88394 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-kb.dts > > @@ -0,0 +1,26 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Google Lazor board device tree source > > + * > > + * Copyright 2020 Google LLC. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sc7180.dtsi" > > +#include "sc7180-trogdor-parade-ps8640.dtsi" > > +#include "sc7180-trogdor-lazor.dtsi" > > +#include "sc7180-lite.dtsi" > > + > > +/ { > > + model = "Google Lazor (rev9+) with KB Backlight"; > > + compatible = "google,lazor-sku2", "qcom,sc7180"; > > +}; > > + > > +&keyboard_backlight { > > + status = "okay"; > > +}; > > + > > +&panel { > > + compatible = "boe,nv133fhm-n62"; > > +}; > > Why do you need the "panel" here? Oops, I forgot it's been added in the lazor dtsi file. I removed it in v2. > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts > > new file mode 100644 > > index 000000000000..a705c956f62b > > --- /dev/null > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts > > @@ -0,0 +1,34 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Google Lazor board device tree source > > + * > > + * Copyright 2021 Google LLC. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sc7180.dtsi" > > +#include "sc7180-trogdor-parade-ps8640.dtsi" > > +#include "sc7180-trogdor-lazor.dtsi" > > +#include "sc7180-trogdor-lte-sku.dtsi" > > + > > +/ { > > + model = "Google Lazor (rev9+) with LTE"; > > + compatible = "google,lazor-sku0", "qcom,sc7180"; > > +}; > > + > > +&ap_sar_sensor { > > + status = "okay"; > > +}; > > + > > +&ap_sar_sensor_i2c { > > + status = "okay"; > > +}; > > + > > +&keyboard_backlight { > > + status = "okay"; > > +}; > > + > > +&panel { > > + compatible = "boe,nv133fhm-n62"; > > +}; > > Why do you need the "panel" hre? Oops, I removed it in v2. > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9.dts > > new file mode 100644 > > index 000000000000..13ff9a851613 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9.dts > > @@ -0,0 +1,22 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Google Lazor board device tree source > > + * > > + * Copyright 2021 Google LLC. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sc7180.dtsi" > > +#include "sc7180-trogdor-parade-ps8640.dtsi" > > +#include "sc7180-trogdor-lazor.dtsi" > > +#include "sc7180-lite.dtsi" > > + > > +/ { > > + model = "Google Lazor (rev9+)"; > > + compatible = "google,lazor", "qcom,sc7180"; > > +}; > > + > > +&panel { > > + compatible = "boe,nv133fhm-n62"; > > +}; > > Why do you need the "panel" here? Oops, I removed it in v2. > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > index faf8b807d0ff..286d3594b6ae 100644 > > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > @@ -11,6 +11,7 @@ > > #include > > #include > > #include > > +#include > > I don't think you should be adding this to sc7180.dtsi. If you need it > in the bridge chip "fragments" you should add the includes to those. > > -Doug