From patchwork Fri Aug 11 13:06:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 134565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1184743vqi; Fri, 11 Aug 2023 08:47:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOsYNTHqS4FdLxsC6JWxSSdJmrfxYD6cJJR3ztafzzH4/Lvme1C6513uDIlM8ZabTT9IWu X-Received: by 2002:a2e:3806:0:b0:2b9:ef0a:7d4a with SMTP id f6-20020a2e3806000000b002b9ef0a7d4amr1777071lja.36.1691768851059; Fri, 11 Aug 2023 08:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691768851; cv=none; d=google.com; s=arc-20160816; b=xued+sldEbOQsItc3dlG7UJx8ndg3KIr1ZyApixM1CSenc7nnHnwcmIihTKz9Ogpxy tgqiQw0L7TP0tBZ4+NAuzyZMJOUoM1uQIjEerRadtdjVab/4iMt0eB9EzYKuw/usKb4i WxfKlrCNGD3zddEjfcPOZXPZDr667wBzkheF9RvLFbMfCjR8kdMzufVW8NH/CfS+iKhw +h105FvkZxGgQHYmRHFagHVbRSvWQrvuHAeUh7BLQYwsQDR1mSDj8JbJ26ssK6eIFYb1 YE7wqDeupOTOSLJgu3+pK9x2a5CzUUZ4GfnKI1CV2sqo3Sz+TIcUs3t3VK82W+08dkvV 2IRg== 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=0An2e1abhdIFPUIRrageueiL8VrU4x/yiS800RQ/7AE=; fh=Cjix6MpusCdBkqrMYJTjkRkPCo3lC7oMGzpHnB8od8U=; b=d9Hav/eKy53RsdXZLXyGTxBobJNtS3QuYyij1y8RCDWkBjllgkSxX2yDU8qcIgMDst ASR3k5HWaf9dnCkXbcVoB31OMbDJAXJEwotaRBUQh/QFxquBQyqo8moKk9W3i5gvFk9Q VNrGPyLNqYvq+SXKkLSKHYPk1TinzlYBf7DeWpqV8Wbr+yINTq8HdgUO1jJugsTUojq5 tAyhgPmqAEr5dJTFDU3qw6eShFF7hefINBroYTHwBip0HwnsXQIpJajIVyednmK6hvUZ nv/8lNJVBYIuM/Knmm9u2NN46fTDTolkmpccvCocRGW+ik6D2548/8jRV+wjkBnosMYG FIdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=m8YQ5hgh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a170906854e00b00992ae2a902dsi3542040ejy.786.2023.08.11.08.47.05; Fri, 11 Aug 2023 08:47:31 -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=@collabora.com header.s=mail header.b=m8YQ5hgh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233612AbjHKNIK (ORCPT + 99 others); Fri, 11 Aug 2023 09:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236088AbjHKNHr (ORCPT ); Fri, 11 Aug 2023 09:07:47 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D8F3582; Fri, 11 Aug 2023 06:07:22 -0700 (PDT) Received: from eugen-station.. (unknown [82.76.24.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id F38F0660724A; Fri, 11 Aug 2023 14:07:16 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1691759238; bh=VXusoYfjHaf1R8Q5raJ4gZK4qcwaz24tSqOkD12Aa0A=; h=From:To:Cc:Subject:Date:From; b=m8YQ5hghF7NJPiDxoc0eVVVZW0KT3+2lKdL7KpjLs3T6BxQzGVqflAELP09jpQOva HlTaaoipnyBpu/3hJSrIVt4UDpTzRWTR4qmJhHq9X8Azx4jDM7yZizsCCk3H3t1Fhb ceQ30FZ58AU7DW3MyV5yuuYLrnAwLkSwn2zYf4C/fRHCrPtY36/oyHHugo0IlG4sE1 l/DJM/FmWQsaF94awvFv8xWprPaUGPYDcV0QQPw7J3kx0HwW0xFh6B8SDTexcgr11o 1DPHnpoDWquQy189H7EWvcmQUQPP3Hib3n7MMGjmeJ0749lDj6aXjNAfQkb7dzxTCV D4KR5yNet74cA== From: Eugen Hristev To: linux-mediatek@lists.infradead.org Cc: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, conor+dt@kernel.org, kernel@collabora.com, Eugen Hristev Subject: [PATCH 1/2] dt-bindings: phy: mediatek,tphy: allow simple nodename pattern Date: Fri, 11 Aug 2023 16:06:59 +0300 Message-Id: <20230811130700.72787-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773948214857259047 X-GMAIL-MSGID: 1773948214857259047 The pattern for the nodename only allows t-phy@... , however, for the case when the t-phy has no `reg` and only `ranges` (basically when the t-phy is just a parent node), dtc will throw this warning: Warning (unit_address_vs_reg): /t-phy@1a243000: node has a unit name, but no reg or ranges property For a node like this: sata_phy: t-phy@1a243000 { ranges; sata_port: sata-phy@1a243000 { reg = <0 0x1a243000 0 0x0100>; }; }; it is normal that the parent node 't-phy' would be without any address, as in: sata_phy: t-phy { ranges; sata_port: sata-phy@1a243000 { reg = <0 0x1a243000 0 0x0100>; }; }; because being just a holder it does not have its own reg. However the binding does not allow such a name for the t-phy, so with this patch, making the `@[0-9a-f]+` part optional, such node is possible. Signed-off-by: Eugen Hristev --- Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml index 230a17f24966..2bb91542e984 100644 --- a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml +++ b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml @@ -64,7 +64,7 @@ description: | properties: $nodename: - pattern: "^t-phy@[0-9a-f]+$" + pattern: "^t-phy(@[0-9a-f]+)?$" compatible: oneOf: