Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5243835ybl; Tue, 14 Jan 2020 05:59:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwTtmEg12ChK/av5XKkujJXYb2IEXzLMSv9bDWlxyZ6ZKgzLG5fWXc54QGAiagwONtHqF35 X-Received: by 2002:aca:ea46:: with SMTP id i67mr16210342oih.149.1579010345658; Tue, 14 Jan 2020 05:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579010345; cv=none; d=google.com; s=arc-20160816; b=ox93ZSdRt2huhiVDmAtil8dAdEDEO8nHPqeOgBeQSJh2cmmngu0rl20/ZCMcV1ZpWo BCwr3IS1wr7vnCJPb9iPvInmLTv5QEam+qM6HSLYsNl8T0oJwyYcSZeK9QG9pbjUU9Gq e778t6trDS+ZsTtY4cR4OhN+LMDklBWX/la8HrdZ8Y7lYEA4D/1APD1pamnDBq/EaDX6 my7DAoY8k2+fungBjkT7I+um/Jh4XbeQ+F3BEAI5vFB2jt4GIjob48Q5h3H8yE2rnbFl lTyOLyxPz1gaHej+c/9dsOG1Ov9iD5Z5DYKs2qBRBXSphDWMBrOpruDI3UJxkSOKLgH8 7SeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2jAma7SY/Fbj8Y2vawOeIT630/EsJq2wZfalJ6iLKMk=; b=yX1qTYtzjv5SovZGin78sdn2nA5Gs7VNXezl6SZuDVIaMeuMwJsvtwKqzLlws95IMc YIPz6HsEFCJOkMoORZkOMHnyyVsDaS9Hv8Fgyi1DC7WSv8c44LEJMSKf6ciKiPYGgnyl f2FCf+WgV0YmPWAXdx/xmW7gjARwQJK80eBuV/chEC53sf/XCWCeDJbkAkS/LJAVXbDn Bm0fqQQX4I9DM8Llvja1AefttSD6Esco5qE2Z2dvcjLIaP1AnG06oC4swmt35y24+hAa HtNbYI6bO9FiDoW4LO89XKj5VmTTLTIVPJNqjhZ6izG1C9J57eay4Yhoa22Nu1P6yYln u7ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a6CQDE6W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si8905812otq.188.2020.01.14.05.58.54; Tue, 14 Jan 2020 05:59:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a6CQDE6W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728869AbgANN6G (ORCPT + 99 others); Tue, 14 Jan 2020 08:58:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:45852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbgANN6F (ORCPT ); Tue, 14 Jan 2020 08:58:05 -0500 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31B9A214AF; Tue, 14 Jan 2020 13:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579010284; bh=4dlEZ5O6TRVm5SzbTpgu6LZbOg6cFR0SckRSi4OV/54=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=a6CQDE6Wezc/6DTSxV/pveS7LqpaHtIKkU+/Yedn2RNU6GB51gi0d5eEO+zOzl5rt D4RFGpRQeGE4fUKeWiZ4AOGvZ8uTyQy3g3rtaVeiAjBktgSGFLqZt1MqDWNaA7K704 QIz70Mvb6jFz3fO6dzqO3MOdMw5yoZeMGHBgXnvE= Received: by mail-qk1-f181.google.com with SMTP id d71so12171076qkc.0; Tue, 14 Jan 2020 05:58:04 -0800 (PST) X-Gm-Message-State: APjAAAXhPLZZVcI+KK4IJZWuFYeblzyD19dueXUjOiyaN3x6kbI5+Lde B/8EYqDDxxe+WBg+ws6HXoRscGy4C46IbNfF3A== X-Received: by 2002:a05:620a:135b:: with SMTP id c27mr20045737qkl.119.1579010283333; Tue, 14 Jan 2020 05:58:03 -0800 (PST) MIME-Version: 1.0 References: <1578642914-838-1-git-send-email-Anson.Huang@nxp.com> <20200113212735.GA9275@bogus> In-Reply-To: From: Rob Herring Date: Tue, 14 Jan 2020 07:57:52 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: clock: Convert i.MX8MQ to json-schema To: Anson Huang Cc: "mturquette@baylibre.com" , "sboyd@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-clk@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 7:25 PM Anson Huang wrote: > > Hi, Rob > > > Subject: Re: [PATCH 1/3] dt-bindings: clock: Convert i.MX8MQ to json-schema > > > > On Fri, Jan 10, 2020 at 03:55:12PM +0800, Anson Huang wrote: > > > Convert the i.MX8MQ clock binding to DT schema format using > > > json-schema > > > > > > Signed-off-by: Anson Huang > > > --- > > > .../devicetree/bindings/clock/imx8mq-clock.txt | 20 ------ > > > .../devicetree/bindings/clock/imx8mq-clock.yaml | 72 > > ++++++++++++++++++++++ > > > 2 files changed, 72 insertions(+), 20 deletions(-) delete mode > > > 100644 Documentation/devicetree/bindings/clock/imx8mq-clock.txt > > > create mode 100644 > > > Documentation/devicetree/bindings/clock/imx8mq-clock.yaml > > > > Fails 'make dt_binding_check': > > > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clock-names:0: 'ckil' was expected > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clock-names:1: 'osc_25m' was expected > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clock-names:2: 'osc_27m' was expected > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clock-names:3: 'clk_ext1' was expected > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clock-names:4: 'clk_ext2' was expected > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clock-names:5: 'clk_ext3' was expected > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clock-names: ['osc_32k', 'osc_24m', 'clk_ext1', > > 'clk_ext2', 'clk_ext3', 'clk_ext4'] is too short > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/clock/imx8mn- > > clock.example.dt.yaml: > > clock-controller@30380000: clocks: [[1], [2], [3], [4], [5], [6]] is too short > > I did NOT see build fail on my side, anything missed in my environment setup? The failure > log is for i.MX8MN, while this binding doc is i.MX8MQ, is it caused by the incorrect compatible > string which should be "fsl,imx8mq-ccm", but I made it "fsl,imx8mn-ccm" by mistake? Notice that the error is in imx8mn-clock.example.dt.yaml, not imx8mq-clock.example.dt.yaml. So you must have DT_SCHEMA_FILES set and yes it is due to the compatible being wrong. > > anson@anson-OptiPlex-790:~/workspace/stash/linux-next$ ./zeus.sh > *** Default configuration is based on 'defconfig' > # > # No change to .config > # > CHKDT Documentation/devicetree/bindings/clock/imx8mq-clock.yaml > SCHEMA Documentation/devicetree/bindings/processed-schema.yaml > DTC Documentation/devicetree/bindings/clock/imx8mq-clock.example.dt.yaml > CHECK Documentation/devicetree/bindings/clock/imx8mq-clock.example.dt.yaml