Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp831424rda; Sun, 22 Oct 2023 11:46:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQUa8cyFAUn2KJlQWaqPKuCKLZoPm/pJ5HfZhD9v1IappBlFCXNzkZeod/Xh7FWdkSN/Qs X-Received: by 2002:a17:90b:4b87:b0:27d:5cca:9b69 with SMTP id lr7-20020a17090b4b8700b0027d5cca9b69mr4812368pjb.45.1698000395102; Sun, 22 Oct 2023 11:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698000395; cv=none; d=google.com; s=arc-20160816; b=bdaL4a9YoiJnCdoQyYymJSprA0npOq3tADfWt6KtFSx1OE6V3ypLPEAkQWczXKbz2t s+NgwpwWa4SinqLQikh61gZup5kKzzY2GxzbSePK9TSyxKuOWs+ZesYIasLa7/xJy0xh f+o6XAiDtw1puwB53EKGFzoB64fN3fs4MtJ10mR1AcW/3jwYlLUTAHyajnTxEEPSnUvM 9RIwLdUfQlk6KZ5HLxkdVwNzKasIrV8AOFo8t2XP6v5c9EFtjEI2rfN0AGzDhLeJi+60 HJHJowFDfV8m5dDlpbZd/SbDiuzcJ22p0ZRps1mkX33izOAM747elq7RRkN4Amd0Cld7 ldgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9jG3P+jRF5kVGk6CFsI11BtDJxKDzNxKy4q/HNvCw7w=; fh=0taTbRSU0pLPW5gWGZv9jJyxu6K+fEDnTNXH146vUNg=; b=QVYiRUtQrLnR2TlWfNXzov7XYFhoj4Ugrf5DvzxByh+oYhk1nTTEcPvxs0wqvdLUf3 g5oH5UMcgqXGjUAbkKgtdG5zFhN2UuFKK/END+e02sToXavhKGnWX8mxSr2qLOrTce7J OcpKRy5HYwEuQbA8MdRo8PVo+LcMuL+n67FRAn3yap73gIOjrCE+vnYQiHkaLBlaTOsu aeh/SsMwrkJafClQWj8xCfsR6Vnp0CdL9F1Fij4hAcLQWgMQZNAfnqvQU6rJgDnNA+YO RXEmCmHD3B95nBEtAGAhy+veAAW27c8cQdY7hEI9ZQuf9FHe5ELdTtBTd3kNK9FFg8fr F7UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q+P+Wc9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id qe3-20020a17090b4f8300b00278f81e54cdsi8359980pjb.19.2023.10.22.11.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 11:46:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q+P+Wc9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 64CFC8065992; Sun, 22 Oct 2023 11:46:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232375AbjJVSqR (ORCPT + 99 others); Sun, 22 Oct 2023 14:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjJVSqO (ORCPT ); Sun, 22 Oct 2023 14:46:14 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2DEF2 for ; Sun, 22 Oct 2023 11:46:10 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9be1ee3dc86so367826866b.1 for ; Sun, 22 Oct 2023 11:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698000369; x=1698605169; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9jG3P+jRF5kVGk6CFsI11BtDJxKDzNxKy4q/HNvCw7w=; b=Q+P+Wc9VRVBwp0pLDJJJufBV4jI1/8XXBE/NJdB3r1Ic5bL3hAJjhO7e7l3TC6KkvV e+alF4As6rctl+a52Sulh+447/IdDkf84I1U8LEGr8kpGLgL6Iy4mGZywmuGF+rGPMi5 a3+99snjcg0wUWkUeICz+6xsZnscY1XEA9ahQ+PWuULk7CYaOPpI/g7qsfqU1G0/LL1O ER6DXmK8WSY8DkJ+8CABi1/4TgQ7RDk7BtQNbX5uT8b4h8udc5ay02mD59Sm2gt0rOV9 NTEU11clCsqi22lUh2xgRic1YbD0hT9xAYFRITNmdrHG8UJ6ljeUhZSoG+V043NpLQkZ 5vxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698000369; x=1698605169; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9jG3P+jRF5kVGk6CFsI11BtDJxKDzNxKy4q/HNvCw7w=; b=isT1DHr6Tkj+Gf2cZXk3R5LBv6VtHt3QXAH+tuQcpl5kdeBGjbvoJ1hDleb39dHs4E PvVWhNEhBLIoCLjkKC+vgU0WyiSJwvDWeHBCpDCi3e+n7NHWNJCICQVvl/kcLKjKxa1/ T3+4pFA3kSQRpaKklX6MdhB7oVQzRMQNsgyYUHG5omyJpD1ER/bkbxRfLoPmgD5Qlkhz vyTj3f9SvGHSQxvweh0oNJEyFiC8jTH+iA3Q/yivtjjhC+uw5jDd2BPBN2CuwahBxAbP dThsaGmbhRiSdP6ITcZA/IbfCvimtM9AV6Cp1OglbpWPVwqWJB21ph1DzKXXHOZt5a1d I8JQ== X-Gm-Message-State: AOJu0YzvRCZL4Lg2cZIcH633lSnwfy82HjQfeoE7l1Eb/mm4INhGy2+i WjEZ7anc28aFhlRpjFv1UMX1Sw== X-Received: by 2002:a17:907:3188:b0:9c7:4d3e:1e50 with SMTP id xe8-20020a170907318800b009c74d3e1e50mr5411501ejb.76.1698000368952; Sun, 22 Oct 2023 11:46:08 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id f7-20020a1709062c4700b009c3828fec06sm5331727ejh.81.2023.10.22.11.46.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Oct 2023 11:46:08 -0700 (PDT) Message-ID: <3307fcb9-1697-4a9e-b4f6-c00c2b10ba89@linaro.org> Date: Sun, 22 Oct 2023 20:46:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 2/2] arm64: dts: qcom: sm8250-xiaomi-pipa: Add initial device tree Content-Language: en-US To: Luka Panio , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G . Piccoli" , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20231022173811.8229-1-lukapanio@gmail.com> <20231022173811.8229-2-lukapanio@gmail.com> 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+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4kyvO XeodvvYv49/ng473E8ZFhXfrre+c1olbr1A8pnz9vKVQs9JGVa6wwr/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Yn8aBohEgET41SpyQz7fMkcaZU+ok/ +HYjC/qfDxT7tjKXqBQEscVODaFicsUkjheOD4BfWEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231022173811.8229-2-lukapanio@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 22 Oct 2023 11:46:32 -0700 (PDT) On 22/10/2023 19:38, Luka Panio wrote: > Initial support for Xiaomi Pad 6 tablet, that have sm8250 soc. > > Signed-off-by: Luka Panio > --- > v2: > Update commit message. Drop reserved gpio's as this device in reality do not have gpio, and pins are not protected. > > v3: > Update commit message. > > v4: > Update commit message. > > v5: > Update commit message. > > v6: > Update commit message. > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts/qcom/sm8250-xiaomi-pipa.dts | 625 ++++++++++++++++++ > 2 files changed, 626 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 2cca20563a1d..41ab333d1f81 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -208,6 +208,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx203.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8250-sony-xperia-edo-pdx206.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-elish-boe.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-elish-csot.dtb > +dtb-$(CONFIG_ARCH_QCOM) += sm8250-xiaomi-pipa.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8350-hdk.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8350-microsoft-surface-duo2.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8350-mtp.dtb > diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts > new file mode 100644 > index 000000000000..41eae1aaa2a8 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-pipa.dts > @@ -0,0 +1,625 @@ > +// SPDX-License-Identifier: BSD-3-Clause If there are no other copyrights here, why did you use BSD-3 license? > +/* > + * Copyright (c) 2023 luka177 > + */ > + > +/dts-v1/; > + > +#include > +#include > +#include > +#include "sm8250.dtsi" > +#include "pm8150.dtsi" > +#include "pm8150b.dtsi" > +#include "pm8150l.dtsi" > +#include "pm8009.dtsi" > + > +/* > + * Delete following upstream (sm8250.dtsi) reserved > + * memory mappings which are different on this device. > + */ > +/delete-node/ &adsp_mem; > +/delete-node/ &cdsp_secure_heap; > +/delete-node/ &slpi_mem; > +/delete-node/ &spss_mem; > +/delete-node/ &xbl_aop_mem; > + > +/ { > + > + model = "Xiaomi Pad 6"; > + compatible = "xiaomi,pipa", "qcom,sm8250"; > + > + classis-type = "tablet"; chassis-type It does not look like you tested the DTS against bindings. Please run `make dtbs_check W=1` (see Documentation/devicetree/bindings/writing-schema.rst or https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ for instructions). > + > + /* required for bootloader to select correct board */ > + qcom,msm-id = ; /* SM8250 v2.1 */ > + qcom,board-id = <0x34 0>; 0x34 or 34? > + > + chosen { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; .... > + > +&i2c13 { > + clock-frequency = <400000>; > + status = "okay"; > + > + fuel-gauge@55 { > + compatible = "ti,bq27z561"; > + reg = <0x55>; > + monitored-battery = <&battery_l>; > + }; > +}; > + > + > + Just one blank line > +&pcie0 { > + status = "okay"; > +}; > + > +&pcie0_phy { > + vdda-phy-supply = <&vreg_l5a_0p88>; > + vdda-pll-supply = <&vreg_l9a_1p2>; > + status = "okay"; > +}; Best regards, Krzysztof