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 Aug 5, 2018
1 parent 7242378 commit 3e62a86
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 632 deletions.
27 changes: 12 additions & 15 deletions device/celestica/x86_64-cel_seastone-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,30 @@ chip "dps460-i2c-*-5b"
set in3_crit 13.0
set in3_lcrit 11.0

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

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

# These sensors located on Main Switch Board.
bus "i2c-5" "i2c-1-mux (chan_id 3)"
chip "dx010_lm75b-i2c-5-48"
label temp1 "Front_panel left temp sensor"
chip "lm75b-i2c-*-4a"
label temp1 "ASIC temp sensor"
set temp1_max 43
set temp1_max_hyst 28

bus "i2c-6" "i2c-1-mux (chan_id 4)"
chip "dx010_lm75b-i2c-6-49"
label temp1 "Front_panel right temp sensor"
# These sensors located on CPU Board.
chip "lm75b-i2c-*-48"
label temp1 "Rear-panel temp sensor 1"
set temp1_max 43
set temp1_max_hyst 28

bus "i2c-7" "i2c-1-mux (chan_id 5)"
chip "dx010_lm75b-i2c-7-4a"
label temp1 "Switch_external temp sensor"
chip "lm75b-i2c-*-4e"
label temp1 "Rear-panel temp sensor 2"
set temp1_max 43
set temp1_max_hyst 28

Expand Down
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 3e62a86

Please sign in to comment.