Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 2 | #include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi" |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 3 | |
| 4 | / { |
| 5 | model = "Sony Xperia Z2 Tablet"; |
| 6 | compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974"; |
| 7 | chassis-type = "tablet"; |
| 8 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 9 | vreg_bl_vddio: lcd-backlight-vddio { |
| 10 | compatible = "regulator-fixed"; |
| 11 | regulator-name = "vreg_bl_vddio"; |
| 12 | regulator-min-microvolt = <3150000>; |
| 13 | regulator-max-microvolt = <3150000>; |
| 14 | |
| 15 | gpio = <&tlmm 69 0>; |
| 16 | enable-active-high; |
| 17 | |
| 18 | vin-supply = <&pm8941_s3>; |
| 19 | startup-delay-us = <70000>; |
| 20 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 21 | pinctrl-0 = <&lcd_backlight_en_pin_a>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 22 | pinctrl-names = "default"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 23 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 24 | }; |
| 25 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 26 | &blsp2_i2c5 { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 27 | clock-frequency = <355000>; |
| 28 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 29 | status = "okay"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 30 | |
| 31 | lp8566_wled: backlight@2c { |
| 32 | compatible = "ti,lp8556"; |
| 33 | reg = <0x2c>; |
| 34 | power-supply = <&vreg_bl_vddio>; |
| 35 | |
| 36 | bl-name = "backlight"; |
| 37 | dev-ctrl = /bits/ 8 <0x05>; |
| 38 | init-brt = /bits/ 8 <0x3f>; |
| 39 | |
| 40 | rom-a0h { |
| 41 | rom-addr = /bits/ 8 <0xa0>; |
| 42 | rom-val = /bits/ 8 <0xff>; |
| 43 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 44 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 45 | rom-a1h { |
| 46 | rom-addr = /bits/ 8 <0xa1>; |
| 47 | rom-val = /bits/ 8 <0x3f>; |
| 48 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 49 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 50 | rom-a2h { |
| 51 | rom-addr = /bits/ 8 <0xa2>; |
| 52 | rom-val = /bits/ 8 <0x20>; |
| 53 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 54 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 55 | rom-a3h { |
| 56 | rom-addr = /bits/ 8 <0xa3>; |
| 57 | rom-val = /bits/ 8 <0x5e>; |
| 58 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 59 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 60 | rom-a4h { |
| 61 | rom-addr = /bits/ 8 <0xa4>; |
| 62 | rom-val = /bits/ 8 <0x02>; |
| 63 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 64 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 65 | rom-a5h { |
| 66 | rom-addr = /bits/ 8 <0xa5>; |
| 67 | rom-val = /bits/ 8 <0x04>; |
| 68 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 69 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 70 | rom-a6h { |
| 71 | rom-addr = /bits/ 8 <0xa6>; |
| 72 | rom-val = /bits/ 8 <0x80>; |
| 73 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 74 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 75 | rom-a7h { |
| 76 | rom-addr = /bits/ 8 <0xa7>; |
| 77 | rom-val = /bits/ 8 <0xf7>; |
| 78 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 79 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 80 | rom-a9h { |
| 81 | rom-addr = /bits/ 8 <0xa9>; |
| 82 | rom-val = /bits/ 8 <0x80>; |
| 83 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 84 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 85 | rom-aah { |
| 86 | rom-addr = /bits/ 8 <0xaa>; |
| 87 | rom-val = /bits/ 8 <0x0f>; |
| 88 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 89 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 90 | rom-aeh { |
| 91 | rom-addr = /bits/ 8 <0xae>; |
| 92 | rom-val = /bits/ 8 <0x0f>; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | &blsp2_uart1 { |
| 98 | status = "okay"; |
| 99 | |
| 100 | bluetooth { |
| 101 | compatible = "brcm,bcm43438-bt"; |
| 102 | max-speed = <3000000>; |
| 103 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 104 | pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 105 | pinctrl-names = "default"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 106 | |
| 107 | host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>; |
| 108 | device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; |
| 109 | shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>; |
| 110 | }; |
| 111 | }; |
| 112 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 113 | &pm8941_gpios { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 114 | bt_reg_on_pin: bt-reg-on-state { |
| 115 | pins = "gpio16"; |
| 116 | function = "normal"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 117 | output-low; |
| 118 | power-source = <PM8941_GPIO_S3>; |
| 119 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 120 | }; |
| 121 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 122 | &rpm_requests { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 123 | regulators-1 { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 124 | pm8941_l11: l11 { |
| 125 | regulator-min-microvolt = <1300000>; |
| 126 | regulator-max-microvolt = <1350000>; |
| 127 | }; |
| 128 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 129 | pm8941_l19: l19 { |
| 130 | regulator-min-microvolt = <2850000>; |
| 131 | regulator-max-microvolt = <2850000>; |
| 132 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 133 | }; |
| 134 | }; |
| 135 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 136 | &smbb { |
| 137 | qcom,fast-charge-safe-current = <1500000>; |
| 138 | qcom,fast-charge-current-limit = <1500000>; |
| 139 | qcom,dc-current-limit = <1800000>; |
| 140 | usb-charge-current-limit = <1800000>; |
| 141 | qcom,fast-charge-safe-voltage = <4400000>; |
| 142 | qcom,fast-charge-high-threshold-voltage = <4350000>; |
| 143 | qcom,fast-charge-low-threshold-voltage = <3400000>; |
| 144 | qcom,auto-recharge-threshold-voltage = <4200000>; |
| 145 | qcom,minimum-input-voltage = <4300000>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 146 | |
| 147 | status = "okay"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 148 | }; |
| 149 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 150 | &synaptics_touchscreen { |
| 151 | vio-supply = <&pm8941_lvs3>; |
| 152 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 153 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 154 | &tlmm { |
| 155 | bt_dev_wake_pin: bt-dev-wake-state { |
| 156 | pins = "gpio96"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 157 | function = "gpio"; |
| 158 | drive-strength = <2>; |
| 159 | bias-disable; |
| 160 | }; |
| 161 | |
| 162 | bt_host_wake_pin: bt-host-wake-state { |
| 163 | pins = "gpio95"; |
| 164 | function = "gpio"; |
| 165 | drive-strength = <2>; |
| 166 | bias-disable; |
| 167 | output-low; |
| 168 | }; |
| 169 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 170 | lcd_backlight_en_pin_a: lcd-backlight-vddio-state { |
| 171 | pins = "gpio69"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 172 | function = "gpio"; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 173 | drive-strength = <10>; |
| 174 | output-low; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 175 | bias-disable; |
| 176 | }; |
| 177 | }; |