Chase, I followed the entry in am335x-evm to add i2c1 rather than i2c0 in the beagle bone black dts.
FYI what ever we find i will add to the post at http://e2e.ti.com/support/arm/sitara_arm/f/791/p/335136/1179969.aspx#1179969 Thanks -josh ________________________________________ From: Maupin, Chase [[email protected]] Sent: Wednesday, April 30, 2014 3:40 PM To: Vanderpool Josh; [email protected]; Murphy, Dan Subject: RE: Kernel Hang I2C1?? Josh, Do you have the I2C2 entry in your DT? There are examples in the am33xx.dtsi file. Sincerely, Chase Maupin Integration Team Manager Linux Core Product Development e-mail: [email protected] phone: (214) 567-2950 For support: Forums - http://e2e.ti.com<http://e2e.ti.com/> Wiki - http://processors.wiki.ti.com/index.php/Main_Page From: [email protected] [mailto:[email protected]] On Behalf Of Vanderpool Josh Sent: Wednesday, April 30, 2014 9:03 AM To: [email protected] Subject: [meta-ti] Kernel Hang I2C1?? I have a custom board and expect to use i2c1 on the board but it appears to not allow this in the kernel… u-boot was able to be modified to support the hardware port i2c1. Note that that software is 1based and hardware is zero-based… This is the dump: · [ 1.482628] ------------[ cut here ]------------ · [ 1.487549] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_device.c:888 omap_device_get_by_hwmod_name+0x94/0xb4() · [ 1.498803] omap_device_get_by_hwmod_name: no omap_device for i2c1 · [ 1.505365] Modules linked in: · [ 1.508606] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.10-ti2013.12.01 #2 · [ 1.515990] Backtrace: · [ 1.518595] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c) · [ 1.527542] r6:c002f564 r5:00000009 r4:dd083e28 r3:00000000 · [ 1.533567] [<c0017a04>] (show_stack+0x0/0x1c) from [<c0580ba4>] (dump_stack+0x20/0x28) · [ 1.542068] [<c0580b84>] (dump_stack+0x0/0x28) from [<c0046d08>] (warn_slowpath_common+0x70/0x90) · [ 1.551480] [<c0046c98>] (warn_slowpath_common+0x0/0x90) from [<c0046dcc>] (warn_slowpath_fmt+0x38/0x40) · [ 1.561528] r8:c076b3fc r7:c0768410 r6:c0c8c9ac r5:c084df08 r4:c06b9fa4 · [ 1.568647] [<c0046d94>] (warn_slowpath_fmt+0x0/0x40) from [<c002f564>] (omap_device_get_by_hwmod_name+0x94/0xb4) · [ 1.579523] r3:c058be8c r2:c06b6584 · [ 1.583341] [<c002f4d0>] (omap_device_get_by_hwmod_name+0x0/0xb4) from [<c0778280>] (am33xx_pm_init+0x204/0x45c) · [ 1.594120] r4:00000000 · [ 1.596808] [<c077807c>] (am33xx_pm_init+ The full capture is http://pastebin.com/VyY8CQ0L I found where roughly where there might be an issue…pm33xx.c as line#395 states it can only use bus i2c1(one based(I assume this is i2c0)) Note I do not need smart reflex or sleep mode at all so any patches to work around this are welcome. Thanks Josh Vanderpool Electrical Engineer Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful. Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.
/* * Copyright (C) 2012 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. */ / { model = "TI AM335x BeagleBone"; compatible = "ti,am335x-bone", "ti,am33xx"; cpus { cpu@0 { cpu0-supply = <&dcdc2_reg>; }; }; memory { device_type = "memory"; reg = <0x80000000 0x20000000>; /* 512 MB jdv** */ }; am33xx_pinmux: pinmux@44e10800 { pinctrl-names = "default"; i2c1_pins: pinmux_i2c1_pins { pinctrl-single,pins = < 0x180 (PIN_INPUT_PULLUP | MUX_MODE3) /* uart1_rx.i2c1_sda */ 0x184 (PIN_INPUT_PULLUP | MUX_MODE3) /* uart1_tx.i2c1_scl */ >; }; uart0_pins: pinmux_uart0_pins { pinctrl-single,pins = < 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ >; }; emmc_pins: pinmux_emmc_pins { pinctrl-single,pins = < 0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */ 0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */ 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */ 0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */ 0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */ 0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */ 0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */ 0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */ 0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */ 0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */ >; }; }; ocp { uart0: serial@44e09000 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins>; status = "okay"; }; musb: usb@47400000 { status = "okay"; control@44e10000 { status = "okay"; }; usb-phy@47401300 { status = "okay"; }; usb-phy@47401b00 { status = "okay"; }; usb@47401000 { status = "okay"; }; usb@47401800 { status = "okay"; dr_mode = "host"; }; dma-controller@07402000 { status = "okay"; }; }; i2c1: i2c@4802a000 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; status = "okay"; clock-frequency = <400000>; /* Set OPP50 (0.95V) for VDD core */ sleep-sequence = /bits/ 8 < 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ 0x02 0x24 0x10 0x02 /* Set DCDC3 to 0.95V */ 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ >; /* Set OPP100 (1.10V) for VDD core */ wake-sequence = /bits/ 8 < 0x02 0x24 0x0b 0x6d /* Password unlock 1 */ 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ 0x02 0x24 0x0b 0x6d /* Password unlock 2 */ 0x02 0x24 0x10 0x08 /* Set DCDC3 to 1.1V */ 0x02 0x24 0x0b 0x6c /* Password unlock 1 */ 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ 0x02 0x24 0x0b 0x6c /* Password unlock 2 */ 0x02 0x24 0x11 0x86 /* Apply DCDC changes */ >; tps: tps@24 { reg = <0x24>; }; }; }; vmmcsd_fixed: fixedregulator@0 { compatible = "regulator-fixed"; regulator-name = "vmmcsd_fixed"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; }; #include "tps65217.dtsi" &tps { regulators { dcdc1_reg: regulator@0 { regulator-always-on; }; dcdc2_reg: regulator@1 { /* VDD_MPU voltage limits 0.95V - 1.325V with +/-4% tolerance */ regulator-name = "vdd_mpu"; regulator-min-microvolt = <925000>; regulator-max-microvolt = <1378000>; regulator-boot-on; regulator-always-on; }; dcdc3_reg: regulator@2 { /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ regulator-name = "vdd_core"; regulator-min-microvolt = <925000>; regulator-max-microvolt = <1150000>; regulator-boot-on; regulator-always-on; }; ldo1_reg: regulator@3 { regulator-always-on; }; ldo2_reg: regulator@4 { regulator-always-on; }; ldo3_reg: regulator@5 { regulator-always-on; }; ldo4_reg: regulator@6 { regulator-always-on; }; }; };
/* * Copyright (C) 2012 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 "am33xx.dtsi" #include "am335x-bonenblue-common.dtsi" &ldo3_reg { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; }; &mmc1 { vmmc-supply = <&vmmcsd_fixed>; }; &mmc2 { vmmc-supply = <&vmmcsd_fixed>; pinctrl-names = "default"; pinctrl-0 = <&emmc_pins>; bus-width = <8>; ti,non-removable; status = "okay"; };
-- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
