Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp420317rdb; Sat, 17 Feb 2024 15:19:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVzoFNju2bL64T3ai04WtLYxp0s6iSSVviVhKBRcuf2y/V+6ZiyVjl+cB6SZ76TpBoJHRfvqU1W1D3UuglnMk/NF7u2/HdtChg91qXh2Q== X-Google-Smtp-Source: AGHT+IHjd+J9rYFAAIOuLGXQIs+WGR2w4Zx1WtN+Vgugc1Ut/4TkDdC7+TzVI+9N3Xjyui/OSEjF X-Received: by 2002:a05:6808:200a:b0:3c1:54c9:be6b with SMTP id q10-20020a056808200a00b003c154c9be6bmr178501oiw.46.1708211979709; Sat, 17 Feb 2024 15:19:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708211979; cv=pass; d=google.com; s=arc-20160816; b=FQ0+2mo6N1wzO7k6CkGmFeDivVd2SI3sP0UpG8ESwQBzFuFzbJJvifjXTHPHotIftj 0pL3dhScAV7L6sNqJz1dPoyBJMQzwbJV41XZ4EpHfnQfGocwTHIoD7OtH4TcZTQmenEG FbIfOayLSbKGvghUV4NX/WUl2Eo4hLJeTNvw36I7a2KVWE8HNya/tJBYPBW9XxJyBjYe WHDDoLxyFMWhbq12jxZy7QgQ4v26X73PYpKwiUx8G/XXLJ3EpnRel6DVcZ8St4Pi/tli PSVmhcyPpnVrxLgXlHfHm3D+7KAOPUwcbNTvMUGh8dpPlPgvAIgqcf8BC/f0BLp/9IKc LHGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=y+8yVef0IxB64BgBgbXrUUDMOo31nuSoxBJ3jXfRWXc=; fh=0wbMXzBiE/St7JIGVtlx5wF0ZPKoaeHWJM9v/P8Yxxg=; b=c1X+M6itOz8kG5dHfjcOUT1apTXyN8ZGJ8g1YFfiJgmyhr+H/h93lLKERPqkuqY5ez 100R8VcJ7LWzy/zoQvlCWUnhbZsl8n+yD2xqr1ks6TUa9CQCP7DXtesK4+ieU31utP4J Un2nBs0LHRN/kSOmzGyLivVNIPR701BwIqPkLqAW6f/kQoJp+XaeB936zU+VZxRxDXwP 6MA0chjL3BM82qCJJdq035TGoNVw17eKqRb34r8eGgu/vyj/pbSGhM9290OtbNyOedvG HA9Tk542FXeMqnDGOLt1JBv9l0O5QZeF8+/XJZ1kK6IUvqUS9m7GZcQpS7SFOtyaqSzs B3ag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qyCPmg0m; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-70116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t14-20020ac8760e000000b0042c23be6994si2889267qtq.488.2024.02.17.15.19.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 15:19:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qyCPmg0m; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-70116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 245EE1C21125 for ; Sat, 17 Feb 2024 23:19:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E855380040; Sat, 17 Feb 2024 23:19:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qyCPmg0m" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 277197F7D5 for ; Sat, 17 Feb 2024 23:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708211970; cv=none; b=WpKRTe28KPEhXq67N9a6aoPmaqa6MiHmGYvYrSPOBBudqvKFMKaRI3IGEtx47s18rO43GE0j6xiDA49X9oCGRc2eBcK1ZUCmMhrPBFcdvZ9ZgWA/q7nEsbW+Gydd2bAIOGdGYI4CJCP4N4xKEQGdo4bqqZjU2U86Gb4FzFu0qkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708211970; c=relaxed/simple; bh=ejFiyX5Y48GnsTRzZkDDmJYg7BZGDQ2NC6dM2wKl7xA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=u0L1/w/V6mG7z/glft8to7S19IQ6XiOSeRXNECtu2rCcefuVH4wqVXCX/QvFtgQotv1isWol9v95PhkkdLIY/LWNjeh9xnjrX+s3oJGQKxmzWpcDIwAYjN7YaELM0naC/BoMETjqSVHQLv1WCEroc+xXhc/NYaoUliDtU9mMOa0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qyCPmg0m; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4125ea5d913so3508685e9.2 for ; Sat, 17 Feb 2024 15:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708211966; x=1708816766; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=y+8yVef0IxB64BgBgbXrUUDMOo31nuSoxBJ3jXfRWXc=; b=qyCPmg0mEod9eXWUZspM0W5jpYQR0oWfSgr1T9sTu2LIdiMqxzirkkA9SuDuvcPB60 cIdwKANZDvNQK6yUTQ8y5SGcYdbQJEI5KwF35h7K4arhzxePViW7LS8yQGm4Gm/KWHLv SQtZLIFSJvNZHH4qfdRy7qc32zm6Ms14rlf3OeZLCQ+bgklBlN296KZ9XNohzduCFE65 +gfi2vo23GN1tWxYOc5iqJ/fotRPzWQbjaXsDrZD/b88FhtBzg80+X4fX5eENzOv0U5S z4FQ0uNodKmhsYu1XtA4/mV6CIirNg5p+ZgQaM3ThwaceaWaTbP2gp8PkpeaPFloGf+L P6/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708211966; x=1708816766; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y+8yVef0IxB64BgBgbXrUUDMOo31nuSoxBJ3jXfRWXc=; b=mcWgiSX72UqdjuV5QChdFkDXKeUUqS+TegARhdkGylDhOkeQWWnUQH/wa55teHV3cU R+1b1ls1VBlogTDHO/42d9amYgDrsVottQ+0pci6fMPZZRzzDTE86kXPIpNXrgXpkw6u bL8HoRMc+0KJt5hIxkJVqgvQwfCz9brF+bMjG8dAmkuC8nkfnvxUlMalkbphTchBQnrM MsJ2I0DbVlh84CxC2fem7CGgdjiikGO/57AYhbdGjUdImd0NHevAj+7dtYowNvQwmuh4 ERNg/UQIbo/dm8PPw7hCBkRFx4MIckNqZRNJ/psiyq9Rx4GSjm8A4DT4ADmCvGkPfygG yM5A== X-Forwarded-Encrypted: i=1; AJvYcCWcl/X8/KLtMob4s1nbiskHS49I7nlQv0gG0sefiZK+dpWKhWV2lajA5BaZV8y86Z5inmAWGqIk/MEJREBjVYI63AdByVOq7R4FPe38 X-Gm-Message-State: AOJu0YwI2xi2gREn1+YH4F3WaJvtkP1Zd2U7AGYHe/McxZZb2ZU3b+wa u3VXrtvZUOruNjikr+wBZLLD3uioCBabc2bdEC1K1sdw8u2Gd1EOjsEKyuiqr50= X-Received: by 2002:a05:600c:4706:b0:410:27e7:4c5 with SMTP id v6-20020a05600c470600b0041027e704c5mr6983198wmo.29.1708211966397; Sat, 17 Feb 2024 15:19:26 -0800 (PST) Received: from [192.168.232.204] (31-187-2-26.dynamic.upc.ie. [31.187.2.26]) by smtp.gmail.com with ESMTPSA id fs14-20020a05600c3f8e00b00411a595d56bsm6402650wmb.14.2024.02.17.15.19.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Feb 2024 15:19:25 -0800 (PST) Message-ID: <6bf11ccd-ff08-369b-913f-277c189afb76@linaro.org> Date: Sat, 17 Feb 2024 23:19:21 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks To: Danila Tikhonov , andersson@kernel.org, konrad.dybcio@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, quic_wcheng@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org References: <20240217163201.32989-1-danila@jiaxyga.com> <20240217163201.32989-4-danila@jiaxyga.com> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20240217163201.32989-4-danila@jiaxyga.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17/02/2024 16:32, Danila Tikhonov wrote: > Define VBUS regulator and the Type-C handling block as present on the > Quacomm PM6150 PMIC. > > Signed-off-by: Danila Tikhonov > + pm6150_typec: typec@1500 { > + compatible = "qcom,pm6150-typec, > + qcom,pm8150b-typec"; > + reg = <0x1500>, <0x1700>; > + interrupts = <0x0 0x15 0x00 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x15 0x01 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x15 0x02 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x15 0x03 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x15 0x04 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x15 0x05 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x15 0x06 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x15 0x07 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x00 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x01 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x02 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x03 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x04 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x05 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x06 IRQ_TYPE_EDGE_RISING>, > + <0x0 0x17 0x07 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "or-rid-detect-change", > + "vpd-detect", > + "cc-state-change", > + "vconn-oc", > + "vbus-change", > + "attach-detach", > + "legacy-cable-detect", > + "try-snk-src-detect", > + "sig-tx", > + "sig-rx", > + "msg-tx", > + "msg-rx", > + "msg-tx-failed", > + "msg-tx-discarded", > + "msg-rx-discarded", > + "fr-swap"; > + status = "disabled"; > + }; Should all of these be rising ? Looks incorrect to me. Please review: arch/arm64/boot/dts/qcom/pm8150b.dtsi pm8150b_typec: typec@1500 { compatible = "qcom,pm8150b-typec"; status = "disabled"; reg = <0x1500>, <0x1700>; interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>, <0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>, <0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x00 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x01 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x02 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x03 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x04 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x05 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x06 IRQ_TYPE_EDGE_RISING>, <0x2 0x17 0x07 IRQ_TYPE_EDGE_RISING>; interrupt-names = "or-rid-detect-change", "vpd-detect", "cc-state-change", "vconn-oc", "vbus-change", "attach-detach", "legacy-cable-detect", "try-snk-src-detect", "sig-tx", "sig-rx", "msg-tx", "msg-rx", "msg-tx-failed", "msg-tx-discarded", "msg-rx-discarded", "fr-swap"; } --- bod