From patchwork Thu Jul 13 15:28:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 119984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1906211vqm; Thu, 13 Jul 2023 08:34:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlE/RqzW/YBT2Kud9yk6h/oITmMNpX6J7dhepmyh529bLAGBcpUW1lHnNA6yl+jFT4Le1hOh X-Received: by 2002:a05:6a20:7f81:b0:130:11e4:d693 with SMTP id d1-20020a056a207f8100b0013011e4d693mr2311524pzj.53.1689262468538; Thu, 13 Jul 2023 08:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689262468; cv=none; d=google.com; s=arc-20160816; b=cDow9BoTw4/GdkCQ6oICmAyioiiwKlvp1SnWcBj4hITsP47Hnj9t9zAAGe/H2AV21U /9UjASteklkN7SiLokuMYWB7FGAPIWwzOxs9kTeCyepTMDU08aIpnVpVvVSVY4keqVfS l8e8Y9anMGg63j4EIFk807HyABt4iQ4nMCE0bZNfWMd6LSSwkzfjZtnyuz3nkZJOwDMe zAPLQjMhDvjHMV45Y74sZ/kuOOEinIqoDt47F2KvdTUL0G71//iAV0lO4PbuqQ6pwXJv JKlAxxwDswF93RmJT8BucvPZTNUUFwdEEx7saHdllXK8Nu4CPTI163p3UPv+m942O/B3 2Rhw== 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:to:from :dkim-signature; bh=pda2v+mLWC23W2SQX3mr2OpooyQsFAd9sHxngZmXyV0=; fh=k8miuZ3ypPRiSv3JWnvZwk3vsWrzgNDGA16Sp59CQE0=; b=JYwZb9WoC5yAWAmZM8FomWD5VthwjL72Du0OyEC0ouhG3BuLUlA/rN63y8hO+XhEJ1 9rFmtrp962CIWlKMmYX35mmss9jj1j7V0XN9EE7BmHkX0QkRd1/FBiqHfITCOqbIj5Xw AaFZmXszWNZ1Xe6Am2d68zBRJBp3UTEfC9vIjfXiIJKt0f1yQ3K0NnwxgVJeNQBDXhhA dVnZFVQISVDKeT9OmNwKUC8Xau5Bms8RljwtA6fKH071oTilsNApqhea0DvRrjbNMKof ANQN3AyHs21M7rk+gBuFGUvcyXhOnepoUjt9ADZCqJh9mJIjLT+aBmOHBPNX2N2lhB4p ZkNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P8Nhdgfc; 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 k2-20020a63ff02000000b0055adfd71daesi4546923pgi.663.2023.07.13.08.34.03; Thu, 13 Jul 2023 08:34:28 -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=@linaro.org header.s=google header.b=P8Nhdgfc; 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 S231303AbjGMP3r (ORCPT + 99 others); Thu, 13 Jul 2023 11:29:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231981AbjGMP3Q (ORCPT ); Thu, 13 Jul 2023 11:29:16 -0400 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 E60A43580 for ; Thu, 13 Jul 2023 08:28:55 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fc0aecf15bso6828975e9.1 for ; Thu, 13 Jul 2023 08:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689262134; x=1691854134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=pda2v+mLWC23W2SQX3mr2OpooyQsFAd9sHxngZmXyV0=; b=P8NhdgfcIwOtANtR5+8a4ekovJim3nBn+DFZOvEv1Ka7RsvX3MpCQ3+goSqMkxBdB3 anumahIIPFAFyZfDFkCrVHFNxX7foU470PZhAsGyT8lvx6kiHGnJCyZ7Ct1hwPmjdigV Dh/QMdtoYlRRnAIQXaXqtBJnH/LOmb1SoLxJbZYzssbJoosB3I+u0HB1URmrzRs04shi jBE+bRXfNZ9nJc54OTGG5XKEn+M/mXl1Sc6AHpn+N/3UFMqcWLitrdWxvh1Yusey/jEI NlgmvFNGz5t83P69qiWJBe2E1FxT+n+OSSF8AS/mz27NvsfkADxvrlc1dxXt8s+4BDQk uZSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689262134; x=1691854134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pda2v+mLWC23W2SQX3mr2OpooyQsFAd9sHxngZmXyV0=; b=Xmldv5hl2jzbppkc5FjXNNPCh1PdbN4zi0jHy/kCSYWyLFeBlnanAV9n8VaRlqixKR myE46mVN2Gon+btPjwQkwFVcnzT5/hDPjdGxEywpoNz/v0myEX6WB3pyAE5sYhbUkS9y qCAk43+V7vW7vdOCvuKTFTE2JPvJK3iqgbLgftbiMzbQ5HjLUQLwgos5S9mutdUvsctE RT1znNWntRpqTY8/7/FSwoeQVM8EPN19MixjSQZAp1uUDkMqOA89581fK/534CYwbjVJ ch1fkJ2ndG+BTUnAgBi4UAOD7KL6dn1GXHPPpMaZ+pbyLkTJfhkXdNWnbplENmsqLh69 sLvg== X-Gm-Message-State: ABy/qLYK8HWJZTLyvzBA13om+CPiyKt5JQoz7ytbawhc5VKXD9Dwj/nG e1nj45aMuOkLYnyxneH16HtHiA== X-Received: by 2002:a1c:7208:0:b0:3fb:d194:8332 with SMTP id n8-20020a1c7208000000b003fbd1948332mr2053373wmc.30.1689262134411; Thu, 13 Jul 2023 08:28:54 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id l22-20020a7bc456000000b003fbb5142c4bsm18563121wmi.18.2023.07.13.08.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 08:28:53 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Paul Cercueil , Marek Vasut , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: memory-controllers: ingenic,nemc: reference peripheral properties Date: Thu, 13 Jul 2023 17:28:46 +0200 Message-Id: <20230713152848.82752-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713152848.82752-1-krzysztof.kozlowski@linaro.org> References: <20230713152848.82752-1-krzysztof.kozlowski@linaro.org> 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_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771320081779521216 X-GMAIL-MSGID: 1771320081779521216 Ingenic NAND / External Memory Controller has children with peripheral properties, so it should reference the Memory Controller bus Peripheral-specific schema. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../devicetree/bindings/memory-controllers/ingenic,nemc.yaml | 1 + .../bindings/memory-controllers/mc-peripheral-props.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml index a02724221ff3..b40cec0eb651 100644 --- a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml @@ -39,6 +39,7 @@ properties: patternProperties: ".*@[0-9]+$": type: object + $ref: mc-peripheral-props.yaml# required: - compatible diff --git a/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml b/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml index 5acfcad12bb7..5ff8cc26962a 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml @@ -34,6 +34,7 @@ required: # The controller specific properties go here. allOf: - $ref: st,stm32-fmc2-ebi-props.yaml# + - $ref: ingenic,nemc-peripherals.yaml# - $ref: intel,ixp4xx-expansion-peripheral-props.yaml# additionalProperties: true From patchwork Thu Jul 13 15:28:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 120003 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1928462vqm; Thu, 13 Jul 2023 09:09:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFdXgUQA+Mg0lcyASfXpNblycne3RkHxokOAd8bM1+43LtLXo7ajvDFcfSD81j9WiSx2XTE X-Received: by 2002:a05:6a00:2196:b0:682:759c:644d with SMTP id h22-20020a056a00219600b00682759c644dmr1737210pfi.27.1689264569653; Thu, 13 Jul 2023 09:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689264569; cv=none; d=google.com; s=arc-20160816; b=oHdRHGxKreCz+bOxkj5yRKlk2lSl949CC/xq6qguDVzUp4ZZtKpiyBZhb1SYjzY9MP FY4VSYz/zH7Ui0JKgXAyJ44adho//mkFHKJRJZdYupKf3fvR4Kr4TGsEkgEv3o4w6LqT OFW+AnwryLoNVMtjNc80H5S8i94KZM7aGoBCEFC0VAyJcQV2dGorELwvqvoV3R3K+Bt9 6Y3fEEC/P6H7Ki26icfTLKJf/XJksac1G5+XiFvAko0fMIIEHJNu6WBO6kNNLNRzE0xK KRrW2aE568ftU2N0Xm02e4uhJKmPAJjWFlI0TI027zmKPV0wTtSv1VM2Gvmht54RJg0L VhnA== 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:to:from :dkim-signature; bh=q5Q9SaYaM9oyY279cgdEnWaQAhZx6bNnV7z6kEOcnaU=; fh=k8miuZ3ypPRiSv3JWnvZwk3vsWrzgNDGA16Sp59CQE0=; b=AQNUggNFziBVkITEbInBfovr+pFV6LRCafk9fmvuMDcM9JXfqDBh5m1cglp5YclDqW 05rUyPqk4XtdmgLrrjm/wB2YuNM6ZmFblw7h+mj7tIBD9m2n4FB4B0PW46IDktyISdgR KtHRseiZAxq/OK2D3DUwqsKByyDamBwzu+UpBoLfsGQ8WhNGel0ny0UCvpfXH7xPmt59 DogQRf5/PoI8S5QbB5EJPLJ+ieMSKQxHdM4DqviGSCa5vSTZG7lLmj9xZIy1p7wdkQxf N0LBAmqwq0G54P9z2hmLfZXYWUtJ0RxKNoUCPRiTHzk22qsuENRhwrQYQQ8d7aIMw82L UtUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=myDdJzhq; 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 m13-20020a65438d000000b0054fda551fecsi5102393pgp.426.2023.07.13.09.09.14; Thu, 13 Jul 2023 09:09:29 -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=@linaro.org header.s=google header.b=myDdJzhq; 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 S234847AbjGMP34 (ORCPT + 99 others); Thu, 13 Jul 2023 11:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232437AbjGMP3R (ORCPT ); Thu, 13 Jul 2023 11:29:17 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D753589 for ; Thu, 13 Jul 2023 08:28:57 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fba8e2aa52so8298285e9.1 for ; Thu, 13 Jul 2023 08:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689262136; x=1691854136; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=q5Q9SaYaM9oyY279cgdEnWaQAhZx6bNnV7z6kEOcnaU=; b=myDdJzhqVejI7cNcTTS38opDr/tXPbxBp/tYBFadOrMbhrKMl2kGuCbcTy/IEA93Jh QU7uio1LBFgNHHlCqCxOr5SHuI6pZSpruqT5/y0E09x05Uah4smj2V2WrBeFNRWn42p9 U3GFFgnnIbDm3epWAh0AQxrHpxChanb30GWGg3qMUXFkH6KBKqIi3mZDHuQA5XqCMdjP 1IelvjPj0Uswz+lNj7c/pMNM0w+VgPKipgWEZ/UNX9Iaqwjr75wPeSFrEnl2fgKRm22n YzCThgS9ZGhxwpddyz/2/f24kFeacNvQkRo7JIkDNRwTAyBcwr/gmsLJwE0S7gOHRQRv Sqrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689262136; x=1691854136; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q5Q9SaYaM9oyY279cgdEnWaQAhZx6bNnV7z6kEOcnaU=; b=J8VJLe4EV4T46bjw357Dofw83cZOuS3PqWSBsxh7B8ZsUxBOjUvvG1xyruYy3cm1EI NLPMvnMdh0K5qSMFxoPkhWsAhqqFJ8FL5eSJ+VPI9FlTBESwh7YD83sTB+Ohsf48Tfj9 jM3K2p1Dn8kY5Ku8xFkziaJx5l/qmsrZv0nqBchNHZ+fsF3YfLlVg3DVeIWriQztnLsc xn7eUYDf+Dvy1+bTRDmCvLYTbPEcz9J+ZYzJCK1kRNVWnhWmyyB45OGx7761Tt9BDApS FK5oWCogwd+THKLpqOqtoz4+Tvh2CEKlVuByuGzJTYRnCoB4MRMrVm+ItHKtLzYX1noe IGRQ== X-Gm-Message-State: ABy/qLYPKHH9WcUszpdu0CAVpd9iUIHr74x6iJovt5dWIe4v1qM7kG7c l+FcbZwCuZ7HesQvmrwPgXyI7Q== X-Received: by 2002:a7b:cb0c:0:b0:3fb:c990:3b2 with SMTP id u12-20020a7bcb0c000000b003fbc99003b2mr1689692wmj.34.1689262136026; Thu, 13 Jul 2023 08:28:56 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id l22-20020a7bc456000000b003fbb5142c4bsm18563121wmi.18.2023.07.13.08.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 08:28:55 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Paul Cercueil , Marek Vasut , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: memory-controllers: reference TI GPMC peripheral properties Date: Thu, 13 Jul 2023 17:28:47 +0200 Message-Id: <20230713152848.82752-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713152848.82752-1-krzysztof.kozlowski@linaro.org> References: <20230713152848.82752-1-krzysztof.kozlowski@linaro.org> 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,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771322285303192557 X-GMAIL-MSGID: 1771322285303192557 Reference the Texas Instruments GPMC Bus Child Nodes schema with peripheral properties, in common Memory Controller bus Peripheral-specific schema, to allow properly validate devices like davicom,dm9000. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../bindings/memory-controllers/mc-peripheral-props.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml b/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml index 5ff8cc26962a..8d9dae15ade0 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mc-peripheral-props.yaml @@ -36,5 +36,6 @@ allOf: - $ref: st,stm32-fmc2-ebi-props.yaml# - $ref: ingenic,nemc-peripherals.yaml# - $ref: intel,ixp4xx-expansion-peripheral-props.yaml# + - $ref: ti,gpmc-child.yaml# additionalProperties: true From patchwork Thu Jul 13 15:28:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 119985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1906610vqm; Thu, 13 Jul 2023 08:35:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHW8dBRtI06HMPXFAfpiYx/DkS7zed+WFFe2NJQv5tM1D/3mBU+3ka68TDBhx8LDdDDZ1d2 X-Received: by 2002:aa7:c654:0:b0:519:6a6a:7659 with SMTP id z20-20020aa7c654000000b005196a6a7659mr2077105edr.18.1689262503330; Thu, 13 Jul 2023 08:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689262503; cv=none; d=google.com; s=arc-20160816; b=kZdq/uL94Xc8dTWz4gRagy5vwbgLbzuslGv2ESRhK3UT/GZEzR6zf9bYBMl6eCwOSn 1yUcT9kzh0j45QuCqa63yBCAZ26jp0SgNz1v3Q+ZO2TL/0SUr2QwIG1VlWKAPU7a+vbo I6RMJCdOc86XufrEo5s8z9PolbgyTs7tL0gxP8M04wRUYIt+AlxxdjEe66fA0VzXPpid KdVzLmBP8Ybsa2pVQHnVmncisrCWe45nufRwSxJ54F8eTuZrJhaSq4BPY4HM7Lc0tPO2 mCCji+OexdFOGuPIQOb2Qt60tBI9rRMzpEuly7vYA+kK1bwj4fQwT9fkL7EB9EOiJoiH NFqw== 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:to:from :dkim-signature; bh=fQO6gNAEktA8kEixN8D27EH+Cpq5epFEey0edwAdXMY=; fh=k8miuZ3ypPRiSv3JWnvZwk3vsWrzgNDGA16Sp59CQE0=; b=ZTmnLTLpAmx2flOkX9ScDB1VHt3oPJR37/I8EJv+1G8HHLyjYkxhbi+Vh9Vytu4Z8y Uxv1nRcqei+hb6UqTphXLJS+qfilDsccAhuO7nH/idGR08mA5jIXlcXm7EU8YWaP5z71 Ebs+0I2RrszM66Gc0HBd9gVcvsg8utEfYKMjo2vRG3o4sM82Ka5McK2zgV5lxgUfZ1yn sqDypYB/2wsA8zCBopBWfhEHNJ84EK2r8j354vOJApnVxu9rp63/XRNs4YOK83UMXspK lNHnL1+Xuy5y57pzkEtJ5+0D1csz9lXAA8RNniA1mfxTkRS7InGmSzlVS3K38ibFnrjt wi2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oQo6Gx7K; 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 k13-20020aa7c38d000000b0051dd3314051si1661457edq.188.2023.07.13.08.34.38; Thu, 13 Jul 2023 08:35:03 -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=@linaro.org header.s=google header.b=oQo6Gx7K; 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 S234920AbjGMPaB (ORCPT + 99 others); Thu, 13 Jul 2023 11:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232956AbjGMP3T (ORCPT ); Thu, 13 Jul 2023 11:29:19 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51320358C for ; Thu, 13 Jul 2023 08:28:59 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fbc54cab6fso7834445e9.0 for ; Thu, 13 Jul 2023 08:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689262138; x=1691854138; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=fQO6gNAEktA8kEixN8D27EH+Cpq5epFEey0edwAdXMY=; b=oQo6Gx7KIFLJF9/K18gtoCqYQ33/wKzBynQefMMsCw64qAU+lu7pQHtH+wC+8mwry1 PyLLEWVT2oYpK9MntYve7kl+T0UZdJO2rwtz/IqOfahsHem9ft+J39t8LMKhfqbhRnBX 9id4DrC3Ane9yGZuPBdqgKLthyhi85yLXeNVLyVDlzKjzrbq/yVyLi97nmUSRThibz/p 5NS4ThHGgmBjmGO6t6CSmK23j3XuCMSHASFmNWMNYbDef1HPeMin265rAqmpTrpXwwqI AIgoZDtZzWQnpuy/mVHhbVRcNLj2eNpZMcm5QhBhCDGnT9iTckx9J9b54oB7H14QfQ8n XokA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689262138; x=1691854138; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fQO6gNAEktA8kEixN8D27EH+Cpq5epFEey0edwAdXMY=; b=KZPcBvq2UX12ZyDhCaIx1ab367mevFS5Z0j8VSNWZgHgz2l5mc/mJ8q9H1cHFlbtOy DwyxbIbSUItzCKODSYZBZXwblUV11Dgtl5i0+upvb3qosxeB3sqi2wUHkkWG2Zg7f/bD dCZbRkheI0fDb9BWYEmCZd227/x/sc98IiuDWnT/6b3+rY7DM8JVapGZQHaUnkQ4cnQN AxH28vWBknrhSfqosnq2yvg1pv7QX+ptv6bGZ9FB6lE+5VBIR8qw66TWFd+SUebprp0L jgR4/oOS/oGOm5qlNl54wVYFACAmRQ6dR3djn8ulE3ACVi8MYSqH6wdfWntLN3fQhi17 koFA== X-Gm-Message-State: ABy/qLZcrVsdhgxvGm6GyXukowjH/UtV1Y8PRYSeSvOIV0kj3J/Q0Bx2 ddgT2l+QQAGzRRoIB5f49n+b6FrYlOMHcqhVMazHMQ== X-Received: by 2002:a05:600c:2902:b0:3fc:80a:993e with SMTP id i2-20020a05600c290200b003fc080a993emr1650459wmd.17.1689262137885; Thu, 13 Jul 2023 08:28:57 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id l22-20020a7bc456000000b003fbb5142c4bsm18563121wmi.18.2023.07.13.08.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 08:28:57 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Paul Cercueil , Marek Vasut , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 3/3] dt-bindings: net: davicom,dm9000: convert to DT schema Date: Thu, 13 Jul 2023 17:28:48 +0200 Message-Id: <20230713152848.82752-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713152848.82752-1-krzysztof.kozlowski@linaro.org> References: <20230713152848.82752-1-krzysztof.kozlowski@linaro.org> 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_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771320118426609201 X-GMAIL-MSGID: 1771320118426609201 Convert the Davicom DM9000 Fast Ethernet Controller bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Conor Dooley --- .../bindings/net/davicom,dm9000.yaml | 59 +++++++++++++++++++ .../bindings/net/davicom-dm9000.txt | 27 --------- 2 files changed, 59 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/davicom,dm9000.yaml delete mode 100644 Documentation/devicetree/bindings/net/davicom-dm9000.txt diff --git a/Documentation/devicetree/bindings/net/davicom,dm9000.yaml b/Documentation/devicetree/bindings/net/davicom,dm9000.yaml new file mode 100644 index 000000000000..66a7c6eec767 --- /dev/null +++ b/Documentation/devicetree/bindings/net/davicom,dm9000.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/davicom,dm9000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Davicom DM9000 Fast Ethernet Controller + +maintainers: + - Paul Cercueil + +properties: + compatible: + const: davicom,dm9000 + + reg: + items: + - description: Address registers + - description: Data registers + + interrupts: + maxItems: 1 + + davicom,no-eeprom: + type: boolean + description: Configuration EEPROM is not available + + davicom,ext-phy: + type: boolean + description: Use external PHY + + reset-gpios: + maxItems: 1 + + vcc-supply: true + +required: + - compatible + - reg + - interrupts + +allOf: + - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# + - $ref: /schemas/net/ethernet-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + ethernet@a8000000 { + compatible = "davicom,dm9000"; + reg = <0xa8000000 0x2>, <0xa8000002 0x2>; + interrupt-parent = <&gph1>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; + local-mac-address = [00 00 de ad be ef]; + davicom,no-eeprom; + }; diff --git a/Documentation/devicetree/bindings/net/davicom-dm9000.txt b/Documentation/devicetree/bindings/net/davicom-dm9000.txt deleted file mode 100644 index 64c159e9cbf7..000000000000 --- a/Documentation/devicetree/bindings/net/davicom-dm9000.txt +++ /dev/null @@ -1,27 +0,0 @@ -Davicom DM9000 Fast Ethernet controller - -Required properties: -- compatible = "davicom,dm9000"; -- reg : physical addresses and sizes of registers, must contain 2 entries: - first entry : address register, - second entry : data register. -- interrupts : interrupt specifier specific to interrupt controller - -Optional properties: -- davicom,no-eeprom : Configuration EEPROM is not available -- davicom,ext-phy : Use external PHY -- reset-gpios : phandle of gpio that will be used to reset chip during probe -- vcc-supply : phandle of regulator that will be used to enable power to chip - -Example: - - ethernet@18000000 { - compatible = "davicom,dm9000"; - reg = <0x18000000 0x2 0x18000004 0x2>; - interrupt-parent = <&gpn>; - interrupts = <7 4>; - local-mac-address = [00 00 de ad be ef]; - davicom,no-eeprom; - reset-gpios = <&gpf 12 GPIO_ACTIVE_LOW>; - vcc-supply = <ð0_power>; - };