Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp469133imw; Thu, 14 Jul 2022 05:05:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vf/3c8lGWfvwMR0a35LvcAQYzdvafpRH9qUuPMi9vOjxR05LOBO0sI6U55/hh1+YS/nWco X-Received: by 2002:a05:6402:d0a:b0:437:f9a1:8493 with SMTP id eb10-20020a0564020d0a00b00437f9a18493mr12015901edb.226.1657800347323; Thu, 14 Jul 2022 05:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657800347; cv=none; d=google.com; s=arc-20160816; b=LeSadPZxxagsUHnTPtQHY2aa5RNbL0oN8LhEoMpUEePArjhmHtRn/+4VwAJFgTFN+t 5wK0XErZ7dGgLS2ughemKO2C8/pBaG+Ch7kaaaKxzP+wys7bhJmGQnM8HUQGUjRj7vgC Ub7AHmPZ0U6AS19vvvUhCWBHVB5LKsmg35IrYFihmerYOUS3/U4tCTSSWko3ZZgjMqvj SQsnw/MIghpSSlR1RnxvxhTVQ2dBDk8wJjXFXzVmpkwgXY14HumBoWxU1sgAnZhfGHjs u3CaBoSh6Jxx28PXa7bSMx5ggQlsv2mVfme/JNxBwiAZhEIBvcQEp4sPcfrqSKBpMLQc +JeQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kmBnD1ihRB06Ia8Vq2SlP4UAQsZhPpINxuW42/4ow7U=; b=MIsljCmBokKvRGh7sqIFsscfwlqSu3fiUzJvnd4+W1prIlmY9ymYg68r5mpE2zTopF scYnl83Xl86WKRwtxdOYkPRoDKeap6EhhdDvDos39rWA4Wtq/OG+Mcu4crHsREHdp0rx uW/4KL2MuEoAvi9MW13atboAsfNX3gSMZZYwC8sshZEeGTsSST78QraZz8/cnZqq0Goc SYMhTEWnF+7mtKYvwIFG2VQhyCTy21J/uncUXztT1mUcXKRALsjrHN+aCmjUREx1hmPg k1K+hbogzaC581NfOkcDZdWm62iV5QaarFT+5LtoZW6HWy3GV6OW3pXCB/B0hViEMsnG If4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x0nLCtfP; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x26-20020a170906711a00b00726d02f0e0csi2046047ejj.816.2022.07.14.05.05.21; Thu, 14 Jul 2022 05:05:47 -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=@linaro.org header.s=google header.b=x0nLCtfP; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237757AbiGNLQX (ORCPT + 99 others); Thu, 14 Jul 2022 07:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234714AbiGNLQV (ORCPT ); Thu, 14 Jul 2022 07:16:21 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A33F7501A8 for ; Thu, 14 Jul 2022 04:16:19 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id bf9so2199691lfb.13 for ; Thu, 14 Jul 2022 04:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=kmBnD1ihRB06Ia8Vq2SlP4UAQsZhPpINxuW42/4ow7U=; b=x0nLCtfPaPvFHum5VzmZahCa5w0Qi+SNJerCTn/aea5hWIP1YY37aqDvEMWIzWKi1z phsapgVLFcXj6DCtlp81ZAyvI05yfu8gfxgkbnOxTlMBLNPNI11m17T9pMu2FRArpLK0 7xAf/Ho6q2/xsRPDrV5wEn483ZbCCcJTKk5hjB9kOGCEPTVyYSDI5WeCIWNMrZRKgcIS p+Db8Srz5jgadkaG8iAXD8Lwag6SZwQNRoiEN623mFi7eB+CrNvhqU8+AJxj4mNyNlfA xR4hXqrKzKRjoN2QFT1zWGTNhgYuTfHPW4zb8hNr3ZEcu0m52nL4drf1/0vtKpj/HWgO m+XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=kmBnD1ihRB06Ia8Vq2SlP4UAQsZhPpINxuW42/4ow7U=; b=qasMsAllG+w6PaCXizoQ70RSNrbEZhGMDmVBGhWRbbXnLxAtQLZ3j1F2a1SkfJ3XnG hc5f1iQG9h0PEm+iRr8EWCihGsNY0MdwPgVGL0iyDs23Y7YFq8pPtv3W+b+XwYPvZOmc l5fTm96Vhj2a7DDOlDfIB0eGqyK94FIMSFUTmckSkN3j9/WRgxTJ9x3LkZWeKGfN9+hg /m+TaFiBMakFA39VPuH+HeZE+AHa3x/apDPMTKVuzdKSe1ZcZKXOZuU4OIoP+n5YoZ6e AVt6NNh/un8leZBoD8eDVdT/lG8mboH2VhIGIAVh8PmgddSLZwZT4J13qN+SsiOjIUNF UdQw== X-Gm-Message-State: AJIora9YUpSsBUtZqbV7m4K47w2sDxH9VeTU4HvuttXxb38SWTw2bVJj UizcLeUv94HSYGxkZC6Vc87muA== X-Received: by 2002:a19:915c:0:b0:486:93d4:9fee with SMTP id y28-20020a19915c000000b0048693d49feemr4753256lfj.301.1657797377973; Thu, 14 Jul 2022 04:16:17 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id c3-20020a056512238300b004833caeb8bdsm305313lfv.101.2022.07.14.04.16.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jul 2022 04:16:17 -0700 (PDT) Message-ID: <763aaaab-ce5e-5fad-51ed-95147c46afd8@linaro.org> Date: Thu, 14 Jul 2022 13:16:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 4/4] arm64: dts: qcom: Add device tree for Sony Xperia 1 IV Content-Language: en-US To: Konrad Dybcio , ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220713201047.1449786-1-konrad.dybcio@somainline.org> <20220713201047.1449786-4-konrad.dybcio@somainline.org> From: Krzysztof Kozlowski In-Reply-To: <20220713201047.1449786-4-konrad.dybcio@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 13/07/2022 22:10, Konrad Dybcio wrote: > Add support for Sony Xperia 1 IV, a.k.a PDX223. This device is a part > of the SoMC SM8450 Nagara platform and currently it is the only > device based on that board, so no -common DTSI is created until (if?) > other Nagara devices appear. > > This commit brings support for: Thank you for your patch. There is something to discuss/improve. > + pm8450_s3: smps3 { > + regulator-name = "pm8450_s3"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <600000>; > + }; > + > + pm8450_l2: ldo2 { > + regulator-name = "pm8450_l2"; > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <912000>; > + regulator-initial-mode = ; > + }; > + > + pm8450_l3: ldo3 { > + regulator-name = "pm8450_l3"; > + regulator-min-microvolt = <912000>; > + regulator-max-microvolt = <912000>; > + regulator-initial-mode = ; > + }; > + Remove blank line. > + }; > + > + pmr735a-rpmh-regulators { > + compatible = "qcom,pmr735a-rpmh-regulators"; > + qcom,pmic-id = "e"; > + > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + > + vdd-l1-l2-supply = <&pmr735a_s2>; > + vdd-l3-supply = <&pmr735a_s1>; > + vdd-l4-supply = <&pm8350c_s1>; > + vdd-l5-l6-supply = <&pm8350c_s1>; > + vdd-l7-bob-supply = <&vreg_bob>; > + > + pmr735a_s1: smps1 { > + regulator-name = "pmr735a_s1"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1296000>; > + }; > + > + pmr735a_s2: smps2 { > + regulator-name = "pmr735a_s2"; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <1040000>; > + }; > + > + pmr735a_s3: smps3 { > + regulator-name = "pmr735a_s3"; > + regulator-min-microvolt = <435000>; > + regulator-max-microvolt = <2352000>; > + }; > + > + pmr735a_l1: ldo1 { > + regulator-name = "pmr735a_l1"; > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <800000>; > + }; > + > + pmr735a_l2: ldo2 { > + regulator-name = "pmr735a_l2"; > + regulator-min-microvolt = <480000>; > + regulator-max-microvolt = <912000>; > + }; > + > + pmr735a_l3: ldo3 { > + regulator-name = "pmr735a_l3"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + pmr735a_l4: ldo4 { > + regulator-name = "pmr735a_l4"; > + regulator-min-microvolt = <1776000>; > + regulator-max-microvolt = <1776000>; > + }; > + > + pmr735a_l5: ldo5 { > + regulator-name = "pmr735a_l5"; > + regulator-min-microvolt = <880000>; > + regulator-max-microvolt = <880000>; > + }; > + > + pmr735a_l6: ldo6 { > + regulator-name = "pmr735a_l6"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + pmr735a_l7: ldo7 { > + regulator-name = "pmr735a_l7"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + }; > + }; > +}; > + > +&gpi_dma0 { > + status = "okay"; > +}; > + > +&gpi_dma1 { > + status = "okay"; > +}; > + > +&gpi_dma2 { > + status = "okay"; > +}; > + > +/* I2C4 is used, it hosts a Samsung touchscreen, but GPI DMA is broken.. */ > + > +&i2c5 { > + clock-frequency = <400000>; > + status = "okay"; > + > + /* Dialog SLG51000 CMIC @ 75 */ > +}; > + > +&i2c9 { > + clock-frequency = <400000>; > + status = "okay"; > + > + /* NXP SN1X0 NFC @ 28 */ > +}; > + > +&i2c13 { > + clock-frequency = <400000>; > + status = "okay"; > + > + /* Richwave RTC6226 FM Radio Receiver @ 64 */ > +}; > + > +&i2c14 { > + clock-frequency = <1000000>; > + status = "okay"; > + > + cs35l41_l: cs35l41@40 { Generic node name is needed. > + compatible = "cirrus,cs35l41"; > + reg = <0x40>; > + interrupt-parent = <&tlmm>; > + interrupts = <182 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&tlmm 183 GPIO_ACTIVE_HIGH>; > + cirrus,boost-peak-milliamp = <4000>; > + cirrus,boost-ind-nanohenry = <1000>; > + cirrus,boost-cap-microfarad = <15>; > + cirrus,gpio2-src-select = <2>; > + cirrus,gpio2-output-enable; > + cirrus,asp-sdout-hiz = <3>; > + #sound-dai-cells = <1>; > + }; > + > + cs35l41_r: cs35l41@41 { Ditto. > + compatible = "cirrus,cs35l41"; > + reg = <0x41>; > + interrupt-parent = <&tlmm>; > + interrupts = <182 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&tlmm 183 GPIO_ACTIVE_HIGH>; > + cirrus,boost-peak-milliamp = <4000>; > + cirrus,boost-ind-nanohenry = <1000>; > + cirrus,boost-cap-microfarad = <15>; > + cirrus,gpio2-src-select = <2>; > + cirrus,gpio2-output-enable; > + cirrus,asp-sdout-hiz = <3>; > + #sound-dai-cells = <1>; > + }; > +}; > + > +&i2c15 { > + clock-frequency = <400000>; > + status = "okay"; > + > + /* AMS TCS3490 RGB+IR color sensor @ 72 */ > +}; > + > +&i2c19 { > + clock-frequency = <1000000>; > + status = "okay"; > + > + /* Cirrus Logic CS40L25A boosted haptics driver @ 40 */ > +}; > + > +&pcie0 { > + max-link-speed = <2>; > + status = "okay"; > +}; > + > +&pcie0_phy { > + vdda-phy-supply = <&pm8350_l5>; > + vdda-pll-supply = <&pm8350_l6>; > + status = "okay"; > +}; > + > +&remoteproc_adsp { > + firmware-name = "qcom/adsp.mbn"; > + status = "okay"; > +}; > + > +&remoteproc_cdsp { > + firmware-name = "qcom/cdsp.mbn"; > + status = "okay"; > +}; > + > +&remoteproc_slpi { > + firmware-name = "qcom/slpi.mbn"; > + status = "okay"; > +}; > + > +&qupv3_id_0 { > + status = "okay"; > +}; > + > +&qupv3_id_1 { > + status = "okay"; > +}; > + > +&qupv3_id_2 { > + status = "okay"; > +}; > + > +&sdhc_2 { > + cd-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>; > + pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; > + vmmc-supply = <&pm8350c_l9>; > + vqmmc-supply = <&pm8350c_l6>; > + /* Forbid SDR104/SDR50 - broken hw! */ > + sdhci-caps-mask = <0x3 0x0>; Wrong indentation. > + no-sdio; > + no-mmc; > + status = "okay"; > +}; Best regards, Krzysztof