From patchwork Sun Aug 1 00:27:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 490128 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp671863jas; Sat, 31 Jul 2021 17:32:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7PpcvPFKvw83lRNfeH9EU5AfkB9kop1kAOZwOqgRaikR/074iQVk40WM4xhaQeDopSGQC X-Received: by 2002:a17:906:1fd3:: with SMTP id e19mr9249627ejt.421.1627777929897; Sat, 31 Jul 2021 17:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627777929; cv=none; d=google.com; s=arc-20160816; b=vdiNtIyzvEEOARbM6EYuTq5HfWMj7DMNIMdfmRGqKTq5SSgV0dqA85O54tyss+8p3d 5zp7nGQprTVDEsa5QN0zFp6w0SJsLIXZsJ5GFYfeEMl/nvZJzjthNepi5sDLwlw6gkwq IgDc1tlQ/jSd9S9vZ5mk9ynEAtwDyOANFf0NEBMokLYHwhR8VKwjAXdazTq1aiMc7wo0 GXo+AtotYXIEzc5FXtC0ypuWOnK4YU/qXvlWj5t5mLkmNJrelLbSkF1pthcXitczvovz UjruTkcX0qGvqmQXYNLxZgVQ20uYCdDlLZDdHlY0GYeP7MF1+X53pq3BZiuBLQUzLK0N ATYQ== 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=2L3zqMoEN0w93t8aXl7IFgGCX2iAcHglMaP4nZ8ctSY=; b=lae228JdjZagBo2gi95aEy6mbPqfBxth0UWPBfTqePEn1ZMy0L1abC008QSlZASdq7 6fE4wX2aCzImNGSq5Y/cEeZLK+zoMoQn7MsyPKfExlVpCIaTln94vZhA+YVzygecSksM dkKQpGCDBY1yP+joZzdzgWFi8x//ih1qgqQgk32FyrfijVzgLcg2/zFz6IGbKyntrXkG +61iO82yXJOjxg3tnGeCjR3B7Sowp+jvjhLlhZaF71orQMPKOp9lamyrjKyxyFLG5dh0 THh3mG1jUE7XgrGWHFpF2BDt1ZpRY6V0sGd9KpIlPwdX2oBYG/lvm35FjIj0g/i/KfEZ xmLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y7e1B3fQ; 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 v10si6516397ejy.710.2021.07.31.17.32.09; Sat, 31 Jul 2021 17:32:09 -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=y7e1B3fQ; 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 S229958AbhHAAcM (ORCPT + 7 others); Sat, 31 Jul 2021 20:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbhHAAcL (ORCPT ); Sat, 31 Jul 2021 20:32:11 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04822C061798 for ; Sat, 31 Jul 2021 17:32:00 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id f12so18720773ljn.1 for ; Sat, 31 Jul 2021 17:32:00 -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=2L3zqMoEN0w93t8aXl7IFgGCX2iAcHglMaP4nZ8ctSY=; b=y7e1B3fQA3oBbsmb6Z9mqvMhwd1C3RPDyREPH7bd2n7yzHeDNlalEAqxF6KRU6NV6U r8inAJ6sVfaBWMv6+k9Y0TMKbjCxwCY02DdCtcTpoRKPlKu6F22Mp8BPuT8PIthm9/MF eBmLVXgz4oCNMbuGiDM5weCWnY9CLgLeMxZMPcav2OREzw/FB85j8uwIFrojhP23vPFS 2GKKHfRtd0P+AQWCwpMqYgKHybUJpEOHZGmK4Y1oa5XhpUhVF34uOQeZYzWuwZHOC6RB mJEswIVsxdVtNEDp6L2LY6uWNWcfV2LGJ+SNrXoHAwTdMXR+7MtHCjHIDIBkdbypCaSl 2JFg== 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=2L3zqMoEN0w93t8aXl7IFgGCX2iAcHglMaP4nZ8ctSY=; b=CqNW2z3e3+0EEGXfYq1VzInwQxRiQW1E1Vl55hEN8JHgT1gDW1gyWqWygJakAQZydv gmWE5oEjPalL/zbrhgqcLbYNx+6P2g4lNuE9RpAAJuVaD8/HADeXpvbRy62Lr3HNbRAG hhSpY0xV4I9CpQeBbnFGJN4QUpmjuUi/khspVifMBOVrrcR1Ib5jEG4utvOjmvNznt+W oFQC9/kaaR/feYEER6O4jhfgCnJp1/6opP1mtrHFtLdIMdqmUTD/NpnXCNO9mkYuH90g JNxPQ5s9aVfAFoXX4rVQeOhbiUIkMmwNfrFrBxa6lprAEjbJJugeh1Fc6biY85jSXJKO AHDg== X-Gm-Message-State: AOAM530Amsg3ezaR5E7UKQ2SnYFIsErLihzIQv7qaLKaquflnnNvASWL V8u2jjBXlJBbn1CJxwsgIambuQ== X-Received: by 2002:a2e:9cc3:: with SMTP id g3mr6599789ljj.83.1627777919339; Sat, 31 Jul 2021 17:31:59 -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 r6sm485255ljk.76.2021.07.31.17.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Jul 2021 17:31:59 -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 Subject: [PATCH net-next 5/6] ixp4xx_eth: Add devicetree bindings Date: Sun, 1 Aug 2021 02:27:36 +0200 Message-Id: <20210801002737.3038741-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210801002737.3038741-1-linus.walleij@linaro.org> References: <20210801002737.3038741-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 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 Reviewed-by: Rob Herring 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"; + };