Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B3C1C38142 for ; Fri, 27 Jan 2023 12:34:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233401AbjA0MeU (ORCPT ); Fri, 27 Jan 2023 07:34:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233671AbjA0MeM (ORCPT ); Fri, 27 Jan 2023 07:34:12 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B1A36F22F for ; Fri, 27 Jan 2023 04:34:09 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id h16so4803672wrz.12 for ; Fri, 27 Jan 2023 04:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=k1URz68eQuw6BvmlarR/Wy9VoAKxS4hcNfkdqGMFD4Q=; b=BKEvzzjzFtYLakq/1Og7eAdhh/6Cv97E6U/SDTwq9dj7uYd7S7w4ExU1xiS+jjrzqj A74v3iVq5sMmSIG6v4Kp062GsuvAQszxw/YSEvTuLBkY4dnzNVv+D2nHfaYoyx5dRkSN yJKbF8xTdj1ECvVPMfydvYtD7OecpobHNQD69wcm0eQ7JlYUcm+M3j9ZcrddaWct0uEx 3OqnGukN17UG23WOO/udoWL5va9psrPJLGK3KylVLV117nyEOJHRpLG/2lKJ82tfpDHj s11bRhGPv4GvAm0q4+ZJT7YcapQ7lU9CP3WLMSrC4jjj4H2Wwswgqeq7gtNPyIHnMUkT 8MGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=k1URz68eQuw6BvmlarR/Wy9VoAKxS4hcNfkdqGMFD4Q=; b=KQFv6urOYVicLHn5vLvPKhoyZOt9v1LjlSbksopuL9ZS2NOIbrZLmqtAsEmFZUKcMS ihWLFXPIrpO1bSWalWdFAaj4EkOZS4/55IFEkmCwuFxTV+T/Lq9OJxCTJKaHeo4L8oM7 2LZjw2XGlp7wdwPHw7bmWwXjvC3ZywylRCURbPPPuSoOQD7SV4zEppA6Klk1DYAF75oP 2sjAvKoWTc+E6fwko2Mrssz+LbSxoPLmHMjVV+cwHMWanS6DH/WKL2JgHeyMu22zf66E TpoOU+ewZNgcOSkAp9lbQrVh24tJsvmhvoAAiJkEu87AFoeBe1eyhNozyR3tvzXtNyBJ wM0w== X-Gm-Message-State: AO0yUKUIUFF/TqSyaaOkU5tuOkdGAW/We7vkFQLrlztOx/GRp0p0Lxi0 PNajuedT4TlPZBw6MEOUHiOhQQ== X-Google-Smtp-Source: AK7set9BVInh49TL8/zidYl7KCLe745idGmKH325ZWj+lF9TbSqwqh/zxObUIJRA0kgHeH00a0aoNw== X-Received: by 2002:adf:df85:0:b0:2bf:bfc1:f622 with SMTP id z5-20020adfdf85000000b002bfbfc1f622mr7243610wrl.64.1674822847593; Fri, 27 Jan 2023 04:34:07 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id y17-20020adffa51000000b002238ea5750csm4817765wrr.72.2023.01.27.04.34.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Jan 2023 04:34:07 -0800 (PST) Message-ID: Date: Fri, 27 Jan 2023 13:34:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 2/2] arm64: dts: meson: add support for Radxa Zero2 Content-Language: en-US To: Christian Hewitt , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Yuntian Zhang References: <20230127110928.3387654-1-christianshewitt@gmail.com> <20230127110928.3387654-2-christianshewitt@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230127110928.3387654-2-christianshewitt@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/01/2023 12:09, Christian Hewitt wrote: > From: Yuntian Zhang > > Radxa Zero2 is a small form factor SBC based on the Amlogic A311D > chipset that ships in a number of eMMC configurations: > Thank you for your patch. There is something to discuss/improve. > + sdio_pwrseq: sdio-pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; > + clocks = <&wifi32k>; > + clock-names = "ext_clock"; > + }; > + > + ao_5v: regulator-ao_5v { No underscores in node names. > + compatible = "regulator-fixed"; > + regulator-name = "AO_5V"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + }; > + > + vcc_1v8: regulator-vcc_1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "VCC_1V8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + vin-supply = <&vcc_3v3>; > + regulator-always-on; > + }; > + > + vcc_3v3: regulator-vcc_3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "VCC_3V3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vddao_3v3>; > + regulator-always-on; > + /* FIXME: actually controlled by VDDCPU_B_EN */ > + }; > + > + vddao_1v8: regulator-vddao_1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "VDDIO_AO1V8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + vin-supply = <&vddao_3v3>; > + regulator-always-on; > + }; > + > + vddao_3v3: regulator-vddao_3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "VDDAO_3V3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&ao_5v>; > + regulator-always-on; > + }; > + > + vddcpu_a: regulator-vddcpu-a { > + /* > + * MP8756GD Regulator. > + */ > + compatible = "pwm-regulator"; > + > + regulator-name = "VDDCPU_A"; > + regulator-min-microvolt = <730000>; > + regulator-max-microvolt = <1022000>; > + > + pwm-supply = <&ao_5v>; > + > + pwms = <&pwm_ab 0 1250 0>; > + pwm-dutycycle-range = <100 0>; > + > + regulator-boot-on; > + regulator-always-on; > + }; > + > + vddcpu_b: regulator-vddcpu-b { > + /* > + * Silergy SY8120B1ABC Regulator. > + */ > + compatible = "pwm-regulator"; > + > + regulator-name = "VDDCPU_B"; > + regulator-min-microvolt = <730000>; > + regulator-max-microvolt = <1022000>; > + > + pwm-supply = <&ao_5v>; > + > + pwms = <&pwm_AO_cd 1 1250 0>; > + pwm-dutycycle-range = <100 0>; > + > + regulator-boot-on; > + regulator-always-on; > + }; > + > + sound { > + compatible = "amlogic,axg-sound-card"; > + model = "RADXA-ZERO2"; > + audio-aux-devs = <&tdmout_b>; > + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", > + "TDMOUT_B IN 1", "FRDDR_B OUT 1", > + "TDMOUT_B IN 2", "FRDDR_C OUT 1", > + "TDM_B Playback", "TDMOUT_B OUT"; > + > + assigned-clocks = <&clkc CLKID_MPLL2>, > + <&clkc CLKID_MPLL0>, > + <&clkc CLKID_MPLL1>; > + assigned-clock-parents = <0>, <0>, <0>; > + assigned-clock-rates = <294912000>, > + <270950400>, > + <393216000>; > + > + dai-link-0 { > + sound-dai = <&frddr_a>; > + }; > + > + dai-link-1 { > + sound-dai = <&frddr_b>; > + }; > + > + dai-link-2 { > + sound-dai = <&frddr_c>; > + }; > + > + /* 8ch hdmi interface */ > + dai-link-3 { > + sound-dai = <&tdmif_b>; > + dai-format = "i2s"; > + dai-tdm-slot-tx-mask-0 = <1 1>; > + dai-tdm-slot-tx-mask-1 = <1 1>; > + dai-tdm-slot-tx-mask-2 = <1 1>; > + dai-tdm-slot-tx-mask-3 = <1 1>; > + mclk-fs = <256>; > + > + codec { > + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; > + }; > + }; > + > + /* hdmi glue */ > + dai-link-4 { > + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; > + > + codec { > + sound-dai = <&hdmi_tx>; > + }; > + }; > + }; > + > + wifi32k: wifi32k { Generic node names, so clock-0 or clock-xyz Best regards, Krzysztof