Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp186014rdb; Mon, 22 Jan 2024 00:18:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZpjdUWNpaaa1Cga3PlOqT/+Zyt4xCV/dQOTE0wn/5sZK4MXz/LoJciaO4rxpGhvA7UpGN X-Received: by 2002:ac8:5a84:0:b0:42a:3227:7fe0 with SMTP id c4-20020ac85a84000000b0042a32277fe0mr4593663qtc.86.1705911535382; Mon, 22 Jan 2024 00:18:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705911535; cv=pass; d=google.com; s=arc-20160816; b=qHo/rEo+LRtsVYYCnRVveobG+0EXngQ1Rx8pn+LSyk7/aDG08mHuIXHvHxsnw2Ez+q tGw1k10VE4t/GsuwFm4W0HaVvv0F1fpInTB13l56VS5ShAK7SSXW6/Eqbf71t09wRtyU VtumFNj3+D1KQEqgVBbeaPMM8IV9vwLq2iiufOqFi+oQRHuu4XdpUtr2tcCTOU+0laD9 R//7cmceWi/y0amzymKik8CkqD48MBLTnZZCs9QktDJ6szG7mHclUd9MCOaMqiUn1ukB PDStkO8sRWnf9VG2I7So8xvssxicXHJWehWSrTMRI0fllr4BM847qr3UMKUKd0A2pKob 80wA== 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=MGHVDkOawMWpnOt5wgUTShxh3OWly7BOi7tB3PQ9XL0=; fh=95ELfTRbd3XNYg9rj2TePHqYKoG4l12p0iX6Yjf47Ms=; b=S11sWq5Pp1yA+Z+3Sz1yCYvUsXT5xmLfpb0cdLi2mBuBD/88Nr4YavhTk008yZ0Zr0 ow8zI7+4kYamZ7vY8RuvKqc4YRrzvAxwI9anwqjvjYM1pi/xFreacJDLrCDcvR9c3Ujz jqcKrIc/tyr/JUDMH+pbO82yx98XMIP7zul4lIaiCFQ5NekoIMJOstBCae+htjiXzA5A 0bKEI9F1d6ZvxM57xKGa9Wjfu6OztX/UBqUaFL/mseiBuFidYr4yNRgcqUP07wYmqc+p pJ131HPgbSyYIBm4dktQ+GqcqaSmwZQmGxmm+gxjyvFOf1K9bB/SPuS+PrpC9ptm6a39 fGnw== 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-32501-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32501-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g8-20020ac87d08000000b0042a2af5e591si5099933qtb.173.2024.01.22.00.18.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 00:18:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32501-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-32501-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32501-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 206F31C21B20 for ; Mon, 22 Jan 2024 08:18:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 965702135C; Mon, 22 Jan 2024 08:18:28 +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 E238E20DDB for ; Mon, 22 Jan 2024 08:18:23 +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=1705911508; cv=none; b=n17SSIQ9IANOpRl1/mJve1znqtvKFaSb7tqOf4xeEjxoxz4YOY4Yld/bqdXBBGeji3sGX3EOHs5r6Q1Y5bA5hztWqQZY1/XG3QwXmgruFM3J0uHfo75s8Qz5H18DG4Qb2q6+CzN0f/GC2CXCdnUdE2DAVZvzCsxKSRv7UIWZANs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705911508; c=relaxed/simple; bh=Qpw7KJX/Is2HHYHC6lOg/lrTzU2zu5gCPJVq3BvXVhs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=l67CsYonzinyx4OlxYRcuc8T95Nz5fbjZTQHy8+ZbfkuHJTH7S/J7aK5tM5zje30TKlRC67/+UJQsDQAG1+DYq+EBABuj6RtyQZs+XCqgw/jTNr0gf7Qtg0LkCGKhnL4HK1qjFaV93D0/HEZSNomTVYJ0jaTyO3kV4YH5UV7yfI= 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 40M8I3gN055310; Mon, 22 Jan 2024 16:18:03 +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 4TJNFc2T3hz2Rb68H; Mon, 22 Jan 2024 16:10:44 +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; Mon, 22 Jan 2024 16:18:01 +0800 From: Wenhua Lin To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= CC: Orson Zhai , Baolin Wang , Chunyan Zhang , , , wenhua lin , Wenhua Lin , Xiongpeng Wu , zhaochen su , Zhaochen Su , Xiaolong Wang Subject: [PATCH 0/6] pwm: sprd: Modification of UNISOC Platform PWM Driver Date: Mon, 22 Jan 2024 16:17:48 +0800 Message-ID: <20240122081754.17058-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 40M8I3gN055310 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. 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