From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 6E66232572F for ; Thu, 8 Oct 2026 19:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791489429; cv=none; b=pTjhYZ4uyAVW7ufy9nA5S68/ACrGj00+gleDCla8RAiv3QqxG+9kypzaJz2eC6XOq5b5hIQ2KZ+/c7AbRYs82KwMX4/ZLC7+czUPTd0ELqOuv1TjMm50c2hBzgRGK221n6EpkGbIoZ0D0Us0EkYcwdsJR2Velhl/XlBb8/rFTxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791489429; c=relaxed/simple; bh=t45JZa4asJQY5m2Xan0mfGL+lA9Sq2vCHMCGDDsr/6M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=e5+Gmb9rlxSO+oKYepWAJ8HTuqLpoa9R3CxvTuWa07KfDlU3dSvwNN5TsNk+Garc29r/pzHd12ZmovoMx1GX1hTUSVgAJ5uOg/8Cng7lKeukl2xtc9VEL7VOnnpXVOkUennmcYKHHyihPKMc0GTN0mkNVQOn3v9V833BxP0iAjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=crG9U/iL; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="crG9U/iL" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-6aa9164072cso3197456a12.2 for ; Thu, 08 Oct 2026 12:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791489427; x=1792094227; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6lpUD8jRO1S8/Isf95iV6WJCsldqW7LIOSCg3AW5Tl8=; b=crG9U/iLrp57vUJWrIFLBqU71dyGxfgBHWxtNWcVxkb5mJ/a0JOxYghPYcjHmUseMS j4Q8bOjUA1o+yVYRHaOOoadzI8BX1ZNkXiTqlBH/Pufo/Hxtr/Yw3x0fC+6wpcx1Ah5C nl5gxPbRe1YOVTR2Kxx7EL5S6Ia+oFJGkYjtqJTzkOXDa0V+r32nhtQxzumUsS557gMP rb4bqWmpgRV9oWAby36bbnx5wQ2aYI2dysG20VQ4EML+mlUqpItsoV9bZVnd/08f7flf JGqFnUuMKT9Okekhb46geAwXBNR0SGdT4fvQuFXpZqX0ZgrTgdoIdxNSaJS5NjcMIPkH eJbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791489427; x=1792094227; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6lpUD8jRO1S8/Isf95iV6WJCsldqW7LIOSCg3AW5Tl8=; b=Vkivq/XWKWZU7Gp7nl0OYnIfARIUTGrsu3AoHeaGiA/f+itIeUDWKe+aA2SMTkqJQ9 JjToiRN12J7WuaDskDSC51S6GmpyA/6cG7TqHVfAwtnY9sof65rXFjaveZLjvDerIVig sZ/6XufpwZs4lrNyXElxzjp4H85+C24j12Xo6+wFOoVXH6H8zCL3ZbHx0qKkozHTc6o8 3ulKrtEs5sbqoAlT4uyWhDxNQG8jpALYkyYYHrFNn4kBASww3no/odc9IFqTC5mckg8l o85uf4rzkh3u3EaO4iQijVslNX9NhCHR/1vNCk/mZ5sJocEErdj3pJXcV1BjYDnw735S zQcQ== X-Forwarded-Encrypted: i=1; AKwUvBxBbWDPriYgGU1BDqjZNGSeOASLjdB9gxrgZ8B4+sP9NXTTeZdmVoCS2Toa/QpWhWC8rX5LjzDUsO4F@vger.kernel.org X-Gm-Message-State: AFq9FYKfvDwZ6fdStc8ciILddy/3dxIvjWiqYmfoeniAxYK9IKbf1ImZ 73b19BomwAwE332dpsu1qh0EAGJxOt3Evw0HbqVt/EyO5bLJTI4wzani X-Gm-Gg: AYBFou2HCU3Bo6UJVZh8F55zctPSaQJJMAgOtV+LEzudZhK02DgavHWwHWXOc5JoGNM TTNHerOZAHsIx16E/mvnyzD/+sX8BZN8LtDdeoXLZsUzM4MokDNfXHfa1JLL2aodDSDSVHvTbBV PtM4TtP3WMOczrtcs5GpNCYml+pns+ERbgDb0JUqrJ3tDoVqA5d6yIn7ogdzZ1t6oWwlyhoDx3z bS/vani3JUUi/1K2XjBQT3vViGx0k+EDZCWfBHmUUtLhNNvnIESWcLM7lGUb6IdA56JhyuxYB8V E7QxYQKfyqFQ5vI6x0k4nvG64rjxRLrA2zu9khu9FuXeWaq3JIhZCCUSDL6e3ren5v1vfZNTdeu L88EtYmiBf8EmJbw5ofNG/6pOC27ZVszfzT+qWrs6B73PDMa7KqjdW/xY/Ze7JSguA0sL2sv3dU ofgqDXnsL6ncyUt7Q4TninKXbbIDqokDfT/QrLoO+pDiUnLDK9tSuErwz13bUOww2DC9o4/3y1C mM3RP4StQ== X-Received: by 2002:a05:6402:11cb:b0:6ac:73f8:2e4f with SMTP id 4fb4d7f45d1cf-6aff47d1960mr6234217a12.29.1791489426354; Thu, 08 Oct 2026 12:57:06 -0700 (PDT) Received: from [192.168.0.193] ([194.183.54.57]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6b178d1605fsm48335a12.2.2026.10.08.12.57.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Oct 2026 12:57:04 -0700 (PDT) Message-ID: <18da135d-dc3f-4975-a36a-c680926fac40@gmail.com> Date: Thu, 8 Oct 2026 21:57:03 +0200 Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/3] leds: aat1290: Add support for AAT1270 Current Regulator for Flash LEDs To: Svyatoslav Ryhel Cc: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261007085457.98762-1-clamor95@gmail.com> <20261007085457.98762-4-clamor95@gmail.com> Content-Language: en-US From: Jacek Anaszewski In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/8/26 10:15 AM, Svyatoslav Ryhel wrote: > ср, 7 жовт. 2026 р. о 22:04 Jacek Anaszewski пише: >> >> Hi Svyatoslav, >> >> On 10/7/26 10:54 AM, Svyatoslav Ryhel wrote: >>> The AAT1270 is quite similar to the AAT1290, but it does not support the >>> Advanced Simple Serial Control (AS2C) used in the AAT1290. The AAT1270 >>> uses an earlier version of AS2C, namely Simple Serial Control, which lacks >>> address-sending capabilities. >> >> It seems that it is not possible to set brightness level and flash >> timeout. Those values are controlled by the values of RSET and CT >> elements attached to the controller. > > This is not entirely true. S2C allows setting brightness level > perfectly fine, I have tested it on my LG Optimus 2X P990 (star) that > has this LED flash driver. Flash timeout is fixed, that is true, but > both AAT1270 and AAT1290 feature mandatory flash inhibit logic which > is not implemented by this driver and can be used to set emergency > flash disable. OK, let me try to perform more thorough review, after consulting data sheet, in the coming days. >> Those values should be conveyed >> via Device Tree, and the LED device API should reflect that accordingly. >> > > They are calculated same way as AAT1290 does and set in the device > tree. Being fixed does not mean they should be removed. Device tree > describes hardware and those values are part of hw description. > >> The question is whether it is worth a hassle to add support for this >> older chipset version. Could you let as know on which device it is >> present. >> > > LG Optimus 2X P990 (star). It is a Tegra smartphone, it is not yet > supported by mainline Linux kernel, but it will be in near future. I > am currently upstreaming missing parts for better support. Ack. -- Best regards, Jacek Anaszewski