Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[celestica] change to use lm75 standard driver #19

Merged
merged 4 commits into from
Feb 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions device/celestica/x86_64-cel_seastone-r0/sensors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ chip "dps460-i2c-*-5b"
ignore fan3

# 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
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