Linux Audio

Check our new training course

Linux kernel drivers training

Mar 31-Apr 9, 2025, special US time zones
Register
Loading...
Note: File does not exist in v6.2.
  1// SPDX-License-Identifier: GPL-2.0
  2#include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi"
  3
  4/ {
  5	model = "Sony Xperia Z2 Tablet";
  6	compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974";
  7	chassis-type = "tablet";
  8
  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
 21		pinctrl-0 = <&lcd_backlight_en_pin_a>;
 22		pinctrl-names = "default";
 23	};
 24};
 25
 26&blsp2_i2c5 {
 27	clock-frequency = <355000>;
 28
 29	status = "okay";
 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		};
 44
 45		rom-a1h {
 46			rom-addr = /bits/ 8 <0xa1>;
 47			rom-val = /bits/ 8 <0x3f>;
 48		};
 49
 50		rom-a2h {
 51			rom-addr = /bits/ 8 <0xa2>;
 52			rom-val = /bits/ 8 <0x20>;
 53		};
 54
 55		rom-a3h {
 56			rom-addr = /bits/ 8 <0xa3>;
 57			rom-val = /bits/ 8 <0x5e>;
 58		};
 59
 60		rom-a4h {
 61			rom-addr = /bits/ 8 <0xa4>;
 62			rom-val = /bits/ 8 <0x02>;
 63		};
 64
 65		rom-a5h {
 66			rom-addr = /bits/ 8 <0xa5>;
 67			rom-val = /bits/ 8 <0x04>;
 68		};
 69
 70		rom-a6h {
 71			rom-addr = /bits/ 8 <0xa6>;
 72			rom-val = /bits/ 8 <0x80>;
 73		};
 74
 75		rom-a7h {
 76			rom-addr = /bits/ 8 <0xa7>;
 77			rom-val = /bits/ 8 <0xf7>;
 78		};
 79
 80		rom-a9h {
 81			rom-addr = /bits/ 8 <0xa9>;
 82			rom-val = /bits/ 8 <0x80>;
 83		};
 84
 85		rom-aah {
 86			rom-addr = /bits/ 8 <0xaa>;
 87			rom-val = /bits/ 8 <0x0f>;
 88		};
 89
 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
104		pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
105		pinctrl-names = "default";
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
113&pm8941_gpios {
114	bt_reg_on_pin: bt-reg-on-state {
115		pins = "gpio16";
116		function = "normal";
117		output-low;
118		power-source = <PM8941_GPIO_S3>;
119	};
120};
121
122&rpm_requests {
123	regulators-1 {
124		pm8941_l11: l11 {
125			regulator-min-microvolt = <1300000>;
126			regulator-max-microvolt = <1350000>;
127		};
128
129		pm8941_l19: l19 {
130			regulator-min-microvolt = <2850000>;
131			regulator-max-microvolt = <2850000>;
132		};
133	};
134};
135
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>;
146
147	status = "okay";
148};
149
150&synaptics_touchscreen {
151	vio-supply = <&pm8941_lvs3>;
152};
153
154&tlmm {
155	bt_dev_wake_pin: bt-dev-wake-state {
156		pins = "gpio96";
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
170	lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
171		pins = "gpio69";
172		function = "gpio";
173		drive-strength = <10>;
174		output-low;
175		bias-disable;
176	};
177};