From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59EE631ED6E for ; Thu, 22 Jan 2026 13:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769089037; cv=none; b=hgqpeXTLTts7NnbYRUi8WoGuy3w7NtPvjgKO7k78sm6x9UfGmXxE+bA/xbOZZYdQy7t7yYHZYmdHFANX9uzFd2BXlOyc1R20GDXteCg0hZb7IWDlFK0JzHCYUq9BDQVK1ha+pBJpyQk+gm8Mu7zqNeP73UJmulsBtcvt1HAz6Jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769089037; c=relaxed/simple; bh=NEO0Wib2XUAkRs4MoAFw6l9bb9xKdSkfQ3peJhKOaEc=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=teFonkqMbXwkjooI3UQ9wzfAfx67N4qehS+JAuZdN3Jh4I7PDb/EwkAWHENverwZdSxtye0a+zylUStJsfBNPltjIYEXJNPn7QarxefVPgG/nTF8ZQCSrBiMMWZ3guK9d5zSFvlMrA+XZ3P8ZPO1WiKdoxMiblIntTSyCSldpZc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=fC7xpRFe; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fC7xpRFe" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-47edffe5540so10933765e9.0 for ; Thu, 22 Jan 2026 05:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769089033; x=1769693833; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=eEJn28UsVkdJy0uU3rgrwA+Zjuc5hG2Gw87IADiyNbQ=; b=fC7xpRFerz9c0y15wmAOkzOYDmOymVhwBDGJlm9GG+d4u7+bySYIg9/2nm8vzIPzm4 ykq6IfzdRiCXkxeTUcFtD3ytRg3vxNYDZNLoDCHYkWO79hKUQfjiPrThYMzoKxK1G9PK sChovRMmLvusVgB699+e9JO4Mo4+iYHNmEsAUiqhNYWshL9PYhwM1YWHHyAVDwMD53fQ qouHFzm9teoUMsDDURqcwh0qzMYSxDhFWB+L9cXETu2+UuUyP3+qZ1YhvsPNNkSv/JOI qGJExM/SS0BxsBbmWt9iEpzkQVHYAqNrdV1ZgkNRYQG+KurAwAIhf3+Sz99CSz3erFdM KyyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769089033; x=1769693833; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eEJn28UsVkdJy0uU3rgrwA+Zjuc5hG2Gw87IADiyNbQ=; b=r8A1f7pOBcgnjSURA/0foiyLNIm2GfZeCk/BmwxsCu5WnUJgrU8djZqRd0vMV2g9+g J2kFblw/HwVARjLtVPiQS89g8L8ftdDiKJt8bS9YHb6dnEQCu/jwyCkme7536RSrsfgG nCj7jjaIA15HbAvNsfSwVyS1BDb51inJrf7J3Oukq/0dPrzp7/dtZzDtEtE25wFRlK+a kRl0QoxLBJhH70hsDHLxAcrei9m1oR/Oq2n16nyhG3CeEO86D2+vu/t7qXtiNPOjZGwU 6A0Jhwl73kxRnvDvwibUnCgYhxd4GI+WlxWqg7PCK/Fm4yhE6xky1G+1FZER0x0DiL/E t/bg== X-Forwarded-Encrypted: i=1; AJvYcCU4feIgKNYjA8kSJWgAoz6mevohpcC3I7Nkd7q4DSVYSNbg1slTm+tQQrSUoIqDdsyl/SGEznRnmLPkyVo=@vger.kernel.org X-Gm-Message-State: AOJu0YwQkhc1uGqy2mQMfLYL7Gpnug7onoVwLKITcp3ih2wC1l++Fb8V mAQdZOIfUPcGesglr13uksTnXaLtluxQqxSgeS954cXyUugLWyzsVLMFZQnJ02DzavU= X-Gm-Gg: AZuq6aJ4FzX8h7rtvdfWwlX1EhjpLzNtnMWWvrqKMxGNw/oxImKK+TOqHfrjH/ykQjg rcbpUqtmtaYn399Q4G965P+Yausf+/Z+wcCMYDIkpNg+HDpYEAgDpdd1TR9qcLgrmdY8aMoiyot 2vYxs1AXIsbYyWpo4CLuUYVs2Q9Tb5IXzNFc48aXbVIXnt8AcNEa5lEyaNTq779m9KVhdGCKsIj Vqv3+PkGarNNvTP3ALyMplSDgjfAsLEDIEwunv1OBgyrlB9XzqdX6VntgQoJGh0esxpqQ9k3hSm b90ikxlV4CVb1//ffA8odwnuUO4CFncx14xbaVKKGHVJTvrtC55Z2vK2REWBRfHYfiAkGwOJqg2 N5sGfXzPi0xp/e6VH6MliZzIX02Dyg88nHR8J2FQNwh0hCb1foVztjGozUod9bRYJ6FtpkEQGoQ ZzGK/K1TbXhbJ1rAMaOrSvzL6OF3Wp0RmOxCBSS+vMRDvrR8QQfUBHGlnNH/MFjTA= X-Received: by 2002:a05:600c:8b75:b0:477:9574:d641 with SMTP id 5b1f17b1804b1-4803e7e8531mr130800565e9.22.1769089033318; Thu, 22 Jan 2026 05:37:13 -0800 (PST) Received: from ?IPV6:2a01:e0a:3d9:2080:9dc7:6955:8850:f258? ([2a01:e0a:3d9:2080:9dc7:6955:8850:f258]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4804702876asm75878365e9.1.2026.01.22.05.37.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jan 2026 05:37:12 -0800 (PST) Message-ID: Date: Thu, 22 Jan 2026 14:37:12 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH 3/3] arm64: dts: qcom: add basic devicetree for Ayaneo Pocket S2 gaming console To: Konrad Dybcio , Kancy Joe , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org References: <20260121-topic-sm8650-ayaneo-pocket-s2-base-v1-0-bb3f95f1c085@linaro.org> <20260121-topic-sm8650-ayaneo-pocket-s2-base-v1-3-bb3f95f1c085@linaro.org> <01de9fc2-f60c-4bc0-af61-c070213df29b@oss.qualcomm.com> <53a1370b-89a4-4276-949a-e3ad95dbad2c@linaro.org> <687b781c-dee6-4b8e-89b2-e082a860be3a@oss.qualcomm.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV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EAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <687b781c-dee6-4b8e-89b2-e082a860be3a@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/22/26 13:34, Konrad Dybcio wrote: > On 1/22/26 10:34 AM, Kancy Joe wrote: >> >> On 1/22/2026 5:25 PM, Neil Armstrong wrote: >>> On 1/22/26 10:15, Konrad Dybcio wrote: >>>> On 1/21/26 5:40 PM, Neil Armstrong wrote: >>>>> From: KancyJoe >>>>> >>>>> Add initial Device Tree for the Ayaneo Pocket S2 gaming console based >>>>> on the Qualcomm Snapdragon 8 Gen 3 platform. >>>>> >>>>> The design is similar to a phone wihout the modem, the game control >>>>> is handled via a standalone controller connected to a PCIe USB >>>>> controller. >>>>> >>>>> Display support will be added in a second time. >>>>> >>>>> Signed-off-by: KancyJoe >>>>> Signed-off-by: Neil Armstrong >>>>> --- > > [...] > >>>>> +        pinctrl-names = "default", >>>>> +                "sleep"; >>>>> + >>>>> +        pwms = <&pm8550_pwm 3 50000>; >>>>> + >>>>> +        #cooling-cells = <2>; >>>>> +        cooling-levels = <0 16 32 45 60 80 105 130 155 180 205 230 255>; >>>> >>>> Does this come from a preexisting map? >>> >>> Kancy ? >> >> No it is not a preexisting map. I add it(and the thermal part) myself to get dynamic fan speed control work. Perhaps you can also use userspace fan control daemon instead of hardcode it here. In android the vendor control the fan speed in userspace too. >> >> Following block is what the stock fw defined. I changed the granularity to make fan speed (or noise actually) sounds more "smooth". >> >> ``` >> >> cooling-levels = <0 64 128 255>; >> >> ``` > > FWIW the corresponding pwm-backlight driver has this > num-interpolated-steps property which computes a smooth map.. not sure how > many cooling levels are resonable for a PWM fan, but then I would intuitively > not object to having more as opposed to less.. Good suggestion ! Neil > > Konrad