Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright 2014 John Weber, Avnet Electronics Marketing
- * Copyright 2013 Boundary Devices
- * Copyright 2012 Freescale Semiconductor, Inc.
- * Copyright 2011 Linaro Ltd.
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
- */
- / {
- aliases {
- mxcfb0 = &mxcfb1;
- mxcfb1 = &mxcfb2;
- mxcfb2 = &mxcfb3;
- mxcfb3 = &mxcfb4;
- };
- memory {
- reg = <0x10000000 0x40000000>;
- };
- regulators {
- compatible = "simple-bus";
- reg_1p8v: 1p8v {
- compatible = "regulator-fixed";
- regulator-name = "1P8V";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- regulator-always-on;
- };
- reg_2p5v: 2p5v {
- compatible = "regulator-fixed";
- regulator-name = "2P5V";
- regulator-min-microvolt = <2500000>;
- regulator-max-microvolt = <2500000>;
- regulator-always-on;
- };
- reg_3p3v: 3p3v {
- compatible = "regulator-fixed";
- regulator-name = "3P3V";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-always-on;
- };
- reg_usb_otg_vbus: usb_otg_vbus {
- compatible = "regulator-fixed";
- regulator-name = "usb_otg_vbus";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- gpio = <&gpio1 1 GPIO_ACTIVE_LOW>;
- enable-active-high;
- };
- };
- sound {
- compatible = "fsl,imx6-wandboard-sgtl5000",
- "fsl,imx-audio-sgtl5000";
- model = "imx6-wandboard-sgtl5000";
- ssi-controller = <&ssi1>;
- audio-codec = <&codec>;
- audio-routing =
- "MIC_IN", "Mic Jack",
- "Mic Jack", "Mic Bias",
- "Headphone Jack", "HP_OUT";
- mux-int-port = <1>;
- mux-ext-port = <3>;
- };
- sound-spdif {
- compatible = "fsl,imx-audio-spdif";
- model = "imx-spdif";
- spdif-controller = <&spdif>;
- spdif-out;
- };
- sound-hdmi {
- compatible = "fsl,imx6q-audio-hdmi",
- "fsl,imx-audio-hdmi";
- model = "imx-audio-hdmi";
- hdmi-controller = <&hdmi_audio>;
- };
- rfkill {
- compatible = "wand,imx6qdl-wandboard-rfkill";
- pinctrl-names = "default";
- pinctrl-0 = <>;
- bluetooth-on = <&gpio3 13 0>;
- bluetooth-wake = <&gpio3 14 0>;
- bluetooth-host-wake = <&gpio3 15 0>;
- wifi-ref-on = <&gpio2 29 0>;
- wifi-rst-n = <&gpio5 2 0>;
- wifi-reg-on = <&gpio1 26 0>;
- wifi-host-wake = <&gpio1 29 0>;
- wifi-wake = <&gpio1 30 0>;
- };
- mxcfb1: fb@0 {
- compatible = "fsl,mxc_sdc_fb";
- disp_dev = "ldb";
- interface_pix_fmt = "RGB666";
- mode_str ="LDB-XGA";
- default_bpp = <16>;
- int_clk = <0>;
- late_init = <0>;
- status = "okay";
- };
- mxcfb2: fb@1 {
- compatible = "fsl,mxc_sdc_fb";
- disp_dev = "ldb";
- interface_pix_fmt = "RGB666";
- mode_str ="LDB-XGA";
- default_bpp = <24>;
- int_clk = <0>;
- late_init = <0>;
- status = "okay";
- };
- mxcfb3: fb@2 {
- compatible = "fsl,mxc_sdc_fb";
- disp_dev = "ldb";
- interface_pix_fmt = "RGB666";
- mode_str ="CLAA-WVGA";
- default_bpp = <16>;
- int_clk = <0>;
- late_init = <0>;
- status = "okay";
- };
- mxcfb4: fb@3 {
- compatible = "fsl,mxc_sdc_fb";
- disp_dev = "ldb";
- interface_pix_fmt = "RGB666";
- mode_str ="LDB-XGA";
- default_bpp = <16>;
- int_clk = <0>;
- late_init = <0>;
- status = "okay";
- };
- #if 0
- lcd@0 {
- compatible = "fsl,lcd";
- ipu_id = <0>;
- disp_id = <0>;
- default_ifmt = "RGB565";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ipu1_4>;
- #if 0
- status = "okay";
- #endif
- };
- backlight_lcd {
- compatible = "pwm-backlight";
- pwms = <&pwm1 0 5000000>;
- brightness-levels = <0 4 8 16 32 64 128 255>;
- default-brightness-level = <7>;
- };
- backlight_lvds {
- compatible = "pwm-backlight";
- pwms = <&pwm4 0 5000000>;
- brightness-levels = <0 4 8 16 32 64 128 255>;
- default-brightness-level = <7>;
- };
- #endif
- v4l2_cap_0 {
- compatible = "fsl,imx6q-v4l2-capture";
- ipu_id = <0>;
- csi_id = <0>;
- mclk_source = <0>;
- status = "okay";
- };
- v4l2_out {
- compatible = "fsl,mxc_v4l2_output";
- status = "okay";
- };
- };
- &audmux {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_audmux_2>;
- status = "okay";
- };
- &fec {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_enet_3>;
- phy-mode = "rgmii";
- status = "okay";
- };
- &hdmi_audio {
- status = "okay";
- };
- &hdmi_core {
- ipu_id = <0>;
- disp_id = <0>;
- status = "okay";
- };
- &hdmi_video {
- fsl,phy_reg_vlev = <0x0294>;
- fsl,phy_reg_cksymtx = <0x800d>;
- status = "okay";
- };
- &i2c1 {
- clock-frequency = <100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c1_1>;
- status = "okay";
- hdmi: edid@50 {
- compatible = "fsl,imx6-hdmi-i2c";
- reg = <0x50>;
- };
- };
- &i2c2 {
- clock-frequency = <100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c2_2>;
- status = "okay";
- ov5640_mipi: ov5640_mipi@3c {
- compatible = "ovti,ov5640_mipi";
- reg = <0x3c>;
- clocks = <&clks 200>;
- clock-names = "csi_mclk";
- DOVDD-supply = <®_1p8v>;
- AVDD-supply = <®_2p5v>;
- DVDD-supply = <®_1p8v>;
- pwn-gpios = <&gpio1 6 1>;
- rst-gpios = <&gpio4 14 0>;
- ipu_id = <0>;
- csi_id = <0>;
- mclk = <24000000>;
- mclk_source = <0>;
- };
- codec: sgtl5000@0a {
- compatible = "fsl,sgtl5000";
- reg = <0x0a>;
- clocks = <&clks 201>;
- VDDA-supply = <®_2p5v>;
- VDDIO-supply = <®_3p3v>;
- };
- };
- &i2c3 {
- clock-frequency = <100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c3_3>;
- status = "okay";
- };
- /*
- For reference here, the PAD_CTL bitfield definition from
- Documentation/devicetree/bindings/pinctrl/fsl,imx6q-pinctrl.txt
- CONFIG bits definition:
- PAD_CTL_HYS (1 << 16)
- PAD_CTL_PUS_100K_DOWN (0 << 14)
- PAD_CTL_PUS_47K_UP (1 << 14)
- PAD_CTL_PUS_100K_UP (2 << 14)
- PAD_CTL_PUS_22K_UP (3 << 14)
- PAD_CTL_PUE (1 << 13)
- PAD_CTL_PKE (1 << 12)
- PAD_CTL_ODE (1 << 11)
- PAD_CTL_SPEED_LOW (1 << 6)
- PAD_CTL_SPEED_MED (2 << 6)
- PAD_CTL_SPEED_HIGH (3 << 6)
- PAD_CTL_DSE_DISABLE (0 << 3)
- PAD_CTL_DSE_240ohm (1 << 3)
- PAD_CTL_DSE_120ohm (2 << 3)
- PAD_CTL_DSE_80ohm (3 << 3)
- PAD_CTL_DSE_60ohm (4 << 3)
- PAD_CTL_DSE_48ohm (5 << 3)
- PAD_CTL_DSE_40ohm (6 << 3)
- PAD_CTL_DSE_34ohm (7 << 3)
- PAD_CTL_SRE_FAST (1 << 0)
- PAD_CTL_SRE_SLOW (0 << 0)
- Example, the Control Pad Setting
- 0x0f0b0
- corresponds to:
- 0b1111000010110000
- which is:
- PAD_CTL_PUS_22K_UP | PAD_CTL_PUE | PAD_CTL_PKE |
- PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm
- For more information about this, refer to the IOMUXC section of the i.MX6
- reference manual.
- */
- &iomuxc {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_hog_1>;
- imx6qdl-wandboard {
- pinctrl_hog_1: hoggrp-1 {
- fsl,pins = <
- MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0
- MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x80000000 /* USB Power Enable */
- MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 /* USDHC1 CD */
- MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 /* uSDHC3 CD */
- MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x000b0 /* SGTL5000 sys_mclk */
- MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x0b0b0 /* ov5640 mipi powerdown */
- MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x000b0 /* ov5640 mipi reset */
- MX6QDL_PAD_GPIO_3__CCM_CLKO2 0x000b0 /* ov5640 mclk */
- MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x0f0b0 /* WIFI_ON (reset, active low) */
- MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x000b0 /* WL_REG_ON (unused) */
- MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000 /* WL_HOST_WAKE, input */
- MX6QDL_PAD_EIM_EB1__GPIO2_IO29 0x0f0b0 /* EIM_EB1 (Wifi Power Enable) */
- MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* WL_WAKE (unused) */
- MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x80000000
- MX6QDL_PAD_EIM_DA13__GPIO3_IO13 0x80000000 /* BT_ON */
- MX6QDL_PAD_EIM_DA14__GPIO3_IO14 0x80000000 /* BT_WAKE */
- MX6QDL_PAD_EIM_DA15__GPIO3_IO15 0x80000000 /* BT_HOST_WAKE */
- >;
- };
- pinctrl_spdif_wand: spdifgrp {
- fsl,pins = <
- MX6QDL_PAD_ENET_RXD0__SPDIF_OUT 0x1b0b0
- >;
- };
- };
- gpio {
- pinctrl_gpio: gpiogrp {
- fsl,pins = <
- MX6QDL_PAD_EIM_DA12__GPIO3_IO12 0x80000000 /* GPIO3_12 EDM pin 255 */
- MX6QDL_PAD_EIM_DA11__GPIO3_IO11 0x80000000 /* GPIO3_11 EDM pin 256 */
- MX6QDL_PAD_EIM_DA10__GPIO3_IO10 0x80000000 /* GPIO3_10 EDM pin 257 */
- MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x80000000 /* GPIO3_27 EDM pin 258 */
- MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x80000000 /* GPIO3_26 EDM pin 259 */
- MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000 /* GPIO6_31 EDM pin 260 */
- MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x80000000 /* GPIO3_8 EDM pin 261 */
- MX6QDL_PAD_ENET_RX_ER__GPIO1_IO24 0x80000000 /* GPIO1_24 EDM pin 262 */
- MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x80000000 /* GPIO4_5 EDM pin 263 */
- MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x80000000 /* GPIO7_8 EDM pin 264 */
- >;
- };
- };
- };
- &ldb {
- status = "okay";
- lvds-channel@0 {
- fsl,data-mapping = "spwg";
- fsl,data-width = <18>;
- status = "okay";
- display-timings {
- native-mode = <&timing0>;
- timing0: hsd100pxn1 {
- clock-frequency = <65000000>;
- hactive = <1024>;
- vactive = <768>;
- hback-porch = <220>;
- hfront-porch = <40>;
- vback-porch = <21>;
- vfront-porch = <7>;
- hsync-len = <60>;
- vsync-len = <10>;
- };
- };
- };
- };
- #if 0
- &ldb {
- ipu_id = <0>;
- disp_id = <1>;
- ext_ref = <1>;
- mode = "sin0";
- sec_ipu_id = <1>;
- sec_disp_id = <1>;
- status = "okay";
- };
- #endif
- &mipi_csi {
- ipu_id = <0>;
- csi_id = <0>;
- v_channel = <0>;
- lanes = <2>;
- status = "okay";
- };
- &pcie {
- status = "okay";
- };
- #if 0
- &pwm1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_pwm1_1>;
- status = "okay";
- };
- &pwm3 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_pwm3_2>;
- status = "okay";
- };
- &pwm4 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_pwm4_2>;
- status = "okay";
- };
- #endif
- &spdif {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_spdif_wand>;
- status = "okay";
- };
- &ssi1 {
- fsl,mode = "i2s-slave";
- status = "okay";
- };
- &uart1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_uart1_1>;
- status = "okay";
- };
- &uart3 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_uart3_1>;
- fsl,uart-has-rtscts;
- status = "okay";
- };
- &usbh1 {
- status = "okay";
- };
- &usbotg {
- vbus-supply = <®_usb_otg_vbus>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usbotg_1>;
- disable-over-current;
- dr_mode = "peripheral";
- status = "okay";
- };
- &usdhc1 { /* Baseboard microSD slot */
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usdhc1_1>;
- bus-width = <4>;
- vmmc-supply = <®_3p3v>;
- cd-gpios = <&gpio1 2 0>;
- status = "okay";
- };
- &usdhc2 { /* Broadcom Wifi/BT */
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usdhc2_2>;
- bus-width = <4>;
- //non-removable;
- vmmc-supply = <®_3p3v>;
- keep-power-in-suspend;
- status = "okay";
- };
- &usdhc3 { /* Module microSD slot */
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usdhc3_2>;
- vmmc-supply = <®_3p3v>;
- cd-gpios = <&gpio3 9 0>;
- status = "okay";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement