forked from torvalds/linux
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 150
arm64: dts: qcom: msm8939-htc-m8qlul: Add initial device tree #407
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
          
     Draft
      
      
            a-andre
  wants to merge
  1
  commit into
  msm8916-mainline:wip/msm8916/v6.16-rc4
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
a-andre:htc_m8qlul
  
      
      
   
  
    
  
  
  
 
  
      
    base: wip/msm8916/v6.16-rc4
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Draft
                    Changes from all commits
      Commits
    
    
  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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,236 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-only | ||
|  | ||
| /dts-v1/; | ||
|  | ||
| #include "msm8939-pm8916.dtsi" | ||
|  | ||
| #include <dt-bindings/gpio/gpio.h> | ||
|  | ||
| / { | ||
| model = "HTC One M8s"; | ||
| compatible = "htc,m8qlul", "qcom,msm8939"; | ||
| chassis-type = "handset"; | ||
|  | ||
| aliases { | ||
| mmc0 = &sdhc_1; /* eMMC */ | ||
| mmc1 = &sdhc_2; /* SD card */ | ||
| serial0 = &blsp_uart2; | ||
| }; | ||
|  | ||
| chosen { | ||
| bootargs = "earlycon=tty0 console=tty0"; | ||
| stdout-path = "framebuffer0"; | ||
|  | ||
| #address-cells = <2>; | ||
| #size-cells = <2>; | ||
| ranges; | ||
|  | ||
| framebuffer0: framebuffer@83003000 { | ||
| compatible = "simple-framebuffer"; | ||
| reg = <0x0 0x83200000 0x0 0xfa0000>; | ||
| width = <1080>; | ||
| height = <1920>; | ||
| stride = <(1080 * 3)>; | ||
| format = "r8g8b8"; | ||
| }; | ||
| }; | ||
|  | ||
| reserved-memory { | ||
| #address-cells = <2>; | ||
| #size-cells = <2>; | ||
| ranges; | ||
|  | ||
| // /delete-node/ venus@8c300000; | ||
|  | ||
| cont_splash_mem: framebuffer@83000000 { | ||
| compatible = "removed-dma-pool"; | ||
| reg = <0x0 0x83200000 0x0 0xfa0000>; | ||
| no-map; | ||
| }; | ||
|  | ||
| ramoops: ramoops_mem_region@8cb00000 { | ||
| compatible = "ramoops"; | ||
| reg = <0x0 0x8cb00000 0x0 0x100000>; | ||
|  | ||
| record-size = <65536>; | ||
| console-size = <0x100000>; | ||
| ftrace-size = <0>; | ||
| pmsg-size = <524288>; | ||
| }; | ||
|  | ||
| htc_reserve_region@8cbd0000 { | ||
| reg = <0x00 0x8cbd0000 0x00 0x20000>; | ||
| no-map; | ||
| }; | ||
|  | ||
| // venus_mem: venus@8e800000 { | ||
| // reg = <0x00 0x8e800000 0x00 0x500000>; | ||
| // no-map; | ||
| // }; | ||
| }; | ||
|  | ||
| gpio-keys { | ||
| compatible = "gpio-keys"; | ||
|  | ||
| pinctrl-0 = <&gpio_keys_default>; | ||
| pinctrl-names = "default"; | ||
|  | ||
| label = "GPIO Buttons"; | ||
|  | ||
| button-volume-up { | ||
| label = "Volume Up"; | ||
| gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; | ||
| linux,code = <KEY_VOLUMEUP>; | ||
| }; | ||
| }; | ||
|  | ||
| usb_id: usb-id { | ||
| compatible = "linux,extcon-usb-gpio"; | ||
| id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; | ||
| pinctrl-0 = <&usb_id_default>; | ||
| pinctrl-names = "default"; | ||
| }; | ||
| }; | ||
|  | ||
| &blsp_uart2 { | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &mdss { | ||
| status = "disabled"; | ||
| }; | ||
|  | ||
| &pm8916_resin { | ||
| linux,code = <KEY_VOLUMEDOWN>; | ||
|  | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &pm8916_rpm_regulators { | ||
| pm8916_s3: s3 { // ok | ||
| regulator-min-microvolt = <1200000>; | ||
| regulator-max-microvolt = <1300000>; | ||
| }; | ||
|  | ||
| pm8916_s4: s4 { // ok | ||
| regulator-min-microvolt = <1800000>; | ||
| regulator-max-microvolt = <2100000>; | ||
| }; | ||
|  | ||
| pm8916_l1: l1 { // ok | ||
| regulator-min-microvolt = <1225000>; | ||
| regulator-max-microvolt = <1225000>; | ||
| }; | ||
|  | ||
| pm8916_l4: l4 { // ok | ||
| regulator-min-microvolt = <2050000>; | ||
| regulator-max-microvolt = <2050000>; | ||
| }; | ||
|  | ||
| pm8916_l6: l6 { // ok | ||
| regulator-always-on; | ||
| regulator-boot-on; | ||
| }; | ||
|  | ||
| pm8916_l10: l10 { // ok, didn't originally match downstream | ||
| regulator-min-microvolt = <1800000>; | ||
| regulator-max-microvolt = <1800000>; | ||
| regulator-always-on; /* comment from downstream: V_AUD_1V8 need always on as audio request */ | ||
| }; | ||
|  | ||
| pm8916_l14: l14 { // ok | ||
| regulator-min-microvolt = <1800000>; | ||
| regulator-max-microvolt = <3300000>; | ||
| }; | ||
|  | ||
| pm8916_l15: l15 { // ok | ||
| regulator-min-microvolt = <1800000>; | ||
| regulator-max-microvolt = <3300000>; | ||
| }; | ||
|  | ||
| pm8916_l16: l16 { // ok | ||
| regulator-min-microvolt = <1800000>; | ||
| regulator-max-microvolt = <3300000>; | ||
| }; | ||
|  | ||
| pm8916_l17: l17 { // ok, didn't originally match downstream | ||
| regulator-min-microvolt = <3300000>; | ||
| regulator-max-microvolt = <3300000>; | ||
| }; | ||
|  | ||
| pm8916_l18: l18 { // ok | ||
| regulator-min-microvolt = <2700000>; | ||
| regulator-max-microvolt = <2700000>; | ||
| }; | ||
| }; | ||
|  | ||
| &pm8916_vib { | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &sdhc_1 { | ||
| vmmc-supply = <&pm8916_l8>; | ||
| vqmmc-supply = <&pm8916_l5>; | ||
|  | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &sdhc_2 { | ||
| vmmc-supply = <&pm8916_l11>; | ||
| vqmmc-supply = <&pm8916_l12>; | ||
|  | ||
| pinctrl-0 = <&sdc2_default &sdc2_cd_default>; | ||
| pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; | ||
| pinctrl-names = "default", "sleep"; | ||
|  | ||
| cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; | ||
|  | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &usb { | ||
| extcon = <&usb_id>, <&usb_id>; | ||
|  | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &usb_hs_phy { | ||
| extcon = <&usb_id>; | ||
| v1p8-supply = <&pm8916_l7>; | ||
| v3p3-supply = <&pm8916_l13>; | ||
| }; | ||
|  | ||
| &wcnss { | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &wcnss_iris { | ||
| compatible = "qcom,wcn3680"; | ||
| }; | ||
|  | ||
| &wcnss_mem { | ||
| status = "okay"; | ||
| }; | ||
|  | ||
| &tlmm { | ||
| gpio_keys_default: gpio-keys-default-state { | ||
| pins = "gpio107"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-pull-up; | ||
| }; | ||
|  | ||
| sdc2_cd_default: sdc2-cd-default-state { | ||
| pins = "gpio38"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-disable; | ||
| }; | ||
|  | ||
| usb_id_default: usb-id-default-state { | ||
| pins = "gpio110"; | ||
| function = "gpio"; | ||
| drive-strength = <8>; | ||
| bias-pull-up; | ||
| }; | ||
| }; | ||
  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.
Does simpledrm really work?