Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp464173ybh; Thu, 12 Mar 2020 05:23:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsl0kaufrX4SKA56fusWWw7ZXeeOW6CHJAMRurUqeP0NioQheJpoBCnYFC2cZptIeCjMG5K X-Received: by 2002:a05:6830:11c7:: with SMTP id v7mr5757292otq.41.1584015788761; Thu, 12 Mar 2020 05:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584015788; cv=none; d=google.com; s=arc-20160816; b=EgctIY1C/0GT1H83oUPeg7Zs/TsnShs2ksHLtTq/Ayv26Ln51l1Gf75qXRSKoYxrWP KZFYa3c354EMhHRz1Q3PvZVkh96rk31/HwvcxMhVpPDUWTeE0fCqTX5PpxSuKqQ59HoL vvbBYa+sRXYLHV4HCM2u4UdMsPimLPvYRCdn5JkiX8dgwKTyBpKjUdDpGR649jBaH9/p R/FZMCgVgFPSJrst8TKAF/v59PjZjZiKx5QFs6U9mmyp0ot9hRCopLo+AYu5oUg9wcbN U/DdaPGDdCWKh0v6KvmAJtKXRu90fx9EkeYUawwmbUgliFduC3rGZraxFjT1///r+ky3 6y1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:subject:cc:to:from :date:content-transfer-encoding:mime-version:dkim-signature; bh=Lfs0z/+L0TSule7hHn2nDAOGMSOIAkxM0mBa2N+gqjI=; b=orjBWr7PJb7aDLldOHLxJN6zE4Wvew85VINDvfAdvjskL5AekFuKw7upx/FpGeCiZS hP73o4AXVbrLY6r0NnZbmszoGLudDChAbJ/N6QMUgIDqOXp+xxlrsNS7V7jVDco205Ej vKGNEvZmcEe9cXLmKOCSvizr1jPj18KsuvSG7GrPSH3aYx71W0PFDhN1uAt1L7acpn49 OZNr3awgkD5sNfGefOFcGGeHwusJJXvBPySvnEp5IvrTPlmOMlNFqLsfs2W9V5dTMWak 9lXYW6zAKM0cNZm5Ivy6ROjeO9JyrDEPhHYZOE8T5IyQJrgOPv8P87ZMuF10zCNXBh8Y 53vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=bkeEHHZB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si2426398oie.88.2020.03.12.05.22.56; Thu, 12 Mar 2020 05:23:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=bkeEHHZB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbgCLMW1 (ORCPT + 99 others); Thu, 12 Mar 2020 08:22:27 -0400 Received: from web0081.zxcs.nl ([185.104.29.10]:34190 "EHLO web0081.zxcs.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbgCLMW0 (ORCPT ); Thu, 12 Mar 2020 08:22:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pascalroeleven.nl; s=x; h=Message-ID:Subject:Cc:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Lfs0z/+L0TSule7hHn2nDAOGMSOIAkxM0mBa2N+gqjI=; b=bkeEHHZBvkZiglRESydGIwO20 weVZ3patJWJi0cvR5/syyzc+uHlgg6uan/zJcW6zVRFFRPJ6Q8bDLdr7ESeNW3hTfkxtN00/EIS+g l87uXsSridQ3jVJnEnD5YmkJjxlT4teuILe6lthyYHv6rnzPaeRA5nNPAXJspn7IQTlMXWYNMGj3Y PCtR+EF5IFvC7wu8JqK77gTwj2q5bRId7EtMRyitcz4KmX60KHs7IkC30dLI3YLdQy8n/6AGFWRdF eRLdCZk41tk0ZT/z4EdptxiDvMdlmDzUrlJ4zSP5B6DYkl3GvewdR/8fkpyNfeYa4qUHBRqyz1dQW 4vUIiqu6A==; Received: from spamrelay.zxcs.nl ([185.104.28.12]:33708 helo=mail-slave01.zxcs.nl) by web0081.zxcs.nl with esmtp (Exim 4.92.3) (envelope-from ) id 1jCMqr-002bnY-GC; Thu, 12 Mar 2020 13:22:13 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 12 Mar 2020 13:22:13 +0100 From: Pascal Roeleven To: Thierry Reding , =?UTF-8?Q?Uwe_Kleine-K?= =?UTF-8?Q?=C3=B6nig?= , Maxime Ripard , Chen-Yu Tsai , Philipp Zabel , linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linux-sunxi@googlegroups.com Subject: pwm: sun4i: pwm-backlight not working since 5.6-rc1 User-Agent: Roundcube Webmail/1.4.2 Message-ID: <6185b5540ca082d887d7d13330c9d938@pascalroeleven.nl> X-Sender: dev@pascalroeleven.nl Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I am working on adding an old A10 device to mainline and noticed an issue when testing on 5.5.8 vs master. Since 5.6-rc1, I can't control the brightness of my LCD backlight anymore. The backlight stays on full brightness instead. I am controlling the brightness value via sysfs for testing. I am not sure if this is a general pwm-sun4i issue or if it is related to the backlight. However I narrowed it down to one commit for pwm-sun4i: fa4d81784681a26bcf7d2a43c6ac5cf991ef28f5 If I use pwm-sun4i.c from 5b090b430d750961305030232314b6acdb0102aa on master, the backlight works fine. Unfortunately, due to my lack of kernel experience, I can't see how the commit above broke it. Not sure if it helps, but the binding for the backlight is as follows: backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm 0 100000 PWM_POLARITY_INVERTED>; power-supply = <®_vbat>; enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ brightness-levels = <0 30 40 50 60 70 80 90 100>; default-brightness-level = <8>; }; Please let me know if there is anything else which might be helpful to know or anything I can test. Regards, Pascal