Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp8760920ioo; Sat, 4 Jun 2022 17:51:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysWHZzS4YRGPwI/HmQj3KpxC52ocrcysi/azIavU32i+2VoRFo7tBWJSTDPhgxDbnsU9OR X-Received: by 2002:a17:90b:4f91:b0:1cd:3a73:3a5d with SMTP id qe17-20020a17090b4f9100b001cd3a733a5dmr18386809pjb.98.1654390313911; Sat, 04 Jun 2022 17:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654390313; cv=none; d=google.com; s=arc-20160816; b=XuzLM4X6/W8kvZ+A2Pel5XDZIqsS/aWphA+8Np7sNy1CFFya12Vq86GOF9+XvI71QQ 4RuG3ksdS8B4C2/9mwbOy0jvq7VtpR6lzMJZK3CLQWgQPTf0u0PQGSYxqAsXmCC6gwzt N7SKlzWed2shlBR2zy5jTT78U37OTJ4as2ubRHKDzTT4YB/o68RpYVFxk2J4emFw6Xgg l+kjd6zplYWUvkUHD1ghdWWqb8ZOLKjiW1iIJY1O0Xp1460LRZWbTRDwBceQsEOuUa/X Y87U5TmHED+JLtEC5GJwDpEktRZcX9xgUT5vFXYJP5xk5hIHA17hob5Vi1756hjLvNLS AAAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=A+CJHPksJEyQ/br0kNUyJ2paAkEWbd02hKrM4zpgQyQ=; b=GEHGNOY9c43k9cwsJvTbjdJwQctMRSD20JYOHKV4zt11czVXyAFNkjlJMOfL86XE26 J6ttcc3ZdHWWYJaOGtV4gv+b4bt/34SmRcKrQxw+xxnB7JdCowx2eWpVjoFGoLIYPa5Q MtknB5j6Sfntjwvoe1GARhUqBAMDLTk2ChHNqClG6S/ThKnao0TI2eRerXmxbh7K6a3g bfKgwcpiFZNbiK9KQY8EEgeWKTboiuasPE/kWr/BrJyYKp8m+ptHBa/H5MUgPHB4e2pZ N9MlNmHZliaZ7skNLq0gxs4QO+ek+ehm3wqbWL+qM2ouUXiW9VWARZ77vKRRDoYUN+Ys pH0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DftemrRp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a63d70d000000b003f27cfcc9dfsi890875pgg.828.2022.06.04.17.51.31; Sat, 04 Jun 2022 17:51:53 -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=@chromium.org header.s=google header.b=DftemrRp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238379AbiFBTG0 (ORCPT + 99 others); Thu, 2 Jun 2022 15:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238366AbiFBTGZ (ORCPT ); Thu, 2 Jun 2022 15:06:25 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E02BFB for ; Thu, 2 Jun 2022 12:06:24 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id w21so5553104pfc.0 for ; Thu, 02 Jun 2022 12:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A+CJHPksJEyQ/br0kNUyJ2paAkEWbd02hKrM4zpgQyQ=; b=DftemrRpxgHU1PB1Zl247GpilafWiRfmuWeotJzMK1VZeLBmDqw1XVVJPA53kteARU XGS/yfyDrMHQslfTX7pA21vfF21sHFG2IfDmoRjE+eQqmxDRtPtj/UZEd+qxT++nSu4t 82hhWgZnRfGVqVMT6G/+rQViZi921qzEPdObU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A+CJHPksJEyQ/br0kNUyJ2paAkEWbd02hKrM4zpgQyQ=; b=oOcjHSAdjY/IsFNwakFmH2lQ3Jmtx+2Yu0Wk4afKBPq6k8stv0oCVcHO+/1O+o/Pn5 Bg4f8WmvxYpSAM49yoSkjAIAPkUBsLEyqXCrFZcGTkXqOmFG7ouHMEkA0eOX3eTbOtki Bk7QXZDxonkTaEcI6qKThWdo4HdwqJXp3npdqWvuTJBlxKGy4kMGc9h2ZiELsFSW70wl UGZBM/MCw+nIoSfoIiEPk31VjdSEahR6NL9yLPukoqVbw1bPSmxTj3Z3knsuTGd/PCTy 8ACIBSr+zFay4iyItTgP/LtROSZJwb6S+EzKDNZ4D64ufHSse1XGuy+pepcNOSN4dRk4 r02Q== X-Gm-Message-State: AOAM530T34wxZV1oJGS9arbFHR+JOODh+Ej/gL0gLhculcL/IW78A7Ly iodnCTQZOdrzb8Qz1rikO/LjlA== X-Received: by 2002:a63:d446:0:b0:3fc:1370:798a with SMTP id i6-20020a63d446000000b003fc1370798amr5610931pgj.190.1654196783584; Thu, 02 Jun 2022 12:06:23 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:6885:8b62:3875:9d55]) by smtp.gmail.com with ESMTPSA id d20-20020a056a00199400b0051878e8cc13sm4197895pfl.116.2022.06.02.12.06.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 12:06:23 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, Douglas Anderson , "Joseph S. Barrera III" , Matthias Kaehlcke Subject: [PATCH v2] arm64: dts: qcom: Remove duplicate sc7180-trogdor include on lazor/homestar Date: Thu, 2 Jun 2022 12:06:21 -0700 Message-Id: <20220602190621.1646679-1-swboyd@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 The sc7180-trogdor-{lazor,homestar}-*.dtsi files all include sc7180-trogdor.dtsi and sc7180-trogdor-lazor.dtsi or sc7180-trogdor-homestar.dtsi, so including it here in the sc7180-trogdor-{lazor,homestar}.dtsi file means we have a duplicate include after commit 19794489fa24 ("arm64: dts: qcom: Only include sc7180.dtsi in sc7180-trogdor.dtsi"). We include the sc7180-trogdor.dtsi file in a board like sc7180-trogdor-lazor-r1.dts so that we can include the display bridge snippet (e.g. sc7180-trogdor-ti-sn65dsi86.dtsi) instead of making ever increasing variants like sc7180-trogdor-lazor-ti-sn65dsi86.dtsi. Unfortunately, having the double include like this means the display bridge's i2c bus is left disabled instead of enabled by the bridge snippet. Any boards that use the i2c bus for the display bridge will have the bus disabled when we include sc7180-trogdor.dtsi the second time, which picks up the i2c status="disabled" line from sc7180.dtsi. This leads to the display not turning on and black screens at boot on lazor and homestar devices. Fix this by dropping the include and making a note that the sc7180-trogdor-{lazor,homestar}.dtsi file must be included after sc7180-trogdor.dtsi Reported-by: Douglas Anderson Cc: "Joseph S. Barrera III" Cc: Matthias Kaehlcke Fixes: 19794489fa24 ("arm64: dts: qcom: Only include sc7180.dtsi in sc7180-trogdor.dtsi") Signed-off-by: Stephen Boyd --- It would be great to get this into -rc1 if possible to fix broken display. Changes from v1 (https://lore.kernel.org/r/20220520231355.1559104-1-swboyd@chromium.org): * Also do the same on homestar I found that my script to check differences wasn't printing any differences because of a typo, so I thought everything was fine when it wasn't! Now I've checked and for boards using parade bridge chips quite a few phandles are renumbered but they're the same logically as before whereas as boards using the ti bridge chip only have a few lines reordered. arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi | 2 +- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi index 9b3e3d13c165..d1e2df5164ea 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi @@ -5,7 +5,7 @@ * Copyright 2021 Google LLC. */ -#include "sc7180-trogdor.dtsi" +/* This file must be included after sc7180-trogdor.dtsi */ / { /* BOARD-SPECIFIC TOP LEVEL NODES */ diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi index fe2369c29aad..88f6a7d4d020 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi @@ -5,7 +5,7 @@ * Copyright 2020 Google LLC. */ -#include "sc7180-trogdor.dtsi" +/* This file must be included after sc7180-trogdor.dtsi */ &ap_sar_sensor { semtech,cs0-ground; base-commit: 19794489fa2474a55c00848e00ca3d15ea01d36c -- https://chromeos.dev