Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Device tree generated automatically by Digi ConnectCore Smart IOmux.
- *
- * This file is provided "AS IS" without any warranties and support, it is
- * just a guideline that requires additional customization.
- *
- * Please verify the calculated pin assignments with the hardware reference
- * manual for your platform, review the commented lines, and add the
- * specific values for your hardware.
- */
- /dts-v1/;
- /* i.MX6 UltraLite CPU */
- #include "imx6ul.dtsi"
- /* ConnectCore 6UL (wireless/bluetooth variant) */
- #include "imx6ul-ccimx6ul-wb.dtsi"
- #include <dt-bindings/usb/pd.h>
- / {
- // Add here your platform model.
- model = "ConnectCore 6UL";
- // Add here your compatible platform.
- compatible = "digi,ccimx6ul", "fsl,imx6ul";
- };
- &ecspi1 {
- // PPTEST
- fsl,spi-num-chipselects = <1>;
- //cs-gpios = <&gpio4 26 GPIO_ACTIVE_LOW>;
- //num-cs = <1>;
- // PPTEST END
- pinctrl-names = "default";
- status = "okay";
- /*
- * Configure the GPIO that you selected as 'slave select'.
- */
- //cs-gpios = <&gpio3 26 GPIO_ACTIVE_LOW>;
- /*
- * ECSPI1 (as master)
- */
- pinctrl-0 = <&pinctrl_ecspi1>;
- /*
- * Reference block.
- *
- * Add your slave devices here. Next is an example of spidev.
- * Expect a harmless kernel warning if you enable spidev as slave.
- */
- spidev@0 {
- reg = <0>;
- compatible = "linux,spidev";
- spi-max-frequency = <1000000>;
- };
- };
- &ecspi4 {
- // PPTEST
- //fsl,spi-num-chipselects = <1>; not mentioned in iomux
- num-cs = <1>;
- cs-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
- // PPTEST END
- pinctrl-names = "default";
- status = "okay";
- /*
- * Configure the GPIO that you selected as 'slave select'.
- */
- //cs-gpios = <&gpio3 26 GPIO_ACTIVE_LOW>;
- /*
- * ECSPI4 (as master)
- */
- pinctrl-0 = <&pinctrl_ecspi4>;
- /*
- * Reference block.
- *
- * Add your slave devices here. Next is an example of spidev.
- * Expect a harmless kernel warning if you enable spidev as slave.
- */
- spidev@0 {
- reg = <0>;
- compatible = "linux,spidev";
- spi-max-frequency = <1000000>;
- };
- };
- &fec1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_enet1>, <&pinctrl_enet_mdio>;
- phy-mode = "rmii";
- phy-handle = <ðphy1>;
- /*
- * Optional fields.
- *
- * Configure the PHY reset with a GPIO in your design.
- */
- //phy-reset-gpios = <&gpio5 6 GPIO_ACTIVE_LOW>
- //phy-reset-duration = <26>;
- //digi,phy-reset-in-suspend;
- status = "okay";
- mdio {
- #address-cells = <1>;
- #size-cells = <0>;
- ethphy1: ethernet-phy@0 {
- compatible = "ethernet-phy-ieee802.3-c22";
- /*
- * Add your custom PHY configuration.
- */
- //smsc,disable-energy-detect;
- reg = <0>;
- };
- ethphy2: ethernet-phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
- /*
- * Add your custom PHY configuration.
- */
- //smsc,disable-energy-detect;
- reg = <1>;
- };
- };
- };
- // See imx6ul-14x14-evk-ecspi.dts
- &fec2 {
- status = "disabled";
- };
- &i2c3 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c3>;
- //pinctrl-1 = <&pinctrl_i2c3_gpio>;
- //clock-frequency = <100000>;
- /* Uncomment and fill with your current scl/sda lines. */
- //scl-gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
- //sda-gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;
- //From arm/boot/dts/imx6ull-colibri.dtsi
- //sda-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- //scl-gpios = <&gpio1 30 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
- // IOmux does not permit the reuse of GPIO pins
- // i2c3 is ALT3 and GPIO is ALT5
- // Present in imx6ull-colibri.dtsi for i2c2 but nowhere else
- /*
- scl-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
- sda-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
- */
- status = "okay";
- /*
- * Reference block.
- *
- * Add the peripherals connected to the I2C.
- */
- ptn5110: tcpc@50 {
- compatible = "nxp,ptn5110";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_typec>;
- reg = <0x50>;
- // Already connected to USB_OTG_ID
- interrupt-parent = <&gpio1>;
- interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- // Give this a try then try 400000
- clock-frequency = <400000>;
- status = "okay";
- usb_con: connector {
- compatible = "usb-c-connector";
- label = "USB-C";
- power-role = "dual";
- data-role = "dual";
- try-power-role = "sink";
- source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
- sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
- PDO_VAR(5000, 20000, 3000)>;
- op-sink-microwatt = <15000000>;
- self-powered;
- };
- };
- };
- &uart2 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_uart2>;
- uart-has-rtscts;
- status = "okay";
- };
- &uart5 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_console>;
- status = "okay";
- };
- &usbotg1 {
- dr_mode = "otg";
- /* Set the proper voltage regulator. */
- //vbus-supply = <®_usb_otg1_vbus>;
- /*
- * Configure the power line if needed.
- */
- //digi,power-line-active-high;
- /*
- * Configure the overcurrent line if needed.
- */
- //disable-over-current;
- pinctrl-0 = <&pinctrl_usbotg1>;
- status = "okay";
- };
- &usdhc2 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usdhc2>;
- broken-cd; /* no carrier detect line (use polling) */
- no-1-8-v;
- status = "okay";
- };
- &iomuxc {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_hog>;
- imx6ul-ccimx6ul {
- pinctrl_console: uart5grp {
- fsl,pins = <
- MX6UL_PAD_UART5_RX_DATA__UART5_DCE_RX 0x1b0b1
- MX6UL_PAD_UART5_TX_DATA__UART5_DCE_TX 0x1b0b1
- >;
- };
- pinctrl_typec: typecgrp {
- fsl,pins = <
- /* PTN5110 irq line (ALERT) from ccimx8x-sbc-pro.dtsi */
- //IMX8QXP_USB_SS3_TC1_LSIO_GPIO4_IO04 0x06000021 original
- // This is incorrect
- MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
- // OTG1 tied low
- //MX6UL_PAD_GPIO1_IO00__GPIO1_IO00 0x17059
- >;
- };
- pinctrl_ecspi1: ecspi1grp1 {
- fsl,pins = <
- MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x10b0
- MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x10b0
- MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x10b0
- // PPTEST chip select Y2/CSI_DATA5 on schematic
- MX6UL_PAD_CSI_DATA05__ECSPI1_SS0 0x10b0 /* Chip Select */
- >;
- };
- pinctrl_ecspi4: ecspi4grp1 {
- fsl,pins = <
- MX6UL_PAD_ENET2_TX_EN__ECSPI4_MOSI 0x10b0
- MX6UL_PAD_ENET2_TX_CLK__ECSPI4_MISO 0x10b0
- MX6UL_PAD_ENET2_TX_DATA1__ECSPI4_SCLK 0x10b0
- // PPTEST chip select C15/NAND_DATA7 on schematic
- //MX6UL_PAD_NAND_DATA07__ECSPI4_SS0 0x10b0 /* Chip Select */
- // Milen has opted to use R1
- MX6UL_PAD_CSI_MCLK__GPIO4_IO17 0x10b0 /* Chip Select */
- >;
- };
- pinctrl_enet1: enet1grp {
- fsl,pins = <
- MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
- MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
- MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
- MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
- MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
- MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
- MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
- MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
- >;
- };
- pinctrl_enet_mdio: mdioenetgrp {
- fsl,pins = <
- MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
- MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0
- >;
- };
- pinctrl_hog: hoggrp {
- fsl,pins = <
- /* ENET1_INT# */
- MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x10b0
- /* SPI4_SS0 */
- // Already mentioned in ecspi4
- //MX6UL_PAD_CSI_MCLK__GPIO4_IO17 0x10b0
- /* SPI1_IRQ_N */
- MX6UL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x10b0
- /* GPIO4_IO17 */
- MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x10b0
- /* GPIO2_IO11 */
- MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x10b0
- /* GPIO2_IO12 */
- MX6UL_PAD_ENET2_RX_EN__GPIO2_IO10 0x10b0
- /* GPIO1_IO24 */
- MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x10b0
- /* GPIO1_IO25 */
- MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10b0
- /* GPIO1_IO05 */
- MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x10b0
- /* GPIO4_IO18 */
- MX6UL_PAD_CSI_PIXCLK__GPIO4_IO18 0x10b0
- /* GPIO1_IO09 */
- MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x10b0
- /* GPIO1_IO27 */
- MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x10b0
- /* INT IO */
- MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0x10b0
- /* RESET IO */
- MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0x10b0
- /* WDOG_TOG */
- MX6UL_PAD_LCD_HSYNC__GPIO3_IO02 0x10b0
- /* 24V_IS_EN */
- MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x10b0
- /* GPIO2_IO15 */
- MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15 0x10b0
- >;
- };
- pinctrl_i2c3: i2c3grp {
- fsl,pins = <
- MX6UL_PAD_ENET2_RX_DATA0__I2C3_SCL 0x4001b8b0
- MX6UL_PAD_ENET2_RX_DATA1__I2C3_SDA 0x4001b8b0
- >;
- };
- // IOmux does not permit reuse of the same pins
- /*
- pinctrl_i2c3_gpio: i2c3-gpio-grp {
- fsl,pins = <
- // From From arm/boot/dts/imx6ull-colibri.dtsi
- //MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30 0x4001b8b0
- //MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31 0x4001b8b0
- MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x4001b8b0
- MX6UL_PAD_ENET2_RX_DATA1__GPIO2_IO09 0x4001b8b0
- >;
- };
- */
- pinctrl_uart2: uart2grp {
- fsl,pins = <
- MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1
- MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1
- MX6UL_PAD_UART2_RTS_B__UART2_DCE_RTS 0x1b0b1
- MX6UL_PAD_UART2_CTS_B__UART2_DCE_CTS 0x1b0b1
- >;
- };
- pinctrl_usbotg1: usbotg1grp {
- fsl,pins = <
- // Already using this pin as a GPIO
- MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
- MX6UL_PAD_GPIO1_IO01__USB_OTG1_OC 0x17059
- MX6UL_PAD_GPIO1_IO04__USB_OTG1_PWR 0x17059
- >;
- };
- pinctrl_usdhc2: usdhc2grp {
- fsl,pins = <
- MX6UL_PAD_CSI_VSYNC__USDHC2_CLK 0x10039
- MX6UL_PAD_CSI_HSYNC__USDHC2_CMD 0x17059
- MX6UL_PAD_CSI_DATA00__USDHC2_DATA0 0x17059
- MX6UL_PAD_CSI_DATA01__USDHC2_DATA1 0x17059
- MX6UL_PAD_CSI_DATA02__USDHC2_DATA2 0x17059
- MX6UL_PAD_CSI_DATA03__USDHC2_DATA3 0x17059
- >;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement