Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2080346pxb; Thu, 28 Oct 2021 15:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhj/u9nRdYAEC3wnb0dTruQGardSMl6blx/QzTfFhYxvBWfiF49Mi+Xjt87U21seNit8Ar X-Received: by 2002:a63:b448:: with SMTP id n8mr5390537pgu.31.1635461664421; Thu, 28 Oct 2021 15:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635461664; cv=none; d=google.com; s=arc-20160816; b=EpMGcWzzD6i1LG1zxlJeYZ6B6Fluot/qFgV7PHNo6GvXfxzvAfoBAGj9tO0y6fEVi0 E14gfk2ZiojDedR9zagVb1imQxyQS8G0hmusEyK+SJ5nXonkuq0AzB7ANC0Ak7S9R37e swyhzOH9p0Cvqfi2WKJ99WldV/ArWhQBVV0GsfITjqDfWLf7vNHTnUl1vumTRrg27Ovz kWRuPnluAqukyXBYsfhWpIBy4gXZ+8ejjuT1ATPZhoQBRd9vgPrv05KxnMUL7vfLn8FI KRTrF1FAbSGMUZxM9Fn5x0Ih5FVWrp0JPB8fQBoxibW28HqGtQCcdyQ6X3SM68mNqTIA KaFw== 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=uc2Km6o7F/1IiYiUqD9pq3Uh8R2x/7AtlU2jpfGbFzM=; b=ODf6aX42xxtA6GwLKXutjquY0doicgYEZL0xSJwE9DNc57B18krQQYqRAzbIK7Morj 2MibnQEt50QZrTktzY84LRdIcjUdjk+XVqYXS9TQuMmqajvGs2AxEsy+nkf8Uci6VNT3 3Ac/Nu+oti9bDSPmDT6SA9FXUYXj/Whd+eg2EGae4VBT2REtbO6JsGg2i/+Sv/O+BMtX b+axoVl/bo7w7eEjkiQ+czHgiAQLa2TFrjyHlXy6npGQEPW42SnrwDcYQq5/Izy/RpnQ gZVn5tcz8Y/+anuKuI0XdMpXYShKc0r/lzLplNusKD546B8ekxpcQ1Bwu3GhdzPleO4F l/Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mZKOo4Bg; 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 i14si5559700pgv.125.2021.10.28.15.54.11; Thu, 28 Oct 2021 15:54:24 -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=mZKOo4Bg; 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 S231448AbhJ1Wzk (ORCPT + 99 others); Thu, 28 Oct 2021 18:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbhJ1Wzj (ORCPT ); Thu, 28 Oct 2021 18:55:39 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 753DAC061745 for ; Thu, 28 Oct 2021 15:53:12 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id l7so8648063iln.8 for ; Thu, 28 Oct 2021 15:53:12 -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=uc2Km6o7F/1IiYiUqD9pq3Uh8R2x/7AtlU2jpfGbFzM=; b=mZKOo4BgTVkimqsp+8kAPxj3GzzNr8vtABHndXDrHO5yxVo7aD2+Wd0DfW0P9OWrbx l7aNQ6p1LDkPGKqrHSAsPDTeAmSjONC6oBE8Qt09YYSS9+Tnk1VDytG5dmuXw2Ch/pcB 3yfg1XDaYOMkGZrtxXwsxHe/NTSHRFynIo4Ys= 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=uc2Km6o7F/1IiYiUqD9pq3Uh8R2x/7AtlU2jpfGbFzM=; b=YRsHr0xHktIh1FLeGrjaRmSja2c1MfPM2c1LKJgNTSWL+brrNPVJt68TQ2gP8k9NnY k82jav5T+rBGZ5NmA/h9utQ5JoC8XBv9dNDuYAox4yprNPJDfx0feGDH/g8nXHdqdl4u cuv2IN6IWkAidFrEScSjgXMkLCp6OsAY6as37rNmenuo2UYmyQarhbeZXSFp/JEoLW+i wrz+mkdy3t2K7Enne565Xgfl/IVT0kNQoeb7CapDPa+L6uTmUQd5p6V1j8MEDJlxOsFF q/cFIjDVfbsOAl5yCUAl/CR/xn9DxF/xyhBxg1ks/eR/sJLW3FDmWnlp3/CWdwFEOQfy B/ZQ== X-Gm-Message-State: AOAM531DByMbFFVtkfLA/OZiXdge0z8+qqTktwk9/HKXXlfBBiNLbW2p X6RNtEc7zdL4Xs4TCUbjPEUul6SePNrqdA== X-Received: by 2002:a05:6e02:15c9:: with SMTP id q9mr5156112ilu.298.1635461591280; Thu, 28 Oct 2021 15:53:11 -0700 (PDT) Received: from mail-il1-f182.google.com (mail-il1-f182.google.com. [209.85.166.182]) by smtp.gmail.com with ESMTPSA id t5sm2162111ilp.8.2021.10.28.15.53.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 15:53:10 -0700 (PDT) Received: by mail-il1-f182.google.com with SMTP id x9so1027700ilu.6 for ; Thu, 28 Oct 2021 15:53:10 -0700 (PDT) X-Received: by 2002:a05:6e02:2169:: with SMTP id s9mr5263266ilv.27.1635461590288; Thu, 28 Oct 2021 15:53:10 -0700 (PDT) MIME-Version: 1.0 References: <20211028151022.1.Ie56f55924f5c7706fe3194e710bbef6fdb8b5bc6@changeid> In-Reply-To: <20211028151022.1.Ie56f55924f5c7706fe3194e710bbef6fdb8b5bc6@changeid> From: Doug Anderson Date: Thu, 28 Oct 2021 15:52:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] arm64: dts: sc7180: Support Lazor/Limozeen rev9 To: Philip Chen 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: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. > 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" 2. rev5-sku5 should sort to the start of the list, not to the end. > --- 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? > 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. > 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? > 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? > 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? > 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