xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx6ull-seeed-npi.dtsi (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
17d0873ebSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
27d0873ebSEmmanuel Vadot/*
37d0873ebSEmmanuel Vadot * Copyright (c) 2024 Linumiz
47d0873ebSEmmanuel Vadot * Author: Parthiban <parthiban@linumiz.com>
57d0873ebSEmmanuel Vadot */
67d0873ebSEmmanuel Vadot
77d0873ebSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
87d0873ebSEmmanuel Vadot
97d0873ebSEmmanuel Vadot/ {
107d0873ebSEmmanuel Vadot	model = "Seeed NPi-iMX6ULL Dev Board";
117d0873ebSEmmanuel Vadot	compatible = "seeed,imx6ull-seeed-npi", "fsl,imx6ull";
127d0873ebSEmmanuel Vadot
137d0873ebSEmmanuel Vadot	reg_dcdc_3v3: regulator-dcdc-3v3 {
147d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
157d0873ebSEmmanuel Vadot		regulator-name = "DCDC_3V3";
167d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
177d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
187d0873ebSEmmanuel Vadot		regulator-always-on;
197d0873ebSEmmanuel Vadot	};
207d0873ebSEmmanuel Vadot
217d0873ebSEmmanuel Vadot	reg_dram_1v35: regulator-dram-1v35 {
227d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
237d0873ebSEmmanuel Vadot		regulator-name = "DRAM_1V35";
247d0873ebSEmmanuel Vadot		regulator-min-microvolt = <1350000>;
257d0873ebSEmmanuel Vadot		regulator-max-microvolt = <1350000>;
267d0873ebSEmmanuel Vadot		regulator-always-on;
277d0873ebSEmmanuel Vadot		vin-supply = <&reg_dcdc_3v3>;
287d0873ebSEmmanuel Vadot	};
297d0873ebSEmmanuel Vadot
307d0873ebSEmmanuel Vadot	reg_vdd_arm_soc_in: regulator-vdd-arm-soc-in {
317d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
327d0873ebSEmmanuel Vadot		regulator-name = "VDD_ARM_SOC_IN";
337d0873ebSEmmanuel Vadot		regulator-min-microvolt = <1200000>;
347d0873ebSEmmanuel Vadot		regulator-max-microvolt = <1200000>;
357d0873ebSEmmanuel Vadot		regulator-always-on;
367d0873ebSEmmanuel Vadot		vin-supply = <&reg_dcdc_3v3>;
377d0873ebSEmmanuel Vadot	};
387d0873ebSEmmanuel Vadot
397d0873ebSEmmanuel Vadot	reg_dcdc_1v8: regulator-dcdc-1v8 {
407d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
417d0873ebSEmmanuel Vadot		regulator-name = "DCDC_1V8";
427d0873ebSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
437d0873ebSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
447d0873ebSEmmanuel Vadot		regulator-always-on;
457d0873ebSEmmanuel Vadot		vin-supply = <&reg_dcdc_3v3>;
467d0873ebSEmmanuel Vadot	};
477d0873ebSEmmanuel Vadot
487d0873ebSEmmanuel Vadot	reg_sd1_vqmmc: regulator-sd1-vqmmc {
497d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
507d0873ebSEmmanuel Vadot		regulator-name = "NVCC_SD";
517d0873ebSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
527d0873ebSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
537d0873ebSEmmanuel Vadot		gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
547d0873ebSEmmanuel Vadot		pinctrl-names = "default";
557d0873ebSEmmanuel Vadot		pinctrl-0 = <&pinctrl_reg_vqmmc>;
567d0873ebSEmmanuel Vadot		regulator-always-on;
577d0873ebSEmmanuel Vadot		vin-supply = <&reg_dcdc_1v8>;
587d0873ebSEmmanuel Vadot	};
597d0873ebSEmmanuel Vadot};
607d0873ebSEmmanuel Vadot
617d0873ebSEmmanuel Vadot&gpmi {
627d0873ebSEmmanuel Vadot	pinctrl-names = "default";
637d0873ebSEmmanuel Vadot	pinctrl-0 = <&pinctrl_gpmi_nand>;
647d0873ebSEmmanuel Vadot	status = "disabled";
657d0873ebSEmmanuel Vadot};
667d0873ebSEmmanuel Vadot
677d0873ebSEmmanuel Vadot&usdhc1 {
687d0873ebSEmmanuel Vadot	vqmmc-supply = <&reg_sd1_vqmmc>;
697d0873ebSEmmanuel Vadot};
707d0873ebSEmmanuel Vadot
717d0873ebSEmmanuel Vadot&usdhc2 {
727d0873ebSEmmanuel Vadot	pinctrl-names = "default";
737d0873ebSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usdhc2>;
747d0873ebSEmmanuel Vadot	pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
757d0873ebSEmmanuel Vadot	pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
767d0873ebSEmmanuel Vadot	bus-width = <8>;
777d0873ebSEmmanuel Vadot	non-removable;
787d0873ebSEmmanuel Vadot	keep-power-in-suspend;
797d0873ebSEmmanuel Vadot	status = "disabled";
807d0873ebSEmmanuel Vadot};
817d0873ebSEmmanuel Vadot
827d0873ebSEmmanuel Vadot&iomuxc {
837d0873ebSEmmanuel Vadot	pinctrl_gpmi_nand: gpminandgrp {
847d0873ebSEmmanuel Vadot		fsl,pins = <
857d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DQS__RAWNAND_DQS		0x0b0b1
867d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_CLE__RAWNAND_CLE		0x0b0b1
877d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_ALE__RAWNAND_ALE		0x0b0b1
887d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B	0x0b0b1
897d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B	0x0b000
907d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B	0x0b0b1
917d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_CE1_B__RAWNAND_CE1_B	0x0b0b1
927d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B	0x0b0b1
937d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B	0x0b0b1
947d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00	0x0b0b1
957d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01	0x0b0b1
967d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02	0x0b0b1
977d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03	0x0b0b1
987d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04	0x0b0b1
997d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05	0x0b0b1
1007d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06   0x0b0b1
1017d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07	0x0b0b1
1027d0873ebSEmmanuel Vadot		>;
1037d0873ebSEmmanuel Vadot	};
1047d0873ebSEmmanuel Vadot
105*b2d2a78aSEmmanuel Vadot	pinctrl_reg_vqmmc: usdhc1regvqmmcgrp {
1067d0873ebSEmmanuel Vadot		fsl,pins = <
1077d0873ebSEmmanuel Vadot			MX6UL_PAD_GPIO1_IO05__GPIO1_IO05	0x17059
1087d0873ebSEmmanuel Vadot		>;
1097d0873ebSEmmanuel Vadot	};
1107d0873ebSEmmanuel Vadot
1117d0873ebSEmmanuel Vadot	pinctrl_usdhc2: usdhc2grp {
1127d0873ebSEmmanuel Vadot		fsl,pins = <
1137d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_RE_B__USDHC2_CLK		0x10069
1147d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_WE_B__USDHC2_CMD		0x17059
1157d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA00__USDHC2_DATA0	0x17059
1167d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA01__USDHC2_DATA1	0x17059
1177d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA02__USDHC2_DATA2	0x17059
1187d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA03__USDHC2_DATA3	0x17059
1197d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA04__USDHC2_DATA4	0x17059
1207d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA05__USDHC2_DATA5	0x17059
1217d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA06__USDHC2_DATA6	0x17059
1227d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA07__USDHC2_DATA7	0x17059
1237d0873ebSEmmanuel Vadot		>;
1247d0873ebSEmmanuel Vadot	};
1257d0873ebSEmmanuel Vadot
126*b2d2a78aSEmmanuel Vadot	pinctrl_usdhc2_100mhz: usdhc2-100mhz-grp {
1277d0873ebSEmmanuel Vadot		fsl,pins = <
1287d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_RE_B__USDHC2_CLK		0x100b9
1297d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_WE_B__USDHC2_CMD		0x170b9
1307d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA00__USDHC2_DATA0	0x170b9
1317d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA01__USDHC2_DATA1	0x170b9
1327d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA02__USDHC2_DATA2	0x170b9
1337d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA03__USDHC2_DATA3	0x170b9
1347d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA04__USDHC2_DATA4	0x170b9
1357d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA05__USDHC2_DATA5	0x170b9
1367d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA06__USDHC2_DATA6	0x170b9
1377d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA07__USDHC2_DATA7	0x170b9
1387d0873ebSEmmanuel Vadot		>;
1397d0873ebSEmmanuel Vadot	};
1407d0873ebSEmmanuel Vadot
141*b2d2a78aSEmmanuel Vadot	pinctrl_usdhc2_200mhz: usdhc2-200mhz-grp {
1427d0873ebSEmmanuel Vadot		fsl,pins = <
1437d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_RE_B__USDHC2_CLK		0x100f9
1447d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_WE_B__USDHC2_CMD		0x170f9
1457d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA00__USDHC2_DATA0	0x170f9
1467d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA01__USDHC2_DATA1	0x170f9
1477d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA02__USDHC2_DATA2	0x170f9
1487d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA03__USDHC2_DATA3	0x170f9
1497d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA04__USDHC2_DATA4	0x170f9
1507d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA05__USDHC2_DATA5	0x170f9
1517d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA06__USDHC2_DATA6	0x170f9
1527d0873ebSEmmanuel Vadot			MX6UL_PAD_NAND_DATA07__USDHC2_DATA7	0x170f9
1537d0873ebSEmmanuel Vadot		>;
1547d0873ebSEmmanuel Vadot	};
1557d0873ebSEmmanuel Vadot};
156