From patchwork Wed Jun 19 20:33:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13704508 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 9716A77F08 for ; Wed, 19 Jun 2024 20:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718829226; cv=none; b=gWmvx0ELnH85HvmTfOjT+1yhJ67QPVbrVjMNmT4twCw7L92+JoH2lrRI67Ievk7J4WlgUtxEa0GT7nGwaXIPWxH4tZIJHSjrHNo7rwzSVpWH0ddJ2/eB8ekEBm8zwNR0+Atd6AlbE1N5naTColBsv1XaYn5eHPhka3bHx47O9Gs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718829226; c=relaxed/simple; bh=UnaYhc5+nTTxOakS+3U3nyreSrkeCCgz9wus9ZZW8bU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=T1C3FH6N3CmTzGtL5IHiAe1Z/XT9S9GdfenUcA8q80phRvUJBSSiO/GbeOfpMKa/BbQUQqi8Xv2KkchL4MSC2mGogSpFE3N+A2E3m3qadGVhHc9oqKQeQB7hICkIP3UDvBwdcwa8BzaNhBfELG3kL7kJS0mZzVQwXDFSEFkd7X0= 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=WQMn8dz6; arc=none smtp.client-ip=209.85.208.45 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WQMn8dz6" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-57cfe600cbeso122890a12.2 for ; Wed, 19 Jun 2024 13:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718829223; x=1719434023; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hv+NjUJ1WZ3mnK8yXgwFX5ilWXo7ZTxRNnnJhYmRZak=; b=WQMn8dz6WYaGbthyJ01N1TDwDcn4wpi+n872DDD3SkFSukIDs1KRS7uCRZYDy+KfUk NMVspUHyd/tRLUs/rrHkwI4DyLYx6JfE28NRM1a5wk+oGLwHfDXLKrMSaiQOx2UNzjY1 v7Sjin8V/PUVGJ8uhL5iV03rwRnVjSVMZFsDS11b0Bm1H2e79xgULctI9NuxY0Le3G8F EWpyEAo9bieOtnvmRd26wkccPuYIcir2A14nsGE+iP0FZFsmdSSsQS8tnmfn0zGDQIH+ O2bExd6HnwRv9QXC7FgrOnqovvdX/23s/v4hV9mxcEnCdTeKvpjklR4KU4OEzoVw3jWg 0iCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718829223; x=1719434023; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hv+NjUJ1WZ3mnK8yXgwFX5ilWXo7ZTxRNnnJhYmRZak=; b=aMxDjcRdg2BcP7dIx4FgatGpFce14NDiDWnV1a/o+fzPCG7vDgNVKV5RXa1EfsiFWX b+2CRqXhi/ZkidWYMLJ5JfAiL8cXMFC82dG/xQvx5GJNZWdXHt9FZXQ4rjRV1Q2lee6Z 27zOI/vEasMT6O5Jup/FUmvZ8ogO1SOSCAQANdoVFXJOCHbPw3oatWD+oc5Ln6wYwOcn OcAagqpkuS5aEtFA+v94Zz0JPOUXuzWSKW2s4qWCKtj4BJciDYftSynz95xe29ZLTmD7 ayhZpHfK5id4XxIpwjG34Yc1wmSmhK2kYi/roK9tJh1PDlFm5GbJgAM1jb4+zbrcAH0c vABQ== X-Forwarded-Encrypted: i=1; AJvYcCVzkzZLaEql5Y2bKdisFl4UUFEwHkcKuJF7JB1NMxXE57I+VYv6EQs71SE2+pVUmQ11CXcfYG+FzzCKmq4XbSAJlf85rYy3nNU0SqN6TA== X-Gm-Message-State: AOJu0Yydp7IQpBsbXM8PEJ8XVjzRbpZ3OLnq2Fa2IFPPhO55vDdPqZPq PfuBklCGTiyq9bbM82P92bfNWndR475GnyxLRd+HRLOubg2TLZ3fA7GuPZIg2+8= X-Google-Smtp-Source: AGHT+IFgAPMelxLDn6bavECs3IxVnMjqqIqBeRFcURx6SBk4sFrDDb4QEkIAauyDknblbKh+lcCa7A== X-Received: by 2002:a17:907:9405:b0:a6f:5c1a:c9a6 with SMTP id a640c23a62f3a-a6fab77a20fmr235929666b.62.1718829222835; Wed, 19 Jun 2024 13:33:42 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::ebdd]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db5c3dsm696864866b.55.2024.06.19.13.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 13:33:42 -0700 (PDT) From: Caleb Connolly Date: Wed, 19 Jun 2024 22:33:38 +0200 Subject: [PATCH 1/2] arm64: dts: qcom: sm6115: add iommu for sdhc_1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-rb2-fixes-v1-1-1d2b1d711969@linaro.org> References: <20240619-rb2-fixes-v1-0-1d2b1d711969@linaro.org> In-Reply-To: <20240619-rb2-fixes-v1-0-1d2b1d711969@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Dmitry Baryshkov , Alexey Klimov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1192; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=UnaYhc5+nTTxOakS+3U3nyreSrkeCCgz9wus9ZZW8bU=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmc0Ck5rSl1RXldM2xpatqUArnOpMOyxqz0nuQX FPc69Jb2P+JAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZnNApAAKCRAFgzErGV9k tuTpEACZnIPLB1S62LG+KCdFgb8qc3ALqSSIJCK1brxyZ/JJYp5aM/CqTq1mwCa6bv1Lc8LbuyD bbQX46h4XQpAV5JRKfL9AI1VXru1VggHj3mn0v8zV7T3keTz4iR82XAU166ZnJmgojxHz4FnvlA auE22mNB6biHKYr7fIfWCdKe3QMZY2zMSWoGH5nkgP7+pZnRdvc81hqFkP737PC1DWTZZg4aLgU MSUQWQWZ5Y8pOJJ9YeYSgURIe3r84lAazp1ErvL8ySoH31k/VrILV3kiKOfMnxQiT+gDWK9FejI pElbehIBiNAoEUgNO01jVNiWz7BGD6YK5GvedfWIgF8owQngNMwsGK7qI+4IOE3h75Uf0pKVKHr m55YuS6GNJNubZiyQnRnqE/4qEV2V09i/rOcVf8dsaA+kb/rc1zp5rHd/dA22MlUp/bRP4VwwTc q2TIxrQJpMTz1N/aAAMBHrBjF5/+zLiZc7W18+1yWu77P7kyNK7RiH2dwryGCYDrx/zDpI8GDXQ kF0itgqxbpFYOhu2Yzrm8GUBI+GwHsQPIafX7c5dUPCY1wE3N3e1gP5s/G5/K6ddtAecWgRmQzu vKXfFFsV78CMGe5VQoaolvEYtHTwnZfp82evkXl+8eJdSP0sID69MeIIExo4Y8/xCOSqQtODidA NEIDwvoVL8ripdA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 The first SDHC can do DMA like most other peripherals, add the missing iommus entry which is required to set this up. This may have been working on Linux before since the bootloader configures it and it may not be full torn down. But other software like U-Boot needs this to initialize the eMMC properly. Fixes: 97e563bf5ba1 ("arm64: dts: qcom: sm6115: Add basic soc dtsi") Signed-off-by: Caleb Connolly Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index aca0a87092e4..9ed062150aaf 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -1089,8 +1089,9 @@ sdhc_1: mmc@4744000 { clock-names = "iface", "core", "xo", "ice"; power-domains = <&rpmpd SM6115_VDDCX>; operating-points-v2 = <&sdhc1_opp_table>; + iommus = <&apps_smmu 0x00c0 0x0>; interconnects = <&system_noc MASTER_SDCC_1 RPM_ALWAYS_TAG &bimc SLAVE_EBI_CH0 RPM_ALWAYS_TAG>, <&bimc MASTER_AMPSS_M0 RPM_ALWAYS_TAG &config_noc SLAVE_SDCC_1 RPM_ALWAYS_TAG>; From patchwork Wed Jun 19 20:33:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13704510 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 C2864158D62 for ; Wed, 19 Jun 2024 20:33:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718829227; cv=none; b=IwQcgcPFqvP/takmMvh7BjLFy6lsDfs/PW/gbWQyamYIuaE5YXT6BIBgfcbvgjcJSLWmxd4Fn6wChbjmBVvXkdeGrSGv8Lo7Q4OMWhu1uQyoLaj75/3vBuv+2jcnG5NeW6qf1vEKYsIx8kJYKQdZZWgw7OpawEpXzrMWC9wtySo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718829227; c=relaxed/simple; bh=f67QJdbycqA6m6cnskiDGAXKC6TlZi9aPjOguev0G+k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ao33jf8VtF7dSAoZQvvSz5nRRJeaAnpSCKOIgCEI3vQ3l04pykPIWA8RJTlebFtv5Z1R2sH0CufjVGj1w9qpRYMFq+xMZ6W9yrDTFJW57a+BSIyckgwcfLh4o72OBtpph4iCOvpvByHU5YsCNaGjzZKNnmewiJwBUNfCDHaK1FY= 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=bbqkDsYv; arc=none smtp.client-ip=209.85.167.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bbqkDsYv" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-52cc5d5179aso289556e87.0 for ; Wed, 19 Jun 2024 13:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718829224; x=1719434024; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CpjhB/J8xgo/XgOi5i1CrseMMYrRbkPzbmxro5VFmF8=; b=bbqkDsYvnmFm2qNcRvD1oVWsNFksJ4m0jJyzSvNYXy9vrnQplZNYis5zhIU2MAX+z1 wFQ7+gVlwDNUcCmkkziF3Fi9JiqZbaRF5wA3kD/p+FlsPUedA4Fvc4Acfxn62HOby0/p Ncp/sd6YvW/rQqXZwzRuhW4AgoOxWl0V7a3qd4uK6tWlPEowtw500AAt+ShVFy+JttdR 24Ki7jPHkxru0S5xapq6G3nYwpDGJSF9lu+uisOhd21I3ZpS6MBjvUURyhndFRn1EDys KcrP02r0SetLHNdM7YYsg6bwQZYmCpgeYLV+hKxwsZlkGA1u3FVJxJiiRq/i5/riWwOl d6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718829224; x=1719434024; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CpjhB/J8xgo/XgOi5i1CrseMMYrRbkPzbmxro5VFmF8=; b=tR9jk7ZdeMwH0auj/NHKKgRWx8657J1SJyXrA0ountGiX2VwkO70nDPlP23qPmJyJd 9vz5tNjpTI/cMelF/ijm2cdayCpVP+lqToJLWpv4Wnk0aDhue9NMv01D50SCysJkY6Zk szudjqNO66uyYDUq08k6xYjOfcMoEjLkrTG9OJWCS528Q765LLP39gl22hGHGbuS8BRx H2MEBdBJzidTYiAf4W7d12sZpmnbtxhm8bs1Yx8GptUxJYTDnkPRq2Iua7t87ArBOWja 9nveXu9J0RtkwRIo5j1ffVhhBn3BjpmgTP/ItCsfGsU9uc4STh9Z8Bf8NYJ47AVye6MH tj9A== X-Forwarded-Encrypted: i=1; AJvYcCVpcD351qcs3QOVnMrLodNt/jADYmXneUmeo4Wd1GkPi6njp8qBabmhI52YuhY8xIAHoJtaI+9G92lAQjtJgNQ64okMrshpwg8x/oBIQg== X-Gm-Message-State: AOJu0YwTkyY9eved1nkxKC30ypCKrJyShDVafOB+CumGziWXkW6FuuGD sED8U1J27DFFcV1Jym/Pr5Ikck1HNWLnMpPE22h7Fgj9JapWfQGvySbzcG6929c= X-Google-Smtp-Source: AGHT+IE63pZOGKhE+EYN8PeXRBqv7Y1lpn5RQo8SG9SKyzuvZkyzQ1N8bFAW4oFlRd3cPuE9+P36UQ== X-Received: by 2002:a05:6512:2087:b0:52c:8f56:3fcb with SMTP id 2adb3069b0e04-52ccaa2c886mr2151569e87.5.1718829223815; Wed, 19 Jun 2024 13:33:43 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::ebdd]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db5c3dsm696864866b.55.2024.06.19.13.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 13:33:43 -0700 (PDT) From: Caleb Connolly Date: Wed, 19 Jun 2024 22:33:39 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: qrb4210-rb2: set role-switch-default-mode Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-rb2-fixes-v1-2-1d2b1d711969@linaro.org> References: <20240619-rb2-fixes-v1-0-1d2b1d711969@linaro.org> In-Reply-To: <20240619-rb2-fixes-v1-0-1d2b1d711969@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Dmitry Baryshkov , Alexey Klimov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=683; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=f67QJdbycqA6m6cnskiDGAXKC6TlZi9aPjOguev0G+k=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmc0Ck7QMt0pQEkDQiC5Xe14HyxG6DS5lnn0VMY 2QPDWUlRwiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZnNApAAKCRAFgzErGV9k tp1pD/4y1U2IC4rfByl5kB/aRorRbUgCFj6DBZONlBoroyEC3X53gysSVeOD71iFNLb+wfpDKvi mMi5uPo+yXsgnkytSN+LcYghQ0Ogwr+PpVLQEjX/HSQzll9XyFVVFvtq9nvpug2Txgk7htF/1x8 Dp+sYurTX5ygzOuZtGsrcjZBtk66IY/5TB6eJ5LkpU24RKw6Y9Yge/mxCcYHtZ0tYVNJupH7xNx apHNtLrxhuy7mauA66iNbEKCsUF8/XPMSkPSo+U7If2FYRQRSh2+2Yw6kyahWL3UcEruzlvkUrI VJ/b0tN2Dy4oFmC4kPGUPz6JfrUhbkIJbEYpjKCkmuglxpH93QzDxnoR+9hAsEHvfOXj7EelSqk 4AOEJ8nWrzPCqEx9X3GWsGfo0H0VZEt9amzNGYHXyATg1Mx6YehchAVAT3BbQvsvJB8U6DdMVuB 8wNWjoyqz/OCYRotRRZ0cw/jRCrqphjpJUHBKN2MkdUfgydKsbdCkZ+TG88ez+GaL8vAb4deBZX Dm3qg1V1JgYBXamANLKkD6r49gLrgVU0yXWEKm4CXyP03yeWH1oWeUPD6lF80mEGjxRkffFLbOB 59Cv2mKwyJLpzV12cZUWfLPdAoavV10ZyQ1s3CTzMY3TiGLZouj+4OtdW54CJYeujujDUW5ukUL ZhoJRFWJegjz3jA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 Give a hint to the OS which role we prefer. Host mode generally makes the most sense. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 2c39bb1b97db..e9a63956b8b7 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -648,8 +648,12 @@ &uart4 { &usb { status = "okay"; }; +&usb_dwc3 { + role-switch-default-mode = "host"; +}; + &usb_dwc3_hs { remote-endpoint = <&pmi632_hs_in>; };