Re: [PATCH v2 2/3] arm64: dts: qcom: msm8916-wingtech-wt865x8: Add Lenovo A6000/A6010

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Konrad Dybcio писал(а) 23.07.2024 16:24:
> On 22.07.2024 2:47 PM, Nikita Travkin wrote:
>> From: Anton Bambura <jenneron@xxxxxxxxxxxxxxxx>
>>
>> Add initial device-tree for Lenovo A6000 (wt86518) and Lenovo A6010
>> (wt86528), which are MSM8916-based devices. These devices are quite
>> similar, so some configuration is shared in msm8916-wingtech-wt865x8.dtsi.
> 
> [...]
> 
> 
>> +/ {
>> +	model = "Lenovo A6000 (Wingtech WT86518)";
>> +	compatible = "wingtech,wt86518", "qcom,msm8916";
>> +	chassis-type = "handset";
>> +
>> +	speaker_amp: audio-amplifier {
>> +		compatible = "awinic,aw8738";
>> +
>> +		pinctrl-names = "default";
>> +		pinctrl-0 = <&spk_ext_pa_default>;
> 
> flip

Oops, missed this one, will fix.

> 
> [...]
> 
>> +&sound {
>> +	model = "wt88047";
>> +	widgets =
>> +		"Speaker", "Speaker",
>> +		"Headphone", "Headphones";
> 
> Please don't start a new line for this (same below)
> 

Ack, will re-align.

>> +	pin-switches = "Speaker", "Headphones";
>> +	audio-routing =
>> +		"Speaker", "Speaker Amp OUT",
>> +		"Speaker Amp IN", "HPH_R",
> 
> [...]
> 
>> +	/* left AW8736 */
>> +	speaker_amp_left: audio-amplifier-left {
>> +		compatible = "awinic,aw8738";
> 
> Should this get a new compatible (with a fallback if sw-compatible)?
> 

Per my understanding those two are supposed to be effectively same
chip, not sure if there is any point in adding a new compatible/fallback
in this case... 

Thanks for looking at this!
Nikita

>> +
>> +		pinctrl-0 = <&spk_ext_pa_left_default>;
>> +		pinctrl-names = "default";
>> +
>> +		mode-gpios = <&tlmm 119 GPIO_ACTIVE_HIGH>;
>> +		sound-name-prefix = "Speaker Amp L";
>> +		awinic,mode = <3>;
>> +	};
>> +
>> +	/* right AW8736 */
>> +	speaker_amp_right: audio-amplifier-right {
>> +		compatible = "awinic,aw8738";
> 
> ditto
> 
> Konrad




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux