From patchwork Thu Jan 18 13:30:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 189215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp339754dyb; Thu, 18 Jan 2024 05:32:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHBt5LEyI5WqW0M8gz/QeoVQc1EhXrpsYrK4orApqMwWzJHCvRo7F37/Y8SX0bPkjUDa2z X-Received: by 2002:a05:6871:64c2:b0:210:7ff5:64db with SMTP id rk2-20020a05687164c200b002107ff564dbmr885300oab.72.1705584720155; Thu, 18 Jan 2024 05:32:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705584720; cv=pass; d=google.com; s=arc-20160816; b=riUvInmw0t5ota4yB841g3lpTrBVySgTw2HdmNrPhoaX+SX0F0w0FY8JLpKiGUfqlS nAJtzFyCEYxPPwA7F35yh2hqteZHumkb1Qr9iOGfdIR3agyJbJqRQaJS7Uwm9qfy3GmR 6MNJFQTNfDXo0FaELAs52zKmL5MefG/KyYsSGjN2EpyqpvPL/lk2CqQdrLlUAFP0wMIe 2r8Y+f+3blcAC8fmVCQvIfNhqxZrc5jr1yvYzGTiPgk+Ns5AMjK1zn23UcfNQcwX6/W8 +HR+lx0Vz/joLOFjkHHY6jl++jFerjK46/I+wgSZr3G7uUxiLwFdgOS/oujLN+OLZJzI jdug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=A5KWhmR7n4QK6xsmY6XZkqI1Oot3sm66Wi0knWwg8dA=; fh=YtB0xws9WKTnN0+SzDl/YuI3otjXdtTMQs8XQHtwLPg=; b=zkxHykVKdnHpeSCh/2Bbposc0tNRK85w3QcHua9O3G5mC1l8X5OLEEL9hb+sDtG4t2 qSv1FWNMQ90EXQuJFzznRaIiZm1QQlJZtE5cJD/gTt0+TxaRuRprYZiJhwOOIt6egIOe WIeYQDrkkmT0nB0PYKJaGalBA3xBkK4yguKm7paJrcWgzTM2kRhf3z13Si2X7lWiHJgX ssXogHARH9/YYifsC4N2vkGpyVCmSPHCi+kX4moL0kRPCbFK3Y7d4f2vABpRu1CsQmp+ 9Z4h3en3cJC7L1YMh3dqFCb25fykJgnf6c5Sf8+vN2NLYdnkQDlmMkiKIxz0iPEg9Rk0 YKDg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-30155-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30155-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y2-20020a63e242000000b005cf0abf4887si1424210pgj.261.2024.01.18.05.31.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 05:32:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30155-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-30155-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30155-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 57E412852B4 for ; Thu, 18 Jan 2024 13:31:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01A3B25630; Thu, 18 Jan 2024 13:31:26 +0000 (UTC) Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1135D250EF; Thu, 18 Jan 2024 13:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.198 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705584684; cv=none; b=JrwN8ZEfiaX+r/3Odvjg0hSBi7Gvhf2aOrnEyVmVarSvPRhjwSbP4/04EzHU4QbfQLOgTOqAzy6fqVkjxtdOscw7ZEt2Ne2H3SoEIC++orl8YP9XV8HYCpPLi7mIbilE68ZHD2IjLwHKmjwc8oE0XApoDLN5Yids8wqPTX7Zro0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705584684; c=relaxed/simple; bh=YCSLDRcNcUHZlJNPEpFCiUHc+hOkTwgbBxDfzJO2/IQ=; h=Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:X-HM-Spam-Status: X-HM-Tid:X-HM-MType:X-HM-Sender-Digest; b=o9MkWdVQcetH/LlWGMNoYfRa11k5HVIefO5jp/BqtbG0zvSU2aAB6HLTBQEJV01SmAcC+HvNtTSv+zROk3BhY7gEeRORIO9ITLx3vQMNZWDXffgp0fyC88l9pCAge0U5JlPN9Lp24k9gT1+EbLl3r6y8laJJ/gIx0dv7a2Grz9o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [113.118.189.0]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id 48E0DAC009B; Thu, 18 Jan 2024 21:30:28 +0800 (CST) From: Chukun Pan To: Bjorn Andersson Cc: Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan , Robert Marko Subject: [PATCH v3 1/2] arm64: dts: qcom: ipq6018: add LDOA2 regulator Date: Thu, 18 Jan 2024 21:30:21 +0800 Message-Id: <20240118133022.553339-2-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240118133022.553339-1-amadeus@jmu.edu.cn> References: <20240118133022.553339-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaGk1CVk9JQxkeQ0JDSU9PH1UTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkNCVUtZV1kWGg8SFR0UWUFZT0tIVUpNQ0xDS1VKS0tVSkJLS1kG X-HM-Tid: 0a8d1cc41355b039kuuu48e0dac009b X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mi46LSo*TjwqOhcCSRANNRMJ ER4wCjpVSlVKTEtOTkNPTUlCSkpOVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkNCVUtZV1kIAVlBSUlKTTcG X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788435203327892423 X-GMAIL-MSGID: 1788435203327892423 Add LDOA2 regulator of MP5496 to support SDCC voltage scaling. Suggested-by: Robert Marko Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 5e1277fea725..322eced0b876 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -174,6 +174,11 @@ ipq6018_s2: s2 { regulator-max-microvolt = <1062500>; regulator-always-on; }; + + ipq6018_l2: l2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; }; }; }; From patchwork Thu Jan 18 13:30:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 189216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp342785dyb; Thu, 18 Jan 2024 05:36:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoFuxgJy3zVVgpY4PUKvEK0mEUgMLvnnZxaL+b5i+L0hj+FJhlJeKcPMdt4y1R7Bp8yNza X-Received: by 2002:a05:6870:cb42:b0:210:79a6:fa3e with SMTP id oz2-20020a056870cb4200b0021079a6fa3emr737522oab.104.1705585004249; Thu, 18 Jan 2024 05:36:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705585004; cv=pass; d=google.com; s=arc-20160816; b=N1tby2ucus9HrSGRybKfyopUWI+glQcK8E7wL/xKBLmEroWaMwbrwe+pdlv7CG7uF9 X/YB6U2RaNLt8U0Y0zWw8cJXrSJ8rPdF7ZJzoUnhG4a+PLCTPrDZcITqrkWKxgIf5zQO bXbeVuCQhdTIH1mVQTC6SJxOXAGS4pd7nF7m3SBJ/GNGunlV7nJQtAmPRzMtCtxfaC/R Mo15abJk9kH8MjFYfMKEC3ScHowcI/CKiwmQ9iwo5MxaAvM3h5EPx/tvlgMVTl8OPT5Q zPbIS8ql8qxGyGlzqP3onnSIAh//pf20tPD2IcEhU2IN9VsAW9Za/qbN8OzmOPsWy2pD KR1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=KNb85dbLB1kQ0iOHoNwgwwHnuaTiH6GgbJuOKdevlEY=; fh=sLVFzUVIBgAyjchegHPlWognnealR3FHvoWu0Dk4A1o=; b=HAsti3O1CABZYjtxwQGyRxsuElfVbgUvT3ka1iR2gc+ESw2YyzTQhGUV5fikElhnPW M5U4ckA2Tc1MOHTnVgUQG1FV9e3H4i/oeDVvRZEedmcNEd4rU8LF5c0FK1X/Q7cd/glx jKmSC+WXL2gU7V66qDDA0nwfj3/R4/iyI7XwmTDfsqm3xSAAcKOJo+PX8vya6CXxVVZy 35Pypa4S0xVSE787/eol0dsCCN0VGrfvFx2cc7zwmiSDn9gCmV2ufy8VSEc7up1Svi6X fA7hj45WedT9poK+nV8e62vIF8gQsc5PDQBhReRRetb38zBnxGtfbHO2FMWUO7K3J89B 9eBg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-30157-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30157-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t9-20020a0ce2c9000000b006817fda0e46si2862813qvl.379.2024.01.18.05.36.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 05:36:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30157-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-30157-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30157-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn 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 D7C701C2236A for ; Thu, 18 Jan 2024 13:36:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA3A325639; Thu, 18 Jan 2024 13:36:26 +0000 (UTC) Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 115451E531; Thu, 18 Jan 2024 13:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705584985; cv=none; b=ep9T7bD1FMPQcT7qvAFCuuo17n8NZZlWwgbg75D81PoxZN1XNauvU66xAlVi70gcM5F4oq/3hZKXWAySvcqqGlwWsuBOK92rrhHNRaeMYxyaxToSBhwbvgbsuehLqCAe2rXeO1iq4HigAadjtPzRCVdsaWquiyfX8oR446TuC4E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705584985; c=relaxed/simple; bh=6HbT2TMGthwgtVSIaK7teCrAT9dq/hLGM7wI/HBy21U=; h=Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:X-HM-Spam-Status: X-HM-Tid:X-HM-MType:X-HM-Sender-Digest; b=TQImjODjPahMDJTXzZmsIgtLVE7QvX/uKhitYA8oBYoum1JW8API9Ub0SQJAjPFIzM1IFlJduuLOTLvAHbQk3rgps378jMk/Z0mOyMj9XpRrJopfVd2peq6sWt59kUt2WgyC1b9NMfVuEJF/bVhnRF5PUMOH5YQZz7iCzKO+1y8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [113.118.189.0]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id 2B904AC0104; Thu, 18 Jan 2024 21:30:29 +0800 (CST) From: Chukun Pan To: Bjorn Andersson Cc: Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH v3 2/2] arm64: dts: qcom: ipq6018: enable sdhci node Date: Thu, 18 Jan 2024 21:30:22 +0800 Message-Id: <20240118133022.553339-3-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240118133022.553339-1-amadeus@jmu.edu.cn> References: <20240118133022.553339-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSB5IVhhOHRgZTBlCSkhNSlUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkNCVUtZV1kWGg8SFR0UWUFZT0tIVUpIQ0xISlVKS0tVS1kG X-HM-Tid: 0a8d1cc416abb039kuuu2b904ac0104 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ojo6Ohw6MzwjOhcjMhYhNQoR F0sKFExVSlVKTEtOTkNPTUlCQk5NVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkNCVUtZV1kIAVlBSU1MSjcG X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788435194518751782 X-GMAIL-MSGID: 1788435501670199274 Enable mmc device found on ipq6018 devices. This node supports both eMMC and SD cards. Tested with: eMMC (HS200) SD Card (SDR50/SDR104) Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 322eced0b876..420c192bccd9 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -441,6 +441,25 @@ dwc_1: usb@7000000 { }; }; + sdhc: mmc@7804000 { + compatible = "qcom,ipq6018-sdhci", "qcom,sdhci-msm-v5"; + reg = <0x0 0x7804000 0x0 0x1000>, + <0x0 0x7805000 0x0 0x1000>; + reg-names = "hc", "cqhci"; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC1_AHB_CLK>, + <&gcc GCC_SDCC1_APPS_CLK>, + <&xo>; + clock-names = "iface", "core", "xo"; + resets = <&gcc GCC_SDCC1_BCR>; + max-frequency = <192000000>; + status = "disabled"; + }; + blsp_dma: dma-controller@7884000 { compatible = "qcom,bam-v1.7.0"; reg = <0x0 0x07884000 0x0 0x2b000>;