Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7097192rwl; Mon, 9 Jan 2023 18:03:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXsdMixKtb27KlJh/H0MRw+9Bix9T+RjKcmmHGkPAjU2oxLU8V0JeYU964OMwe4P3Y0uHVcK X-Received: by 2002:a17:906:39d8:b0:7c1:2075:199a with SMTP id i24-20020a17090639d800b007c12075199amr53482538eje.76.1673316192658; Mon, 09 Jan 2023 18:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673316192; cv=none; d=google.com; s=arc-20160816; b=byuE/JD4v5FlY1wcio3hkp9Z5wW312deksHWExlRvSgNp0Fo71nA8QxjCmY/rJi/lN X1XFu7FDJWvaPkS7LukxSxtzRjZ6eQdaefB/1h1S5fOXmRI4aRwQSeAk0u4F0N5cVX4s zZYAa8LGPKfYw1Y23sfdunIMqiQkWJ5Cv9bnjFsZbs3v6cy42fe20ysG+cObjv+mUckN HI6sHZwRtM3Qakyoze628HulIHgaeXBd8uStBjX0RshdB2foa7KEZdAefvs1Ci0fxwOI syGT6Qm0vR03zK2wAwRxclvYlYCLWZao5SOXT3bl+4UsRJpLtOfOfn0VMrgBvkHJZrUV jbIQ== 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; bh=cRRX1DAhaGogPkLSplnubc01y1e/Ry5lblG7YlkAe+8=; b=0WJa/iWhn9TJbJffK/DvJqUu2VRWE07epPuiO9ijqzc8EKoWUqWA2mSptvWkKmPXao bdJraR/Td3pKEvNjyHmWOPGR284XNThW8jcm0px8H2vK6fFQLYCMzGkU2YPpT82QrAjv 54BDsezbAILQ/M45kOwijA05LSclU5ePvNHp1OIo6t03oNsy0DfE2SiOiRxwTaYpzaxg 6mv0cp7WQ+T8om/CN6zERyPj3lEL2iBYJy2IJUjro9S+6V3CJKoKrQfNSaqAPN0Vsomi iRUr24zTzx4i7vNrHUBJCuvBEOlAWp33wUiGARLw+jelIYPcN8EuCv5D7tQChYMOHGJo 3qvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa3-20020a170906fd8300b008552e7765cbsi901897ejb.972.2023.01.09.18.03.00; Mon, 09 Jan 2023 18:03:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235415AbjAJBug (ORCPT + 53 others); Mon, 9 Jan 2023 20:50:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235118AbjAJBud (ORCPT ); Mon, 9 Jan 2023 20:50:33 -0500 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B7B3FD29; Mon, 9 Jan 2023 17:50:31 -0800 (PST) Received: from SHSend.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by SHSQR01.spreadtrum.com with ESMTP id 30A1ntxn015779; Tue, 10 Jan 2023 09:49:55 +0800 (+08) (envelope-from Chunyan.Zhang@unisoc.com) Received: from ubt.spreadtrum.com (10.0.74.87) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 10 Jan 2023 09:49:51 +0800 From: Chunyan Zhang To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski CC: , , Baolin Wang , Orson Zhai , "Chunyan Zhang" , Chunyan Zhang , LKML Subject: [PATCH V4 3/3] dt-bindings: gpio: Add compatible string for Unisoc UMS512 Date: Tue, 10 Jan 2023 09:49:43 +0800 Message-ID: <20230110014943.2196046-4-chunyan.zhang@unisoc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110014943.2196046-1-chunyan.zhang@unisoc.com> References: <20230110014943.2196046-1-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.74.87] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL: SHSQR01.spreadtrum.com 30A1ntxn015779 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UMS512 use the same GPIO and EIC controller with SC9860. Signed-off-by: Chunyan Zhang Reviewed-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- .../bindings/gpio/sprd,gpio-eic.yaml | 33 +++++++++++++++---- .../devicetree/bindings/gpio/sprd,gpio.yaml | 7 +++- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml b/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml index a21350bd0f2c..99fcf970773a 100644 --- a/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml +++ b/Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml @@ -42,12 +42,33 @@ description: | properties: compatible: - enum: - - sprd,sc9860-eic-debounce - - sprd,sc9860-eic-latch - - sprd,sc9860-eic-async - - sprd,sc9860-eic-sync - - sprd,sc2731-eic + oneOf: + - enum: + - sprd,sc9860-eic-debounce + - sprd,sc9860-eic-latch + - sprd,sc9860-eic-async + - sprd,sc9860-eic-sync + - sprd,sc2731-eic + - items: + - enum: + - sprd,ums512-eic-debounce + - const: sprd,sc9860-eic-debounce + - items: + - enum: + - sprd,ums512-eic-latch + - const: sprd,sc9860-eic-latch + - items: + - enum: + - sprd,ums512-eic-async + - const: sprd,sc9860-eic-async + - items: + - enum: + - sprd,ums512-eic-sync + - const: sprd,sc9860-eic-sync + - items: + - enum: + - sprd,sc2730-eic + - const: sprd,sc2731-eic reg: minItems: 1 diff --git a/Documentation/devicetree/bindings/gpio/sprd,gpio.yaml b/Documentation/devicetree/bindings/gpio/sprd,gpio.yaml index 40924123d184..483168838128 100644 --- a/Documentation/devicetree/bindings/gpio/sprd,gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/sprd,gpio.yaml @@ -19,7 +19,12 @@ description: | properties: compatible: - const: sprd,sc9860-gpio + oneOf: + - const: sprd,sc9860-gpio + - items: + - enum: + - sprd,ums512-gpio + - const: sprd,sc9860-gpio reg: maxItems: 1 -- 2.25.1