Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp290016pxy; Fri, 30 Apr 2021 05:38:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO7Wsu/lsxAFy+zBzNSuwLsQ3ETlwK5Lf+P4BnQsUA1qS+Jq2KY98guMbo4m1IJgxEWIoN X-Received: by 2002:a50:fe04:: with SMTP id f4mr5636555edt.29.1619786327416; Fri, 30 Apr 2021 05:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619786327; cv=none; d=google.com; s=arc-20160816; b=OAs8d2wv8X5vzKjMcPPBidbIye2rLKKyHymF5Nb+UllAflLFdgrUipalej1jXXcpcQ O3gn/LVrmuF0GLWyvvXitXQr8ceDjafSZo/iA6quGlEUzBsNaFn7R69kHrSJMRYa18Rm 4AhjhbW8yxOqH5W2MtAUeJYOAm3rOjNMLMH4CAqaRd8noJmsw1eEa0pgUqsQ7hmnfFpg 4sA5jCsFhzVcDDZpT0HJ7FPbCOEhPZTo8ElPzUw1eIW6eRU2fdoblwWg+C2/BISjsfqp w5y+U7qISH8lkDDK914UyNjMOFQ4EizhwqVwPrHCcuVseh6hvYqj69gzBE99+v9WxSSl g5Yw== 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=k1xgkQIQAXFIiUoyaG4mWCe3d5IAOycQwU/Qso6LJ1Q=; b=liNldUWMtS24oYR1zPh7IAoz7r/dUltGt1hAjEevOXfiOU5wXEpJzTnXKCiFVfU/lh JTZNwFhfdi7ykxCxZoUaCGMX3y63XrX9G1qZaPJwvQ4An/H2i3RfsXfIbNred1pmBEM9 0sIrb3ILus3q84jqlwJwWgzr3WWOqfkWJfPNvc4Gq1340wDZHtNGu7aYI0xQWOaWrEuD KaieqJoeR6BDId17TRVDJbDR+iaM3i7Mvr66YZNKpXop9qH6TmIPCRO2lHTC6Wfm0TfK WOPHc1qaHjfATya+3z+kup6hlogbqQNVfUw46zdhkhPDNE7j7Wbw33TQ1dJwKNCjwqmO pmgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=mHj4oOVW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si3269830ejs.480.2021.04.30.05.38.21; Fri, 30 Apr 2021 05:38:47 -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; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=mHj4oOVW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232286AbhD3MgS (ORCPT + 99 others); Fri, 30 Apr 2021 08:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232191AbhD3MgO (ORCPT ); Fri, 30 Apr 2021 08:36:14 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C96C06138F for ; Fri, 30 Apr 2021 05:35:24 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id t4so21697707ejo.0 for ; Fri, 30 Apr 2021 05:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k1xgkQIQAXFIiUoyaG4mWCe3d5IAOycQwU/Qso6LJ1Q=; b=mHj4oOVWHkjSWEixwh283R2+eii9GUPhAXQjx8b2ssCcBqe3rOTw0PN5aLBzzGLu7M 36unXq22romf3vSfJfm+iZhhiffE+0yY6VYia5/cTvbq5GFsLrjZNmcNWUYkTE0m3Upc Ptd9An7vCjHFAKWeWZ1hrUjAOVEDobeFmzMfhGt4Uf02xwYmdBZVl/vt55CUiQpGbR6C e8gaNKzcnUqxy9wYsqbOLf+LBQDS3zHcPR3RIYbqkKb3GfmrZ6Xsv4OHQ2+cRX9H4lGl GuCIvhR/74RX64gcvOURLP9vAc5157kmDUBEG6nm7Vt5FEnAinFDqw/PgLEeHttyBJfR Atgw== 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=k1xgkQIQAXFIiUoyaG4mWCe3d5IAOycQwU/Qso6LJ1Q=; b=g0G0BDaKcwAlXFDKQgY4W8Kf75WL7tPnm95bNkpDwewdutzN3Gl/Ph+Hdt3I0zg68X ovVdfRkryh0FZvP+2QJ5VydUvPdLQeVOMIonVn1q9/ExYcPMIhQwdwGksLWzgGBOXKBw az5KFNu0MMrOMyFji+mqSYVz2CaWrXFIrqjTcJBJwVHZQM5id5ZS5Or9HKK7NsGbLfHr dMoJIc5B3YZSJAi+gg1SumoWuoeLRIKvBOh/AJL3Wvb9YT49wVX66kmB8m7w7El5/qQC rG6Fth+4RAC/JWIXqChIuik3y7ZZrNdbkfRZo7ddNFEDmI7UsBI73xM2fyb4aHa5D2+G jR1g== X-Gm-Message-State: AOAM533zqB31URxrfIMHeil+E3qH3UTdREiE7d6M8uVAz63hXAUEy9c3 Y8olH1UZw6I/KEqSmvDvrrhdhA== X-Received: by 2002:a17:906:6044:: with SMTP id p4mr4221114ejj.82.1619786123449; Fri, 30 Apr 2021 05:35:23 -0700 (PDT) Received: from localhost.localdomain (dh207-97-15.xnet.hr. [88.207.97.15]) by smtp.googlemail.com with ESMTPSA id d15sm1822988ejj.42.2021.04.30.05.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 05:35:22 -0700 (PDT) From: Robert Marko To: lee.jones@linaro.org, robh+dt@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, jdelvare@suse.com, linux@roeck-us.net, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-hwmon@vger.kernel.org Cc: luka.perkov@sartura.hr, jmp@epiphyte.org, pmenzel@molgen.mpg.de, buczek@molgen.mpg.de, Robert Marko Subject: [PATCH 2/6] dt-bindings: gpio: Add Delta TN48M CPLD GPIO bindings Date: Fri, 30 Apr 2021 14:35:07 +0200 Message-Id: <20210430123511.116057-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210430123511.116057-1-robert.marko@sartura.hr> References: <20210430123511.116057-1-robert.marko@sartura.hr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CPLD inside of the Delta TN48M does not number GPIOs at all, so in order to ensure numbering lets use bindigs. Signed-off-by: Robert Marko --- include/dt-bindings/gpio/tn48m-gpio.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/dt-bindings/gpio/tn48m-gpio.h diff --git a/include/dt-bindings/gpio/tn48m-gpio.h b/include/dt-bindings/gpio/tn48m-gpio.h new file mode 100644 index 000000000000..4ece4826d746 --- /dev/null +++ b/include/dt-bindings/gpio/tn48m-gpio.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * GPIO definitions for Delta TN48M CPLD GPIO driver + * + * Copyright 2020 Sartura Ltd + * + * Author: Robert Marko + */ + +#ifndef _DT_BINDINGS_TN48M_GPIO_H +#define _DT_BINDINGS_TN48M_GPIO_H + +#define SFP_TX_DISABLE_52 0 +#define SFP_TX_DISABLE_51 1 +#define SFP_TX_DISABLE_50 2 +#define SFP_TX_DISABLE_49 3 +#define SFP_PRESENT_52 4 +#define SFP_PRESENT_51 5 +#define SFP_PRESENT_50 6 +#define SFP_PRESENT_49 7 +#define SFP_LOS_52 8 +#define SFP_LOS_51 9 +#define SFP_LOS_50 10 +#define SFP_LOS_49 11 + +#endif /* _DT_BINDINGS_TN48M_GPIO_H */ -- 2.31.1