From patchwork Sat Aug 28 17:15:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 503773 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp259848jai; Sat, 28 Aug 2021 10:18:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp3+6LvQp6SKcvRmZVn/IfB1SzzB4mrzbChkPVV6U3C2JMEwJBmFPUeo7sgCk5GBUEZqHc X-Received: by 2002:a5e:c905:: with SMTP id z5mr12048327iol.33.1630171096690; Sat, 28 Aug 2021 10:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630171096; cv=none; d=google.com; s=arc-20160816; b=NI8iGgbM8KPqXhAthmZPwdvaYcKt16VsEEqMHje1ifE/uU/c+qsATYngj095VxlgQo TxtxUL33LR0OFzjjSb1kbMMSZfMMSFQvf3BuQOGC1Ps7h4C4/Lzb99oL+KxVBmccDBtM q4O4MVnl2jKD5pjBk0g6rO/+1xu5cI/BDNrllTt8SLcwFW7vJcVjMlbw5qpSAL3apJvU n/i0m0IvlHhrPMBnbvmTDLJSmmRrG/AhGgwzEuqHg128eUZ8aB0LwaAOZZQzFO/1Vanh PBzJP57txWZcngFwtA9/Rbn3We3UEqWOacneMIhA/BTxpLmM0TmWgLDpS8ZP99GNvuj8 PjXw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zdoJvRdg/wiFMUqCvkYyo5RNQaUscCsPcncLCMhtPj8=; b=O81qs+qKRTbUl9JzbebG90kfOAAF9F7WyHq6hi9iTQ1qp8P1Xs6Ak5/VUFsYhEnwn7 8OGQTB0BM/fb5h25S6oGvTWUF8vedINgsvukthQsUjYvlxSaayhhfKaJ/PcVqt3UzfAQ +JcYg7EyR1egMcAd0CnjClrNRljfcxUjcUWfjD2txyUUNHMKiBRi+6SfW1CpvAleXbAR MSmHrfjc76ZfL8z8qj1DvquG+J2yshBLfcFp7dVwwACCTlF55F791g9/waXVSX0QxA4l Rxl88PF/RUOVn2vmHcg21wIfl/EVlVhsYF7cod1T459/wzKW5pK+n64ig/zV+Cw2psmS Kjwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JSEd6UfO; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i126si4695650iof.61.2021.08.28.10.18.16; Sat, 28 Aug 2021 10:18:16 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JSEd6UfO; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234608AbhH1RTG (ORCPT + 6 others); Sat, 28 Aug 2021 13:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234596AbhH1RTA (ORCPT ); Sat, 28 Aug 2021 13:19:00 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48F55C061756 for ; Sat, 28 Aug 2021 10:18:09 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id b4so21395297lfo.13 for ; Sat, 28 Aug 2021 10:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zdoJvRdg/wiFMUqCvkYyo5RNQaUscCsPcncLCMhtPj8=; b=JSEd6UfO+vckTGqHUqtIEvPBomvRc6nCbTo4zk2ouC7F/YKKp/qPS7VOn8O8sebeeO GGN17QJXDeDnJvs3IjsJuXo26NXZT1Nk97gsRaVoRrZBRif9RdZ9LhDLQvm+cABCLJfE oIUltUDBXLln3VICQCnc+hnAssGQWX/CLkgb1OZNThkeE+KqvhNNdbEei4f6bDxFUrRh kldxERcHEqvAyNtx/koMXyuw8vVbcSlOQz72Dy9HQY4AR8iiTFRhJtH+Y0TaTKf2Xt0e zgWk8qA1qnruNe3G3Jr1Jk3SUOe4CT9dkc0CmHN7ofK4YYNKnZ5/x1aEviRHpwE/tktM ycKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zdoJvRdg/wiFMUqCvkYyo5RNQaUscCsPcncLCMhtPj8=; b=XcphL4f6nMgI3QD3qyjqO9xPbFeL1RRtCkSBw9x9uyQh25lOur7H4Hj5zREZkRhcZD hkAiSvAuzjfcy36RBU/JwVbFWwy+0u71ffr37QdF8LfHr52quBw/sCFbdbbIHmzGwjjA yusLDfVfDgEwejOc2q0S14sUAHsKrYSpF9lm3o6X9QBPuLco2wKR2miHQilRs8alPwT3 smQyysEuQy0elTcBala3IH5MZ/ddNdybKsSePR+6sbT7DrfoxL3ZVecY2geJDBszItqr 3K7j+Uo+/30RsKspBttCe6c07rkNANLbYGWD5W9Ljk9tXbAdDuZl7l9Un5Cl7T5rrxIG /r/Q== X-Gm-Message-State: AOAM5308qDM9Aq5lR9T/TAmIvCnI0WIaL3z/CZzIl5rAm8Nsn6jIQHJg bsXn3o1pfK4ENSyMszRZXym/Qw== X-Received: by 2002:a05:6512:230b:: with SMTP id o11mr3209151lfu.377.1630171087650; Sat, 28 Aug 2021 10:18:07 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id p1sm202195lfo.255.2021.08.28.10.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 10:18:07 -0700 (PDT) From: Linus Walleij To: netdev@vger.kernel.org, "David S . Miller" , Jakub Kicinski Cc: Imre Kaloz , Krzysztof Halasa , Linus Walleij , devicetree@vger.kernel.org, Arnd Bergmann , Rob Herring Subject: [PATCH net-next 4/5 v3] ixp4xx_eth: Add devicetree bindings Date: Sat, 28 Aug 2021 19:15:47 +0200 Message-Id: <20210828171548.143057-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210828171548.143057-1-linus.walleij@linaro.org> References: <20210828171548.143057-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the IXP46x PTP Timer, a companion to the IXP4xx ethernet in newer platforms. Cc: devicetree@vger.kernel.org Cc: Arnd Bergmann Reviewed-by: Rob Herring Signed-off-by: Linus Walleij --- .../bindings/net/intel,ixp46x-ptp-timer.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/intel,ixp46x-ptp-timer.yaml -- 2.31.1 diff --git a/Documentation/devicetree/bindings/net/intel,ixp46x-ptp-timer.yaml b/Documentation/devicetree/bindings/net/intel,ixp46x-ptp-timer.yaml new file mode 100644 index 000000000000..8b9b3f915d92 --- /dev/null +++ b/Documentation/devicetree/bindings/net/intel,ixp46x-ptp-timer.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2018 Linaro Ltd. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/net/intel,ixp46x-ptp-timer.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Intel IXP46x PTP Timer (TSYNC) + +maintainers: + - Linus Walleij + +description: | + The Intel IXP46x PTP timer is known in the manual as IEEE1588 Hardware + Assist and Time Synchronization Hardware Assist TSYNC provides a PTP + timer. It exists in the Intel IXP45x and IXP46x XScale SoCs. + +properties: + compatible: + const: intel,ixp46x-ptp-timer + + reg: + maxItems: 1 + + interrupts: + items: + - description: Interrupt to trigger master mode snapshot from the + PRP timer, usually a GPIO interrupt. + - description: Interrupt to trigger slave mode snapshot from the + PRP timer, usually a GPIO interrupt. + + interrupt-names: + items: + - const: master + - const: slave + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #include + ptp-timer@c8010000 { + compatible = "intel,ixp46x-ptp-timer"; + reg = <0xc8010000 0x1000>; + interrupt-parent = <&gpio0>; + interrupts = <8 IRQ_TYPE_EDGE_FALLING>, <7 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "master", "slave"; + };