Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4195336pxk; Tue, 8 Sep 2020 13:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuIdfXyzH3ZHwN6IDCJN6jKeZisGXEbexDoUa80BHb9+o360WPREuY8tIogkNa0GP77pJK X-Received: by 2002:a17:906:91d3:: with SMTP id b19mr148454ejx.235.1599595995127; Tue, 08 Sep 2020 13:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599595995; cv=none; d=google.com; s=arc-20160816; b=P6QuUKaSdWgcb3nBwRMdRxwSiiPJEPGwKQM0NGC88eLTWUkRZ9HEu1ZCbbvbKDJIBP GthPDFDmdTqeiz+IsFfjpTQiqFpYZXtTqI2JVgA+0Z5GsW868OGLFVA9gtJ8gWhc7O+/ v2d4AWyf0gzQ6igydb2bBgIMM2IMbWP78w4jrAH3N8Vmx2H7xS8tdmQcYXIJcYvkVx7c 72ICBmY5N8TmgWl+whtYN524qPlJmimpGhPzj0BPRTbHojg6QZMNJOdL3EP9/PQipfRm LCvL9Vh57X4xXbVKnBgOR4jL+6Hhto/cOf2p3TMxYEEnF+q+yXWPtSANl50Ay1YMiYMV cOVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=xs/kn8GmrubloaSJFTzyy+lWilIF8KPfAAvd+9vZHLY=; b=ZN4CFv9UQu8EXmRrutwoVQOfq7pZPjcmUW6yE3iA669T6tXq4ZNybbprWuPy5O2hj3 3iy82rbHK/E/nCDsBfYlWylpnedL4VB631Qz6+UNE6njwnC1UmTffYGUW/aRdBpiPE5X 4rZI8vL69JPmVozAJP98bh3hhTsgiha5G2yCNDEH/UgJSA9Gcp/8++d77OQADplE8mDS SXtag4tH6GH2UD9WGmmxzDlbd+QBr8IRFYPXWt5+yhQ+nFuFcStOhXCERCR1uAO10U6d +JAwXsVZmz44stUy0rKoHB4rlTX6Vv9X0AyZEtOyaqnFt3UQwm7usf8xm9GbVGMvHkwn XlnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TYyUoFNJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si63704ejt.286.2020.09.08.13.12.52; Tue, 08 Sep 2020 13:13:15 -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=@kernel.org header.s=default header.b=TYyUoFNJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732212AbgIHUMV (ORCPT + 99 others); Tue, 8 Sep 2020 16:12:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:51642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729781AbgIHPLR (ORCPT ); Tue, 8 Sep 2020 11:11:17 -0400 Received: from localhost.localdomain (unknown [194.230.155.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1FFED229C5; Tue, 8 Sep 2020 14:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599577147; bh=T8bAQkHiIv+es4Wmgoj2fBeh0pHTyLqga1QKjLojgXs=; h=From:To:Cc:Subject:Date:From; b=TYyUoFNJp3sdQ5gGtcONTKVHKVQlzI1beFyBdXyPqKw/BUC1hdiKG+9kMCSYrfkou zXilq2DNWZK80k5A1lbuzIweWnlEhFB2gHlE5Kn1l2iF5sjfLZH3fZv/dK1wdMZ89b yk5s7Cfmd9en79mT3fmflqvtDJ5OMxPX8GV01bc8= From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Tim Harvey , Robert Jones , Matti Vaittinen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-power@fi.rohmeurope.com Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: mfd: Correct interrupt flags in examples Date: Tue, 8 Sep 2020 16:59:00 +0200 Message-Id: <20200908145900.4423-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING Correct the interrupt flags, assuming the author of the code wanted some logical behavior behind the name "ACTIVE_xxx", this is: ACTIVE_LOW => IRQ_TYPE_LEVEL_LOW Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mfd/act8945a.txt | 2 +- Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml | 3 ++- Documentation/devicetree/bindings/mfd/rohm,bd70528-pmic.txt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/act8945a.txt b/Documentation/devicetree/bindings/mfd/act8945a.txt index e6f168db6c72..5ca75d888b4a 100644 --- a/Documentation/devicetree/bindings/mfd/act8945a.txt +++ b/Documentation/devicetree/bindings/mfd/act8945a.txt @@ -71,7 +71,7 @@ Example: pinctrl-names = "default"; pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>; interrupt-parent = <&pioA>; - interrupts = <45 GPIO_ACTIVE_LOW>; + interrupts = <45 IRQ_TYPE_LEVEL_LOW>; active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>; active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>; diff --git a/Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml b/Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml index 9b6eb50606e8..e541eb0d02ed 100644 --- a/Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml +++ b/Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml @@ -147,6 +147,7 @@ required: examples: - | #include + #include i2c { #address-cells = <1>; #size-cells = <0>; @@ -155,7 +156,7 @@ examples: compatible = "gw,gsc"; reg = <0x20>; interrupt-parent = <&gpio1>; - interrupts = <4 GPIO_ACTIVE_LOW>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <1>; #address-cells = <1>; diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd70528-pmic.txt b/Documentation/devicetree/bindings/mfd/rohm,bd70528-pmic.txt index c3c02ce73cde..386eec06cf08 100644 --- a/Documentation/devicetree/bindings/mfd/rohm,bd70528-pmic.txt +++ b/Documentation/devicetree/bindings/mfd/rohm,bd70528-pmic.txt @@ -39,7 +39,7 @@ pmic: pmic@4b { compatible = "rohm,bd70528"; reg = <0x4b>; interrupt-parent = <&gpio1>; - interrupts = <29 GPIO_ACTIVE_LOW>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; clocks = <&osc 0>; #clock-cells = <0>; clock-output-names = "bd70528-32k-out"; -- 2.17.1