From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B58DCC43470 for ; Sun, 18 Apr 2021 11:09:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 99E4F6120C for ; Sun, 18 Apr 2021 11:09:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236837AbhDRLKH (ORCPT ); Sun, 18 Apr 2021 07:10:07 -0400 Received: from mo-csw1115.securemx.jp ([210.130.202.157]:59596 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbhDRLKE (ORCPT ); Sun, 18 Apr 2021 07:10:04 -0400 Received: by mo-csw.securemx.jp (mx-mo-csw1115) id 13IB9CRB009817; Sun, 18 Apr 2021 20:09:12 +0900 X-Iguazu-Qid: 2wHHmufQVDPW4c3ZsO X-Iguazu-QSIG: v=2; s=0; t=1618744151; q=2wHHmufQVDPW4c3ZsO; m=bFx2UGZ7wxb+8hlnJCcU1PCnVR+fX5Hc18qtcCc6NEo= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1112) id 13IB9AE2004930 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 18 Apr 2021 20:09:11 +0900 Received: from enc01.toshiba.co.jp (enc01.toshiba.co.jp [106.186.93.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by imx2-a.toshiba.co.jp (Postfix) with ESMTPS id AC2121000B4; Sun, 18 Apr 2021 20:09:10 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 13IB9AQd008046; Sun, 18 Apr 2021 20:09:10 +0900 From: Nobuhiro Iwamatsu To: Rob Herring , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, punit1.agrawal@toshiba.co.jp, yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH v5 0/2] pwm: visconti: Add Toshiba Visconti SoC PWM support Date: Sun, 18 Apr 2021 20:09:02 +0900 X-TSB-HOP: ON Message-Id: <20210418110904.1942806-1-nobuhiro1.iwamatsu@toshiba.co.jp> X-Mailer: git-send-email 2.30.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series is the PWM driver for Toshiba's ARM SoC, Visconti[0]. This provides DT binding documentation and device driver. [0]: https://toshiba.semicon-storage.com/ap-en/semiconductor/product/image-recognition-processors-visconti.html Updates: dt-bindings: pwm: Add bindings for Toshiba Visconti PWM Controller v4 -> v5: - No update. v3 -> v4: - No update. v2 -> v3: - Change compatible to toshiba,visconti-pwm - Change filename to toshiba,visconti-pwm.yaml. - Add Reviewed-by tag from Rob. v1 -> v2: - Change SPDX-License-Identifier to GPL-2.0-only OR BSD-2-Clause. - Set compatible toshiba,pwm-visconti only. - Drop unnecessary comments. pwm: visconti: Add Toshiba Visconti SoC PWM support v4 -> v5: - Droped checking PIPGM_PCSR from visconti_pwm_get_state. - Changed from to_visconti_chip to visconti_pwm_from_chip. - Removed pwmchip_remove return value management. - Add limitations of this device. - Add 'state->enabled = true' to visconti_pwm_get_state(). v3 -> v4: - Sorted alphabetically include files. - Changed container_of to using static inline functions. - Dropped unnecessary dev_dbg(). - Drop Initialization of chip.base. - Drop commnet "period too small". - Rebased for-next. v2 -> v3: - Change compatible to toshiba,visconti-pwm. - Fix MODULE_ALIAS to platform:pwm-visconti, again. - Align continuation line to the opening parenthesis. - Rewrite the contents of visconti_pwm_apply() based on the contents suggested by Uwe. v1 -> v2: - Change SPDX-License-Identifier to GPL-2.0-only. - Add prefix for the register defines. - Drop struct device from struct visconti_pwm_chip. - Use '>>' instead of '/'. - Drop error message by devm_platform_ioremap_resource(). - Use dev_err_probe instead of dev_err. - Change dev_info to dev_dbg. - Remove some empty lines. - Fix MODULE_ALIAS to platform:pwm-visconti. - Add .get_state() function. - Use the author name and email address to MODULE_AUTHOR. - Add more comment to function of the hardware. - Support .get_status() function. - Use NSEC_PER_USEC instead of 1000. - Alphabetically sorted for Makefile and Kconfig. - Added check for set value in visconti_pwm_apply(). Nobuhiro Iwamatsu (2): dt-bindings: pwm: Add bindings for Toshiba Visconti PWM Controller pwm: visconti: Add Toshiba Visconti SoC PWM support .../bindings/pwm/toshiba,pwm-visconti.yaml | 43 ++++ drivers/pwm/Kconfig | 9 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-visconti.c | 188 ++++++++++++++++++ 4 files changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/toshiba,pwm-visconti.yaml create mode 100644 drivers/pwm/pwm-visconti.c -- 2.30.0.rc2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65CB6C433B4 for ; Sun, 18 Apr 2021 11:11:35 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D0B0061001 for ; Sun, 18 Apr 2021 11:11:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0B0061001 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=toshiba.co.jp Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=KjRwYajfdU+nVHBOpJFeV519hDmaHWAsuFsbd5HQQsQ=; b=Xw/MsQ8OL6g+vWdgfgk1MNmiBw 96fEvUMFV9XOnwboiQqXQxgJZua2xm2NlBmwI9WDmgAPg17FtFHGFLltTuH80Xajm5uDv0h02HW7C 2uYZh2j2JiB0CVKNIcO56/dK+OM2Rfuz7kRVdgcIOF1iS9ZkxOVNmnYT/dIoXzGAU1hWFcEAkboGH tbszT1n2w8PEVzobvQS9Xu8JFET9RYQUQ9+Ihj+jYVdLEjH5xSemoXLvZkTtRAC24BXq6tmNMdW9b 2pZ/663JtnEsdhnBz+e04MBRaad+ytNL8Hx5VYeNM49EXtJriLwmU+jD9BiKA+u/5W0ZtCu8BJppH n5FYg2pQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lY5JH-007mAd-D6; Sun, 18 Apr 2021 11:09:51 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lY5Iu-007m8E-L1 for linux-arm-kernel@desiato.infradead.org; Sun, 18 Apr 2021 11:09:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=01ddiZKYs0tGFSRKkOcOHCQ3r43ZGHjz2yA8TY9a6g4=; b=lHKK6fkKElzKOqfAaun2pMIjnS 9LIZavcTVGDeutvTfhL8P/97vIun/jChvbjnWz1fSdyTuOYERRyn4RQcT3fVEMj7Mo5K1iaJ2Q6X3 ipPMxrQAQD0sI50pYxDDiVKQ+SpVp0He3ncM0umOitvk1AfiVDzUHIKlFs84tsPqTp9g620ASzUPx RsH+n29QDUowBkIF+qCfHWYS4Et+2z7obNN1I2zg80aFpX/aR0ke9LzuhrAmYU8oNsluwok54eJHy WYmCmU2XZNRxdG9SOPiCjaELwxMpiSJ8ljF0WMjIcuvN8szZNC11xk/u8me6RdBsW4pF2YW2Ma0Ry Ma/8JoSA==; Received: from mo-csw1115.securemx.jp ([210.130.202.157] helo=mo-csw.securemx.jp) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lY5Io-00AOqp-H1 for linux-arm-kernel@lists.infradead.org; Sun, 18 Apr 2021 11:09:27 +0000 Received: by mo-csw.securemx.jp (mx-mo-csw1115) id 13IB9CRB009817; Sun, 18 Apr 2021 20:09:12 +0900 X-Iguazu-Qid: 2wHHmufQVDPW4c3ZsO X-Iguazu-QSIG: v=2; s=0; t=1618744151; q=2wHHmufQVDPW4c3ZsO; m=bFx2UGZ7wxb+8hlnJCcU1PCnVR+fX5Hc18qtcCc6NEo= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1112) id 13IB9AE2004930 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 18 Apr 2021 20:09:11 +0900 Received: from enc01.toshiba.co.jp (enc01.toshiba.co.jp [106.186.93.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by imx2-a.toshiba.co.jp (Postfix) with ESMTPS id AC2121000B4; Sun, 18 Apr 2021 20:09:10 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 13IB9AQd008046; Sun, 18 Apr 2021 20:09:10 +0900 From: Nobuhiro Iwamatsu To: Rob Herring , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, punit1.agrawal@toshiba.co.jp, yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH v5 0/2] pwm: visconti: Add Toshiba Visconti SoC PWM support Date: Sun, 18 Apr 2021 20:09:02 +0900 X-TSB-HOP: ON Message-Id: <20210418110904.1942806-1-nobuhiro1.iwamatsu@toshiba.co.jp> X-Mailer: git-send-email 2.30.0.rc2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210418_040922_855666_F5A78D5D X-CRM114-Status: GOOD ( 14.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series is the PWM driver for Toshiba's ARM SoC, Visconti[0]. This provides DT binding documentation and device driver. [0]: https://toshiba.semicon-storage.com/ap-en/semiconductor/product/image-recognition-processors-visconti.html Updates: dt-bindings: pwm: Add bindings for Toshiba Visconti PWM Controller v4 -> v5: - No update. v3 -> v4: - No update. v2 -> v3: - Change compatible to toshiba,visconti-pwm - Change filename to toshiba,visconti-pwm.yaml. - Add Reviewed-by tag from Rob. v1 -> v2: - Change SPDX-License-Identifier to GPL-2.0-only OR BSD-2-Clause. - Set compatible toshiba,pwm-visconti only. - Drop unnecessary comments. pwm: visconti: Add Toshiba Visconti SoC PWM support v4 -> v5: - Droped checking PIPGM_PCSR from visconti_pwm_get_state. - Changed from to_visconti_chip to visconti_pwm_from_chip. - Removed pwmchip_remove return value management. - Add limitations of this device. - Add 'state->enabled = true' to visconti_pwm_get_state(). v3 -> v4: - Sorted alphabetically include files. - Changed container_of to using static inline functions. - Dropped unnecessary dev_dbg(). - Drop Initialization of chip.base. - Drop commnet "period too small". - Rebased for-next. v2 -> v3: - Change compatible to toshiba,visconti-pwm. - Fix MODULE_ALIAS to platform:pwm-visconti, again. - Align continuation line to the opening parenthesis. - Rewrite the contents of visconti_pwm_apply() based on the contents suggested by Uwe. v1 -> v2: - Change SPDX-License-Identifier to GPL-2.0-only. - Add prefix for the register defines. - Drop struct device from struct visconti_pwm_chip. - Use '>>' instead of '/'. - Drop error message by devm_platform_ioremap_resource(). - Use dev_err_probe instead of dev_err. - Change dev_info to dev_dbg. - Remove some empty lines. - Fix MODULE_ALIAS to platform:pwm-visconti. - Add .get_state() function. - Use the author name and email address to MODULE_AUTHOR. - Add more comment to function of the hardware. - Support .get_status() function. - Use NSEC_PER_USEC instead of 1000. - Alphabetically sorted for Makefile and Kconfig. - Added check for set value in visconti_pwm_apply(). Nobuhiro Iwamatsu (2): dt-bindings: pwm: Add bindings for Toshiba Visconti PWM Controller pwm: visconti: Add Toshiba Visconti SoC PWM support .../bindings/pwm/toshiba,pwm-visconti.yaml | 43 ++++ drivers/pwm/Kconfig | 9 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-visconti.c | 188 ++++++++++++++++++ 4 files changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/toshiba,pwm-visconti.yaml create mode 100644 drivers/pwm/pwm-visconti.c -- 2.30.0.rc2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel