Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp53717imn; Wed, 3 Aug 2022 19:23:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ccSI4bKHskzZMjin/W80M9ymKE7NChL3xNhUzI7X2BSIn7yrYSjg8wtbcOsc/EOkt76sd X-Received: by 2002:a62:d418:0:b0:52d:9322:b285 with SMTP id a24-20020a62d418000000b0052d9322b285mr15953563pfh.66.1659579788919; Wed, 03 Aug 2022 19:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659579788; cv=none; d=google.com; s=arc-20160816; b=zHjG5003+pBC52xDfC6drjwB+so70X+kFHYEOhZSUpqfMMD7MZg590D6TG43s/W2nq oLlofY29ZY2xcqyO4DggLedOgpaNrn/r2Gx5PPp2lSKrhbLvWBZ7/YtPptd/7scmzyKO 0m7ZTmT0TEHl8x6NKagqxi9BW5kvgKjg4fvN17MQuIiRzOwb3rBTQYlLDqUCE/I3wywI KJ4ix6m6VM7BhX0jCDQfTThELGOjqaA4PeRmdlnJo8YHjur+pudcSmit9hPz9rpdHE8s KNtspxMP9u9dYg3lUP3c4Rvd3jMcttKjkLWOIfq/MrpXr3EMpqrC8Wa3saavY47bOFRS vCIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8O6G4k4vMW79Saml4R4eo//c6gNNaw0fDyOgHkkdvtw=; b=qQ+wPpK/R3HIAiFmS3s2bDyd9mPFATTefD8WtmJfhGHColSBdAewLanhhCjQu3sR2Q R21H3CTqyjFl2GibeHt4r2hwL5x+kj3q1B9HTa9rzHOqtibeSp3vPIw4TsK3ucTOjxNH s5VTuGV6ZexVPobT3cbFzvZpOum7sfG3VY3VWEDXJN0ak5F2+W7utR2mP9MGCF7hsM0L X/jqi1Jhd7ZMTsT43iwSvDrZsWXWS5NKmTLWbl8MwznlSekgxiVhjTC7iygvyDEXNtSf jpDjRIImFpwYG/vp8HftPVDEooBtdFJMJwUFhR4LVNYLwWYD4bVLN9hRHz2kEc6mPkhW 3hVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=oo92lFEF; 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=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd9-20020a056a00278900b005255236075csi15716566pfb.16.2022.08.03.19.22.55; Wed, 03 Aug 2022 19:23:08 -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=@mediatek.com header.s=dk header.b=oo92lFEF; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239284AbiHDCRc (ORCPT + 99 others); Wed, 3 Aug 2022 22:17:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238901AbiHDCQG (ORCPT ); Wed, 3 Aug 2022 22:16:06 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09EF35FACD; Wed, 3 Aug 2022 19:16:03 -0700 (PDT) X-UUID: 724f2b5033614715ab0b907d44318a3e-20220804 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=8O6G4k4vMW79Saml4R4eo//c6gNNaw0fDyOgHkkdvtw=; b=oo92lFEFJnHArzipuSbcdTLGktGOlhNc+oOm9guB3+eGSNAWOWSTkoA+h6Jz/L3ihSqpWP1Id/ObCMIzhU2xkEMdQxDHi/YizNcvfVj9BH7nspTILiZcLQkve8pHWtdbB2cFbNoVAcIwbKY9ELJ3ebmQSGhKTUl5O2FgAFysWEg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:b8cfe660-8124-4e03-beab-93826efaf06d,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Release_Ham,ACT ION:release,TS:95 X-CID-INFO: VERSION:1.1.8,REQID:b8cfe660-8124-4e03-beab-93826efaf06d,OB:0,LOB: 0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Spam_GS981B3D,ACT ION:quarantine,TS:95 X-CID-META: VersionHash:0f94e32,CLOUDID:14c03bd0-a6cf-4fb6-be1b-c60094821ca2,C OID:e2aee46074ee,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: 724f2b5033614715ab0b907d44318a3e-20220804 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1621848889; Thu, 04 Aug 2022 10:15:57 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Thu, 4 Aug 2022 10:15:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 4 Aug 2022 10:15:55 +0800 From: Tinghan Shen To: Yong Wu , Joerg Roedel , "Will Deacon" , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Lee Jones , "Matthias Brugger" , AngeloGioacchino Del Regno , Tinghan Shen , MandyJH Liu CC: , , , , , Subject: [PATCH v5 02/20] dt-bindings: memory: mediatek: Update condition for mt8195 smi node Date: Thu, 4 Aug 2022 10:15:35 +0800 Message-ID: <20220804021553.14867-3-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220804021553.14867-1-tinghan.shen@mediatek.com> References: <20220804021553.14867-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N 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_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 The max clock items for the dts node with compatible 'mediatek,mt8195-smi-sub-common' should be 3. However, the dtbs_check of such node will get following message, arch/arm64/boot/dts/mediatek/mt8195-evb.dtb: smi@14010000: clock-names: ['apb', 'smi', 'gals0'] is too long From schema: Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml It's because the 'mediatek,mt8195-smi-sub-common' compatible incorrectly matches the 'else' conditions for gen2 HW without gals. Rewrite the 'else' condition to specifically identify the compatibles that utilizing gen2 HW without gals. Signed-off-by: Tinghan Shen Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../memory-controllers/mediatek,smi-common.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml index 71bc5cefb49cf..4f5dd0a20109e 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml @@ -144,7 +144,16 @@ allOf: - const: gals0 - const: gals1 - else: # for gen2 HW that don't have gals + - if: # for gen2 HW that don't have gals + properties: + compatible: + enum: + - mediatek,mt2712-smi-common + - mediatek,mt6795-smi-common + - mediatek,mt8167-smi-common + - mediatek,mt8173-smi-common + + then: properties: clocks: minItems: 2 -- 2.18.0