Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp403186pxb; Thu, 9 Sep 2021 03:42:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4MdRPiui0iU/ZHH8f6UXZ+Wkc9TgZSaFFmefGxN5QvG2AOQek2Ldd0JyCLxQ4o+eGQTQe X-Received: by 2002:a92:130e:: with SMTP id 14mr1788318ilt.129.1631184121899; Thu, 09 Sep 2021 03:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631184121; cv=none; d=google.com; s=arc-20160816; b=FZ6myro0+ODgOL632wSNZH/hSaMweZuTgBO+WK7xUzPVk+y1eqxhW/PAoa7DMJ2DwL fL6JSpNsFkVAUaD3BO8iGcFmpAw1gZ9cML9JADBR8ylL9tGRSsxieggEgQOVab5KC8Tq QA3EZWLcMUTDKRPYIjdDxLlX4KRhSWFua0k3GIcKRYAcivjd+tTjPAyqwnjCBeNfZPlw +ph01K2WH78yr/MZNMPbTdFrXWgz8yi6iaCdG2NrSBBM1D8ipITH+ke6e73wvZBtmwty 1t4XRhaLBvOLR9iroiDExjC9kpRQ9o4i3+4mXjMrJUk5sWPKOGtKVelMrlKc+tLjV/p9 f8cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=l3v33D/8kLbghapHLP7SAiESQhRGk1AvqbjM/QCkkhY=; b=c7wdhnL0QqwrI/W//2oNWsJb/i6mZH6/ByTy4Su3kTwNIZdvK9R7Dz0tAHxyHdAgPj yDpTqZvOhzqzBU7Q4o1dHPrP9zGao3pvuuUOvTvieNf7OSqcXEjENgJr6PNI0Mo3WNjy IQfOPxP4KIzPWPW3zNihLDP+aKSLkF8NlrAcmNdsHUen0DbNizgPZomv9fvG9ReytypP V3hLosJ4LtXxgjrSNryKWBrRl6F/7ebWR92Qk3bGlqv8VMEOFs262r2bpVhzlXxtemUU bNKSKs+m7Va025p7UgJGVU9pv3iVxxSipcVC6R2gg8YBLVBbVWMTvX2/SIoV9C+4Dr1E GEHg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si1318505jaf.24.2021.09.09.03.41.49; Thu, 09 Sep 2021 03:42:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234393AbhIIKlU (ORCPT + 99 others); Thu, 9 Sep 2021 06:41:20 -0400 Received: from relay06.th.seeweb.it ([5.144.164.167]:36567 "EHLO relay06.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233992AbhIIKlQ (ORCPT ); Thu, 9 Sep 2021 06:41:16 -0400 Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 017B33F219; Thu, 9 Sep 2021 12:40:04 +0200 (CEST) Subject: Re: [PATCH 1/7] arm64: dts: qcom: Introduce support for MSM8998 Sony Yoshino platform To: Bjorn Andersson Cc: agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, paul.bouchara@somainline.org References: <20210903180924.1006044-1-angelogioacchino.delregno@somainline.org> From: AngeloGioacchino Del Regno Message-ID: <2e9270dd-759e-9ebf-71dd-a15fecd611ca@somainline.org> Date: Thu, 9 Sep 2021 12:40:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 07/09/21 15:04, Bjorn Andersson ha scritto: > On Fri 03 Sep 11:09 PDT 2021, AngeloGioacchino Del Regno wrote: > >> This commit introduces support for the Sony Yoshino platform, using >> the MSM8998 SoC, including: >> - Sony Xperia XZ1 (codename Poplar), >> - Sony Xperia XZ1 Compact (codename Lilac), >> - Sony Xperia XZ Premium (codename Maple). >> > > Nice! > >> diff --git a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi > [..] >> + vph_pwr: vph-pwr-regulator { >> + compatible = "regulator-fixed"; >> + regulator-name = "vph_pwr"; >> + regulator-always-on; >> + regulator-boot-on; >> + }; >> + >> + gpio_keys { > > Please don't use '_' in node names. > Sorry, all of that is fixed. >> + reserved-memory { >> + #address-cells = <2>; >> + #size-cells = <2>; >> + ranges; >> + >> + hyp_mem: memory@85800000 { >> + reg = <0x0 0x85800000 0x0 0x3700000>; >> + no-map; >> + }; >> + >> + cont_splash_mem: cont-splash-region@9d400000 { > > Is there any reason for not just naming this "memory"? > No, there's no reason. Changed to 'memory'. >> + compatible = "shared-dma-pool"; >> + reg = <0x0 0xf6400000 0x0 0x2000>; >> + no-map; >> + }; >> + > [..] >> +&rpm_requests { >> + pm8998-regulators { >> + compatible = "qcom,rpm-pm8998-regulators"; >> + > [..] >> + vreg_lvs1a_1p8: lvs1 { }; >> + vreg_lvs2a_1p8: lvs2 { }; >> + > > Blank line. > Done. Also, we had a better internal review of the 8998 dt patches, so in the next version there will be even more cleanups. >> + }; >> + >> + pmi8998-regulators { >> + compatible = "qcom,rpm-pmi8998-regulators"; >> + >> + vdd_bob-supply = <&vph_pwr>; >> + >> + vreg_bob: bob { >> + regulator-min-microvolt = <3312000>; >> + regulator-max-microvolt = <3600000>; >> + }; >> + }; >> +}; >> + >> +&sdhc2 { >> + status = "okay"; >> + cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>; >> + >> + vmmc-supply = <&vreg_l21a_2p95>; >> + vqmmc-supply = <&vreg_l13a_2p95>; >> + >> + pinctrl-names = "default", "sleep"; >> + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; >> + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; > > How about grouping these various pins as "sdc2_default_state" and > "sdc2_sleep_state"? > I agree with you on the fact that groping these pins would look way better, but I'm inheriting the sdc2 pinctrl from msm8998.dtsi and... all of the msm8998 boards, including msm8998-mtp and msm8998-clamshell (and whatever else inherits these) are doing the same as what I am doing here. That said, are you proposing to change 'em all? Cheers, - Angelo >> +}; >> + > Regards, > Bjorn >