Message ID | 20230216121211.3964433-1-konrad.dybcio@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp266049wrn; Thu, 16 Feb 2023 04:18:04 -0800 (PST) X-Google-Smtp-Source: AK7set/63aEqt5UiypM+mTDQrJmnqEGlwEQkHcQnuey9Dj9uTWI0ItESwWhoPZ/c0jJ6Jr91kQEt X-Received: by 2002:a17:90a:1904:b0:234:b8cb:512a with SMTP id 4-20020a17090a190400b00234b8cb512amr42849pjg.16.1676549884233; Thu, 16 Feb 2023 04:18:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676549884; cv=none; d=google.com; s=arc-20160816; b=DYRo4jUOeskbj8Jk+1b+VT4J+wB4PBcMOA0HXVeoY8VzVzrRJOTSsfXmG6dPZ6x+Fk 2lR9g0Od+WPOrWdlBvOp07F4WBE/2Ztio8CbD8+0lElwrph8cMnbp9Apk/LVtQASnWOi fukPt7C1zjMta9WkpCLcSJClv5JtHZymEhe01FC6rM01P57Gm5j0bHOVOvzyH28kWVmW 4Qa3V6b2EgUDdyUXJ6AIfFHuvMzCwjh3V/pq7Hy33/V/V4TjtRAspygTYj2Io3egOYKR o7PUIF2z7QUFR9++WZt5rx/MfoXETp30/lQNuCv6m9nMfIOa3TShV2VVsZ3CfHJfR0Tn Bu5w== 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=5xa1EgxIuknODW/uxmcnzw4VoWb0VoixqD9F/6r/2kI=; b=h52pHlcDQeD9/fCL9daBmDjoy70vcYALYENoxGwkD0EG64u2AnlX034AsZGDU6OvBi NTyW/SucICMZrYviO/2sJ8emCRbX+oUlcw/VU874xFmDl6EyHRIpwGmPPAASpsZIHlrr RX02bxrPUyvO+sAiNoxOIIH/t7Osds+2fyc+ksnpnICJDJUVyb7NN3Bw/L0zeSxgjJ6T r1V4s+xCEooYwvDbOdYnnBB3pcYuOYRAPbwUKAzNrNYu/EZxlACH/7Yg9+DT7owRe/XW BZ+0B4y56wAsa8Iy13BPOimGK3kNPn0UPGUh3sY1aMKV+ATAnVrpO7jZKVAnbsVIUdLf 2HTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mXTOhX8N; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k31-20020a635a5f000000b004e73c30e3fbsi1499378pgm.571.2023.02.16.04.17.49; Thu, 16 Feb 2023 04:18:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=mXTOhX8N; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229502AbjBPMMd (ORCPT <rfc822;aimixsaka@gmail.com> + 99 others); Thu, 16 Feb 2023 07:12:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbjBPMMb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 16 Feb 2023 07:12:31 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF07F5649B for <linux-kernel@vger.kernel.org>; Thu, 16 Feb 2023 04:12:26 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id f34so2478605lfv.10 for <linux-kernel@vger.kernel.org>; Thu, 16 Feb 2023 04:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5xa1EgxIuknODW/uxmcnzw4VoWb0VoixqD9F/6r/2kI=; b=mXTOhX8NwTDA23CAvJrkwEBGQd0MTwe9gvMrXRGiDSG/+UmqpW9kQ2WNH2pHckZ6bZ iRfRvrbTih4mtqGcHEOrAcvpBJaECdgRC94rvROmmsMFZ0Xs1/X48yh6U7Wn1CgN6g/u vqvjDE0AtOteACicAJnOEUmVwuaUNfff69Z0QH2NcMv5V/U+BJem3VB8mkb8VzFKSVFq luGLNCl4UODo7yHQWGUDwLWCET5elF7YzuqtbCKREVWAbwhm9KyxnAdXsWd5bSCZkA3X sYT6kyfYozkTg8MJs32xmJh6GRPNhpsAHayh/AJeDFsPMAUGNGOZtw2KlHND3VI0MrMW hKZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=5xa1EgxIuknODW/uxmcnzw4VoWb0VoixqD9F/6r/2kI=; b=R2TZQ0iphc5BsNAAIOoTcx9EilqGHzVZrz+d0KemOMf+AqXTvdFSC//NMh9tolVEIm XlQ9MfZ6DiKpfqbp2GCJGz7+5yulJhkN1AUUVJYr1tdKiUZqE//FdhSzUigsz0kxEPPu uy4hCInPhRJZXcLI6AIVqxV6wPOf9J4PtAXBC+v/n8RZIDx8pQO59183EafEPy9Soh0d zM/XCY8b+Kxio/N4+u3U0uyp3RAz142b9qIXRn7atSdcSw0L3i+ejMRURwKu5BJmYOI5 RpH1frUUTvPGa3mSbqaw5lGTc4ypsUH3WJ1jyTKrZXlSzHz7Wi95jQzzAx/KPwlW1Lg4 Uvwg== X-Gm-Message-State: AO0yUKVvwEUv6SIEyFVDZlz6fSxWY4BoXt3m6cO9p807/mJtuU8fff5v 70uOYv8yoPfPd3og2XVQVoUXAw== X-Received: by 2002:ac2:4908:0:b0:4cc:7a44:f05f with SMTP id n8-20020ac24908000000b004cc7a44f05fmr1523734lfi.31.1676549545029; Thu, 16 Feb 2023 04:12:25 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id l2-20020ac24302000000b004dc4b00a1f3sm278509lfh.253.2023.02.16.04.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 04:12:24 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: marijn.suijten@somainline.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Gene Chen <gene_chen@richtek.com>, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings usb: typec: rt1711h: Use a generic node name Date: Thu, 16 Feb 2023 13:12:10 +0100 Message-Id: <20230216121211.3964433-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757989971249442484?= X-GMAIL-MSGID: =?utf-8?q?1757989971249442484?= |
Series |
[1/2] dt-bindings usb: typec: rt1711h: Use a generic node name
|
|
Commit Message
Konrad Dybcio
Feb. 16, 2023, 12:12 p.m. UTC
Node names should be generic. Use typec-portc@ instead of rt1711h@.
Fixes: a72095ed8e65 ("dt-bindings usb: typec: rt1711h: Add binding for Richtek RT1711H")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Comments
On Thu, Feb 16, 2023 at 01:12:10PM +0100, Konrad Dybcio wrote: > Node names should be generic. Use typec-portc@ instead of rt1711h@. What's generic? Others use just 'typec' IIRC. We must first define the generic name for everyone, then do this. It doesn't really work defining this in each binding either as there's no checking a generic name is in fact used. We either need a class type schema (which don't work when devices support multiple classes) or a meta-schema checking $nodename patterns match a set of known node names. > > Fixes: a72095ed8e65 ("dt-bindings usb: typec: rt1711h: Add binding for Richtek RT1711H") > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml > index 1999f614c89b..7431c25d82ce 100644 > --- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml > +++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml > @@ -17,6 +17,9 @@ description: | > support for alternative interfaces of the Type-C specification. > > properties: > + $nodename: > + pattern: "^typec-portc@[0-9a-f]+$" > + > compatible: > enum: > - richtek,rt1711h > @@ -55,7 +58,7 @@ examples: > #address-cells = <1>; > #size-cells = <0>; > > - rt1711h@4e { > + typec-portc@4e { > compatible = "richtek,rt1711h"; > reg = <0x4e>; > interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>; > -- > 2.39.1 >
diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml index 1999f614c89b..7431c25d82ce 100644 --- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml +++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml @@ -17,6 +17,9 @@ description: | support for alternative interfaces of the Type-C specification. properties: + $nodename: + pattern: "^typec-portc@[0-9a-f]+$" + compatible: enum: - richtek,rt1711h @@ -55,7 +58,7 @@ examples: #address-cells = <1>; #size-cells = <0>; - rt1711h@4e { + typec-portc@4e { compatible = "richtek,rt1711h"; reg = <0x4e>; interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;