18bab661aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
28bab661aSEmmanuel Vadot/*
38bab661aSEmmanuel Vadot * Copyright (c) 2021, Iskren Chernev <iskren.chernev@gmail.com>
48bab661aSEmmanuel Vadot */
58bab661aSEmmanuel Vadot
68bab661aSEmmanuel Vadot/dts-v1/;
78bab661aSEmmanuel Vadot
88bab661aSEmmanuel Vadot#include "sm4250.dtsi"
98bab661aSEmmanuel Vadot
108bab661aSEmmanuel Vadot/ {
118bab661aSEmmanuel Vadot	model = "OnePlus Nord N100";
128bab661aSEmmanuel Vadot	compatible = "oneplus,billie2", "qcom,sm4250";
138bab661aSEmmanuel Vadot
148bab661aSEmmanuel Vadot	/* required for bootloader to select correct board */
158bab661aSEmmanuel Vadot	qcom,msm-id = <0x1a1 0x10000 0x1bc 0x10000>;
168bab661aSEmmanuel Vadot	qcom,board-id = <0x1000b 0x00>;
178bab661aSEmmanuel Vadot
188bab661aSEmmanuel Vadot	aliases {
198bab661aSEmmanuel Vadot	};
208bab661aSEmmanuel Vadot
218bab661aSEmmanuel Vadot	chosen {
228bab661aSEmmanuel Vadot		#address-cells = <2>;
238bab661aSEmmanuel Vadot		#size-cells = <2>;
248bab661aSEmmanuel Vadot		ranges;
258bab661aSEmmanuel Vadot
268bab661aSEmmanuel Vadot		stdout-path = "framebuffer0";
278bab661aSEmmanuel Vadot
288bab661aSEmmanuel Vadot		framebuffer0: framebuffer@9d400000 {
298bab661aSEmmanuel Vadot			compatible = "simple-framebuffer";
308bab661aSEmmanuel Vadot			reg = <0 0x5c000000 0 (1600 * 720 * 4)>;
318bab661aSEmmanuel Vadot			width = <720>;
328bab661aSEmmanuel Vadot			height = <1600>;
338bab661aSEmmanuel Vadot			stride = <(720 * 4)>;
348bab661aSEmmanuel Vadot			format = "a8r8g8b8";
358bab661aSEmmanuel Vadot		};
368bab661aSEmmanuel Vadot	};
378bab661aSEmmanuel Vadot};
388bab661aSEmmanuel Vadot
398bab661aSEmmanuel Vadot&reserved_memory {
408bab661aSEmmanuel Vadot	bootloader_log_mem: memory@5fff7000 {
418bab661aSEmmanuel Vadot		reg = <0x0 0x5fff7000 0x0 0x8000>;
428bab661aSEmmanuel Vadot		no-map;
438bab661aSEmmanuel Vadot	};
448bab661aSEmmanuel Vadot
458bab661aSEmmanuel Vadot	ramoops@cbe00000 {
468bab661aSEmmanuel Vadot		compatible = "ramoops";
478bab661aSEmmanuel Vadot		reg = <0x0 0xcbe00000 0x0 0x400000>;
488bab661aSEmmanuel Vadot		record-size = <0x40000>;
498bab661aSEmmanuel Vadot		pmsg-size = <0x200000>;
508bab661aSEmmanuel Vadot		console-size = <0x40000>;
518bab661aSEmmanuel Vadot		ftrace-size = <0x40000>;
528bab661aSEmmanuel Vadot	};
538bab661aSEmmanuel Vadot
548bab661aSEmmanuel Vadot	param_mem: memory@cc200000 {
558bab661aSEmmanuel Vadot		reg = <0x0 0xcc200000 0x0 0x100000>;
568bab661aSEmmanuel Vadot		no-map;
578bab661aSEmmanuel Vadot	};
588bab661aSEmmanuel Vadot
598bab661aSEmmanuel Vadot	mtp_mem: memory@cc300000 {
608bab661aSEmmanuel Vadot		reg = <0x00 0xcc300000 0x00 0xb00000>;
618bab661aSEmmanuel Vadot		no-map;
628bab661aSEmmanuel Vadot	};
638bab661aSEmmanuel Vadot};
648bab661aSEmmanuel Vadot
658bab661aSEmmanuel Vadot&rpm_requests {
668bab661aSEmmanuel Vadot	regulators-0 {
678bab661aSEmmanuel Vadot		compatible = "qcom,rpm-pm6125-regulators";
688bab661aSEmmanuel Vadot
698bab661aSEmmanuel Vadot		vreg_s6a: s6 {
708bab661aSEmmanuel Vadot			regulator-min-microvolt = <320000>;
718bab661aSEmmanuel Vadot			regulator-max-microvolt = <1456000>;
728bab661aSEmmanuel Vadot		};
738bab661aSEmmanuel Vadot
748bab661aSEmmanuel Vadot		vreg_s7a: s7 {
758bab661aSEmmanuel Vadot			regulator-min-microvolt = <1280000>;
768bab661aSEmmanuel Vadot			regulator-max-microvolt = <2040000>;
778bab661aSEmmanuel Vadot		};
788bab661aSEmmanuel Vadot
798bab661aSEmmanuel Vadot		vreg_s8a: s8 {
808bab661aSEmmanuel Vadot			regulator-min-microvolt = <1064000>;
818bab661aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
828bab661aSEmmanuel Vadot		};
838bab661aSEmmanuel Vadot
848bab661aSEmmanuel Vadot		vreg_l1a: l1 {
858bab661aSEmmanuel Vadot			regulator-min-microvolt = <952000>;
868bab661aSEmmanuel Vadot			regulator-max-microvolt = <1152000>;
878bab661aSEmmanuel Vadot		};
888bab661aSEmmanuel Vadot
898bab661aSEmmanuel Vadot		vreg_l4a: l4 {
908bab661aSEmmanuel Vadot			regulator-min-microvolt = <488000>;
918bab661aSEmmanuel Vadot			regulator-max-microvolt = <1000000>;
928bab661aSEmmanuel Vadot		};
938bab661aSEmmanuel Vadot
948bab661aSEmmanuel Vadot		vreg_l5a: l5 {
958bab661aSEmmanuel Vadot			regulator-min-microvolt = <1648000>;
968bab661aSEmmanuel Vadot			regulator-max-microvolt = <3056000>;
978bab661aSEmmanuel Vadot		};
988bab661aSEmmanuel Vadot
998bab661aSEmmanuel Vadot		vreg_l6a: l6 {
1008bab661aSEmmanuel Vadot			regulator-min-microvolt = <576000>;
1018bab661aSEmmanuel Vadot			regulator-max-microvolt = <656000>;
1028bab661aSEmmanuel Vadot		};
1038bab661aSEmmanuel Vadot
1048bab661aSEmmanuel Vadot		vreg_l7a: l7 {
1058bab661aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
1068bab661aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
1078bab661aSEmmanuel Vadot		};
1088bab661aSEmmanuel Vadot
1098bab661aSEmmanuel Vadot		vreg_l8a: l8 {
1108bab661aSEmmanuel Vadot			regulator-min-microvolt = <400000>;
1118bab661aSEmmanuel Vadot			regulator-max-microvolt = <728000>;
1128bab661aSEmmanuel Vadot		};
1138bab661aSEmmanuel Vadot
1148bab661aSEmmanuel Vadot		vreg_l9a: l9 {
1158bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
1168bab661aSEmmanuel Vadot			regulator-max-microvolt = <2000000>;
1178bab661aSEmmanuel Vadot		};
1188bab661aSEmmanuel Vadot
1198bab661aSEmmanuel Vadot		vreg_l10a: l10 {
1208bab661aSEmmanuel Vadot			regulator-min-microvolt = <1704000>;
1218bab661aSEmmanuel Vadot			regulator-max-microvolt = <1904000>;
1228bab661aSEmmanuel Vadot		};
1238bab661aSEmmanuel Vadot
1248bab661aSEmmanuel Vadot		vreg_l11a: l11 {
1258bab661aSEmmanuel Vadot			regulator-min-microvolt = <1704000>;
1268bab661aSEmmanuel Vadot			regulator-max-microvolt = <1952000>;
1278bab661aSEmmanuel Vadot		};
1288bab661aSEmmanuel Vadot
1298bab661aSEmmanuel Vadot		vreg_l12a: l12 {
1308bab661aSEmmanuel Vadot			regulator-min-microvolt = <1624000>;
1318bab661aSEmmanuel Vadot			regulator-max-microvolt = <1984000>;
1328bab661aSEmmanuel Vadot		};
1338bab661aSEmmanuel Vadot
1348bab661aSEmmanuel Vadot		vreg_l13a: l13 {
1358bab661aSEmmanuel Vadot			regulator-min-microvolt = <1504000>;
1368bab661aSEmmanuel Vadot			regulator-max-microvolt = <1952000>;
1378bab661aSEmmanuel Vadot		};
1388bab661aSEmmanuel Vadot
1398bab661aSEmmanuel Vadot		vreg_l14a: l14 {
1408bab661aSEmmanuel Vadot			regulator-min-microvolt = <1704000>;
1418bab661aSEmmanuel Vadot			regulator-max-microvolt = <1904000>;
1428bab661aSEmmanuel Vadot		};
1438bab661aSEmmanuel Vadot
1448bab661aSEmmanuel Vadot		vreg_l15a: l15 {
1458bab661aSEmmanuel Vadot			regulator-min-microvolt = <2920000>;
1468bab661aSEmmanuel Vadot			regulator-max-microvolt = <3232000>;
1478bab661aSEmmanuel Vadot		};
1488bab661aSEmmanuel Vadot
1498bab661aSEmmanuel Vadot		vreg_l16a: l16 {
1508bab661aSEmmanuel Vadot			regulator-min-microvolt = <1704000>;
1518bab661aSEmmanuel Vadot			regulator-max-microvolt = <1904000>;
1528bab661aSEmmanuel Vadot		};
1538bab661aSEmmanuel Vadot
1548bab661aSEmmanuel Vadot		vreg_l17a: l17 {
1558bab661aSEmmanuel Vadot			regulator-min-microvolt = <1152000>;
1568bab661aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
1578bab661aSEmmanuel Vadot		};
1588bab661aSEmmanuel Vadot
1598bab661aSEmmanuel Vadot		vreg_l18a: l18 {
1608bab661aSEmmanuel Vadot			regulator-min-microvolt = <1104000>;
1618bab661aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
1628bab661aSEmmanuel Vadot		};
1638bab661aSEmmanuel Vadot
1648bab661aSEmmanuel Vadot		vreg_l19a: l19 {
1658bab661aSEmmanuel Vadot			regulator-min-microvolt = <1624000>;
1668bab661aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
1678bab661aSEmmanuel Vadot		};
1688bab661aSEmmanuel Vadot
1698bab661aSEmmanuel Vadot		vreg_l20a: l20 {
1708bab661aSEmmanuel Vadot			regulator-min-microvolt = <1624000>;
1718bab661aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
1728bab661aSEmmanuel Vadot		};
1738bab661aSEmmanuel Vadot
1748bab661aSEmmanuel Vadot		vreg_l21a: l21 {
1758bab661aSEmmanuel Vadot			regulator-min-microvolt = <2400000>;
1768bab661aSEmmanuel Vadot			regulator-max-microvolt = <3544000>;
1778bab661aSEmmanuel Vadot		};
1788bab661aSEmmanuel Vadot
1798bab661aSEmmanuel Vadot		vreg_l22a: l22 {
1808bab661aSEmmanuel Vadot			regulator-min-microvolt = <2952000>;
1818bab661aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
1828bab661aSEmmanuel Vadot		};
1838bab661aSEmmanuel Vadot
1848bab661aSEmmanuel Vadot		vreg_l23a: l23 {
1858bab661aSEmmanuel Vadot			regulator-min-microvolt = <3296000>;
1868bab661aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
1878bab661aSEmmanuel Vadot		};
1888bab661aSEmmanuel Vadot
1898bab661aSEmmanuel Vadot		vreg_l24a: l24 {
1908bab661aSEmmanuel Vadot			regulator-min-microvolt = <2704000>;
1918bab661aSEmmanuel Vadot			regulator-max-microvolt = <3544000>;
1928bab661aSEmmanuel Vadot		};
1938bab661aSEmmanuel Vadot	};
1948bab661aSEmmanuel Vadot};
1958bab661aSEmmanuel Vadot
1968bab661aSEmmanuel Vadot&sleep_clk {
1978bab661aSEmmanuel Vadot	clock-frequency = <32764>;
1988bab661aSEmmanuel Vadot};
1998bab661aSEmmanuel Vadot
2008bab661aSEmmanuel Vadot&sdhc_2 {
2018bab661aSEmmanuel Vadot	vmmc-supply = <&vreg_l22a>;
2028bab661aSEmmanuel Vadot	vqmmc-supply = <&vreg_l5a>;
2038bab661aSEmmanuel Vadot
2048bab661aSEmmanuel Vadot	cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>;
205fac71e4eSEmmanuel Vadot	pinctrl-names = "default", "sleep";
206fac71e4eSEmmanuel Vadot	pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>;
207fac71e4eSEmmanuel Vadot	pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>;
2088bab661aSEmmanuel Vadot
2098bab661aSEmmanuel Vadot	status = "okay";
2108bab661aSEmmanuel Vadot};
2118bab661aSEmmanuel Vadot
2128bab661aSEmmanuel Vadot&tlmm {
2138bab661aSEmmanuel Vadot	gpio-reserved-ranges = <14 4>;
214fac71e4eSEmmanuel Vadot
215fac71e4eSEmmanuel Vadot	sdc2_card_det_n: sd-card-det-n-state {
216fac71e4eSEmmanuel Vadot		pins = "gpio88";
217fac71e4eSEmmanuel Vadot		function = "gpio";
218fac71e4eSEmmanuel Vadot		drive-strength = <2>;
219fac71e4eSEmmanuel Vadot		bias-pull-up;
220fac71e4eSEmmanuel Vadot	};
2218bab661aSEmmanuel Vadot};
2228bab661aSEmmanuel Vadot
2238bab661aSEmmanuel Vadot&ufs_mem_hc {
2248bab661aSEmmanuel Vadot	vcc-supply = <&vreg_l24a>;
2258bab661aSEmmanuel Vadot	vcc-max-microamp = <600000>;
2268bab661aSEmmanuel Vadot	vccq2-supply = <&vreg_l11a>;
2278bab661aSEmmanuel Vadot	vccq2-max-microamp = <600000>;
228*84943d6fSEmmanuel Vadot	vdd-hba-supply = <&vreg_l18a>;
2298bab661aSEmmanuel Vadot	status = "okay";
2308bab661aSEmmanuel Vadot};
2318bab661aSEmmanuel Vadot
2328bab661aSEmmanuel Vadot&ufs_mem_phy {
2338bab661aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l4a>;
2348bab661aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a>;
2358bab661aSEmmanuel Vadot	status = "okay";
2368bab661aSEmmanuel Vadot};
2378bab661aSEmmanuel Vadot
238fac71e4eSEmmanuel Vadot&usb {
2398bab661aSEmmanuel Vadot	status = "okay";
2408bab661aSEmmanuel Vadot};
2418bab661aSEmmanuel Vadot
242fac71e4eSEmmanuel Vadot&usb_dwc3 {
243fac71e4eSEmmanuel Vadot	maximum-speed = "high-speed";
244fac71e4eSEmmanuel Vadot	dr_mode = "peripheral";
245f126890aSEmmanuel Vadot
246f126890aSEmmanuel Vadot	phys = <&usb_hsphy>;
247f126890aSEmmanuel Vadot	phy-names = "usb2-phy";
248fac71e4eSEmmanuel Vadot};
249fac71e4eSEmmanuel Vadot
250fac71e4eSEmmanuel Vadot&usb_hsphy {
2518bab661aSEmmanuel Vadot	vdd-supply = <&vreg_l4a>;
2528bab661aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l12a>;
2538bab661aSEmmanuel Vadot	vdda-phy-dpdm-supply = <&vreg_l15a>;
2548bab661aSEmmanuel Vadot	status = "okay";
2558bab661aSEmmanuel Vadot};
2568bab661aSEmmanuel Vadot
2578bab661aSEmmanuel Vadot&xo_board {
2588bab661aSEmmanuel Vadot	clock-frequency = <19200000>;
2598bab661aSEmmanuel Vadot};
260