From patchwork Wed Nov 22 20:04:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 168546 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:6f03:b0:164:83eb:24d7 with SMTP id r3csp1468268rwn; Wed, 22 Nov 2023 12:07:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjNSEqavh2CbcKYxvIfBNM2Kj7u8orzipL0iQTosRHX7J5sOiU3K3lHQHCY/cUEadCXZt0 X-Received: by 2002:aca:90a:0:b0:3b6:4e53:e7ac with SMTP id 10-20020aca090a000000b003b64e53e7acmr3257357oij.56.1700683621703; Wed, 22 Nov 2023 12:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700683621; cv=none; d=google.com; s=arc-20160816; b=gbJLEd6l9nMzrHFKFvfbVTWrFRqmF2crOhp/wW+SJRbtyjpDhzwVYBgYT4hGdR9t75 n9dryjJmwkw9YZ3pkgtzn8hNxeJDjbMTDu5eS+84QqgDsb1FbdH9nv1LP5zKP6hGWniK lz8of9ph1JztciyFUIX1OWBCwFFOKmGdljr20NzDrxtwX5w+wZYG2ZUpu01Mn2CRvenZ IujodLlh885FinEARySFs2vZVNXNcwQXg62Har+A86WHA+kMdgUhi3K5vYwhvxsHjkSD JYg2/eFmuCyynOY+OnPLSBe3Wr8VH4MTCZinijfH8F1PZCmlDDJ38uMaM4fbH9wpsQJ5 3gPg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=mWZ3+DJ5YCHvpyiY+r4/NJs/Atp/by6b5Pd+Cg5ZuxQ=; fh=uhumlEph9PVA4IwGHV/tBGhlJbw/6/hnyPs2RnQeBEY=; b=OQIKQb2lFIKFz/ZEiqf140f5iddEz2I7nz/go72gV53zpEOfSqF3Dsu5ycveak0qhk 2tEaDHxQw/ias2Y8EaGoBoUjASX93LdlWDZlkSxUutpGdOnnGoFShvru59COCujME7jZ B9BXqZmMJGFFrOsmUEHRSiX5ndeoBvg33/sDIk100juJQCbAmH4lMIM3oQlLBwHwIxkW GJVEQVPvB6Ib6fE32q/G0dYcQk4oP+VfvyX/DIKE6U+0HIqe5ih6S7YsuJDa/t2fDiGD /facKDGufE9af71UOOUekPn0O6QkfPRH+w803sHd4gLbfAA6GE0Oky38C3gGtP2RJcj/ vfhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c5AEBrxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x5-20020a631705000000b0059bdf5a4ecfsi156223pgl.247.2023.11.22.12.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 12:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c5AEBrxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D80DC802A948; Wed, 22 Nov 2023 12:06:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343880AbjKVUGO (ORCPT + 99 others); Wed, 22 Nov 2023 15:06:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232105AbjKVUGM (ORCPT ); Wed, 22 Nov 2023 15:06:12 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7A02D44 for ; Wed, 22 Nov 2023 12:06:06 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40b2c9ee8ecso791675e9.2 for ; Wed, 22 Nov 2023 12:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700683565; x=1701288365; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mWZ3+DJ5YCHvpyiY+r4/NJs/Atp/by6b5Pd+Cg5ZuxQ=; b=c5AEBrxcZQGuSVl1NZbFEPuvOT22njj505lzLe4PSxEfVU2FFkRsT7OkKglkXzWUMv UYFQUJzIUHCa/5fv/eALyFeG6oCw4JgvSElxmVX41K+DQn6D4WH28XioytnIJPZeALXz 2c+hgMF8ymmw028VL75UihXudW+MN1JIyXSvAKQnP9I+fPmsOCSHDQjVNmBtzcuVTL5t jk6C3cpDvKMrWpcD+YZnZPTRsaSPlzDWvmtovy5QDEY9Y6LYeAf6suWfv1IWLAhBAxCj RzmSaOhiSdXtpvi99P7v74Xkf5lWL+GLQOS8xdfrY2YrgLtBWR/OXzgH9WcskdqTcWHg uzeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700683565; x=1701288365; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mWZ3+DJ5YCHvpyiY+r4/NJs/Atp/by6b5Pd+Cg5ZuxQ=; b=SDuHAX0QKXxs9P+io9xangY6zjtPVfus1opms9LNdmB64SAfZEVM90VIDHfzXAf9oX 1FiRg06wdtPDs1Cx28uIShqGBl605+Gy1SlMPVMbe4JBRwk4aiikYYdWyTC0LzDxU7kk 5B/Q35VW89SocALCsd5uePocUgbmOjXyp+YwL3QfNRRDwi0JBaQ1/Z9nCTV2E8feBYyT nIbFhNLS+vThz81IP58Bu9AJ0Ibf+b3VriTcLo/wrY/ys3gWlx5IW+tSJYZl+7KeTG+j 6x6drePVZzZ7R/XZbJlxt3pwPYqhLP3QckgiUZQjEcJkJTMChgBHt2yjlw1RuOMW+zoo 7+vQ== X-Gm-Message-State: AOJu0YxJ4xSAj15ljYZigFxdeei5Z9DwgUFkE+58SeTn7aZWNw2IlJeY uk4tIo+fuwql8SIG0T5gEgiCWg== X-Received: by 2002:a05:600c:5125:b0:403:272:4414 with SMTP id o37-20020a05600c512500b0040302724414mr2812498wms.0.1700683565051; Wed, 22 Nov 2023 12:06:05 -0800 (PST) Received: from krzk-bin.. ([178.197.218.100]) by smtp.gmail.com with ESMTPSA id l17-20020a05600c4f1100b004063c9f68f2sm394665wmq.26.2023.11.22.12.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 12:06:04 -0800 (PST) From: Krzysztof Kozlowski To: Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Linus Walleij , Rob Herring , Conor Dooley , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Peter Griffin , semen.protsenko@linaro.org, Jaewon Kim Subject: [PATCH 1/3] dt-bindings: pinctrl: samsung: use Exynos7 fallbacks for newer wake-up controllers Date: Wed, 22 Nov 2023 21:04:05 +0100 Message-Id: <20231122200407.423264-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 12:06:13 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783296029003935765 X-GMAIL-MSGID: 1783296029003935765 Older ARM8 SoCs like Exynos5433, Exynos7 and Exynos7885 have the pin controller with wake-up interrupts muxed, thus the wake-up interrupt controller device node has interrupts property, while its pin banks might not (because they are muxed by the wake-up controller). Newer SoCs like Exynos850 and ExynosAutov9 do not used muxed wake-up interrupts: 1. Wake-up interrupt controller device node has no interrupts, 2. Its pin banks have interrupts (since there is no muxing). Their programming interface is however still compatible with Exynos7, thus change the bindings to express this: retain compatibility with Exynos7 and add new compatibility fallback of Exynos850 in newer designs. No driver changes are needed. This is necessary only to properly describe DTS. Signed-off-by: Krzysztof Kozlowski Acked-by: Jaewon Kim Acked-by: Conor Dooley --- Cc: Peter Griffin Cc: semen.protsenko@linaro.org Cc: Jaewon Kim --- .../samsung,pinctrl-wakeup-interrupt.yaml | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml index 1b75abebb953..2bafa867aea2 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml +++ b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml @@ -36,13 +36,17 @@ properties: - samsung,s5pv210-wakeup-eint - samsung,exynos4210-wakeup-eint - samsung,exynos7-wakeup-eint - - samsung,exynos850-wakeup-eint - - samsung,exynosautov9-wakeup-eint - - samsung,exynosautov920-wakeup-eint - items: - enum: - samsung,exynos5433-wakeup-eint - samsung,exynos7885-wakeup-eint + - samsung,exynos850-wakeup-eint + - const: samsung,exynos7-wakeup-eint + - items: + - enum: + - samsung,exynosautov9-wakeup-eint + - samsung,exynosautov920-wakeup-eint + - const: samsung,exynos850-wakeup-eint - const: samsung,exynos7-wakeup-eint interrupts: @@ -86,11 +90,14 @@ allOf: - if: properties: compatible: - contains: - enum: - - samsung,s5pv210-wakeup-eint - - samsung,exynos4210-wakeup-eint - - samsung,exynos7-wakeup-eint + # Match without "contains", to skip newer variants which are still + # compatible with samsung,exynos7-wakeup-eint + enum: + - samsung,s5pv210-wakeup-eint + - samsung,exynos4210-wakeup-eint + - samsung,exynos5433-wakeup-eint + - samsung,exynos7-wakeup-eint + - samsung,exynos7885-wakeup-eint then: properties: interrupts: @@ -105,8 +112,6 @@ allOf: contains: enum: - samsung,exynos850-wakeup-eint - - samsung,exynosautov9-wakeup-eint - - samsung,exynosautov920-wakeup-eint then: properties: interrupts: false