/* * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ /dts-v1/; #include "dra74x.dtsi" #include "dra7-mmc-iodelay.dtsi" #include "dra74x-mmc-iodelay.dtsi" #include "am572x-idk-common.dtsi" / { model = "SKF Controller Board"; compatible = "ti,am5728-idk", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7"; aliases { rtc0 = &mcp79410_rtc; }; /delete-node/ status-leds; /delete-node/ leds-iio; status-leds { // For user leds, remove the linux, default-trigger compatible = "gpio-leds"; heartbeat-led { label = "status0:green:heartbeat"; gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>; default-state = "off"; linux,default-trigger = "heartbeat"; }; mmc0-led { label = "status1:yellow:mmc0"; gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>; default-state = "on"; linux,default-trigger = "mmc0"; }; usr0-led { label = "status2:red:usr0"; gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>; default-state = "off"; }; }; gpio_fan: gpio_fan { compatible = "gpio-fan"; gpios = <&gpio7 27 GPIO_ACTIVE_HIGH>; gpio-fan,speed-map = <0 0>, <13000 1>; #cooling-cells = <2>; alarm-gpios = <&gpio7 17 GPIO_ACTIVE_HIGH>; }; tpd12s015: encoder@0 { gpios = <0>, /* optional CT_CP_HPD */ <0>, /* optional LS_OE */ <&gpio2 31 GPIO_ACTIVE_HIGH>; /* HPD */ }; xtal_25Mhz: xtal_25Mhz { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <25000000>; }; }; &pcie1_rc { status = "okay"; /delete-property/ gpios; }; &mmc1 { pinctrl-names = "default", "hs"; pinctrl-0 = <&mmc1_pins_default_no_clk_pu>; pinctrl-1 = <&mmc1_pins_hs>; /delete-property/ sd-uhs-sdr104; /delete-property/ sd-uhs-sdr50; /delete-property/ sd-uhs-ddr50; /delete-property/ sd-uhs-sdr25; /delete-property/ sd-uhs-sdr12; cd-gpios = <&gpio6 27 GPIO_ACTIVE_HIGH>; /* gpio 219 */ }; &mmc2 { pinctrl-names = "default", "hs", "ddr_3_3v"; pinctrl-0 = <&mmc2_pins_default>; pinctrl-1 = <&mmc2_pins_hs>; pinctrl-2 = <&mmc2_pins_ddr_rev20>; }; &extcon_usb2 { /delete-property/ id-gpio; // For OTG identify host and device. /delete-property/ vbus-gpio; // Input to detect USB Power }; &usb2_phy1 { /delete-property/ ldousb_reg; }; &usb2_phy2 { /delete-property/ ldousb_reg; }; &omap_dwc3_2 { /delete-property/ extcon; }; &usb2 { /delete-property/ extcon; dr_mode = "host"; }; &mcspi3 { status = "disabled"; }; &cpsw_emac0 { phy-mode = "rgmii-rxid"; }; &cpsw_emac1 { phy-mode = "rgmii-rxid"; }; &i2c1 { /delete-node/ tps659038@58; // Power management /delete-node/ tpic2810@60; // IO expander //delete-node/ ov2659@30; // Camera //delete-node/ tc358778@0e; // DSI bridge tmp102: tmp102@48 { // Thermal sensor compatible = "ti,tmp102"; reg = <0x48>; interrupt-parent = <&gpio7>; interrupts = <13 IRQ_TYPE_LEVEL_LOW>; #thermal-sensor-cells = <1>; }; mcp79410_rtc: mcp79410@6f { // rtc compatible = "microchip,mcp7941x"; reg = <0x6f>; }; }; &i2c3 { status = "okay"; clock-frequency = <100000>; tps659038: tps659038@58 { compatible = "ti,tps659038"; reg = <0x58>; //interrupt-parent = <&gpio1>; //interrupts = <0 IRQ_TYPE_LEVEL_LOW>; //#interrupt-cells = <2>; //interrupt-controller; ti,system-power-controller; ti,palmas-override-powerhold; tps659038_pmic { compatible = "ti,tps659038-pmic"; regulators { smps12_reg: smps12 { /* VDD_MPU_1V15 */ regulator-name = "smps12"; regulator-min-microvolt = < 850000>; regulator-max-microvolt = <1250000>; regulator-always-on; regulator-boot-on; }; smps3_reg: smps3 { /* VDD_DDR_1V35 */ regulator-name = "smps3"; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-always-on; regulator-boot-on; }; smps45_reg: smps45 { /* VDD_DSP_EVE_1V06 */ regulator-name = "smps45"; regulator-min-microvolt = < 850000>; regulator-max-microvolt = <1250000>; regulator-always-on; regulator-boot-on; }; smps6_reg: smps6 { /* VDD_GPU_1V06 */ regulator-name = "smps6"; regulator-min-microvolt = <850000>; regulator-max-microvolt = <1150000>; regulator-always-on; regulator-boot-on; }; smps7_reg: smps7 { /* VDD_CORE_1V15 */ regulator-name = "smps7"; regulator-min-microvolt = <850000>; regulator-max-microvolt = <1150000>; regulator-always-on; regulator-boot-on; }; smps8_reg: smps8 { /* VDD_IVA_HD_1V06 */ regulator-name = "smps8"; regulator-min-microvolt = <850000>; regulator-max-microvolt = <1150000>; regulator-always-on; regulator-boot-on; }; smps9_reg: smps9 { /* VDDS_SDIO_3V3 */ regulator-name = "smps9"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; regulator-boot-on; }; ldo1_reg: ldo1 { /* P3V3_SHV8 */ regulator-name = "ldo1"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-boot-on; regulator-always-on; }; ldo2_reg: ldo2 { /* P1V8_VDD */ regulator-name = "ldo2"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; }; ldo3_reg: ldo3 { /* P1V8_PHYUSB */ regulator-name = "ldo3"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; }; ldo4_reg: ldo4 { /* P1V8_HDMIPCIE */ regulator-name = "ldo4"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; }; ldo9_reg: ldo9 { /* P1V05_RTC */ regulator-name = "ldo9"; regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1050000>; regulator-always-on; regulator-boot-on; }; ldoln_reg: ldoln { /* P1V8_VDDA */ regulator-name = "ldoln"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; }; ldortc_reg: ldortc { /* P1V8_RTC */ regulator-name = "ldortc"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; }; ldousb_reg: ldousb { /* P3V3_USB */ regulator-name = "ldousb"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; regulator-boot-on; }; regen1: regen1 { /* VDD_3V3_ON */ regulator-name = "regen1"; regulator-boot-on; regulator-always-on; }; regen2: regen2 { /* Needed for PMIC internal resource */ regulator-name = "regen2"; regulator-boot-on; regulator-always-on; }; }; }; //tps659038_rtc: tps659038_rtc { //compatible = "ti,palmas-rtc"; //interrupt-parent = <&tps659038>; //interrupts = <8 IRQ_TYPE_EDGE_FALLING>; //wakeup-source; //}; //tps659038_pwr_button: tps659038_pwr_button { //compatible = "ti,palmas-pwrbutton"; //interrupt-parent = <&tps659038>; //interrupts = <1 IRQ_TYPE_EDGE_FALLING>; //wakeup-source; //ti,palmas-long-press-seconds = <12>; //}; tps659038_gpio: tps659038_gpio { compatible = "ti,palmas-gpio"; gpio-controller; #gpio-cells = <2>; }; //extcon_usb2: tps659038_usb { //compatible = "ti,palmas-usb-vid"; //ti,enable-vbus-detection; //vbus-gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>; //}; }; clockgen: cdce925pw@65 { compatible = "cdce913"; reg = <0x65>; clocks = <&xtal_25Mhz>; #clock-cells = <1>; xtal-load-pf = <5>; }; tc358867@68 { compatible = "toshiba,tc358867", "toshiba,tc358768"; reg = <0x68>; //reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; //clock-names = "refclk"; //clocks = <&hdmi_osc>; //interrupt-parent = <&gpio2>; //interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; toshiba,hpd-pin = <0>; ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <1>; bridge_in: endpoint { remote-endpoint = <&dpi_out>; }; }; }; }; } ; &thermal_zones { board_thermal: board_thermal { polling-delay-passive = <1250>; /* milliseconds */ polling-delay = <1500>; /* milliseconds */ /* sensor ID */ thermal-sensors = <&tmp102 0>; board_trips: trips { board_alert0: board_alert { temperature = <40000>; /* millicelsius */ hysteresis = <2000>; /* millicelsius */ type = "active"; }; board_crit: board_crit { temperature = <105000>; /* millicelsius */ hysteresis = <0>; /* millicelsius */ type = "critical"; }; }; board_cooling_maps: cooling-maps { map0 { trip = <&board_alert0>; cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; }; #include "am57xx-evm-cmem-am572idk.dtsi"