Skip to content

Commit 9097215

Browse files
pwisuttilguohan
authored andcommitted
[celestica] change to use lm75 standard driver (#19)
1 parent e5e9726 commit 9097215

File tree

5 files changed

+12
-622
lines changed

5 files changed

+12
-622
lines changed

device/celestica/x86_64-cel_seastone-r0/sensors.conf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@ chip "dps460-i2c-*-5b"
3737
set in3_lcrit 11.0
3838

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

45-
chip "dx010_lm75b-i2c-*-49"
45+
chip "lm75b-i2c-*-49"
4646
label temp1 "Front-panel temp sensor 2"
4747
set temp1_max 43
4848
set temp1_max_hyst 28
4949

50-
chip "dx010_lm75b-i2c-*-4a"
50+
chip "lm75b-i2c-*-4a"
5151
label temp1 "ASIC temp sensor"
5252
set temp1_max 43
5353
set temp1_max_hyst 28
5454

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

61-
chip "dx010_lm75b-i2c-*-4e"
61+
chip "lm75b-i2c-*-4e"
6262
label temp1 "Rear-panel temp sensor 2"
6363
set temp1_max 43
6464
set temp1_max_hyst 28

platform/broadcom/sonic-platform-modules-cel/debian/platform-modules-dx010.init

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ start)
2020
modprobe i2c-mux-pca954x
2121
modprobe dx010_wdt
2222
modprobe leds-dx010
23+
modprobe lm75
2324

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

5859
# Attach temperature sensors
59-
echo dx010_lm75b 0x48 > /sys/bus/i2c/devices/i2c-5/new_device
60-
echo dx010_lm75b 0x49 > /sys/bus/i2c/devices/i2c-6/new_device
61-
echo dx010_lm75b 0x4a > /sys/bus/i2c/devices/i2c-7/new_device
62-
echo dx010_lm75b 0x48 > /sys/bus/i2c/devices/i2c-14/new_device
63-
echo dx010_lm75b 0x4e > /sys/bus/i2c/devices/i2c-15/new_device
60+
echo lm75b 0x48 > /sys/bus/i2c/devices/i2c-5/new_device
61+
echo lm75b 0x49 > /sys/bus/i2c/devices/i2c-6/new_device
62+
echo lm75b 0x4a > /sys/bus/i2c/devices/i2c-7/new_device
63+
echo lm75b 0x48 > /sys/bus/i2c/devices/i2c-14/new_device
64+
echo lm75b 0x4e > /sys/bus/i2c/devices/i2c-15/new_device
6465

6566
# Attach fans
6667
echo emc2305 0x2e > /sys/bus/i2c/devices/i2c-13/new_device
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
obj-m := dx010_cpld.o mc24lc64t.o emc2305.o dx010_wdt.o leds-dx010.o lm75.o
2-
KVERSION = $(shell uname -r)
3-
all:
4-
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
5-
clean:
6-
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
1+
obj-m := dx010_cpld.o mc24lc64t.o emc2305.o dx010_wdt.o leds-dx010.o

0 commit comments

Comments
 (0)