From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56928ECAAA1 for ; Thu, 15 Sep 2022 15:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0imkMh7hB45MbBp4+6S2ikMLc+5B1gtWQIhuq1olLLU=; b=XXsSd+N8xpoNhs dP2tq/5Qd8A1dLcIYvIxzaD5MxbJh9h82MeLHLTbAv+4TviN4MoHQ8AlgJiQXdwAGcnVgtXoAlUQd Uer98lLRGs3vOoiOEysp1wsEj61MjidblE1haFC2MaUzdh8Va0vlytE1k6lZd/xmalYWZ4sAwexEc 6kdjrPWY9SrjFeM89oNc9vKz79lSu3FqgPBGCKCsKob7REF7mG7I+1GQ5FLf27r6QJ9iOYspCvm4L v3HJmlpeC2RtClKJLSu3vTyeJPk9GTjoiGM9KInv6xKW7fwHblsLlVCiMtU5ih3l67mFThHv3V7Zb mJ61xGXLB8adkGxHeH2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYqTC-00BmCm-Kl; Thu, 15 Sep 2022 15:08:02 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYqT8-00Bm9z-QY for linux-arm-kernel@lists.infradead.org; Thu, 15 Sep 2022 15:08:00 +0000 Received: by mail-wm1-x335.google.com with SMTP id ay7-20020a05600c1e0700b003b49861bf48so3961525wmb.0 for ; Thu, 15 Sep 2022 08:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=9mQUaPNceis8qparWDkrLv2BKnQ9SmM81stuAhhbzew=; b=LsQo2JpTUkhTzfuDrJ9y/4GnGKTFwHW/PSWLYrWtomRbBWYjPZM14GvphXRuD7cPBp k3JZ+7US/WNPMpgGXXwWecEDpG/BAvoYLpVJKNKVvQr+ezEuGx4gzqSMsVaF/Uotbwpj dF3HxM8tD1HpTdAuiw4AdS00lvRWOBZP/FAQ1ekdtvTTikxyAoXPGZT/ocVSemAbMnV+ XFbG2AKYu/mvIPw9EgzPG2cLjvqbHSDNeXELIuoYPpjCeehPx5EN7xVHiyZDO/J8ArY7 iPln6G8fXhIaBuBbEARnBetbMcZrFpMkLXHmfmpqC3fCdbp0gi6CVp9TCgKi0/CLPxg9 vk8w== 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:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=9mQUaPNceis8qparWDkrLv2BKnQ9SmM81stuAhhbzew=; b=Fn1FSa8uf0FT0nb5UOx0SAxWt72btFjivpxLOGZ34DgqF20IFiAFVK7W2JC4VW5dz+ Wgys0Q0vYL6Nv42zMKgMGwSW6PzP5N6lKjZW5bB/SzuCaaNxauu/n8gv16zVaQ+NymLy FtyxcDPk5qghPZxTldzdEu33Vceljmjltf3kS3b47K27SDsRLZUBIvZarh2BA/MarBeF Fd4U0RanR75SMcOyxMj10hn6yqYZdrnjNdB4lZ5WK0RGHc1sdebO4lDK82NrCXpCYwUA u8tkV2EwouUnrVrMhFSuhzbRi7/BfW1jjtOiMI47KXXNJ4YZ8Tg/C4b1dsupWNWAsjd/ gb+A== X-Gm-Message-State: ACgBeo272XR3JM9TrOBToXO9ZOTc15Zun2V+X9wihJoobFZgc1Bpl0EA GwjbTn8DBhMvXLcN4MMqJtxt/w== X-Google-Smtp-Source: AA6agR7MonZjlHNMXwe0IaiZO8G7Nw83j+6yzFvN9UU8Qb8D8xG5Ma8HaDtaJ4b0KHXmzJd/VpiUAw== X-Received: by 2002:a05:600c:4c22:b0:3b4:766a:4f76 with SMTP id d34-20020a05600c4c2200b003b4766a4f76mr6708741wmp.101.1663254475376; Thu, 15 Sep 2022 08:07:55 -0700 (PDT) Received: from [10.119.22.201] ([89.101.193.72]) by smtp.gmail.com with ESMTPSA id h4-20020a5d5044000000b00228d67db06esm2904974wrt.21.2022.09.15.08.07.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Sep 2022 08:07:54 -0700 (PDT) Message-ID: Date: Thu, 15 Sep 2022 16:07:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] Changes phy configuration to expose sata in place of usb3 on quartz64-a board Content-Language: en-US To: Alessandro Carminati , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: From: Krzysztof Kozlowski In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220915_080758_905314_C648059C X-CRM114-Status: GOOD ( 23.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 14/09/2022 20:59, Alessandro Carminati wrote: > The Quartz64 board is built upon Rockchip RK3566. > Rockchip RK3566 has two combo phys. > The first connects USB3 and SATA ctrl1, and the second PCIe lane and SATA > ctrl2. > The second combo phy is hardwired to the PCIe slot, where for the first, > the hardware on the board provides both the USB3 connector and the SATA > connector. > This DT allows the users to switch the combo phy to the SATA connector. > > Signed-off-by: Alessandro Carminati > --- > .../dts/rockchip/rk3566-quartz64-a.sata.dts | 839 ++++++++++++++++++ > 1 file changed, 839 insertions(+) > create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.sata.dts > > diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.sata.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.sata.dts > new file mode 100644 > index 000000000000..6ac21b729be7 > --- /dev/null > +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.sata.dts > @@ -0,0 +1,839 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +/dts-v1/; > + > +#include > +#include > +#include > +#include "rk3566.dtsi" > + > +/ { > + model = "Pine64 RK3566 Quartz64-A Board"; > + compatible = "pine64,quartz64-a", "rockchip,rk3566"; > + > + aliases { > + ethernet0 = &gmac1; > + mmc0 = &sdmmc0; > + mmc1 = &sdhci; > + }; > + > + chosen: chosen { > + stdout-path = "serial2:1500000n8"; > + }; > + > + gmac1_clkin: external-gmac1-clock { > + compatible = "fixed-clock"; > + clock-frequency = <125000000>; > + clock-output-names = "gmac1_clkin"; > + #clock-cells = <0>; > + }; > + > + fan: gpio_fan { No underscores in node names. Node name just "fan" > + compatible = "gpio-fan"; > + gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; > + gpio-fan,speed-map = <0 0 > + 4500 1>; > + pinctrl-names = "default"; > + pinctrl-0 = <&fan_en_h>; > + #cooling-cells = <2>; > + }; > + > + hdmi-con { Node name: connector > + compatible = "hdmi-connector"; > + type = "a"; > + > + port { > + hdmi_con_in: endpoint { > + remote-endpoint = <&hdmi_out_con>; > + }; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led-work { > + label = "work-led"; > + default-state = "off"; > + gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&work_led_enable_h>; > + retain-state-suspended; > + }; > + > + led-diy { > + label = "diy-led"; > + default-state = "on"; > + gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + pinctrl-names = "default"; > + pinctrl-0 = <&diy_led_enable_h>; > + retain-state-suspended; > + }; > + }; > + > + rk817-sound { > + compatible = "simple-audio-card"; > + simple-audio-card,format = "i2s"; > + simple-audio-card,name = "Analog RK817"; > + simple-audio-card,mclk-fs = <256>; > + > + simple-audio-card,cpu { > + sound-dai = <&i2s1_8ch>; > + }; > + > + simple-audio-card,codec { > + sound-dai = <&rk817>; > + }; > + }; > + > + sdio_pwrseq: sdio-pwrseq { > + compatible = "mmc-pwrseq-simple"; > + clocks = <&rk817 1>; > + clock-names = "ext_clock"; > + pinctrl-names = "default"; > + pinctrl-0 = <&wifi_enable_h>; > + post-power-on-delay-ms = <100>; > + power-off-delay-us = <5000000>; > + reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>; > + }; > + > + spdif_dit: spdif-dit { > + compatible = "linux,spdif-dit"; > + #sound-dai-cells = <0>; > + }; > + > + spdif_sound: spdif-sound { > + compatible = "simple-audio-card"; > + simple-audio-card,name = "SPDIF"; > + > + simple-audio-card,cpu { > + sound-dai = <&spdif>; > + }; > + > + simple-audio-card,codec { > + sound-dai = <&spdif_dit>; > + }; > + }; > + > + vcc12v_dcin: vcc12v_dcin { No underscores in node names, generic node name, so at least with regulator prefix or suffix. > + compatible = "regulator-fixed"; > + regulator-name = "vcc12v_dcin"; > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <12000000>; > + regulator-max-microvolt = <12000000>; > + }; > + > + /* vbus feeds the rk817 usb input. > + * With no battery attached, also feeds vcc_bat+ > + * via ON/OFF_BAT jumper > + */ > + vbus: vbus { Ditto > + compatible = "regulator-fixed"; > + regulator-name = "vbus"; > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc12v_dcin>; > + }; > + > + vcc3v3_pcie_p: vcc3v3-pcie-p-regulator { And here you have suffix... > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_enable_h>; > + regulator-name = "vcc3v3_pcie_p"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc_3v3>; > + }; > + > + vcc5v0_usb: vcc5v0_usb { Ditto > + compatible = "regulator-fixed"; > + regulator-name = "vcc5v0_usb"; > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc12v_dcin>; > + }; > + > + /* all four ports are controlled by one gpio > + * the host ports are sourced from vcc5v0_usb > + * the otg port is sourced from vcc5v0_midu > + */ > + vcc5v0_usb20_host: vcc5v0_usb20_host { and in other places as well > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&vcc5v0_usb20_host_en>; > + regulator-name = "vcc5v0_usb20_host"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc5v0_usb>; > + }; > + > + vcc5v0_usb20_otg: vcc5v0_usb20_otg { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; > + regulator-name = "vcc5v0_usb20_otg"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&dcdc_boost>; > + }; > + > + vcc3v3_sd: vcc3v3_sd { > + compatible = "regulator-fixed"; > + enable-active-low; > + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; > + pinctrl-names = "default"; > + pinctrl-0 = <&vcc_sd_h>; > + regulator-boot-on; > + regulator-name = "vcc3v3_sd"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc_3v3>; > + }; > + > + /* sourced from vbus and vcc_bat+ via rk817 sw5 */ > + vcc_sys: vcc_sys { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_sys"; > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <4400000>; > + regulator-max-microvolt = <4400000>; > + vin-supply = <&vbus>; > + }; > + > + /* sourced from vcc_sys, sdio module operates internally at 3.3v */ > + vcc_wl: vcc_wl { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_wl"; > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc_sys>; > + }; > +}; > + > +&combphy1 { > + status = "okay"; > +}; > + > +&combphy2 { > + status = "okay"; > +}; > + > +&cpu0 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cpu1 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cpu2 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cpu3 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cpu_thermal { > + trips { > + cpu_hot: cpu_hot { No underscores in node names. Are you sure bindings/schema do not expect some specific name? > + temperature = <55000>; > + hysteresis = <2000>; > + type = "active"; > + }; > + }; Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel