From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 7C05D3AA50B for ; Thu, 8 Oct 2026 19:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791489429; cv=none; b=ktJoDFB5rZGtsEwad9OLZrIxRelr1jqWMH2m9R1uW3rQf6NiGPS7gAOVpv+Db6rwpgG1RCuXBQgfPnZ6ARnFFsK5G2CtnfdR0FJWGeOVwI+22S7iw2CSmgceI9zKTWI06gDgFbLz+QL95FE/3zP+TdMTdoeE+nDmEGDuArwYa5s= 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.54 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-f54.google.com with SMTP id 4fb4d7f45d1cf-6aa9164072cso3197457a12.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=FdHxmlWkSEuuSHj86FqNQTULOEu5nSOXVbtN4TWzYzDMhwhwADOu8pYbNRh7fY2xcy laAQRm7fSNMCtYBcgz0Lg72Q3wRn9VsMaW96Q0wcX0VEiy5DdbRu8AY9KWYRbsUVJlZK EkU3plXZ6j7b5/YgzjRr8HFz313hNXludt3BhvBuuFTrRwsvZwcwTgPUBQHA9ODHMWMH rghPfNayLY7T7GKoxtoSl4rR3pDlfu4eg+OkqZwgmQTV0222UwtoAFZvpkTy3LF7C0wJ 3JhYBCYgnj4dwh2NGA38q/wojVJiaRwENdVZkX2aTq6QLdtnE/urTELE/d1W2Gzh19CZ IQSw== X-Forwarded-Encrypted: i=1; AKwUvByhyzZ7B5pF0+tCt5cw7ZhXQMDKJ4oIPQAvZ1xGg4Qw6XBV5Xie3ciKpxndkUYn/wtrORGcAuoM0BR2@vger.kernel.org X-Gm-Message-State: AFq9FYKP48eQImmwPTOf0kKnN54r3bHVtYrKhESioSwjxaUHNU7N7sKY pKpf9L+cOpGTSP0d0b0454Zghfvue19GrIWAG/QmmFZD9cy78peKTwyn X-Gm-Gg: AYBFou3OSDK3i9GHhnD6cQz/H+7915n7/P/qhW66mojTNjX6UY+qYBjweRHsGb6szy2 inbZapR5bhzl7UmXIpLNSRJHLsvQSpLkepWoin3wwhErLSELbDw+n6ff6DYJTsGxmbMrlgZ7YQ0 VkWpesFeQqfvkYb2Ztbin171NCKZBUspaB+7raSeMEIry5HVMgaDN9J/ZEICTQqa9UpDcOdyhXg K5v6lWyHtCdLvlHHjztD/lbpezK+U4zHy9kKfmU2KlC4/fFbAH5FY/QxmXWPYG0pdlPYEo+U/1M Q4lBdnFoKuQ3ieobHLkWe9I110dgRDksE/9xM/ULarobpsfJwbHjhTkugPrOU9U1hbeGw//QGH8 HujG7Rj3eFH/SfSW4r5ZQXxanjDwDpBUNuAcvdpMua+udFlDW3lQ2zhm/uAn6c/SDW7cQ93tcFQ zKU1YOQiS4xC/5y4+u6nZP2sNI5pTaCz4NxgniFAFEpFl18DpG3m1nhiUO53R7hrNqHtrMf2NmH kp8OL435Q== 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: devicetree@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