From patchwork Fri Apr 28 10:54:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13226282 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 824C0C77B60 for ; Fri, 28 Apr 2023 10:55:51 +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: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=6Tr93JJj+htgPYoYdWWM50dIWqDO/8H2a2/GFAy6wcE=; b=HXT2B38XBa1qRE trPBqfyvDsXr+0gtH4Onx7xPsWk63FPisrymqDNGG9UgTUeYeXDjfEmUIC/a3DQv6nPIIIRoiD2Wu wnhiR1BaX/LsyRMbC+xa5v5D5cMxg1uF4PQqzAmu2G63wIdZ8Y2T32A2plcBRqRIPzWZ1ID/+oMPE p75ZrZ9V867L1EDrIicaA3PGj8mka9TG074xVO95hv1jNQRYU2xqXt1YtyoCOfBnsx1tX8My+XO2C eRE4EcltHfZvf0vYy5VWSrq5vCjpVzytVLnsrqPYhSvTj65vAvwUJAWpoJVb5Vh3ieqIOkSyMZxyM mp9mr1UeeqR11HdgpuOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1psLkk-008wbG-2k; Fri, 28 Apr 2023 10:55:02 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1psLkg-008wXS-00 for linux-arm-kernel@lists.infradead.org; Fri, 28 Apr 2023 10:55:01 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f192c23fffso55943675e9.3 for ; Fri, 28 Apr 2023 03:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682679295; x=1685271295; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fFNBJS20WLgq1YWyfU1SnWpJA65lDW01dwN6L86FEiI=; b=Uja4PbpFNjG0tUrWzV09vLbGbxy8/XMyaRlpnY3ur3T4I31yDWe6lI+tDUCB7ZRQgw wKktKgeKeY9r/rtr6ND+Tyxq8CfoAZG/TOIxEL9HCum80TT2EZ3djIAPJxECmr13rzGA hWQSzjg44ObkZ4UmDX68wPFnFJyplsR9kXT5iiUUqis1H+ZugoybNAjr5xvm7hQXK64l /wwVh/UoO44nN8KWR+ZNdW0MEaHuoUhVyS2rVzfrQ6uDNEyt2J98448fQ4FUE5rMikUl xGzAn4opGhPtOvyVKfTl1Uik6WT6VDUv0pl2inM93MxyMi3tjYcyUROvR383dkmVaFun 71zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682679295; x=1685271295; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fFNBJS20WLgq1YWyfU1SnWpJA65lDW01dwN6L86FEiI=; b=eAfv04t59hSxMVVIf4bcKvsnXzxg4Im5I9U2mqvEe7+/1HP0hfUMWnWDlW+Z/5yOYB QfeeuA/aGM2CBgByCToOe8Knuw/3i008ma0PInYFMvlBOPjvrKdvn/2EEBDxUzGn9TvM p5SWIJwEKwzl6Q6m2QxLa4gzPFFqlA3o9dUao0myzNUZ/fOXUrvvP9ZwVX+ZnuuiR62B vahT0KL5XlFemS7PRVLMnBF0G6jyNEYsQ0ERrjZEuYcQWOC2v1A+MXt2uk93p7K7SE9N W4/VvaQ2bGi/f8KgpJAYwMC9XK49q93JGnGzLUHLl74u2GPK3yTE+ySnXkhqMuNUy3IB wM5A== X-Gm-Message-State: AC+VfDz/evv2s3OKyIa4RW3RH+ZTM74XnMLOYRbNnUNWI2z63+EFm2hg TxT4ISFqHLHihWdop5D6tffQbw== X-Google-Smtp-Source: ACHHUZ7pVr9Uf8iWfR262MteoPdvkPdUB1g3VnlbDTqQ6Aacto3mpYT36+LLcoSnXyQC7MluFI1Vlw== X-Received: by 2002:a05:600c:2042:b0:3f1:7e3a:2ef2 with SMTP id p2-20020a05600c204200b003f17e3a2ef2mr3895061wmg.14.1682679295180; Fri, 28 Apr 2023 03:54:55 -0700 (PDT) Received: from baylibre-ThinkPad-T14s-Gen-2i.. (151.31.102.84.rev.sfr.net. [84.102.31.151]) by smtp.gmail.com with ESMTPSA id z9-20020a05600c114900b003f1745c7df3sm703323wmz.23.2023.04.28.03.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 03:54:54 -0700 (PDT) From: Julien Panis To: arnd@arndb.de, olof@lixom.net, soc@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, tony@atomide.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH] arm: dts: Add am335x-boneblack-pps.dts Date: Fri, 28 Apr 2023 12:54:53 +0200 Message-Id: <20230428105453.110254-1-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230428_035458_239448_BBE00DC5 X-CRM114-Status: GOOD ( 16.23 ) 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: Lokesh Vutla Add a new am335x-boneblack-pps.dts that can be used to configure TIMER7 in PWM mode. This PWM signal can be used as a PPS signal when synchronized to PTP clock. Typically this synchronization is done by a userspace program. This PPS signal can be observed on pin P8.8. Signed-off-by: Lokesh Vutla Signed-off-by: Vignesh Raghavendra Signed-off-by: Adrien Ricciardi Signed-off-by: Julien Panis --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/am335x-boneblack-pps.dts | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 arch/arm/boot/dts/am335x-boneblack-pps.dts base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index efe4152e5846..d74158aae72d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -939,6 +939,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \ am335x-base0033.dtb \ am335x-bone.dtb \ am335x-boneblack.dtb \ + am335x-boneblack-pps.dtb \ am335x-boneblack-wireless.dtb \ am335x-boneblue.dtb \ am335x-bonegreen.dtb \ diff --git a/arch/arm/boot/dts/am335x-boneblack-pps.dts b/arch/arm/boot/dts/am335x-boneblack-pps.dts new file mode 100644 index 000000000000..88d2bc3fd759 --- /dev/null +++ b/arch/arm/boot/dts/am335x-boneblack-pps.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2023 Texas Instruments Incorporated - http://www.ti.com/ + */ + +#include "am335x-boneblack.dts" + +&am33xx_pinmux { + pwm7_pins: pinmux_pwm7_pins { + pinctrl-single,pins = < + AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_OUTPUT_PULLDOWN, MUX_MODE2) + >; + }; +}; + +/{ + pwm7: dmtimer-pwm7 { + compatible = "ti,omap-dmtimer-pwm"; + pinctrl-names = "default"; + pinctrl-0 = <&pwm7_pins>; + #pwm-cells = <3>; + ti,timers = <&timer7>; + ti,clock-source = <0x00>; /* timer_sys_ck */ + }; +};