From patchwork Wed Jan 10 15:10:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 186927 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp855117dyi; Wed, 10 Jan 2024 07:12:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaO+iJ3Ud9wkVV9d9E7xzSnOyrYQfkBSijl7NAkMLTGphxi9wQfIi4AlPmP4nk2pitSLNo X-Received: by 2002:ac2:550d:0:b0:50e:7b37:d110 with SMTP id j13-20020ac2550d000000b0050e7b37d110mr509719lfk.16.1704899523365; Wed, 10 Jan 2024 07:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704899523; cv=none; d=google.com; s=arc-20160816; b=oMk/4FtrcVzQYKx81RnccVj+b9D831PEDYrYQA7ZiFoZEXALkeHw/DlJG5NLU5TVn8 MNsuEcP1a4DDvfDYLuEY7TEzClUBRIJ1GzoDrjq96kByRDqC9PB33/W1SwUqTLULI9oP 2xBwSn5eWpKFD36g0pPulrlvzWAfFBkfiKvKSe5ocHMYKa1csZZ/5kE1Qr8uTSEUxclx njsi2sZ/PTn4s4ijAFw8y0jZ9ustqBGnHrS4stPgxUqaF6HsCwcgK0yZ5krqdYEGeCD3 zUoUZPOeLpd7M1MCe6Aagz4Wt3ZPQ/GC81wUc/+6R3WMtT+ogiV10p6lroRj6YrM3nd2 ObBA== ARC-Message-Signature: i=1; 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=ielm64cht0CLi/wuDVJXhhjsOTX9J0XNx4y1HVEahd0=; fh=YpShxqai7caQg7gCgboK9Kaa3jyRiSENi7qeUw9MJ4Y=; b=YmCdFzNAPKYjFY4q4X/+x9T4ztChrX56LUYtAXBo8bRgWCVie8EMgzKL7PjhlopOzO VJElJSJ9vJZvukxFtnm+ucmrAPu5SXEYaOzo7fwVuVczY8lBzgMaNOQZfo8/KvY2TrRe Mz3PzftCVESSiiZZfztto9248p2c+zD/xWdqhz0qrcEqbX391MNne/Zl3f5GQenirG7U cGcCvw0F2B3GeGW5TBEzVFGGHHBS+HQEQkd2j6EhcgL4bXsaQRTE2m4NAmC5TkGBar2F J983tCj0T2/BDl4wD+ASmrlSxX5is/MRkcGfBjiyDUlVY6+jQWheGE6MhnbQQw7JuXKu hH9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22399-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22399-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jt20-20020a170906ca1400b00a2c08f32fbdsi223172ejb.848.2024.01.10.07.12.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 07:12:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22399-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22399-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22399-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E57AE1F21433 for ; Wed, 10 Jan 2024 15:12:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 600F84C3B0; Wed, 10 Jan 2024 15:11:49 +0000 (UTC) Received: from mail-m155101.qiye.163.com (mail-m155101.qiye.163.com [101.71.155.101]) (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 2DBA74C3AA; Wed, 10 Jan 2024 15:11:43 +0000 (UTC) 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.191.185]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 77DA78000C5; Wed, 10 Jan 2024 23:11:08 +0800 (CST) From: Chukun Pan To: Bjorn Andersson Cc: Konrad Dybcio , Conor Dooley , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan , Robert Marko Subject: [PATCH v2 1/2] arm64: dts: qcom: ipq6018: add LDOA2 regulator Date: Wed, 10 Jan 2024 23:10:39 +0800 Message-Id: <20240110151040.2155938-2-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240110151040.2155938-1-amadeus@jmu.edu.cn> References: <20240110151040.2155938-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 tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaQ0lMVhhNSUoYGhofTh5CT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkJKVUpDTllXWRYaDxIVHRRZQVlPS0hVSkpLSEpDVUpLS1VLWQY+ X-HM-Tid: 0a8cf3ed5dbeb03akuuu77da78000c5 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OjY6PCo4ATwhLio6PRIwDQkw MhIwCTdVSlVKTEtPQ0JCT01CT01DVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkJKVUpDTllXWQgBWUFJSkNJNwY+ X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787716722404729553 X-GMAIL-MSGID: 1787716722404729553 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 5e1277fea725..2f892d3bbbc6 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -174,6 +174,12 @@ ipq6018_s2: s2 { regulator-max-microvolt = <1062500>; regulator-always-on; }; + + ipq6018_l2: l2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; }; }; }; From patchwork Wed Jan 10 15:10:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 186932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp861059dyi; Wed, 10 Jan 2024 07:20:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSPLtos7PbReoNOgd+3TYPbIcWQvuJlZMhA35Vm5fqZMg28Q1h4hwFReVO8oQt0nyWDBXW X-Received: by 2002:a17:902:6f09:b0:1d4:dff2:2f6c with SMTP id w9-20020a1709026f0900b001d4dff22f6cmr1010643plk.68.1704900033703; Wed, 10 Jan 2024 07:20:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704900033; cv=none; d=google.com; s=arc-20160816; b=Cw98BINCZBX7z2U6TzvKYQidl09QSOWFptr/rJOy6LLP7I9QHJis7wKGBHGHieJpRy TF7+YMVLaSvgkmEZhLyY4n9sT6UQwj/p2TZuqq3rbF+v9bxxXZxo2HNURyE3eouP1ffT 4H5LI+BPv4T0Ntt43toyAv3Y2yPIxp0WyHazePjkeh2aBvBa6aAGpOlzrsUgo02JSGHj qRux4iwFbWFKdDeSoT1B68baWTjFbUz14mn1n3fxfOVdM/QFyEames5E2U8sQGg38DrK NMa7CLHVGjwu6fs6CZMxzWjyCoY1dGEF30Us5mkppRFq1fLxnhnrKoeBuToD56m0LxWN zejQ== ARC-Message-Signature: i=1; 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=xCAoCL84CgPHWZw6BKivTPR7rtdkHqgfsZV+k/oNkhI=; fh=ME/zFITlbz8pxw0WT5T/Nbe802kkrNLFaUvUU+iGXDk=; b=PZfEq5ANuEMkSwOgMbLtgQ4n/B7jlhDkYs2PDN/atlw8nl9npjf2eLTtwYvk4riy6e YNY3HE0fGq09N2ij33iBtl3maAKeSNSV4YxCXK5mDiYVFf7R+SEzv0812mc+ovdMAQ9d LK2rfzuFR3M/4OqED/RVcJnoDIu4iNeaBCWwC0BecoPdSZBZ5IPywabR/IMW7NKDjjXj H+WGLeGafrk9+ubKWga3sbaXhCJKskDWGSZ3ruW/ThY12v8xL6dKXwP7L7n/IM9ELDtq fzNyzRGCeDJOqPkQ60dTrAaQ0HdV4CpFf3kq/SKOcaONCfnHQRMfoUyfBV90+rbsmSCx HuNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22415-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22415-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. [139.178.88.99]) by mx.google.com with ESMTPS id k14-20020a170902c40e00b001d54c505877si4065125plk.339.2024.01.10.07.20.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 07:20:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22415-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22415-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22415-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 A5DD92838BF for ; Wed, 10 Jan 2024 15:20:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 689224CB29; Wed, 10 Jan 2024 15:19:44 +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 088404C3C0; Wed, 10 Jan 2024 15:19:39 +0000 (UTC) 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.191.185]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 669888000C6; Wed, 10 Jan 2024 23:11:14 +0800 (CST) From: Chukun Pan To: Bjorn Andersson Cc: Konrad Dybcio , Conor Dooley , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH v2 2/2] arm64: dts: qcom: ipq6018: enable sdhci node Date: Wed, 10 Jan 2024 23:10:40 +0800 Message-Id: <20240110151040.2155938-3-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240110151040.2155938-1-amadeus@jmu.edu.cn> References: <20240110151040.2155938-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: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaSB5NVhkeSUlKSUxDH0tITlUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkJKVUpDTllXWRYaDxIVHRRZQVlLVUtVS1VLWQY+ X-HM-Tid: 0a8cf3ed74d4b03akuuu669888000c6 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OTo6Iyo*CTwZIioqVhE3DRY8 MDBPCSJVSlVKTEtPQ0JCT0xOT0tKVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkJKVUpDTllXWQgBWUFJTU5INwY+ X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787717257860032959 X-GMAIL-MSGID: 1787717257860032959 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 5e1277fea725..39fb38914a1e 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -436,6 +436,28 @@ 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>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + + status = "disabled"; + }; + blsp_dma: dma-controller@7884000 { compatible = "qcom,bam-v1.7.0"; reg = <0x0 0x07884000 0x0 0x2b000>;