Power monitoring on LS1028ARDB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Power monitoring on LS1028ARDB

跳至解决方案
885 次查看
noahw
Contributor III

I'd like to monitor power draw of LS1028ARDB (Vdd). It looks like there are some INA222 current monitors on the device which can be queried via I2C to compute power draw. I'm looking at the information on this (https://docs.nxp.com/bundle/GUID-487B2E69-BB19-42CB-AC38-7EF18C0FE3AE/page/GUID-3B61CB66-10E4-4255-8...) page and Power Monitor User Manual" section of the LSDK user manual. 

I can't quite seem to figure out what I need to do to be able to get output from the INA222 devices. I installed the lm-sensors bash tool in my LSDK, but when I run `sensor` all I see are the two temperature devices. I can't seem to figure out whether the NXP-provided instruction are telling me to install additional I2C drivers, edit some config file somewhere, etc.

Is power monitoring supported on my device, and how can I read current and/or wattage output?

标记 (1)
0 项奖励
回复
1 解答
719 次查看
noahw
Contributor III
0 项奖励
回复
4 回复数
750 次查看
June_Lu
NXP TechSupport
NXP TechSupport
0 项奖励
回复
720 次查看
noahw
Contributor III
0 项奖励
回复
854 次查看
June_Lu
NXP TechSupport
NXP TechSupport

Please enable the following options in LSDK2108 Linux Kernel configuration file and rebuild Linux Kernel. It seems that these options are not enabled by default.

CONFIG_I2C_MPC=y

SENSORS_INA2XX=y

0 项奖励
回复
761 次查看
noahw
Contributor III

Is it SENSORS_INA2XX=y or CONFIG_SENSORS_INA2XX=y?

Also, where in the flex-builder file system do I find the kernel config to edit?

Also, where in the menuconfig GUI can I find these two config options?

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2065136%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELS1028ARDB%20%E4%B8%8A%E7%9A%84%E7%94%B5%E6%BA%90%E7%9B%91%E6%8E%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2065136%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%83%B3%E7%9B%91%E6%8E%A7%20LS1028ARDB%EF%BC%88Vdd%EF%BC%89%E7%9A%84%E5%8A%9F%E8%80%97%E3%80%82%E7%9C%8B%E8%B5%B7%E6%9D%A5%E8%AE%BE%E5%A4%87%E4%B8%8A%E6%9C%89%E4%B8%80%E4%BA%9B%20INA222%20%E7%94%B5%E6%B5%81%E7%9B%91%E8%A7%86%E5%99%A8%EF%BC%8C%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%20I2C%20%E8%BF%9B%E8%A1%8C%E6%9F%A5%E8%AF%A2%E4%BB%A5%E8%AE%A1%E7%AE%97%E5%8A%9F%E8%80%97%E3%80%82%E6%88%91%E6%AD%A3%E5%9C%A8%E6%9F%A5%E7%9C%8B%E6%9C%89%E5%85%B3%E6%AD%A4%E4%BF%A1%E6%81%AF%EF%BC%88%20%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FGUID-487B2E69-BB19-42CB-AC38-7EF18C0FE3AE%2Fpage%2FGUID-3B61CB66-10E4-4255-893B-B7BC7B282AAD.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.nxp.com%2Fbundle%2FGUID-487B2E69-BB19-42CB-AC38-7EF18C0FE3AE%2Fpage%2FGUID-3B61CB66-10E4-4255-893B-B7BC7B282AAD.html%3C%2FA%3E%20%EF%BC%89%E9%A1%B5%E5%92%8C%20LSDK%20%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C%E7%9A%84%E2%80%9C%E7%94%B5%E6%BA%90%E7%9B%91%E8%A7%86%E5%99%A8%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C%E2%80%9D%E9%83%A8%E5%88%86%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E4%BC%BC%E4%B9%8E%E6%97%A0%E6%B3%95%E5%BC%84%E6%B8%85%E6%A5%9A%E9%9C%80%E8%A6%81%E5%81%9A%E4%BB%80%E4%B9%88%E6%89%8D%E8%83%BD%E4%BB%8E%20INA222%20%E8%AE%BE%E5%A4%87%E8%8E%B7%E5%8F%96%E8%BE%93%E5%87%BA%E3%80%82%E6%88%91%E5%9C%A8%E6%88%91%E7%9A%84%20LSDK%20%E4%B8%AD%E5%AE%89%E8%A3%85%E4%BA%86%20lm-sensors%20bash%20%E5%B7%A5%E5%85%B7%EF%BC%8C%E4%BD%86%E6%98%AF%E5%BD%93%E6%88%91%E8%BF%90%E8%A1%8C%E2%80%9C%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%9D%E6%97%B6%EF%BC%8C%E6%88%91%E7%9C%8B%E5%88%B0%E7%9A%84%E5%8F%AA%E6%98%AF%E4%B8%A4%E4%B8%AA%E6%B8%A9%E5%BA%A6%E8%AE%BE%E5%A4%87%E3%80%82%E6%88%91%E4%BC%BC%E4%B9%8E%E6%97%A0%E6%B3%95%E5%BC%84%E6%B8%85%E6%A5%9A%20NXP%20%E6%8F%90%E4%BE%9B%E7%9A%84%E6%8C%87%E4%BB%A4%E6%98%AF%E5%90%A6%E5%91%8A%E8%AF%89%E6%88%91%E5%AE%89%E8%A3%85%E9%A2%9D%E5%A4%96%E7%9A%84%20I2C%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E3%80%81%E5%9C%A8%E6%9F%90%E5%A4%84%E7%BC%96%E8%BE%91%E6%9F%90%E4%BA%9B%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%AD%89%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%E8%AE%BE%E5%A4%87%E6%98%AF%E5%90%A6%E6%94%AF%E6%8C%81%E7%94%B5%E6%BA%90%E7%9B%91%E6%8E%A7%EF%BC%9F%E5%A6%82%E4%BD%95%E8%AF%BB%E5%8F%96%E7%94%B5%E6%B5%81%E5%92%8C%2F%E6%88%96%E7%93%A6%E6%95%B0%E8%BE%93%E5%87%BA%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2078747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALS1028ARDB%20%E4%B8%8A%E7%9A%84%E7%94%B5%E6%BA%90%E7%9B%91%E6%8E%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2078747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%AF%B7%E5%8F%82%E9%98%85%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape%2FBuilding-kernel-and-deploying-to-device-for-LS1028ARDB-kernel%2Ftd-p%2F2075556%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape%2FBuilding-kernel-and-deploying-to-device-for-LS1028ARDB-kernel%2Ftd-p%2F2075556%3C%2FA%3E%E8%8E%B7%E5%8F%96%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E3%80%82%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2075750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALS1028ARDB%20%E4%B8%8A%E7%9A%84%E7%94%B5%E6%BA%90%E7%9B%91%E6%8E%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2075750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%B0%86%E6%94%AF%E6%8C%81%E4%BD%A0%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape%2FBuilding-kernel-and-deploying-to-device-for-LS1028ARDB-kernel%2Ftd-p%2F2075556%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape%2FBuilding-kernel-and-deploying-to-device-for-LS1028ARDB-kernel%2Ftd-p%2F2075556%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2075516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALS1028ARDB%20%E4%B8%8A%E7%9A%84%E7%94%B5%E6%BA%90%E7%9B%91%E6%8E%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2075516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%98%AFSENSORS_INA2XX%3Dy%E8%BF%98%E6%98%AFCONFIG_SENSORS_INA2XX%3Dy%EF%BC%9F%3C%2FP%3E%3CP%3E%E5%8F%A6%E5%A4%96%EF%BC%8C%E5%9C%A8%20flex-builder%20%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E4%B8%AD%E6%88%91%E5%8F%AF%E4%BB%A5%E5%9C%A8%E5%93%AA%E9%87%8C%E6%89%BE%E5%88%B0%E8%A6%81%E7%BC%96%E8%BE%91%E7%9A%84%E5%86%85%E6%A0%B8%E9%85%8D%E7%BD%AE%EF%BC%9F%3C%2FP%3E%3CP%3E%E5%8F%A6%E5%A4%96%EF%BC%8C%E5%9C%A8%20menuconfig%20GUI%20%E4%B8%AD%E6%88%91%E5%8F%AF%E4%BB%A5%E5%9C%A8%E5%93%AA%E9%87%8C%E6%89%BE%E5%88%B0%E8%BF%99%E4%B8%A4%E4%B8%AA%E9%85%8D%E7%BD%AE%E9%80%89%E9%A1%B9%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E