Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4083205rwb; Tue, 6 Sep 2022 02:09:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Sj6ie2fTxoSg+V5JNWBsXktCYWBbLDzQBSa723XiSFgp/U2Ei4iAWFoQ11TOAE5oAp1Jo X-Received: by 2002:a17:907:9610:b0:741:757d:62a9 with SMTP id gb16-20020a170907961000b00741757d62a9mr30471880ejc.726.1662455394214; Tue, 06 Sep 2022 02:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662455394; cv=none; d=google.com; s=arc-20160816; b=LfqVL9MpECcJ+/sA8yxhJUC9NsRsMEeKBfFnOCxRJf6nyURiwFD6bVZ6Wv/EL+/eu/ 1xv7T2px1DYdWNHTuEIHuhCQxIQgmqziEIIpaibU8AOIrRbsQZAySKa/9SiIqCTugT4U WFhglCQ3jGPyNGMIBYutexeHVCQXIKRWKbZMzW5TsmU+HpCcL6DBwTozQtagKSrj56+3 B1dKZnCWWmAhGy2mzo90p7r7VXEJyYWJldPTQ1Qm5FW1Bcsjl0nQdNC+LW8amJoeYzPp 1ElJPhEE/RTkpYrDHjjqNAWq3ZrpBynbuAWdcsAkWlYHk2PuUoiYh/8uFV66wyFa8+Nq Ctog== 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=MoaaiE0rKLAl2TzTI2nwsEuqohvEs2vQN4l+SMWi66s=; b=VTFZeXcMrey6xWs5Q4wrzdpJJBVI2d7jST0c57gedfPkZqM2XMFPBWJqIRqGz2L7fn I1PilSWD6xJZfDp1Xt91qB1e2lhuAT4DBqueKj0T1kU533XQs+BqzhMw0je7oxVfyVvt 5i48viyEGJA5pYUFWPUM8U92CfNNhQmxmWvllFBkWSOjuF3G6cY+N/rfZvuizTRzMsmL GYOIbWZctFD/NwGqzU49kfhOzniH74HmVN9koBjceiH7suMAHVO+7Qu7buwXtjeEZk28 YnVtJGn/r6t53zTTYWc505i83a81qAiUuhzRbqHs3CmD3GuWNS2vV1WpSAZmv86+4Z/b 2Bug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nNsSlwZ9; 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 o15-20020a170906974f00b0076f5b24a7b9si497765ejy.735.2022.09.06.02.09.26; Tue, 06 Sep 2022 02:09:54 -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=nNsSlwZ9; 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 S233563AbiIFIeG (ORCPT + 99 others); Tue, 6 Sep 2022 04:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233409AbiIFIeE (ORCPT ); Tue, 6 Sep 2022 04:34:04 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAEF1DE5 for ; Tue, 6 Sep 2022 01:34:02 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id bn9so11469422ljb.6 for ; Tue, 06 Sep 2022 01:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=MoaaiE0rKLAl2TzTI2nwsEuqohvEs2vQN4l+SMWi66s=; b=nNsSlwZ91EYCBo+CS0owGfQxSD9xUPrNwSXiaO3lGvxtYMrXjolYseUjT+HfmzgHxL /BYnaPeREWN985CV9sxfk3LraVVJd6t8nSyACq90IFCNUU/g2zbfxo3zEvMFgddKgegg CsGYhJM4qUpeRp5mUKXR+iR6myqA9VYkaI6ojvRLvNigaBsI74StXndwpz0oew2meQSr AFY8HS/t8yMuk336v0WvaxOs7AJrHwd6f+/46DmVRgaT6mtagQpvqagd8Na1qwTOwkuX ukHOO13AgUddS4nw02dVksWO1gbG566SW4RjnwP58ALFypmqYuKn1hD2nEMEAmaTVdJB 9how== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=MoaaiE0rKLAl2TzTI2nwsEuqohvEs2vQN4l+SMWi66s=; b=0cZ9054/gx31otbxYxGxJPlX39yIN7MNoQJ48wDjvY1LwmFlt/XeJXoURmFT7sEXe0 xbBn1STTXxrScmyNldMYfxI6L6IH2FQoFCmeA4WuhDijK+4LWxp72HxU2tc4DWUQ/Bqu JVNLNGbNnhQRUHclMYM8uzyAQZGEy5aNVzTofg5G7lLdEpSI6VKoKRrLGdMpK0RO0i9w mPhqu2YWdzsV4ae2WgPzMXODQDaW1EhZregHl3cHkM8/Vy89BLQq6w9vvx7Nirs7emmy e1gWJhqaP2Gqs8y1bHqLIzT4dLGmIRp7N7Oo6w4w/u7ZuHNZm1M3jPxWaS0xSnC9qMsp KiQg== X-Gm-Message-State: ACgBeo2yLXtgPTl/fwK/s5EdkX/+T8iOfCbjewUDairBuOYX4ItRjvsw yV7RwHn35WbZXkYg/kNLug861xExFjVR7A== X-Received: by 2002:a2e:aa18:0:b0:261:e6a7:e08f with SMTP id bf24-20020a2eaa18000000b00261e6a7e08fmr16618945ljb.318.1662453241294; Tue, 06 Sep 2022 01:34:01 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id 11-20020ac25f4b000000b00492ce573726sm1597418lfz.47.2022.09.06.01.33.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Sep 2022 01:34:00 -0700 (PDT) Message-ID: Date: Tue, 6 Sep 2022 10:33:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 9/9] arm64: dts: qcom: sm4250: Add support for oneplus-billie2 Content-Language: en-US To: Iskren Chernev , Bjorn Andersson , Rob Herring Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-kernel@vger.kernel.org References: <20220903174150.3566935-1-iskren.chernev@gmail.com> <20220903174150.3566935-10-iskren.chernev@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220903174150.3566935-10-iskren.chernev@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 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 03/09/2022 19:41, Iskren Chernev wrote: > Add initial support for OnePlus Nord N100, based on SM4250. Currently > working: > - boots > - usb > - buildin flash storage (UFS) > - SD card reader > > Signed-off-by: Iskren Chernev > --- > Remaining issues from make dtbs_check: > - rpm-requests: it doesn't like the pm6125-regulators subnode. Every other > DTS I checked is written in this way. Yes, I sent patches for it, already merged, so please rebase on linux-next. https://lore.kernel.org/all/20220828084341.112146-1-krzysztof.kozlowski@linaro.org/ > > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts/qcom/sm4250-oneplus-billie2.dts | 243 ++++++++++++++++++ > 2 files changed, 244 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 1d86a33de528..b8c2de2932a6 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -133,6 +133,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-xiaomi-polaris.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-shift-axolotl.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm850-samsung-w737.dtb > +dtb-$(CONFIG_ARCH_QCOM) += sm4250-oneplus-billie2.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm6125-sony-xperia-seine-pdx201.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm6350-sony-xperia-lena-pdx213.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm7225-fairphone-fp4.dtb > diff --git a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts > new file mode 100644 > index 000000000000..ea5f626a6749 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts > @@ -0,0 +1,243 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2021, Iskren Chernev > + */ > + > +/dts-v1/; > + > +#include "sm4250.dtsi" > + > +/ { > + model = "OnePlus Nord N100"; > + compatible = "oneplus,billie2", "qcom,sm4250"; > + > + /* required for bootloader to select correct board */ > + qcom,msm-id = <0x1a1 0x10000 0x1bc 0x10000>; > + qcom,board-id = <0x1000b 0x00>; > + > + aliases { > + }; > + > + chosen { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + stdout-path = "framebuffer0"; > + > + framebuffer0: framebuffer@9d400000 { > + compatible = "simple-framebuffer"; > + reg = <0 0x5c000000 0 (1600 * 720 * 4)>; > + width = <720>; > + height = <1600>; > + stride = <(720 * 4)>; > + format = "a8r8g8b8"; > + }; > + }; > + > + clocks { > + xo-board { These should be overridden by label, not full node path. > + clock-frequency = <19200000>; > + }; > + > + sleep-clk { > + clock-frequency = <32764>; > + }; > + }; > + > + reserved-memory { > + mtp_mem: memory@cc300000 { > + reg = <0x00 0xcc300000 0x00 0xb00000>; > + no-map; > + }; > + > + param_mem: memory@cc200000 { > + reg = <0x00 0xcc200000 0x00 0x100000>; > + no-map; > + }; > + > + bootloader_log_mem: memory@5fff7000 { > + reg = <0x00 0x5fff7000 0x00 0x8000>; > + no-map; > + }; > + > + ramoops@cbe00000 { > + compatible = "ramoops"; > + reg = <0x0 0xcbe00000 0x0 0x400000>; > + record-size = <0x40000>; > + pmsg-size = <0x200000>; > + console-size = <0x40000>; > + ftrace-size = <0x40000>; > + }; > + }; > +}; > + > +&usb3 { > + status = "okay"; > +}; > + > +&hsusb_phy { > + vdd-supply = <&vreg_l4a>; > + vdda-pll-supply = <&vreg_l12a>; > + vdda-phy-dpdm-supply = <&vreg_l15a>; > + status = "okay"; > +}; > + > +&tlmm { > + gpio-reserved-ranges = <14 4>; > +}; > + > +&sdhc_2 { > + vmmc-supply = <&vreg_l22a>; > + vqmmc-supply = <&vreg_l5a>; > + > + cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; > + > + status = "okay"; > +}; > + > +&ufs_mem_hc { > + vcc-supply = <&vreg_l24a>; > + vcc-max-microamp = <600000>; > + vccq2-supply = <&vreg_l11a>; > + vccq2-max-microamp = <600000>; > + status = "okay"; > +}; > + > +&ufs_mem_phy { > + vdda-phy-supply = <&vreg_l4a>; > + vdda-pll-supply = <&vreg_l12a>; > + vddp-ref-clk-supply = <&vreg_l18a>; > + status = "okay"; > +}; > + > +&rpm_requests { > + pm6125-regulators { Please rebase and test with Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml Best regards, Krzysztof