Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2414212rda; Wed, 25 Oct 2023 01:52:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOvCzHL24TvQqJJoGsJQODVveo9bv63Vbfpq45njL/p5nSB8jNbK0Lsgh2HOtYHSCJoCyV X-Received: by 2002:a1f:f88a:0:b0:4a1:7278:3bf5 with SMTP id w132-20020a1ff88a000000b004a172783bf5mr13131892vkh.4.1698223965238; Wed, 25 Oct 2023 01:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698223965; cv=none; d=google.com; s=arc-20160816; b=WKfLe3aEJHzwPupOo1pCOuEOi4k7t4xB+SLMYnZrzIbbaKPvzL6zd8bjdKcajaIiUP XfrcP76DmYq1xIKkSWEsQ2ieLH3HmVqYlsOdgi/s47Ja2qAgTeIkapJN34Xia7vTBY5q AtlcjJWux9r0MbjBBcFPj1w7BSZsvVwU4RPpNCegNex7XCqG+3tvOc21Fq6H0mXOXVb3 D8126HaYvn3wrOTH9RkpKAhU/YtkO+ywByrU+j4Tg+adCF27ZW1AlxBQXnOdBrFUh9AE Kayp+l2Wlt2x1ydikOuPiadE5NJ/FnIvvqvrPJ+H2RmuUb0xCWs8TekswrRQmjdYAqkp 041w== 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:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=BrnF6XSJFhLZM0Y5XF5MVsrX+Gn9weZN81Kc+HqarqM=; fh=fyoWdhB000C53uQ5XkHKVOLSjN3tbw4U+yHbmHfXk9s=; b=fo5HDEZMSwjEznDuFCSXbDPCbrBTRYfPyHUARWXxxNwh444cKeLQsH8pPzcwT8eENi CdNJtyz9KUC8JZTNo93/b937rdsyVEzxyFrzEfvCPBZjJ6omibb7UpdFb10t3z9XAQXX TdCkS0sYMxx/5zCFxT08q3g/b8zlhILnjS+RMIDQfSGBpcISfvk222MEgP+ijpViQKIw OnBsRRMuvf30DyQeOrBjbDNL79EgIdnYreW+dYHPwvSW9zOb5F9C7rDvc2HIMJi1yMmD drtn0yJzfgNxHrNGasRnV9AlbRxULVIpFZVVWaPbtL+xu+m/x11jbExbZfa8NEhnc3+a FzqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sr9C9xVp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s5-20020a818205000000b0059575fba61csi10873728ywf.446.2023.10.25.01.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 01:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sr9C9xVp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 98D2780B9509; Wed, 25 Oct 2023 01:52:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232665AbjJYIwd (ORCPT + 99 others); Wed, 25 Oct 2023 04:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjJYIwc (ORCPT ); Wed, 25 Oct 2023 04:52:32 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA88DB0 for ; Wed, 25 Oct 2023 01:52:29 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-53df747cfe5so8487256a12.2 for ; Wed, 25 Oct 2023 01:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698223948; x=1698828748; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BrnF6XSJFhLZM0Y5XF5MVsrX+Gn9weZN81Kc+HqarqM=; b=sr9C9xVp56FCiqPGPOpPpn2h5wvBdLnIwJ8sEYHCklFkcqGUq3j6vWZ64xqiTbUKZj UQQDGr90SJlQDrccaw2eSUowxLWEtLBMrInkzPKCUZ0MQpcP8dy32GYXCxbHQ2416qC+ pxLyW71oqiiTE3f9EU/9f0vDt1w12qICDjgGKwmlrYw8e5pPbrj85qPPD63fhuUMfRC8 yYXoi/evb6muTtdRdx/opfc6icVDNHKxg5teqzOjh/o0YcUtjjGtI2UBW6UrgTUpTvNn 8IFFnWcVR9354uil6hjxHmWVLayRh7lXffAlLEGHokZ6kX9abKDvJSwVKLDsxT4UiuDK fqlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698223948; x=1698828748; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :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=BrnF6XSJFhLZM0Y5XF5MVsrX+Gn9weZN81Kc+HqarqM=; b=rqxJvHBgqlldy9jMTD1FVfz3mBP2gDRyyj4CqssEiLjEkdZyCvOpcd241FTpZ8Yo1c qqdnDM2V3G116fzcdOxVMGP67XlBZX2D2tfmbJaW4YN4NGdcnLJClRMd7KsxdIkM+ZC3 OEaiCYO7ZEwF8eBg2V//qFfIb3KRLZSxixUE11ret4bAY/TvtZuUZA7AJHpcacR9szhD PdKW4hfuC53Zkc761TdckiLHmRxOiSqGHxfSwSMHD71Eraz1chfgdGBIcbIGIPSIP0CK yOh3KWLAvbphArQPypfIrbuZyM9KgdYdAQUQTVlQCXW1NglQfs8N+NBzScVPe3ZgWYXQ yx8A== X-Gm-Message-State: AOJu0Yxn4K2KMw+EYTYtZB5oavRe3gjwX3JhbQOIEzm1VWAN3uHdEiiC fEjZejiHlCYnkUO0aOVjCikuJQ== X-Received: by 2002:a05:6402:2706:b0:540:31dc:ff8b with SMTP id y6-20020a056402270600b0054031dcff8bmr8009016edd.13.1698223948148; Wed, 25 Oct 2023 01:52:28 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id m20-20020a509994000000b0053635409213sm9415717edb.34.2023.10.25.01.52.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 01:52:27 -0700 (PDT) Message-ID: <68e9c5f5-8ca9-40c3-979c-651e89c9061f@linaro.org> Date: Wed, 25 Oct 2023 10:52:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/4] ARM: dts: qcom: samsung-matisse-common: Add initial common device tree Content-Language: en-US To: Stefan Hansson , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org References: <20231025083952.12367-1-newbyte@postmarketos.org> <20231025083952.12367-2-newbyte@postmarketos.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.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BfWEcVUqa+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: <20231025083952.12367-2-newbyte@postmarketos.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 01:52:41 -0700 (PDT) On 25/10/2023 10:37, Stefan Hansson wrote: > According to the dts from the kernel source code released by Samsung, > matissewifi and matisselte only have minor differences in hardware, so > use a shared dtsi to reduce duplicated code. Additionally, this should > make adding support for matisse3g easier should someone want to do that > at a later point. > > As such, add a common device tree for all matisse devices by Samsung > based on the matissewifi dts. Support for matisselte will be introduced > in a later patch in this series and will use the common dtsi as well. > > Signed-off-by: Stefan Hansson > --- ... > diff --git a/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts b/arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi > similarity index 90% > copy from arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts > copy to arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi > index f516e0426bb9..11fec4e963b7 100644 > --- a/arch/arm/boot/dts/qcom/qcom-apq8026-samsung-matisse-wifi.dts > +++ b/arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi > @@ -1,10 +1,9 @@ > // SPDX-License-Identifier: BSD-3-Clause > /* > * Copyright (c) 2022, Matti Lehtimäki > + * Copyright (c) 2023, Stefan Hansson Removing lines is not a much of a copyrightable change. > */ > > -/dts-v1/; > - > #include > #include "qcom-msm8226.dtsi" > #include "qcom-pm8226.dtsi" > @@ -13,10 +12,6 @@ > /delete-node/ &smem_region; > > / { > - model = "Samsung Galaxy Tab 4 10.1"; > - compatible = "samsung,matisse-wifi", "qcom,apq8026"; > - chassis-type = "tablet"; > - > aliases { > mmc0 = &sdhc_1; /* SDC1 eMMC slot */ > mmc1 = &sdhc_2; /* SDC2 SD card slot */ > @@ -137,8 +132,8 @@ reg_tsp_1p8v: regulator-tsp-1p8v { > gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>; > enable-active-high; > > - pinctrl-names = "default"; > pinctrl-0 = <&tsp_en_default_state>; > + pinctrl-names = "default"; That's an unexpected change. > }; > > reg_tsp_3p3v: regulator-tsp-3p3v { > @@ -147,11 +142,11 @@ reg_tsp_3p3v: regulator-tsp-3p3v { > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > > - gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>; > + /* GPIO is board-specific */ > enable-active-high; Then regulator as well. Move it to board. > > - pinctrl-names = "default"; > pinctrl-0 = <&tsp_en1_default_state>; > + pinctrl-names = "default"; > }; > > reserved-memory { > @@ -223,26 +218,6 @@ &adsp { > status = "okay"; > }; > > -&blsp1_i2c2 { > - status = "okay"; > - > - accelerometer@1d { > - compatible = "st,lis2hh12"; > - reg = <0x1d>; > - > - interrupt-parent = <&tlmm>; > - interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; > - > - pinctrl-names = "default"; > - pinctrl-0 = <&accel_int_default_state>; > - > - st,drdy-int-pin = <1>; > - > - vdd-supply = <&pm8226_l19>; > - vddio-supply = <&pm8226_lvs1>; > - }; > -}; > - > &blsp1_i2c4 { > status = "okay"; > > @@ -253,28 +228,8 @@ muic: usb-switch@25 { > interrupt-parent = <&tlmm>; > interrupts = <67 IRQ_TYPE_EDGE_FALLING>; > > - pinctrl-names = "default"; > pinctrl-0 = <&muic_int_default_state>; > - }; > -}; > - > -&blsp1_i2c5 { > - status = "okay"; > - > - touchscreen@4a { > - compatible = "atmel,maxtouch"; > - reg = <0x4a>; > - > - interrupt-parent = <&tlmm>; > - interrupts = <17 IRQ_TYPE_LEVEL_LOW>; > - > pinctrl-names = "default"; > - pinctrl-0 = <&tsp_int_rst_default_state>; > - > - reset-gpios = <&pm8226_gpios 6 GPIO_ACTIVE_LOW>; > - > - vdd-supply = <®_tsp_1p8v>; > - vdda-supply = <®_tsp_3p3v>; > }; > }; > > @@ -287,9 +242,9 @@ pm8226_s3: s3 { > regulator-max-microvolt = <1300000>; > }; > > + /* Upper voltage constraint is board-specific */ > pm8226_s4: s4 { > regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <1800000>; Then keep here widest constraints. IOW, this should be changed not in this patch, but your next one. > }; > > pm8226_s5: s5 { > @@ -307,9 +262,9 @@ pm8226_l2: l2 { > regulator-max-microvolt = <1200000>; > }; > > + /* Upper voltage constraint is board-specific */ > pm8226_l3: l3 { > regulator-min-microvolt = <750000>; > - regulator-max-microvolt = <1337500>; Ditto > regulator-always-on; > }; > > @@ -493,7 +448,7 @@ tsp_en_default_state: tsp-en-default-state { > }; > > tsp_en1_default_state: tsp-en1-default-state { > - pins = "gpio73"; > + /* pins is board-specific */ Then node is board specific as well. Best regards, Krzysztof