Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1508470rdb; Wed, 24 Jan 2024 19:09:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVlYVPXrvd1rM19L5AvubAG2kCUK4WpwkSrQqyXiL1ZHb2GVKpggqaR8qjQDfCBSRTnYaw X-Received: by 2002:a05:6e02:20c5:b0:361:9849:4103 with SMTP id 5-20020a056e0220c500b0036198494103mr547379ilq.2.1706152147646; Wed, 24 Jan 2024 19:09:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706152147; cv=pass; d=google.com; s=arc-20160816; b=OMsJX9mOiioqxNfZX3INvhPYEDIKa8In8tv8Q43ucuJS/oReaF9oVS+UQqjkLJ9U+J IVBlaQGNIn4RtDKsfYitxyFw5cnaqhB3h4zpJiBgO0BRqzCfPTg0U6hPMOmJhKzAKSQr zu2GXq0/PMG2BKBWNbvbg2fZ9P5FV7Y8MnZnav+50m0fSU9N97Jy0+3tjmFXIJXQ14M1 LYLTMpVfDx88J0QOiui5girNt824wZ4FL3/8e8KWLmaf4YK22tqbCRHzhB/3Wm846ruL uF0vJU445wkQJFLL5Nt9CfsDf9oZQaaNiyRmuwwkLW4xyDHCmY1O3ZzlpO0T4xxZ5eMh b4aQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=b18SwfBbLyIM9TVbbQhP4SXf/xpRxq3DYKjyb7rHqmo=; fh=8v2OQwT0e/4mzSJfNnrkgSijoqadEWaNMSmTuHQsnfU=; b=mHQwc9xSlqaRwi11AwsQQM7XNdXnVYjUUnBeflHTIfkPcJlZcsLbOxU8mdAkDbjQf/ qP+EVWiYUBbJpyklvc3A1QYvcIOZuLwY7YYX6vhzbysrn3Rz5el/HUEtkNzFfI+G3zM6 jDbceF3NN0tC049goA9ADViqa09AuEH3p+Cx9XNWpjLmNgfTwHPiWTD7e6DMZFAesOZU l8LigYueoKdUC5ezkls7IUX9G+QnajM7wj/JVzRqjtDcc+RF2a1XSNvSfUGGTnn5Jrr2 NdOY9t0ku5QofyRejkF8XaY6iKiI3cN6g8/Wd3w8rdwMcqNaIxLXxz6H5lcni5gE3fp+ 0M3g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-37910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37910-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q124-20020a632a82000000b005d479e1295csi2618424pgq.492.2024.01.24.19.09.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 19:09:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-37910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37910-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 45E6D28263D for ; Thu, 25 Jan 2024 03:09:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A37636ABA; Thu, 25 Jan 2024 03:08:57 +0000 (UTC) Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 562B71FB2 for ; Thu, 25 Jan 2024 03:08:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706152137; cv=none; b=WpcJYqsvmDoMCcZDSFUDz3BipdneWnQ8xzOaEa4h6f8QN+Kat72PnocH/YvJEcSi+lzNKPxCgBQHZ2Xkv1ipfK5v7qUSquSkEAqhNvhz72B6Sy3/N5FUEoV+6QxIq272CQ+fav2mVlHQOjZw+GVSo30hb23ZGpuJ6VIN7CRsGF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706152137; c=relaxed/simple; bh=n/DGsSIprR6XGAQ6RgUSyszmBIaUb47hbAeYspfQ4mg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mQVJrk17Sm2QFuD+U75AhLYq+oI1NZWTTXtJOAXf3APKCAG5qRYHOuP6wHyA2h44kG3yA68MijjdD1+b3fzJI3eaIRnLiRzUJpM9aTS5i7GflEpu6Jfnwk1kIduYxwzQTQ1fWgpbyzx61EOuG3iGJS6Ra35DKP1xWRkc7fGTZ5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 40P38asi061327; Thu, 25 Jan 2024 11:08:36 +0800 (+08) (envelope-from Wenhua.Lin@unisoc.com) Received: from SHDLP.spreadtrum.com (shmbx06.spreadtrum.com [10.0.1.11]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4TL5F31L4pz2Rq2lq; Thu, 25 Jan 2024 11:01:11 +0800 (CST) Received: from xm9614pcu.spreadtrum.com (10.13.2.29) by shmbx06.spreadtrum.com (10.0.1.11) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Thu, 25 Jan 2024 11:08:34 +0800 From: Wenhua Lin To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Orson Zhai , Baolin Wang , Chunyan Zhang , , , , wenhua lin , Wenhua Lin , Xiongpeng Wu , zhaochen su , Zhaochen Su , Xiaolong Wang Subject: [PATCH V2 0/6] pwm: sprd: Modification of UNISOC Platform PWM Driver Date: Thu, 25 Jan 2024 10:55:27 +0800 Message-ID: <20240125025533.10315-1-Wenhua.Lin@unisoc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To shmbx06.spreadtrum.com (10.0.1.11) X-MAIL:SHSQR01.spreadtrum.com 40P38asi061327 Due to new usage scenarios, some upgrades are made to unisoc's pwm driver. Patch 1 supports the change of channel offset on UMS9620. Patch 2 supports more brightness levels (duty cycle) for backlight control. Patch 3 optimizes the calculation method of duty. Patch 4 converts dt-binding file from txt to yaml Patch 5-6 update pwm-sprd.yaml according to patch 1 and patch 2. Change in V2: -Change dev_err to dev_info in PATCH 2/6. -Add maintainer to gitconfig. Wenhua Lin (6): pwm: sprd: Add support for UMS9620 pwm: sprd: Improve the pwm backlight control function pwm: sprd: Optimize the calculation method of duty dt-bindings: pwm: sprd: Convert to YAML pwm: sprd: Add sprd,ums9620-pwm compatible dt-bindings: pwm: sprd: Add sprd,mod attribute .../devicetree/bindings/pwm/pwm-sprd.txt | 40 ------- .../devicetree/bindings/pwm/pwm-sprd.yaml | 106 ++++++++++++++++++ drivers/pwm/pwm-sprd.c | 71 ++++++++++-- 3 files changed, 165 insertions(+), 52 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-sprd.txt create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sprd.yaml -- 2.17.1