Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2873652lqz; Wed, 3 Apr 2024 10:56:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX4fTp5IMX9NfFI6RiA0KssXFbMP+pXyuCqzFrCJeAdzssDhEFt6wjMtQuID1QbjxtRtyblAfTUBL7YJOCrcqEwXvYHVqYguuQoVQXFfg== X-Google-Smtp-Source: AGHT+IFtL+wDLtE1a0Sc5zbQLm4wTXdYUySdQfS+WVJjhWi6o0AGt4q8MS2Hzy5XQdtRdJLbmB+2 X-Received: by 2002:a05:6870:164e:b0:222:570a:72c7 with SMTP id c14-20020a056870164e00b00222570a72c7mr24550oae.45.1712166997547; Wed, 03 Apr 2024 10:56:37 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y8-20020a656c08000000b005d66232593dsi14168700pgu.868.2024.04.03.10.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 10:56:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RYiUckUz; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-130385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0A2B028D7CF for ; Wed, 3 Apr 2024 17:53:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CE57154450; Wed, 3 Apr 2024 17:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RYiUckUz" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CAB7154429 for ; Wed, 3 Apr 2024 17:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165879; cv=none; b=Rb0OSvm7loVr2juOCsu1Tq3aXvNUiKvVaGZJptyzeN6iX8OcwterDGXWIBX8l+suggvKJw6mvbuqE7cNb459nzjghv/gYfE2YnH7CsgGNzmn99T/Y939ooXfReMzAClOpkllmz84Wn6yNMqgzbkIkKWXwRNX6Ymc9v6lw2mm/10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165879; c=relaxed/simple; bh=ra9udlrsP1LZeqsTZuzFHjBE/Jhohg/y6A5nl4xoNrs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=m9RU2eth2SrC8jM8NBha7y6c0mZOo145OwQ/uTVIZXZ9gLp4vLKOltgjE2tYQrxbclnAACkHmvx64Y/z//yWxJDN9Cfv/Btc0tKkh1xIBPBDT5X2egMmWBMQmkSjSlSClB6ixYWjGlslzC7yn9ZHMbkYSQ67DMSGr9YeMqpR0f8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RYiUckUz; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a45f257b81fso19023966b.0 for ; Wed, 03 Apr 2024 10:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712165876; x=1712770676; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=LxoI1opATw8Rb6R6z0Sf//pYUFJC5qhTSpe8fxqLo9Y=; b=RYiUckUztvA0gPGFWfcSlMXLad8JdXLrJ0TQLB+F2KOEYffRzOspq+KKTjo2XZXGi3 KZVsY9BOeEnumTI5bzSzGDOUutu1b40NmL+UIcA/F7cjCU+skLNFaShjEJKkEKgBhpPy y7ej+2AsiXk348T3ptiNOS5eQt09UWQqidq07CfSrMkro/qPeYkvdYiX03+yUE3S+7s+ J6cisHjTaiBFlPbTZdgBl9x8ZePkCDOh9+euIbyJgz75cDCDkDXZ00taTF+XN5W28oJd Wq72k6SwedbX81we/hDbF+Wz4rAU9X6Wehm5GwfCVhU/27pIfHPskU0I05No79hkGnLO 37+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712165876; x=1712770676; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LxoI1opATw8Rb6R6z0Sf//pYUFJC5qhTSpe8fxqLo9Y=; b=EvutTkZxSasXbx6NyIMBxfUUg6JRoCP+ffEIvGjzvXEmzB7ni7gtbGbioFlyuHoJNM Q96cKe0BKtKeXl6X3nMhTLetFoXSJO6B2+VUGqUR+64uz6Ucq+EWES3Z8LYlMxIWkOq+ R40Ll43ZsxN2v9edk+PmXNEdnbEzhKGrCDnZPBQ5rCbRpi8VuZY9FadSFBlg9H34YC6W sRA24UovOwzbskczb9aOnoHhA1WXFqx2GtOjnx4lJYP8Yc8fz7RFevLE9F3c9Ok/RKAh zO0sfye0mA5s8NDkCOzCZbVpKZHjR2oMYmVHLi32AxdM+wGgivHejJ4d5ZBQXq1UNaU9 zUCQ== X-Forwarded-Encrypted: i=1; AJvYcCW/lKY4SnVJe/OjZ6n72V78RdAaM+cjZCeqfvjP47rvNPMY5f/B9kiJ2Gx6bhcGKqrBhS1Ew+y+HWaJx/vWTq2dPuPUYsvQGd2tFVah X-Gm-Message-State: AOJu0YwBFfa1PURpITKzZ1qHAqEQ5GJ0hYirUaolw4aCjwZFQRJubnSA prdEOYMQHsu0333qjPSI2SqB2AyzE10wKin0J4khFbvuRB7okX3cD9NGJHSRwv0= X-Received: by 2002:a17:906:a57:b0:a4f:c80c:1b69 with SMTP id x23-20020a1709060a5700b00a4fc80c1b69mr17634ejf.8.1712165875715; Wed, 03 Apr 2024 10:37:55 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id ay12-20020a170906d28c00b00a46a9c38b16sm7954412ejb.138.2024.04.03.10.37.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 10:37:55 -0700 (PDT) Message-ID: <10f02618-f16c-47d4-a27f-074b1ecffaa1@linaro.org> Date: Wed, 3 Apr 2024 19:37:53 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] arm64: dts: qcom: Add basic support for LG G4 (H815) To: Alexander Reimelt , andersson@kernel.org, pvorel@suse.cz, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240403104415.30636-1-alexander.reimelt@posteo.de> <20240403104415.30636-3-alexander.reimelt@posteo.de> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwM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bblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240403104415.30636-3-alexander.reimelt@posteo.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03/04/2024 12:43, Alexander Reimelt wrote: > To make it easier for downstream projects and avoid duplication of work. > Makes the device bootable and enables all buttons, most regulators, hall sensor, eMMC and SD-Card. > > Signed-off-by: Alexander Reimelt > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts | 422 +++++++++++++++++++ > 2 files changed, 423 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts > Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 7d40ec5e7d21..5b7f8741006f 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -62,6 +62,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-kugo.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8956-sony-xperia-loire-suzu.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-10.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-bullhead-rev-101.dtb > +dtb-$(CONFIG_ARCH_QCOM) += msm8992-lg-h815.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8992-msft-lumia-octagon-talkman.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8992-xiaomi-libra.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8994-huawei-angler-rev-101.dtb > diff --git a/arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts b/arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts > new file mode 100644 > index 000000000000..b7fa48337e25 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/msm8992-lg-h815.dts > @@ -0,0 +1,422 @@ > +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +/* > + * MSM8992 LG G4 (h815) device tree. > + * > + * Copyright (c) 2024, Alexander Reimelt > + */ > + > +/dts-v1/; > + > +#include "msm8992.dtsi" > +#include "pm8994.dtsi" > +#include "pmi8994.dtsi" > +#include > + > +/* different mapping */ > +/delete-node/ &cont_splash_mem; > + > +/* disabled downstream */ > +/delete-node/ &dfps_data_mem; > + > +&CPU0 { > + enable-method = "spin-table"; > +}; > + > +&CPU1 { > + enable-method = "spin-table"; > +}; > + > +&CPU2 { > + enable-method = "spin-table"; > +}; > + > +&CPU3 { > + enable-method = "spin-table"; > +}; > + > +&CPU4 { > + enable-method = "spin-table"; > +}; > + > +&CPU5 { > + enable-method = "spin-table"; > +}; That's wrong order. Top level nodes goes after node deletions. Please observe DTS coding style. > + > +/ { > + model = "LG G4 (International)"; > + compatible = "lg,h815", "qcom,msm8992"; > + chassis-type = "handset"; > + > + qcom,msm-id = <251 0>; > + qcom,pmic-id = <0x10009 0x1000a 0x00 0x00>; > + qcom,board-id = <0xb64 0>; > + > + /* psci is broken */ > + /delete-node/ psci; > + > + chosen { > + bootargs = "earlycon=tty0 console=tty0"; Drop > + }; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + spin-table@6000000 { > + reg = <0 0x6000000 0 0x1000>; > + no-map; > + }; > + > + ramoops@ff00000 { > + compatible = "ramoops"; > + reg = <0x0 0xff00000 0x0 0x100000>; > + console-size = <0x20000>; > + pmsg-size = <0x20000>; > + record-size = <0x10000>; > + ecc-size = <0x10>; > + }; > + > + cont_splash_mem: fb@3400000 { > + compatible = "framebuffer"; > + reg = <0 0x3400000 0 0xc00000>; > + no-map; > + }; > + > + crash_fb_mem: crash_fb@4000000 { No undercores in node names. Please open DTS coding style and follow it. ... > + > +&pm8994_resin { > + status = "okay"; status is the last property. Best regards, Krzysztof