Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1233613ybt; Thu, 25 Jun 2020 00:40:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd7kJyog2Zlx0Eu8keu3R0a599xVCC5jUGgRWPrinFxzY29HVBp5e8K4C/LcyO+q1Hhv2+ X-Received: by 2002:a17:906:2318:: with SMTP id l24mr934452eja.291.1593070834497; Thu, 25 Jun 2020 00:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593070834; cv=none; d=google.com; s=arc-20160816; b=RNHZDGXLtV8Cscz0J6YPamOsEZI99OwTtJB0BpgOJqyetQNs3M1wT6Dhai/wkDsIed xPMuSK7bNtuiwELJ1zaVmzCE7oTt2xCoyv3VgScsfVFqNe0TpBOM1NyuWVhg1UdnBBxa uEFDbRbL6oEa+72UqtxVQre9G7ldYoc2ofutyJQ97jvBl/09AAn6XmRrjjNwpQd3hxpC 3z30EAEXtqD7EzqpxqP3KKrp2SdVbgxGR8g22X8/VH2h4ZddAqlU61pH1FPKOicxqFbc 2Yc+rVnY0ssL8LEkmRG2z98V3Ka+9bgwpvSnFzOaimGhWfSUYLTANQN2bWvwL1IZzCB5 9HgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7JM2qGnxotTxax9jX2KQ7mcDsm1caKdUQ1iktY4N3iI=; b=YgA4xXOPBSO2H38h7WwmHmtY3cNgTjmhQeJCg/i8nm0pM7L30QaVARZpuQt1GUwPyz 6EEqdU4iCR6t8oMjcegKRzh7l1HBtYARwTpPBCcxFwQcfBWm1TWbeuVvObjD6X2VInIU NedHw91X4owgvChSTgxCM5OhWUGs2y3TpjNxmXUIJMoSUSBqkavFsuq3TavgBP9mXVBm 36jqvppauYes6vPs3ebdn7LLVllcUD+r++ocMh/XSTOZhEDJiWqME0EI3bykJLGx86qU stimIsL85Ffief1jkVuMQ4ZVItgUb2jkReD/YgABtQmrbwsukfE/jJlur9ucya8g2+IV DR9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=Me4crCBz; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si3811978edr.555.2020.06.25.00.40.10; Thu, 25 Jun 2020 00:40:34 -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=@st.com header.s=STMicroelectronics header.b=Me4crCBz; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390256AbgFYHkE (ORCPT + 99 others); Thu, 25 Jun 2020 03:40:04 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:4832 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390040AbgFYHkD (ORCPT ); Thu, 25 Jun 2020 03:40:03 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05P7DBBl014444; Thu, 25 Jun 2020 09:39:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=7JM2qGnxotTxax9jX2KQ7mcDsm1caKdUQ1iktY4N3iI=; b=Me4crCBzFaejDePZS53lAku5TqEP5V9xIAt44H1UblROSjfe4RoKeCCEs6Be2HcddRt8 +IcvGTf2NAZGKLBoz6LWXgluiBq435L8QBOFwtdcQpyS5T+aM5AVuR5B0RhPvPloESuJ KZ5kbVhY6kcGi1qTfID2ekjQclVxEHIEejNDajVZQs7TCfGKnKLGqnUxBOtqoRzh/UpP 63ch688VvYf3LpqE1sXTu7cycv61/v0be9I7+nE+nvPY6wyFl2Nk/KQq+glRUFZ/RiPH Tzxyjn2XyYVxLfNTVFilDaBjcDhsjPSMz/cyfEAuiybasbfGui2IE+iLJ5OP6T3+3i5z NQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 31uuv9ghnp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 09:39:52 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9006D100039; Thu, 25 Jun 2020 09:39:51 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 847BC2A82E2; Thu, 25 Jun 2020 09:39:51 +0200 (CEST) Received: from localhost (10.75.127.51) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 25 Jun 2020 09:39:50 +0200 From: Alain Volmat To: , CC: , , , , , , , , , , Subject: [PATCH v2 3/4] dt-bindings: i2c-stm32: add SMBus Alert bindings Date: Thu, 25 Jun 2020 09:39:28 +0200 Message-ID: <1593070769-9106-4-git-send-email-alain.volmat@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593070769-9106-1-git-send-email-alain.volmat@st.com> References: <1593070769-9106-1-git-send-email-alain.volmat@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG4NODE1.st.com (10.75.127.10) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-25_02:2020-06-25,2020-06-25 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new binding of the i2c-stm32f7 driver to enable the handling of the SMBUS-Alert. The I2C/SMBUS framework already provides a mechanism to enable SMBus-Alert by naming an IRQ line "smbus_alert". However, on stm32, the SMBus-Alert is part of the i2c IRQ. Using the smbus_alert naming here would lead to having 2 handlers (the handler of the driver and the smbus_alert handler from I2C/SMBUS framework) on the unique i2c IRQ of the stm32. Meaning that the smbus_alert handler would get called for all IRQ generated by the stm32 I2C controller. For that reason, the smbus_alert IRQ naming cannot be used and a dedicated binding is introduced. Signed-off-by: Alain Volmat --- v2: Clarify commit message Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml b/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml index f2fcbb361180..6fde046fae5e 100644 --- a/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml @@ -36,6 +36,10 @@ allOf: minItems: 3 maxItems: 3 + st,smbus-alert: + description: Enable the SMBus Alert feature + $ref: /schemas/types.yaml#/definitions/flag + - if: properties: compatible: -- 2.7.4