Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1697780pxb; Sun, 18 Apr 2021 04:11:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6xeK3dpgMYkFfP32OmJOX8XnCbQrz/eeMOmQdt6zEL7G2+FgJmdvcm9qzaA09hAlQ6pdv X-Received: by 2002:a17:906:fa83:: with SMTP id lt3mr16719951ejb.299.1618744261296; Sun, 18 Apr 2021 04:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618744261; cv=none; d=google.com; s=arc-20160816; b=0rkRaIAHLcnRPCjHHIIP1JNwmpa6FTTxJ47F5Ky+wbLgMGm+deuk5+QtSm5AbsNK2M RB2/OpU3KqnWksiSjU8lbXdJxqDm2z3PsmXGipHPGjoO60BiKctnirQMBGfRzAcj6lQ8 dN9+es62mBYY8u1TBXrQwEORzQf1hmyLEIEMAo/bJy8gxkKERV4EYmJLv3qWmVANA/kB u2Ume7iQ54h7OpETzA5UWR1gAkYqdr7KBGdCPzbVPA9TQdx5zFGjCE3n4HS9ZRwrACei WMdK6NZwe0TzmsUFeoFyglU5PGN4OSIN3A03j9s/eByWDLpjU8mfq3EIz3NhV7R2gPiT JSDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=01ddiZKYs0tGFSRKkOcOHCQ3r43ZGHjz2yA8TY9a6g4=; b=zITe/QtPNzhgPYU8EQXYSqfYHv0uOJ1neHHVqsZXvzja9+mqJ8VzGKYuOi4MqO1Vqm 6QjnlUfzorhf7vy+SvFZlD0zxzoWrgptd9/VQIfylELTKQnVzNbtkb7JobAkH1rlyVPP O0ygDZN0KseHknVCTiQ0oJCAKYzzEkcRS/cbR5c6bj7TmTakwYE57TZaBVlUyroU5DFy SQGnMIu3QOLUM+0XI+AEw2F3nllEFn8nKcMspGn7Apnci3p4zCAvQoLZrFotGnrIzE3E lmDTvWWajQOsryseaeZmy+HVPzO0qF5bLROaG+OM8SErLrGTYJHjRBA8p255Ap3Aa/23 vTUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si6185293ejj.296.2021.04.18.04.10.37; Sun, 18 Apr 2021 04:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236700AbhDRLKF (ORCPT + 99 others); Sun, 18 Apr 2021 07:10:05 -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