Russell King | 971488f | 2014-01-16 16:12:38 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 Russell King |
| 3 | */ |
| 4 | #include "imx6qdl-microsom.dtsi" |
| 5 | #include "imx6qdl-microsom-ar8035.dtsi" |
| 6 | |
| 7 | / { |
| 8 | ir_recv: ir-receiver { |
| 9 | compatible = "gpio-ir-receiver"; |
| 10 | gpios = <&gpio3 9 1>; |
| 11 | pinctrl-names = "default"; |
| 12 | pinctrl-0 = <&pinctrl_cubox_i_ir>; |
| 13 | }; |
| 14 | |
| 15 | regulators { |
| 16 | compatible = "simple-bus"; |
| 17 | |
| 18 | reg_3p3v: 3p3v { |
| 19 | compatible = "regulator-fixed"; |
| 20 | regulator-name = "3P3V"; |
| 21 | regulator-min-microvolt = <3300000>; |
| 22 | regulator-max-microvolt = <3300000>; |
| 23 | regulator-always-on; |
| 24 | }; |
| 25 | |
| 26 | reg_usbh1_vbus: usb-h1-vbus { |
| 27 | compatible = "regulator-fixed"; |
| 28 | enable-active-high; |
| 29 | gpio = <&gpio1 0 0>; |
| 30 | pinctrl-names = "default"; |
| 31 | pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>; |
| 32 | regulator-name = "usb_h1_vbus"; |
| 33 | regulator-min-microvolt = <5000000>; |
| 34 | regulator-max-microvolt = <5000000>; |
| 35 | }; |
| 36 | |
| 37 | reg_usbotg_vbus: usb-otg-vbus { |
| 38 | compatible = "regulator-fixed"; |
| 39 | enable-active-high; |
| 40 | gpio = <&gpio3 22 0>; |
| 41 | pinctrl-names = "default"; |
| 42 | pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>; |
| 43 | regulator-name = "usb_otg_vbus"; |
| 44 | regulator-min-microvolt = <5000000>; |
| 45 | regulator-max-microvolt = <5000000>; |
| 46 | }; |
| 47 | }; |
| 48 | |
Russell King | 971488f | 2014-01-16 16:12:38 +0000 | [diff] [blame] | 49 | sound-spdif { |
| 50 | compatible = "fsl,imx-audio-spdif"; |
| 51 | model = "imx-spdif"; |
| 52 | /* IMX6 doesn't implement this yet */ |
| 53 | spdif-controller = <&spdif>; |
| 54 | spdif-out; |
| 55 | }; |
| 56 | }; |
| 57 | |
Russell King | f34d0d5 | 2014-04-18 11:01:27 +0100 | [diff] [blame] | 58 | &hdmi { |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&pinctrl_cubox_i_hdmi>; |
| 61 | ddc-i2c-bus = <&i2c2>; |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | |
| 65 | &i2c2 { |
| 66 | clock-frequency = <100000>; |
| 67 | pinctrl-names = "default"; |
| 68 | pinctrl-0 = <&pinctrl_cubox_i_i2c2>; |
| 69 | status = "okay"; |
| 70 | }; |
| 71 | |
Russell King | 971488f | 2014-01-16 16:12:38 +0000 | [diff] [blame] | 72 | &i2c3 { |
| 73 | pinctrl-names = "default"; |
| 74 | pinctrl-0 = <&pinctrl_cubox_i_i2c3>; |
| 75 | |
| 76 | status = "okay"; |
| 77 | |
| 78 | rtc: pcf8523@68 { |
| 79 | compatible = "nxp,pcf8523"; |
| 80 | reg = <0x68>; |
| 81 | }; |
| 82 | }; |
| 83 | |
| 84 | &iomuxc { |
| 85 | cubox_i { |
Russell King | f34d0d5 | 2014-04-18 11:01:27 +0100 | [diff] [blame] | 86 | pinctrl_cubox_i_hdmi: cubox-i-hdmi { |
| 87 | fsl,pins = < |
| 88 | MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 |
| 89 | >; |
| 90 | }; |
| 91 | |
| 92 | pinctrl_cubox_i_i2c2: cubox-i-i2c2 { |
| 93 | fsl,pins = < |
| 94 | MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 |
| 95 | MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 |
| 96 | >; |
| 97 | }; |
| 98 | |
Russell King | 971488f | 2014-01-16 16:12:38 +0000 | [diff] [blame] | 99 | pinctrl_cubox_i_i2c3: cubox-i-i2c3 { |
| 100 | fsl,pins = < |
| 101 | MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1 |
| 102 | MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1 |
| 103 | >; |
| 104 | }; |
| 105 | |
| 106 | pinctrl_cubox_i_ir: cubox-i-ir { |
| 107 | fsl,pins = < |
| 108 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 |
| 109 | >; |
| 110 | }; |
| 111 | |
| 112 | pinctrl_cubox_i_spdif: cubox-i-spdif { |
Russell King | 87f9260 | 2014-02-08 21:18:24 +0000 | [diff] [blame] | 113 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; |
Russell King | 971488f | 2014-01-16 16:12:38 +0000 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus { |
| 117 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>; |
| 118 | }; |
| 119 | |
| 120 | pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus { |
| 121 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>; |
| 122 | }; |
| 123 | |
| 124 | pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux { |
| 125 | fsl,pins = < |
| 126 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 |
| 127 | MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071 |
| 128 | >; |
| 129 | }; |
| 130 | |
| 131 | pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 { |
| 132 | fsl,pins = < |
| 133 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 |
| 134 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 |
| 135 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 |
| 136 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 |
| 137 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 |
| 138 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 |
| 139 | >; |
| 140 | }; |
| 141 | }; |
| 142 | }; |
| 143 | |
| 144 | &spdif { |
Russell King | 87f9260 | 2014-02-08 21:18:24 +0000 | [diff] [blame] | 145 | pinctrl-names = "default"; |
| 146 | pinctrl-0 = <&pinctrl_cubox_i_spdif>; |
Russell King | 971488f | 2014-01-16 16:12:38 +0000 | [diff] [blame] | 147 | status = "okay"; |
| 148 | }; |
| 149 | |
| 150 | &usbh1 { |
| 151 | vbus-supply = <®_usbh1_vbus>; |
| 152 | status = "okay"; |
| 153 | }; |
| 154 | |
| 155 | &usbotg { |
| 156 | vbus-supply = <®_usbotg_vbus>; |
| 157 | status = "okay"; |
| 158 | }; |
| 159 | |
| 160 | &usdhc2 { |
| 161 | pinctrl-names = "default"; |
| 162 | pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>; |
| 163 | vmmc-supply = <®_3p3v>; |
| 164 | cd-gpios = <&gpio1 4 0>; |
| 165 | status = "okay"; |
| 166 | }; |