From patchwork Mon May 16 16:33:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hawkins, Nick" X-Patchwork-Id: 12851106 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 895F3C433EF for ; Mon, 16 May 2022 16:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=N+m789d0EdVR4Gc8NY+nhOLG9U68diI7fLzy79oL+cQ=; b=cLcaXVOnxuhWTE AM5D15Igsxnt770mgYoRIrvXp/pnEExN61RR5KIZx0cbxaofbs8FOBQfuxu42j81hTg1gIPbJ49g6 AXfgX3O4jbXROSgOvFMpzChdv/wQFjJBXWKbTnBhpk60PYrB32ba7Md+rhe5IeJPaPiwdveTQjx9w LIJkW6zh7V40XI4O/g8ynLBOK1RoVKMpdsOyvKnC1qZd9Jsxb+f+FLgF3/MkPs6ANNvEA7BYh9NNf a6xblDoHz75LcYM4Sqe4sl3V8/nX7OFZ4Tu0ZHZSu/Dd2d1zkXXrd+UBATMS9bM0rbSTrhofSSasE 3aWf3vKZGSXxcCCKSWvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqdgG-0092Pg-7U; Mon, 16 May 2022 16:34:48 +0000 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqde3-0091Mv-5B for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 16:32:32 +0000 Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24G9UZ26011356; Mon, 16 May 2022 16:32:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version; s=pps0720; bh=tHQHa+zVoo/ogw3baS4ruzIWLZW79RxKI0mzDPUQGSQ=; b=aBmTG6w4LZu3xGaTltajTtpj8Njg/axrXC0o5XQN9lm94SnQkKbcNFS1oGfchaOwztnm g21Wmu0X/iQH2PtovRqf1lvvve5qACel5YxqzY+OSi/uWhjttEHnAdt6WWxuv6xvNwqz 5h4Fj6Xbf6Q7osIpjwGz3pDmiXMlIdfDVUfknjO2LyOqF0SSiRndOtNAH0pzhj7kmKPO ECuJ6HULJ2H5kopaFkJOV7H9tDMtwyhDRxxZMuU13CDZpwhrlymuErgOmlycJJ3G2o9I IX/xwDPHXR6oujH4VTfANhyoiAP3S0wJir88Ub86FQMQ3HacWKkiBI0HPcYQXiqvb95A xw== Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3g3gk4qttr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 May 2022 16:32:22 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 8260955; Mon, 16 May 2022 16:32:21 +0000 (UTC) Received: from hpe.com (cigateway-dev.us.rdlabs.hpecorp.net [10.14.73.30]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 2ABF848; Mon, 16 May 2022 16:32:21 +0000 (UTC) From: nick.hawkins@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, joel@jms.id.au, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Subject: [PATCH v8 5/8] dt-bindings: timer: hpe, gxp-timer: Add HPE GXP Timer and Watchdog Date: Mon, 16 May 2022 11:33:43 -0500 Message-Id: <20220516163347.44890-5-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220516163347.44890-1-nick.hawkins@hpe.com> References: <20220516163347.44890-1-nick.hawkins@hpe.com> X-Proofpoint-ORIG-GUID: Hl0lqory2VEUAkESXPUKbc01mO7GnefA X-Proofpoint-GUID: Hl0lqory2VEUAkESXPUKbc01mO7GnefA X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-16_15,2022-05-16_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 bulkscore=0 phishscore=0 mlxscore=0 clxscore=1015 impostorscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205160092 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_093231_283451_B1C45893 X-CRM114-Status: GOOD ( 20.64 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nick Hawkins Add support for the HPE GXP Timer and Watchdog. There are multiple timers on the SoC but only one is enabled at this time. Signed-off-by: Nick Hawkins Reviewed-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- v8: * No change v7: * Resubmission to fix subject from dt-bindings: timer: hpe,gxp-timer: Creation to dt-bindings: timer: hpe,gxp-timer: Add HPE GXP Timer and Watchdog based on comment: 'The subject after prefixes does not match it better. What is "creation"? "Add HPE GXP Timer and Watchdog"' * Copied over Reviewed-by tags from previous patch. v6: * Removed simple-mfd compatible, timer will create watchdog without watchdog node. * Removed timer0 label * Changed title from HPE GXP TIMER to HPE GXP Timer * Changed clock name iopclk to iop * Set additionalProperties to false * Added space after ',' in the compatible list * Changed subject to match the log better * Altered description to take up 75 characters per line * Changed description to better describe the patch v5: * Fix versioning * Fixed typo time -> timer v4: * Made watchdog a child of timer * Added reference clock v3: * Removed maintainer change from patch * Verified there was no compilation errors * Added reference code in separate patch of patchset v2: * Converted from txt to yaml --- .../bindings/timer/hpe,gxp-timer.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml b/Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml new file mode 100644 index 000000000000..d33d90f44d28 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/hpe,gxp-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HPE GXP Timer + +maintainers: + - Nick Hawkins + - Jean-Marie Verdun + +properties: + compatible: + const: hpe,gxp-timer + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: iop + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + timer@c0000000 { + compatible = "hpe,gxp-timer"; + reg = <0x80 0x16>; + interrupts = <0>; + interrupt-parent = <&vic0>; + clocks = <&iopclk>; + clock-names = "iop"; + };