Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp297087rwb; Wed, 28 Sep 2022 02:53:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7m/1hwmurQ4PLHBdmIfUQw5+i2xbIgivMkQNM9yPQKkIRGbqCiiSXE53z01csBjO11Vdf6 X-Received: by 2002:a05:6402:14c3:b0:457:faf8:1880 with SMTP id f3-20020a05640214c300b00457faf81880mr604331edx.118.1664358806774; Wed, 28 Sep 2022 02:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664358806; cv=none; d=google.com; s=arc-20160816; b=IQ3hdWuFt5UohLOvG8m8HWb4tYs4BFdKad/A5PkWh2m9K76pv1fbaHjs48MwfSJYzP hakVEHSKVgIHm8Fn8QYdEvlYBk83+Y3P7t4XcypZ3qghtZ7hgmmRjAtSJfCmZqOjhb+K 0u48b4Cwd7PUqEe3BvbCQsJNOb1wG5EaRJj85G5DXe29WSmuKaF68CSLKMJnPhpfFcBV ycUpfgo2T3rwXKejmHWIsaHg3tOGgKEITBaCWmoNdtJdCp4la0l3buNHe1XQTnunVnOW H44Rl1P8WZkX8/GhQamd0d2hI/HNQw25d8LykuH6rQ25EAvK1jX6PTyrMnev09ndrlf8 RY7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=M1MQzP7nXhdAoOm+Dhk9FYAPvZN0O8P2I4Dh0xXzv94=; b=xg89bAaJGu3GMAWWJPC+bRywYVsrATeu0YbHsmasg2yfUNe3b4BW6nReTJ3K/DPAsx Emgi36ada3cBdwPowkNMBawoZTA6PJLkyq+X6Q6k5WcnCv4yozi8rGzEMDCFB69gDmmG 7i1JpQ2T/GYHFTIiiu/6yRXExJ5SBL1cGq36gSNxseHz0dux79a/G93mH6ZpnYGX1vwI /E6j3mFDSjAi3Woqw8W1RQtlSCq/WTLZVCUa1NsrBOZ41fQowKGm6ulFPlBDcEIhmgnJ AnDUYVw04X0yZXB3UhlqDUx7gZBepfeOyCaa+xn23fzQByc7LWQmF2UXj2M6Mpz1WNNC Wqyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Qw/Tctga"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a056402350e00b0045434ec2db5si4825068edd.508.2022.09.28.02.53.01; Wed, 28 Sep 2022 02:53:26 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Qw/Tctga"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233659AbiI1JaJ (ORCPT + 99 others); Wed, 28 Sep 2022 05:30:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233724AbiI1JaD (ORCPT ); Wed, 28 Sep 2022 05:30:03 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DB732D1F3; Wed, 28 Sep 2022 02:29:58 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id c24so11321522plo.3; Wed, 28 Sep 2022 02:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date; bh=M1MQzP7nXhdAoOm+Dhk9FYAPvZN0O8P2I4Dh0xXzv94=; b=Qw/TctgaljN0UbyGHGd1qOXRq1GZvQKoCWhbHHBEBdlUqyO9IZTvEf+CaX+dTg/xpV 2TfhMgrV8c64YvMLi1avwgho+W30WDcPB+NXS/r7pDl0zfENRD7zXL8NMcMZNe+43NYv eigvsz93QDNJZnnz5kY0Pp9TT3uwXdI7VxA9NV6m341ifsvcmPuaUdV9xQutUyYp+8a2 I3G+KRvER2aesl/EQsSqoqefctD4ZSJt5X9lfi+3lqQPAPFQobHQpp+uX+9rbgZxj6zM rBy2UlpZWKa63v0RUP/wx+d5LhOByeyGmU4Vyszxp42GpWMIQenbLTM9R9jQF1v5JRWo Io4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=M1MQzP7nXhdAoOm+Dhk9FYAPvZN0O8P2I4Dh0xXzv94=; b=wUVxzjls6pnoezECu2Ov+f+soRK6bcdIUTPyB7NR4v+BbU7CTXUK9Xi3q2EwBPRxRL WT3S4IacS9zE02Y/F0KJF20kHSp/3lDenzDiOmfuZ+eks1DUB1ZbgBftn30EODbFScvQ Wo2JF2o5rPKehSP68HdM22qC35GI2XJCKx1yiGjR3FI3x2PI+pYmxXTLv0Rh5knQ9cHY hxbykNn8RtD9A6wxP3GbXHOqTlUJy0M64mflltyWweYO1CHIflCkSV2Ys1AXNfPDglS9 8lMnEVJcF/MPzxhs/IlUVBRIfiv5m098+FKAa36uUKgLVb2QsYPtm1yTVyUD1+lTp/Wb Ii/Q== X-Gm-Message-State: ACrzQf2RBBXuy9VkD0KUGc4XSOhiMLBI3L2Vp2xIunwistg6Hulzhfep xZGXjgyi9594Lug47j2jno6SzWBRwYCtjg== X-Received: by 2002:a17:902:ecc5:b0:178:3217:e464 with SMTP id a5-20020a170902ecc500b001783217e464mr31629482plh.75.1664357398142; Wed, 28 Sep 2022 02:29:58 -0700 (PDT) Received: from xm06403pcu.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id b22-20020a17090a101600b0020071acaecasm1026831pja.42.2022.09.28.02.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 02:29:57 -0700 (PDT) From: Chunyan Zhang To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Baolin Wang , Orson Zhai , Chunyan Zhang , LKML Subject: [PATCH 3/3] dt-bindings: gpio: Add compatible string for Unisoc UMS512 Date: Wed, 28 Sep 2022 17:29:37 +0800 Message-Id: <20220928092937.27120-3-zhang.lyra@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220928092937.27120-1-zhang.lyra@gmail.com> References: <20220928092937.27120-1-zhang.lyra@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 From: Chunyan Zhang UMS512 use the same GPIO and EIC controller with SC9860, so this patch adds compatible string for UMS512 directly. Signed-off-by: Chunyan Zhang --- .../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 e25ee1884c07..07f7d2b56da6 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 c0cd1ed9809b..a1ecb2b96a76 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