Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8653779rwp; Wed, 19 Jul 2023 13:12:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlGQT2OuJEnWlfwCH4+v14ysOGJMEfM+6NlL7OKy9uj01jakze+TlJ4GeU02aKeK6NVmo0Fm X-Received: by 2002:ac2:5a0c:0:b0:4fc:3755:37d9 with SMTP id q12-20020ac25a0c000000b004fc375537d9mr676353lfn.68.1689797523152; Wed, 19 Jul 2023 13:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689797523; cv=none; d=google.com; s=arc-20160816; b=GyUz0kTuo/Ek70ENqUyHO0AsYB037nla+eCivog4Hk4aL1j2xV1eGYcoTt+DnOl5Cv mvnZ1oH/WAJbKEM9qg616qHXTyxEWpS/wmuJZMWFhCka6IgYLzzhQVGTqTTUpky5GBY2 2G09x7X461zxTIVuOa4U03WgUXc4vN1HIffo4nDNb6c50jTMjjO/jjEbqzF7OACeyeZi EC8HIoHCrIM1y4VAbtmqdtP9SAmMjTxUiQgmAIG3VBII0KZ750iwau+TdoCUUSOvUyXA Saz8b2nvniYiQYssKlvSOuo/vhb9byRI7q6uu6OMMAYLNghpnP+F6Inz3NTBLEWNsE2R snoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+blPZKyB9kQFw2yoby4zINVsIsHNl22npZY9ACzq+7M=; fh=td/jtXuATnT5cUY5jXEFngUlp8LqcyksTF/AjP+k1b4=; b=uZJruLgOqnh29sipZx8XE9mIyjospajgTLoZ6IozFn9OWfzhoMdBOgi/rxQXRmRJXm B36n79XrYKu6VHdGNXvAVAVpiShAqpcRsxl9LlIzfsI5r7IxmV+nkD0JScrkMyX7x16v E2LZaXTNrES2YsIOHb1TUQ/4dnyzDNtbNNcovy9a4HkHAFItlleSIPZmVsE0FzGJb4Cj ScEZK6CgKeTJ08CAv2NOCfx5rol8gGkeN+MY2/dgoZY5/eqtjTSoAe0TMdl0X9hErg3t 80y5TV7T6zqYAcdNxABT2r1h8T9QJmULW5Oo44BNfkNf0K9j8DYIsjjVFY9OwDHxy4FG tDgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bk8lvJ6g; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020aa7de82000000b0051e19396481si3339169edv.11.2023.07.19.13.11.38; Wed, 19 Jul 2023 13:12: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=bk8lvJ6g; 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 S230464AbjGSTYp (ORCPT + 99 others); Wed, 19 Jul 2023 15:24:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjGSTYo (ORCPT ); Wed, 19 Jul 2023 15:24:44 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D277B2100 for ; Wed, 19 Jul 2023 12:24:23 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3159da54e95so6453986f8f.3 for ; Wed, 19 Jul 2023 12:24:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689794662; x=1692386662; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+blPZKyB9kQFw2yoby4zINVsIsHNl22npZY9ACzq+7M=; b=bk8lvJ6g3z6EPgXbtKn2Fzd23CEOBNs5B1l2gctQmMUF7pzcwOKdqAWXywZ2qlO7Zs KZzMKMmfo8R16jLokoMrLIoWfIK/sQCjrsHJgrN40ivwJoeT1TrqcpbDzqDWvTweDkTL xJbOQNl8Zd07wwRany4lpu7oJJ9YB7Ff7Wsalr5En8vLMJNti0/m0E5bawSpG0CdndEh x4/QDJlDfCPB1gcsIwcB8GnipJUR4Dvq3xLMLbjDvgOcT1lyJxFO234K/82SS5fWLJdp PCGwe5bHlKCoFZi1MVy+rMZ89QxOsG5LWxf5XXIJh+xa5dG6Y7dWwlf7sas/pzNs0P+Z 32tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689794662; x=1692386662; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+blPZKyB9kQFw2yoby4zINVsIsHNl22npZY9ACzq+7M=; b=kVNlnL74+nJIcg8h7eq4MeaxZJxvdb03NKHcycVy11eq0DXZ/3Mc7J0hcHV1pGbwTT JyncL8n0jXGcvGPTuVYSm+UviP5oX47Jsfs032PY+HrpfaCeuvDjCTkbf38ThhECLCsw SKzIrS1Y5QvunUwG8CdZ5aEk/Y2f2uPBeGHwNMYPaqjrTZNVchcCwZCuTQ808vd6gE5r lravBtF75WUNfNioLwsFtNu2/PwMQsg13SWfI+p0A4UnbbW2/ENFOtE/604kcVLnxmAQ NvoHLelWksJheKgOnyqEFugE9Q3Z1S/utS+6A9bWUfd7lRAefZZD0b1txJSexpMJCUu0 v6Yw== X-Gm-Message-State: ABy/qLYTWRj0FL9suIlRKTszUlYONLiqqUsARmrNcHxflgfLeuJQca7b 83yes3GohElo+tAMpM0DDjrwlw== X-Received: by 2002:a5d:538d:0:b0:314:4915:689 with SMTP id d13-20020a5d538d000000b0031449150689mr642273wrv.34.1689794662315; Wed, 19 Jul 2023 12:24:22 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id p1-20020adff201000000b003141f3843e6sm6005395wro.90.2023.07.19.12.24.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jul 2023 12:24:21 -0700 (PDT) Message-ID: <792641d2-3a27-4f87-fa90-2490a302685e@linaro.org> Date: Wed, 19 Jul 2023 21:24:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] ARM: dts: imx6qdl: Add Variscite VAR-SOM-MX6 SoM support Content-Language: en-US To: James Hilliard Cc: devicetree@vger.kernel.org, Gregory CLEMENT , Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230719160048.2737423-1-james.hilliard1@gmail.com> <03748443-0459-c925-ce76-33ec134a303d@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 On 19/07/2023 20:57, James Hilliard wrote: > On Wed, Jul 19, 2023 at 11:16 AM Krzysztof Kozlowski > wrote: >> >>> + >>> +/ { >>> + model = "Variscite i.MX6 QUAD/DUAL VAR-SOM-MX6"; >>> + compatible = "fsl,imx6q"; >> >> That's not correct compatible. It's not Imx6 soc. It's a som. > > I'm confused, AFAIU the VAR-SOM-MX6 uses an imx6q SoC. True, I should say - that's incomplete compatible. You claim here this is imx6q. Not that it uses imx6q... Add your own compatible and document all of them. > >> >>> +... >>> + >>> + sound: sound { >>> + compatible = "simple-audio-card"; >>> + simple-audio-card,name = "var-som-audio"; >>> + simple-audio-card,format = "i2s"; >>> + simple-audio-card,bitclock-master = <&sound_codec>; >>> + simple-audio-card,frame-master = <&sound_codec>; >>> + simple-audio-card,widgets = "Headphone", "Headphone Jack", >>> + "Line", "Line In", "Microphone", "Mic Jack"; >>> + simple-audio-card,routing = "Headphone Jack", "HPLOUT", >>> + "Headphone Jack", "HPROUT", >>> + "LINE1L", "Line In", >>> + "LINE1R", "Line In"; >>> + >>> + sound_cpu: simple-audio-card,cpu { >>> + sound-dai = <&ssi2>; >>> + }; >>> + >>> + sound_codec: simple-audio-card,codec { >>> + sound-dai = <&tlv320aic3106>; >>> + clocks = <&clks IMX6QDL_CLK_CKO>; >>> + }; >>> + }; >>> + >>> + wlan_bt_rfkill { >> >> No underscores in node names. >> >> Just "rfkill" >> >> >>> + compatible = "rfkill-gpio"; >>> + name = "wlan_bt_rfkill"; >>> + type = <2>; /* bluetooth */ >>> + gpios = <&gpio6 18 GPIO_ACTIVE_HIGH>; >>> + }; >>> +}; >>> + >> >> ... >> >>> + tlv320aic3106: codec@1b { >>> + compatible = "ti,tlv320aic3106"; >>> + reg = <0x1b>; >>> + #sound-dai-cells = <0>; >>> + DRVDD-supply = <®_3p3v>; >>> + AVDD-supply = <®_3p3v>; >>> + IOVDD-supply = <®_3p3v>; >>> + DVDD-supply = <®_3p3v>; >>> + ai3x-ocmv = <0>; >>> + reset-gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; >>> + ai3x-gpio-func = < >>> + 0 /* AIC3X_GPIO1_FUNC_DISABLED */ >>> + 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */ >>> + >; >>> + }; >>> +}; >>> + >>> +&iomuxc { >>> + pinctrl-names = "default"; >>> + pinctrl-0 = <&pinctrl_hog>; >>> + >>> + imx6qdl-var-som-mx6 { >>> + pinctrl_hog: hoggrp { >>> + fsl,pins = < >>> + /* CTW6120 IRQ */ >>> + MX6QDL_PAD_EIM_DA7__GPIO3_IO07 0x80000000 >>> + /* SDMMC2 CD/WP */ >>> + MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x80000000 >>> + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x80000000 >>> + >; >>> + }; >>> + >>> + pinctrl_audmux: audmux { >> >> It does not look like you tested the DTS against bindings. Please run >> `make dtbs_check` (see >> Documentation/devicetree/bindings/writing-schema.rst or >> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ >> for instructions). >> >> AFAIR, all of them end with grp > > Ah, that's def throwing a bunch of warnings, although quite a few look > to be existing > issues in dependent dtsi files. I'll clean up what I can there. > >> >> >> ... >> >>> + >>> +&usdhc3 { >>> + pinctrl-names = "default", "state_100mhz", "state_200mhz"; >>> + pinctrl-0 = <&pinctrl_usdhc3>; >>> + pinctrl-1 = <&pinctrl_usdhc3_100mhz>; >>> + pinctrl-2 = <&pinctrl_usdhc3_200mhz>; >>> + bus-width = <4>; >>> + vmmc-supply = <®_wl18xx_vmmc>; >>> + non-removable; >>> + wakeup-source; >>> + keep-power-in-suspend; >>> + cap-power-off-card; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + status = "okay"; >>> + >>> + wlcore: wlcore@0 { >> >> Generic node names. Is this wifi? > > I think it also supports bluetooth technically, although that might be > under a different node. > Bluetooths are usually under serial, so this is just wifi. Best regards, Krzysztof