- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.2k
Iis2iclx sensor: move odr and range into dts #32168
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
          
     Merged
      
      
            nashif
  merged 4 commits into
  zephyrproject-rtos:master
from
avisconti:iis2iclx-move-odr-range-into-dts
  
      
      
   
  Feb 15, 2021 
      
    
  
     Merged
                    Changes from 3 commits
      Commits
    
    
            Show all changes
          
          
            4 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      f02e710
              
                dts/bindings: iis2iclx: create a common st,iis2iclx-common.yaml
              
              
                avisconti 450c61c
              
                drivers/sensor: iis2iclx: Move range Kconfig property into dts
              
              
                avisconti 85353d0
              
                drivers/sensor: iis2iclx: Move odr Kconfig property into dts
              
              
                avisconti d144f64
              
                drivers/sensor: iis2iclx: modify int-pin type in DT
              
              
                avisconti File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # Copyright (c) 2020 STMicroelectronics | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|  | ||
| properties: | ||
| drdy-gpios: | ||
| type: phandle-array | ||
| required: false | ||
| description: DRDY pin | ||
|  | ||
| This pin defaults to active high when produced by the sensor. | ||
| The property value should ensure the flags properly describe | ||
| the signal that is presented to the driver. | ||
|  | ||
| int-pin: | ||
| type: int | ||
| required: false | ||
| default: 1 | ||
| description: Device INT pin number (1 or 2) | ||
|  | ||
| This number represents which of the two interrupt pins | ||
| (INT1 or INT2) the line is attached to. This property is not | ||
| mandatory and if not present it defaults to 1. | ||
|  | ||
| range: | ||
| type: int | ||
| required: false | ||
| default: 3 | ||
| description: Range in g. Default is power-up configuration. | ||
| enum: | ||
| - 0 # 500mg (0.015 mg/LSB) | ||
| - 1 # 3g (0.122 mg/LSB) | ||
| - 2 # 1g (0.031 mg/LSB) | ||
| - 3 # 2g (0.061 mg/LSB) | ||
|  | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 
 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like it's corrected in the next commit. | ||
| odr: | ||
| type: int | ||
| required: false | ||
| default: 0 | ||
| description: | ||
| Specify the default accelerometer output data rate expressed in samples per second (Hz). | ||
| Default is power-up configuration. | ||
| enum: | ||
| - 0 # Power-Down | ||
| - 1 # 12.5Hz | ||
| - 2 # 26Hz | ||
| - 3 # 52Hz | ||
| - 4 # 104Hz | ||
| - 5 # 208Hz | ||
| - 6 # 416Hz | ||
| - 7 # 833Hz | ||
| - 8 # 1660Hz | ||
| - 9 # 3330Hz | ||
| - 10 # 6660Hz | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's out of the PR's intended scope, and the same problem occurs elsewhere so won't block on this, but:
In another PR please review all uses of similar properties in ST devicetree bindings and make this and the others you'll find an
enumtoo, likest,iis2dlpc'sdrdy-intproperty.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pabigot
Yes, that's a good point. I'll do it in a separate PR.
Thanks