edje9
Posts: 6
Joined: Wed Nov 04, 2015 3:02 pm

CM3 with LAN95XX

Wed Jan 25, 2017 4:01 pm

I want to use the CM3 on my CM1 carrier board.

After modifying the dt-blob.bin (adding CM3) the GPIO31 pin (LAN_RUN) stays Low after power-up on my CM3 but works on CM1.
Any idea what I'm missing?

Here is my dt-blob.dts:


/dts-v1/;

/ {
videocore {

pins_cm {

pin_config {

[email protected] {
polarity = "active_high";
termination = "pull_down";
startup_state = "inactive";
function = "input";
}; // pin

// BANK 0 - USER GPIO //
[email protected] { function = "input"; termination = "pull_up"; }; // PWR_GOOD 5V --Power In
[email protected] { function = "input"; termination = "pull_up"; }; // PPS Input --GPS Module
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE --RGB LED -RED
[email protected] { function = "output"; termination = "no_pulling";}; // DEFAULT STATE --RGB LED -GREEN

[email protected] { function = "uart0"; termination = "no_pulling"; }; // UART0 TX --External Serial Port TX
[email protected] { function = "uart0"; termination = "pull_up"; }; // UART0 RX --External Serial Port RX
[email protected] { function = "uart0"; termination = "pull_up"; }; // UART0 CTS --External Serial Port CTS
[email protected] { function = "uart0"; termination = "no_pulling"; }; // UART0 RTS --External Serial Port RTS

[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE --RGB LED -BLUE
[email protected] { function = "output"; termination = "pull_down"; }; // DEFAULT STATE --GPS RESET
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Not Used

// BANK 1 - USER GPIO//
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE WAS INPUT NO PULL --Not Used
[email protected] { function = "output"; termination = "no-pulling"; }; // DEFAULT STATE WAS INPUT NO PULL --MOBILE ON
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --MOBILE TYPE
[email protected] { function = "output"; termination = "pull_down"; }; // DEFAULT STATE --LAN RUN
[email protected] { function = "uart1"; termination = "no_pulling"; }; // UART1 TX --Serial Port Mobile TX
[email protected] { function = "uart 1"; termination = "pull_up"; }; // UART1 RX --Serial Port Mobile RX
[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE --MOBILE RESET
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "output"; termination = "pull_up"; }; // DEFAULT STATE --POWER 3.7V Enable
[email protected] { function = "input"; termination = "no_pulling"; }; // DEFAULT STATE --POWER 3.7V GOOD

[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE WAS INPUT NO PULL
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE WAS INPUT NO PULL

// BANK 2 - DON'T TOUCH UNLESS YOU KNOW WHAT YOU'RE DOING //
[email protected] { function = "input"; termination = "no_pulling"; drive_strength_mA = <8>; polarity = "active_high"; }; // HPD_N
[email protected] { function = "output"; termination = "no_pulling"; drive_strength_mA = <8>; polarity = "active_low"; startup_state = "active"; }; // STATUS LED / EMMC_DISABLE_N CONTROL
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD CLK
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD CMD
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D0
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D1
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D2
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D3

}; // pin_config

pin_defines {
[email protected]_CONTROL_ATTACHED { type = "internal"; number = <46>; }; // HPD_N on GPIO46
[email protected]_RUN { type = "internal"; number = <31>;}; //LAN RESET_N
}; // pin_defines


}; // pins_cm

pins_cm3 {

pin_config {

[email protected] {
polarity = "active_high";
termination = "pull_down";
startup_state = "inactive";
function = "input";
}; // pin

// BANK 0 - USER GPIO //
[email protected] { function = "input"; termination = "pull_up"; }; // PWR_GOOD 5V --Power In
[email protected] { function = "input"; termination = "pull_up"; }; // PPS Input --GPS Module
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE --RGB LED -RED
[email protected] { function = "output"; termination = "no_pulling";}; // DEFAULT STATE --RGB LED -GREEN

[email protected] { function = "uart0"; termination = "no_pulling"; }; // UART0 TX --External Serial Port TX
[email protected] { function = "uart0"; termination = "pull_up"; }; // UART0 RX --External Serial Port RX
[email protected] { function = "uart0"; termination = "pull_up"; }; // UART0 CTS --External Serial Port CTS
[email protected] { function = "uart0"; termination = "no_pulling"; }; // UART0 RTS --External Serial Port RTS

[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE --RGB LED -BLUE
[email protected] { function = "output"; termination = "pull_down"; }; // DEFAULT STATE --GPS RESET
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Pin header
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE --Not Used

// BANK 1 - USER GPIO//
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE WAS INPUT NO PULL --Not Used
[email protected] { function = "output"; termination = "no-pulling"; }; // DEFAULT STATE WAS INPUT NO PULL --MOBILE ON
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --MOBILE TYPE
[email protected] { function = "output"; termination = "pull_down"; }; // DEFAULT STATE --LAN RUN
[email protected] { function = "uart1"; termination = "no_pulling"; }; // UART1 TX --Serial Port Mobile TX
[email protected] { function = "uart 1"; termination = "pull_up"; }; // UART1 RX --Serial Port Mobile RX
[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE --MOBILE RESET
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "input"; termination = "pull_up"; }; // DEFAULT STATE --Not Used
[email protected] { function = "output"; termination = "pull_up"; }; // DEFAULT STATE --POWER 3.7V Enable
[email protected] { function = "input"; termination = "no_pulling"; }; // DEFAULT STATE --POWER 3.7V GOOD

[email protected] { function = "output"; termination = "no_pulling"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE WAS INPUT NO PULL
[email protected] { function = "input"; termination = "pull_down"; }; // DEFAULT STATE WAS INPUT NO PULL

// BANK 2 - DON'T TOUCH UNLESS YOU KNOW WHAT YOU'RE DOING //
[email protected] { function = "input"; termination = "no_pulling"; drive_strength_mA = <8>; polarity = "active_high"; }; // HPD_N
[email protected] { function = "output"; termination = "no_pulling"; drive_strength_mA = <8>; polarity = "active_low"; startup_state = "active"; }; // STATUS LED / EMMC_DISABLE_N CONTROL
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD CLK
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD CMD
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D0
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D1
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D2
[email protected] { function = "sdcard"; termination = "pull_up"; drive_strength_mA = <8>; }; // SD D3

}; // pin_config

pin_defines {
[email protected]_CONTROL_ATTACHED { type = "internal"; number = <46>; }; // HPD_N on GPIO46
[email protected]_RUN { type = "internal"; number = <31>;}; //LAN RESET_N
}; // pin_defines


}; // pins_cm3


}; // videocore
};

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1445
Joined: Sat Sep 10, 2011 11:43 am

Re: CM3 with LAN95XX

Wed Jan 25, 2017 4:07 pm

The following is my dt-blob.dts for the Slice hardware which uses the LAN9514 device with non-standard LAN_RUN and ETH_CLK positions... I assume you don't use the ETH_CLK and supply the clock directly so you can ignore that, but the LAN_RUN should match yours


https://github.com/chewitt/LibreELEC.tv ... t-blob.dts
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

edje9
Posts: 6
Joined: Wed Nov 04, 2015 3:02 pm

Re: CM3 with LAN95XX

Wed Jan 25, 2017 4:13 pm

I have LAN_RUN connected on P31, this works on the CM1

Return to “Compute Module”