Skip to content

Commit

Permalink
[celestica] change to use lm75 standard driver (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwisutti authored and lguohan committed May 3, 2018
1 parent 4defb4c commit 6610ab3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 622 deletions.
10 changes: 5 additions & 5 deletions device/celestica/x86_64-cel_seastone-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@ chip "dps460-i2c-*-5b"
set in3_lcrit 11.0

# These sensors located on Main Switch Board.
chip "dx010_lm75b-i2c-*-48"
chip "lm75b-i2c-*-48"
label temp1 "Front-panel temp sensor 1"
set temp1_max 43
set temp1_max_hyst 28

chip "dx010_lm75b-i2c-*-49"
chip "lm75b-i2c-*-49"
label temp1 "Front-panel temp sensor 2"
set temp1_max 43
set temp1_max_hyst 28

chip "dx010_lm75b-i2c-*-4a"
chip "lm75b-i2c-*-4a"
label temp1 "ASIC temp sensor"
set temp1_max 43
set temp1_max_hyst 28

# These sensors located on CPU Board.
chip "dx010_lm75b-i2c-*-48"
chip "lm75b-i2c-*-48"
label temp1 "Rear-panel temp sensor 1"
set temp1_max 43
set temp1_max_hyst 28

chip "dx010_lm75b-i2c-*-4e"
chip "lm75b-i2c-*-4e"
label temp1 "Rear-panel temp sensor 2"
set temp1_max 43
set temp1_max_hyst 28
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ start)
modprobe i2c-mux-pca954x
modprobe dx010_wdt
modprobe leds-dx010
modprobe lm75

found=0
for devnum in 0 1; do
Expand Down Expand Up @@ -56,11 +57,11 @@ start)
echo 24lc64t 0x50 > /sys/bus/i2c/devices/i2c-12/new_device

# Attach temperature sensors
echo dx010_lm75b 0x48 > /sys/bus/i2c/devices/i2c-5/new_device
echo dx010_lm75b 0x49 > /sys/bus/i2c/devices/i2c-6/new_device
echo dx010_lm75b 0x4a > /sys/bus/i2c/devices/i2c-7/new_device
echo dx010_lm75b 0x48 > /sys/bus/i2c/devices/i2c-14/new_device
echo dx010_lm75b 0x4e > /sys/bus/i2c/devices/i2c-15/new_device
echo lm75b 0x48 > /sys/bus/i2c/devices/i2c-5/new_device
echo lm75b 0x49 > /sys/bus/i2c/devices/i2c-6/new_device
echo lm75b 0x4a > /sys/bus/i2c/devices/i2c-7/new_device
echo lm75b 0x48 > /sys/bus/i2c/devices/i2c-14/new_device
echo lm75b 0x4e > /sys/bus/i2c/devices/i2c-15/new_device

# Attach fans
echo emc2305 0x2e > /sys/bus/i2c/devices/i2c-13/new_device
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
obj-m := dx010_cpld.o mc24lc64t.o emc2305.o dx010_wdt.o leds-dx010.o lm75.o
KVERSION = $(shell uname -r)
all:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
obj-m := dx010_cpld.o mc24lc64t.o emc2305.o dx010_wdt.o leds-dx010.o
Loading

0 comments on commit 6610ab3

Please sign in to comment.