Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3501390pxt; Tue, 10 Aug 2021 05:16:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG8DDYQyixSolzNjlkeYsq1WulcF+P+M94Zy7ZmLoxlHnhLvA55BdHFr2ddpcsTg5wNUYA X-Received: by 2002:a17:906:19cc:: with SMTP id h12mr26623569ejd.386.1628597810413; Tue, 10 Aug 2021 05:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628597810; cv=none; d=google.com; s=arc-20160816; b=Rz1wwx/BJZhIgD2hjqpCM/wNvFgsG71R+bMfcCGDlQGB1jZ5c2xCi2uXgm/co9jUai o8ndNqoaoXTzJEHMS1zAVX4ZTta6rJ0sRvK7JDY9rPb4tojmRcilG/9Pt7VAGgXPqEu+ r3Le7N5CdruaSI+jfC42h1Vqrf+GmJeF1AJyS7xDnZ7jGpyW0vIb/HupTks+t8Xq1cWN LdLbaFuZ+f3pw7gmNpLNL/cDpdxkSYmmq325tZOvJbIjMQn7HFrh5opNvZeADnnVaQiP cuJOSU8l7Bj9u9iydhAjRP/f1F3LWOH0zdKGuqlfOqtZTEvRwAYdMYb/iE7mvhfwYqEP jpzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:to:subject:dkim-signature; bh=Zb9k3Do8UH3qn3sn2AlKhpSqbQkqQlpCnNSjGfc9k9c=; b=e52Ddx0JM74A2KGCw4qduy3dGP1YNGCDdw/uPMG5hK6uzbLeBeekMwdXF8WqyYBZYB w15gE1Yib55ht92m0xqe7SuSMJL8UkXrx3XWtFWwnZnn4d2XLhwaazrirAA7ci4ToD1l HQolDU5xgQ/Qqqq5P9cu2yHkoHoli5TaaODFd+jFtjNo6kcGEuL+bzktWitv7MB1Q2Zz T4AJgxJgQfh0KYj0Ij1yA3oCt5wdozj3RLO82MPuZgJ5zDCxFtWC6hpoYjkfn+pAJYHP HwACOrdlD7aIQA/4BURdNOtHf5IM2TArcY/55nZxAsvIl13yeQ00RHpedcgZ5gbdQFv5 b9cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=spfiA5W7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si10198737eju.350.2021.08.10.05.16.21; Tue, 10 Aug 2021 05:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=spfiA5W7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232523AbhHJIk2 (ORCPT + 99 others); Tue, 10 Aug 2021 04:40:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbhHJIk1 (ORCPT ); Tue, 10 Aug 2021 04:40:27 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8508AC061798 for ; Tue, 10 Aug 2021 01:40:05 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id r6so2904037wrt.4 for ; Tue, 10 Aug 2021 01:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Zb9k3Do8UH3qn3sn2AlKhpSqbQkqQlpCnNSjGfc9k9c=; b=spfiA5W7d8WHOw+nypnqhN8Jm92sP1oqScSPuN8M9p114V3aHIlpZpZpJykbNUKhZx Lm/ivYDIDY5iWa5CCAC1koBwhBO4to4DTSn0pm9xh2H+npHorXrHEqPV5GM7yHv+YJPe B6Oyfe3433bqrN08Sz4uTgVOjyi6yK3UTW56tFae5S7ViCpDeV7UbVx+uiXlI6QLX56p /txIwjHLr/L+1i8YaHzXYMrhhB7VPjmkFcKfV+L+tIjEet6Z6YwBe5cbEhIsQ7/ooxx5 dEl8IXAM0GK3qn5w6QEL3QXgbUU1JAsH6mIgcV9b9v4M5HgzJrRsCCE4NYfW+VLVprhf Wzdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Zb9k3Do8UH3qn3sn2AlKhpSqbQkqQlpCnNSjGfc9k9c=; b=nZYxIY6feVeHWuKa0HIP6G/eITSzLwW+u1tQFSWslLowd9Yu+2cFMmlmXhms2BLzQx RSrNcn1bP5AwQJQJ/WxADEs65p+6kdeRVo0Ci6/bFrs0N+r9D0UXRjrbKBYlC4zJuuD3 D8AD664jh/cxXgkOApEEtHvpPysX07rLWFMtx4dFJnprGA/9CRXxlu4T+Vgu7YubrMg1 ZiXoAOfjdqAgqzx8E1E3X5oGHWNf2NMxrEtidaqgtqTR9dQLrlYKYpc4NOpRGpSEWp9s kX+SWV02fFY8pdVLt4pUWtlpjRUsLo9FMkqc1v2PoMU8shpINBMIJpyccm/gnNf1PLzy gxgg== X-Gm-Message-State: AOAM5323exEhiv5ZDht3kQEI73CB9biNLYVEUn6RNjRnlrH9TMiDSOVp dCMI3YAI+IwutZDgcx4y/vHIu306EJX7Mg7K X-Received: by 2002:adf:e702:: with SMTP id c2mr2455wrm.397.1628584803556; Tue, 10 Aug 2021 01:40:03 -0700 (PDT) Received: from ?IPv6:2001:861:44c0:66c0:b710:2b6e:27aa:f0a0? ([2001:861:44c0:66c0:b710:2b6e:27aa:f0a0]) by smtp.gmail.com with ESMTPSA id j6sm7903532wms.44.2021.08.10.01.40.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Aug 2021 01:40:02 -0700 (PDT) Subject: Re: [PATCH 2/2] arm64: dts: amlogic: add support for Radxa Zero To: Christian Hewitt , Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210809131047.28047-1-christianshewitt@gmail.com> <20210809131047.28047-3-christianshewitt@gmail.com> From: Neil Armstrong Organization: Baylibre Message-ID: Date: Tue, 10 Aug 2021 10:40:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210809131047.28047-3-christianshewitt@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/08/2021 15:10, Christian Hewitt wrote: > Radxa Zero is a small form factor SBC based on the Amlogic S905Y2 > chipset that ships in a number of RAM/eMMC configurations: > > Boards with 512MB/1GB LPDDR4 RAM have no eMMC storage and BCM43436 > wireless (2.4GHz b/g/n) while 2GB/4GB boards have 8/16/32/64/128GB > eMMC storage and BCM4345 wireless (2.4/5GHz a/b/g/n/ac). > > - Amlogic S905Y2 quad-core Cortex-A53 > - Mali G31-MP2 GPU > - HDMI 2.1 output (micro) > - 1x USB 2.0 port - Type C (OTG) > - 1x USB 3.0 port - Type C (Host) > - 1x micro SD Card slot > - 40 Pin GPIO header > > Signed-off-by: Christian Hewitt > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../dts/amlogic/meson-g12a-radxa-zero.dts | 418 ++++++++++++++++++ > 2 files changed, 419 insertions(+) > create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index faa0a79a34f5..be308361e2f1 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -1,5 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_MESON) += meson-axg-s400.dtb > +dtb-$(CONFIG_ARCH_MESON) += meson-g12a-radxa-zero.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-g12a-sei510.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-g12a-u200.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-g12a-x96-max.dtb > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts > new file mode 100644 > index 000000000000..d44d3881d9b9 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts > @@ -0,0 +1,418 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2018 BayLibre SAS. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include "meson-g12a.dtsi" > +#include > +#include > + > +/ { > + compatible = "radxa,zero", "amlogic,g12a"; > + model = "Radxa Zero"; > + > + aliases { > + serial0 = &uart_AO; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x0 0x0 0x40000000>; > + }; > + > + cvbs-connector { > + status = "disabled"; > + compatible = "composite-video-connector"; > + > + port { > + cvbs_connector_in: endpoint { > + remote-endpoint = <&cvbs_vdac_out>; > + }; > + }; > + }; > + > + hdmi-connector { > + compatible = "hdmi-connector"; > + type = "a"; > + > + port { > + hdmi_connector_in: endpoint { > + remote-endpoint = <&hdmi_tx_tmds_out>; > + }; > + }; > + }; > + > + emmc_pwrseq: emmc-pwrseq { > + compatible = "mmc-pwrseq-emmc"; > + reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; > + }; > + > + sdio_pwrseq: sdio-pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; > + clocks = <&wifi32k>; > + clock-names = "ext_clock"; > + }; > + > + flash_1v8: regulator-flash_1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "FLASH_1V8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + vin-supply = <&vcc_3v3>; > + regulator-always-on; > + }; Drop this one and directly use vcc_1v8 regulator > + > + dc_in: regulator-dc_in { > + compatible = "regulator-fixed"; > + regulator-name = "DC_IN"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + } The name is AO_5V on the Schematics > + > + 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; > + }; > + > + vcc_5v: regulator-vcc_5v { > + compatible = "regulator-fixed"; > + regulator-name = "VCC_5V"; The name is "HDMI_PW" on the Schematics > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&dc_in>; > + > + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; > + enable-active-low; As the Schematics, the HDMI 5v is always on, no need for a GPIO control here, please replace with regulator-always-on; > + }; > + > + vddao_1v8: regulator-vddao_1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "VDDAO_1V8"; > + 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 = <&dc_in>; > + regulator-always-on; > + }; > + > + vddcpu: regulator-vddcpu { > + compatible = "pwm-regulator"; > + > + regulator-name = "VDDCPU"; > + regulator-min-microvolt = <721000>; > + regulator-max-microvolt = <1022000>; > + > + vin-supply = <&dc_in>; > + > + 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-ZERO"; > + 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>; > + status = "okay"; > + > + 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>; > + }; > + }; > + > + dai-link-4 { > + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; > + > + codec { > + sound-dai = <&hdmi_tx>; > + }; > + }; > + }; > + > + wifi32k: wifi32k { > + compatible = "pwm-clock"; > + #clock-cells = <0>; > + clock-frequency = <32768>; > + pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ > + }; > +}; > + > +&arb { > + status = "okay"; > +}; > + > +&cec_AO { > + pinctrl-0 = <&cec_ao_a_h_pins>; > + pinctrl-names = "default"; > + status = "disabled"; > + hdmi-phandle = <&hdmi_tx>; > +}; > + > +&cecb_AO { > + pinctrl-0 = <&cec_ao_b_h_pins>; > + pinctrl-names = "default"; > + status = "okay"; > + hdmi-phandle = <&hdmi_tx>; > +}; > + > +&clkc_audio { > + status = "okay"; > +}; > + > +&cpu0 { > + cpu-supply = <&vddcpu>; > + operating-points-v2 = <&cpu_opp_table>; > + clocks = <&clkc CLKID_CPU_CLK>; > + clock-latency = <50000>; > +}; > + > +&cpu1 { > + cpu-supply = <&vddcpu>; > + operating-points-v2 = <&cpu_opp_table>; > + clocks = <&clkc CLKID_CPU_CLK>; > + clock-latency = <50000>; > +}; > + > +&cpu2 { > + cpu-supply = <&vddcpu>; > + operating-points-v2 = <&cpu_opp_table>; > + clocks = <&clkc CLKID_CPU_CLK>; > + clock-latency = <50000>; > +}; > + > +&cpu3 { > + cpu-supply = <&vddcpu>; > + operating-points-v2 = <&cpu_opp_table>; > + clocks = <&clkc CLKID_CPU_CLK>; > + clock-latency = <50000>; > +}; > + > +&cvbs_vdac_port { > + cvbs_vdac_out: endpoint { > + remote-endpoint = <&cvbs_connector_in>; > + }; > +}; > + > +&frddr_a { > + status = "okay"; > +}; > + > +&frddr_b { > + status = "okay"; > +}; > + > +&frddr_c { > + status = "okay"; > +}; > + > +&hdmi_tx { > + status = "okay"; > + pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; > + pinctrl-names = "default"; > + hdmi-supply = <&vcc_5v>; > +}; > + > +&hdmi_tx_tmds_port { > + hdmi_tx_tmds_out: endpoint { > + remote-endpoint = <&hdmi_connector_in>; > + }; > +}; > + > +&ir { > + status = "disabled"; > + pinctrl-0 = <&remote_input_ao_pins>; > + pinctrl-names = "default"; > +}; > + > +&pwm_AO_cd { > + pinctrl-0 = <&pwm_ao_d_e_pins>; > + pinctrl-names = "default"; > + clocks = <&xtal>; > + clock-names = "clkin1"; > + status = "okay"; > +}; > + > +&pwm_ef { > + status = "okay"; > + pinctrl-0 = <&pwm_e_pins>; > + pinctrl-names = "default"; > + clocks = <&xtal>; > + clock-names = "clkin0"; > +}; > + > +&saradc { > + status = "okay"; > + vref-supply = <&vddao_1v8>; > +}; > + > +/* SDIO */ > +&sd_emmc_a { > + status = "okay"; > + pinctrl-0 = <&sdio_pins>; > + pinctrl-1 = <&sdio_clk_gate_pins>; > + pinctrl-names = "default", "clk-gate"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + bus-width = <4>; > + cap-sd-highspeed; > + sd-uhs-sdr50; > + max-frequency = <100000000>; > + > + non-removable; > + disable-wp; > + > + /* WiFi firmware requires power to be kept while in suspend */ > + keep-power-in-suspend; > + > + mmc-pwrseq = <&sdio_pwrseq>; > + > + vmmc-supply = <&vddao_3v3>; > + vqmmc-supply = <&vddao_1v8>; > + > + brcmf: wifi@1 { > + reg = <1>; > + compatible = "brcm,bcm4329-fmac"; > + interrupts = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>; > + interrupt-names = "host-wake"; > + }; > +}; > + > +/* SD card */ > +&sd_emmc_b { > + status = "okay"; > + pinctrl-0 = <&sdcard_c_pins>; > + pinctrl-1 = <&sdcard_clk_gate_c_pins>; > + pinctrl-names = "default", "clk-gate"; > + > + bus-width = <4>; > + cap-sd-highspeed; > + max-frequency = <100000000>; > + disable-wp; > + > + cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; > + vmmc-supply = <&vddao_3v3>; > + vqmmc-supply = <&vddao_3v3>; > +}; > + > +/* eMMC */ > +&sd_emmc_c { > + status = "okay"; > + pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>; > + pinctrl-1 = <&emmc_clk_gate_pins>; > + pinctrl-names = "default", "clk-gate"; > + > + bus-width = <8>; > + cap-mmc-highspeed; > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > + max-frequency = <200000000>; > + disable-wp; > + > + mmc-pwrseq = <&emmc_pwrseq>; > + vmmc-supply = <&vcc_3v3>; > + vqmmc-supply = <&flash_1v8>; > +}; > + > +&tdmif_b { > + status = "okay"; > +}; > + > +&tdmout_b { > + status = "okay"; > +}; > + > +&tohdmitx { > + status = "okay"; > +}; > + > +&uart_A { > + status = "okay"; > + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; > + pinctrl-names = "default"; > + uart-has-rtscts; > + > + bluetooth { > + compatible = "brcm,bcm43438-bt"; > + shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; > + max-speed = <2000000>; > + clocks = <&wifi32k>; > + clock-names = "lpo"; > + }; > +}; > + > +&uart_AO { > + status = "okay"; > + pinctrl-0 = <&uart_ao_a_pins>; > + pinctrl-names = "default"; > +}; > + > +&usb { > + status = "okay"; > + dr_mode = "host"; > +}; > Type-C controller is missing, something like was done on libretech-pc: typec2_vbus: regulator-typec2_vbus { typec2_vbus: regulator-typec2_vbus { compatible = "regulator-fixed"; regulator-name = "TYPEC2_VBUS"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; vin-supply = <&vcc5v>; gpio = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>; enable-active-high; }; &ao_pinctrl { /* * Make sure the irq pin of the TYPE C controller is not driven * by the SoC. */ fusb302_irq_pins: fusb302_irq { mux { groups = "GPIOAO_5"; function = "gpio_aobus"; bias-pull-up; output-disable; }; }; }; &i2c3 { status = "okay"; pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; pinctrl-names = "default"; fusb302@22 { compatible = "fcs,fusb302"; reg = <0x22>; pinctrl-0 = <&fusb302_irq_pins>; pinctrl-names = "default"; interrupt-parent = <&gpio_intc>; interrupts = <5 IRQ_TYPE_LEVEL_LOW>; vbus-supply = <&typec2_vbus>; status = "okay"; }; }; &usb2_phy0 { phy-supply = <&typec2_vbus>; }; &usb3_pcie_phy { phy-supply = <&typec2_vbus>; }; But, seems polarity swapping via GPIO is not implemented in drivers/usb/typec/tcpm/fusb302.c so no idea how to handle GPIOAO_6 for USB3 polarity control... 717 static int tcpm_set_polarity(struct tcpc_dev *dev, 718 enum typec_cc_polarity polarity) 719 { 720 return 0; 721 } Repost with regulator changes, TypeC stuff is not mandatory for v1. Thanks, Neil