From: Bjorn Andersson <andersson@kernel.org>
To: Iskren Chernev <iskren.chernev@gmail.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
Andy Gross <agross@kernel.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Kees Cook <keescook@chromium.org>,
Anton Vorontsov <anton@enomsg.org>,
Colin Cross <ccross@android.com>, Tony Luck <tony.luck@intel.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 9/9] arm64: dts: qcom: sm4250: Add support for oneplus-billie2
Date: Tue, 13 Sep 2022 16:30:07 -0500 [thread overview]
Message-ID: <20220913213007.gdk27nxjzmagbdzn@builder.lan> (raw)
In-Reply-To: <20220910143213.477261-10-iskren.chernev@gmail.com>
On Sat, Sep 10, 2022 at 05:32:13PM +0300, 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 <iskren.chernev@gmail.com>
> ---
> arch/arm64/boot/dts/qcom/Makefile | 1 +
> .../boot/dts/qcom/sm4250-oneplus-billie2.dts | 241 ++++++++++++++++++
> 2 files changed, 242 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 f4126f7e7640..5d2570b600e0 100644
> --- a/arch/arm64/boot/dts/qcom/Makefile
> +++ b/arch/arm64/boot/dts/qcom/Makefile
> @@ -137,6 +137,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..b9094f1efca0
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts
> @@ -0,0 +1,241 @@
> +// SPDX-License-Identifier: GPL-2.0-only
Would it be possible for you to dual license this?
> +/*
> + * Copyright (c) 2021, Iskren Chernev <iskren.chernev@gmail.com>
> + */
> +
> +/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";
> + };
> + };
> +};
> +
> +&xo_board {
> + clock-frequency = <19200000>;
> +};
> +
> +&sleep_clk {
> + clock-frequency = <32764>;
> +};
> +
> +&reserved_memory {
As the number of nodes grow it would be nice if these were sorted
alphabetically.
> + 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>;
> + };
> +
> + param_mem: memory@cc200000 {
> + reg = <0x00 0xcc200000 0x00 0x100000>;
> + no-map;
> + };
> +
> + mtp_mem: memory@cc300000 {
> + reg = <0x00 0xcc300000 0x00 0xb00000>;
> + no-map;
> + };
> +};
> +
> +&usb3 {
> + status = "okay";
> +};
[..]
> +&rpm_requests {
> + regulators-0 {
Is there a reason why you don't call this node pm6125-regulators ?
> + compatible = "qcom,rpm-pm6125-regulators";
> +
> + vreg_s6a: s6 {
> + regulator-min-microvolt = <320000>;
> + regulator-max-microvolt = <1456000>;
> + };
[..]
> + vreg_l24a: l24 {
> + regulator-min-microvolt = <2704000>;
> + regulator-max-microvolt = <3544000>;
> + };
Just as a heads up, by not ensuring that your regulators are in
high-power-mode you risk seeing brown-outs - something we keep running
into for e.g. SD-cards.
Regards,
Bjorn
> + };
> +};
> --
> 2.37.2
>
next prev parent reply other threads:[~2022-09-13 21:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-10 14:32 [PATCH v3 0/9] Add support for sm6115,4250 and OnePlus Nord N100 Iskren Chernev
2022-09-10 14:32 ` [PATCH v3 1/9] dt-bindings: ufs: qcom: Add sm6115 binding Iskren Chernev
2022-09-11 8:21 ` Krzysztof Kozlowski
2022-09-10 14:32 ` [PATCH v3 2/9] dt-bindings: arm: cpus: Add kryo240 compatible Iskren Chernev
2022-09-10 14:32 ` [PATCH v3 3/9] dt-bindings: arm: qcom: Add compatible for oneplus,billie2 phone Iskren Chernev
2022-09-10 14:32 ` [PATCH v3 4/9] dt-bindings: usb: qcom,dwc3: Fix SM6115 clocks, irqs Iskren Chernev
2022-09-11 13:29 ` Krzysztof Kozlowski
2022-09-10 14:32 ` [PATCH v3 5/9] dt-bindings: mmc: sdhci-msm: Add pinctrl-1 property Iskren Chernev
2022-09-11 13:30 ` Krzysztof Kozlowski
2022-09-12 17:00 ` Bhupesh Sharma
2022-09-14 14:00 ` Ulf Hansson
2022-09-10 14:32 ` [PATCH v3 6/9] dt-bindings: phy: qcom,qmp-ufs: Fix SM6115 clocks, regs Iskren Chernev
2022-09-11 13:30 ` Krzysztof Kozlowski
2022-09-10 14:32 ` [PATCH v3 7/9] arm64: dts: qcom: sm6115: Add basic soc dtsi Iskren Chernev
2022-09-11 8:40 ` Krzysztof Kozlowski
2022-09-11 9:09 ` Iskren Chernev
2022-09-11 10:07 ` Krzysztof Kozlowski
2022-09-11 10:22 ` Iskren Chernev
2022-09-11 10:26 ` Krzysztof Kozlowski
2022-09-11 12:03 ` Iskren Chernev
2022-09-13 21:38 ` Bjorn Andersson
2022-09-10 14:32 ` [PATCH v3 8/9] arm64: dts: qcom: sm4250: Add " Iskren Chernev
2022-09-10 14:32 ` [PATCH v3 9/9] arm64: dts: qcom: sm4250: Add support for oneplus-billie2 Iskren Chernev
2022-09-13 21:30 ` Bjorn Andersson [this message]
2022-09-15 14:37 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220913213007.gdk27nxjzmagbdzn@builder.lan \
--to=andersson@kernel.org \
--cc=agross@kernel.org \
--cc=anton@enomsg.org \
--cc=ccross@android.com \
--cc=devicetree@vger.kernel.org \
--cc=iskren.chernev@gmail.com \
--cc=keescook@chromium.org \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=tony.luck@intel.com \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox