From patchwork Fri Apr 26 13:38:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 792583 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 52D96147C68 for ; Fri, 26 Apr 2024 13:38:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138713; cv=none; b=o1nhF9o7QC4d/XckIoB6p1dQF9RvBJaLyUyYuN6eldh6rxoE2YWbO7ubTzZ4ofBwjABIZqlzUH4LcUqMDKBZbkpoAzKSDUgQKyMpJClVcYwGvQze3pFdilemQCROa+TMC7mzV+n5spLJeEI7T/xaaxbBA/rNgaO+8Sk29bhUIMU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138713; c=relaxed/simple; bh=WARBLKc8IIwkOZR1KT6Pc8Nf7x5S3Qw6DwX2PgELUbs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cBErQ7D2lSQByG+8xcuKYy67I5LjdrUeNcPHmzuEQktfygRBJCfFb/s0ZuC1+G1lBzZzesecfIE2SvJn1RjWkb4H9ZGxiJAP/npF4YLJdEsCFO0Uthwk5rLfGifKMRCbUlRU7El8+R9UPZ6dl8iN+Rs8IwUi7ME+Pjs8ykRFOxI= 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=xW18gLq6; arc=none smtp.client-ip=209.85.221.53 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="xW18gLq6" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-34b1e35155aso2320552f8f.3 for ; Fri, 26 Apr 2024 06:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714138711; x=1714743511; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B7YOs9puuo8onPpvdQ4CfanEhu1eADekMseFBdt3Sao=; b=xW18gLq6O77muoho41UjwG/7HoYHAiE5MStXCyuH6YMhGfAKd3GoaMyfMG2yG+HNUQ 6WKNgV6TpVzz0BdTVk78QgIkZPiEtEVUGkW8URXJcL28T8pp7exFysNM6WywDqkWugsI 0bmTSOyWrnkRJBjLAFA/9WIr1oxT4/Dwkqo8qf06Ht2ydiVxA4mxnRyguu8evuI6H3h6 CKl/oGcs9uozdJ1t22zJA/TBK29oHM9IoqziQlcLnckLPlb0M3AEZa+SjuwQ79GczqUg PSO+s5ssrTNk7O5SMvq2T/pOBgdJ/3iI2dJEIk22mdmRPIqbmoiRANNVRG4IEIh6z4H6 kpDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714138711; x=1714743511; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B7YOs9puuo8onPpvdQ4CfanEhu1eADekMseFBdt3Sao=; b=WrywAGloL68CIqD//RWW/2H4RZITLPw8R3zZB1F13UIhfqcdBI524QsRIWvL8WWq52 S+8XyRFHPeJTNOgh2X8WEjG2XsXmhVgOucYd7PWHLdZd1KcH3TSDmFuiAtDOwWV5C0qr UhBPSI+kjcR3aJz+BFwnbMk45ql6MKkO5eRD9CGAuaLd2P6eBt7jlP25fHP1ckq85S6i /W1zbq1RjcWuCNZnnErn97TqV3N13THdJ9TroNLsza8L7jiNOQn+Wl4C/LFBq3kIZe3F u+0ipORN21ikD1dkEWxTytzs438jE9XUdWE5HR0pCm1Nkr5hymbtc4a73njg4vcMVh/7 6RAg== X-Forwarded-Encrypted: i=1; AJvYcCV6pjFu+awm2nx7wufIwO3sKtSvddCR/8sOgqbXCd/UIZd1lV4id64EyNsIMeHD4onA5pFjsOGb+IF4/t39mzKrF7VlqjtOj27IPv7Tvm76zko= X-Gm-Message-State: AOJu0Yxnc/gruRVCAWWAKoy806YXU8biCmk/wiNKJSyw7E7HEAbbNY7K SFIQSYsppB6t4yazdxe31h2+LPZIbcUh2d44BmNI8mxPHVlpwqyG1gXwiOd2LQU= X-Google-Smtp-Source: AGHT+IEW6lN/nMVbLs2cr1R62IxVhVzas4gPNLfg/YNhTIYexmEWP/7n/0P1dbJmlPX3TjrfE2dhUw== X-Received: by 2002:a05:6000:239:b0:34a:4227:e9e8 with SMTP id l25-20020a056000023900b0034a4227e9e8mr2605785wrz.47.1714138710599; Fri, 26 Apr 2024 06:38:30 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id p3-20020a5d6383000000b00341b451a31asm22327689wru.36.2024.04.26.06.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:38:30 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin Subject: [PATCH v3 1/4] dt-bindings: soc: google: exynos-sysreg: add dedicated hsi2 sysreg compatible Date: Fri, 26 Apr 2024 14:38:21 +0100 Message-ID: <20240426133824.2283144-2-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240426133824.2283144-1-peter.griffin@linaro.org> References: <20240426133824.2283144-1-peter.griffin@linaro.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Update dt schema to include the gs101 hsi2 sysreg compatible. Signed-off-by: Peter Griffin Reviewed-by: André Draszik Acked-by: Rob Herring --- .../devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml b/Documentation/devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml index c0c6ce8fc786..3ca220582897 100644 --- a/Documentation/devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml +++ b/Documentation/devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml @@ -15,6 +15,7 @@ properties: - items: - enum: - google,gs101-apm-sysreg + - google,gs101-hsi2-sysreg - google,gs101-peric0-sysreg - google,gs101-peric1-sysreg - samsung,exynos3-sysreg @@ -72,6 +73,7 @@ allOf: compatible: contains: enum: + - google,gs101-hsi2-sysreg - google,gs101-peric0-sysreg - google,gs101-peric1-sysreg - samsung,exynos850-cmgp-sysreg From patchwork Fri Apr 26 13:38:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 792853 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 C4ED9147C7D for ; Fri, 26 Apr 2024 13:38:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138715; cv=none; b=nOtlCY4RIdksY/z6jcD/ZpccRPFZH60BwBgiZE0ITrCfo+qob/Bpit80/KiHrHoe5B9//A3VbyofA870KIrmqfn6Co6ynImaCszBkIuqlM48ot7C89/KslYBT9CVbYL2yjSg/Fp1uuOAiR2Kdgp3GdVpuh6N3+0UYzwYFNR8VT4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138715; c=relaxed/simple; bh=2bBWeKw/Y+4Mjf1rMVzvCAaya5L2mkp9pQ+MhRjpvLM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GPt+RDNA+yqGe/UwUgeoY7tJWBTXKUEPZfddgfYYWDq9W432YptAmh8IiUnrJ8mMwIhc9NE51NbZvkp4xyoAOGp5EWs5YW9em03nJ+OhSfDSfue6laK3hTv9u2qzNdSCYgR+sx9Y5ctG1Xrnii1p6aaFc8zdQa1tDK28X32Gmxw= 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=rHbXizwF; arc=none smtp.client-ip=209.85.221.41 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="rHbXizwF" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-34b029296f5so2184159f8f.2 for ; Fri, 26 Apr 2024 06:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714138712; x=1714743512; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BHjJbBAINE/uHYfzybf0SNljSNHWl/yKpH52w4l4aoE=; b=rHbXizwFJNXoiT6EQj3Wf9ab1ublslqxcSthFtP0XE61KhzpN53CNN42Mx0+5jRrwY ULoG3NSR7TyaYOrjtHnX8xn9mks8WWoHvZjASHicn4Rd7zlBy4bQYvSOlnrEKNiLtlPE basCkUGOUO6FXQ1eKNO3oNDcWamu+TM9T9ShhwHfSA5J6jjOzdC+bWo3rTEbzm/SLllS klVtqkSOYQxUG6dnpXIxZOzkTVrUcnkTG6vGNc5E1Ke2jbVRI4yN5JRRs7k/z24dMC52 n9unypqZTAmL83srDq9X4Wk52R2hrHwLbGElWZdgClT4XCI8RilrV/8PBHbiweXFhLV8 uVpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714138712; x=1714743512; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BHjJbBAINE/uHYfzybf0SNljSNHWl/yKpH52w4l4aoE=; b=G0WjbjxlW3mmDbcrTedNhIR+EdMo1YyxwoyiQVuMCWXlaxWMF/ygLY78CUuDn6yzoY QczhiQwvQ+vV/FzGo8X15EkVT6SUr1p90zDgEpDQ4f4fJU5IG9G/HworsTFrA/fMNB5A 8MLiiPrlgV81tWcEhp5ogYGFENhF05TqPQKdEOy2AFRy4MsEW4dLvyehtvaAC0PUeX5V NSKWEwe0V/2nMzcEd7OenmsHLbcFwyBM3FA1r//D3NZ67+vNkBYG6vzrQ2EwBPidOl5a ZQxLq0bg9vzgY7OvL4EQiDe5gcLpo4EvTrr/1YAbo4Hik8SUz3hOua1dBVDWooYHmGJh oqFg== X-Forwarded-Encrypted: i=1; AJvYcCXzlVmUCXn0zu9k0h8a1OohUL8Xw94XommPVdj7cq+fN6yms3mQCWai4m0AMBdsIaUPCeWqDnQiHtbiRv+pQFDfjFYxWtMrpeCyVYnF7gB4AA0= X-Gm-Message-State: AOJu0YzokO3oo6AAMG86/3EU6uXzaDry3dduGEtFvak92FSXVM+vBBeu IBqTRZZbGjQVbLxkqSgxYiRvBKSIloOVZsOrj1FgiVxZ90Lg1skuiv6T8oP9A7k= X-Google-Smtp-Source: AGHT+IHeX/VVaDgecegUcpaWA/skSWOBVt/xVSoqnnYvRfOPU4y3ogz98bAHizNk9TNynIFmoDyEog== X-Received: by 2002:a5d:6306:0:b0:34c:7410:d6c8 with SMTP id i6-20020a5d6306000000b0034c7410d6c8mr942894wru.49.1714138712119; Fri, 26 Apr 2024 06:38:32 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id p3-20020a5d6383000000b00341b451a31asm22327689wru.36.2024.04.26.06.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:38:31 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin Subject: [PATCH v3 2/4] arm64: dts: exynos: gs101: Add the hsi2 sysreg node Date: Fri, 26 Apr 2024 14:38:22 +0100 Message-ID: <20240426133824.2283144-3-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240426133824.2283144-1-peter.griffin@linaro.org> References: <20240426133824.2283144-1-peter.griffin@linaro.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This has some configuration bits such as sharability that are required by UFS. Signed-off-by: Peter Griffin Reviewed-by: André Draszik --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 38ac4fb1397e..09044deede63 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1265,6 +1265,12 @@ cmu_hsi2: clock-controller@14400000 { clock-names = "oscclk", "bus", "pcie", "ufs_embd", "mmc_card"; }; + sysreg_hsi2: syscon@14420000 { + compatible = "google,gs101-hsi2-sysreg", "syscon"; + reg = <0x14420000 0x10000>; + clocks = <&cmu_hsi2 CLK_GOUT_HSI2_SYSREG_HSI2_PCLK>; + }; + pinctrl_hsi2: pinctrl@14440000 { compatible = "google,gs101-pinctrl"; reg = <0x14440000 0x00001000>; From patchwork Fri Apr 26 13:38:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 792582 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 4404C148304 for ; Fri, 26 Apr 2024 13:38:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138717; cv=none; b=ZpbVBy/mABFbVRfRhQzqNMtSBTgwMGE9VOr1d6nvCXuiXcwJEid/F6+I4Mp2yvgKC6czcisiQQsLqYqoi/9dDGo3AyuOsgcYqLr1nI3YZaGZIW4Mr9Xmy8UOvADvZFeesBgunsUE9x8wM3llCxcfuUf6uhKY1s0krRQSlyYIhhg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138717; c=relaxed/simple; bh=MnvkoP96ETwyzM7/zS913M9b2W7iLYDRzbOwtkS5MV8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pDzpNAOCjC8gOFpPCLV47OcEvY1/YglCJgQSHBu2BXJ6is4Ed2wOaYvEr2A8Xco3LoVzmt1/Ze7RU+DVjMBM8A3Cq35VnurzTLxIMamfHobXGuojc3192jbResAacqcO7G77DhB50FVJALR1bXdmdyuy09JbUhveCjIX0EECPD0= 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=z4FhMx14; arc=none smtp.client-ip=209.85.128.42 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="z4FhMx14" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-41b847a81d1so4230775e9.1 for ; Fri, 26 Apr 2024 06:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714138713; x=1714743513; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uH+qHwJN2mCxyTFNfSJEDrH1StJ86nloa+of3UztIac=; b=z4FhMx14LmsoNoNXtCMCcl34OzHzNjwtm2Gxb930lUp7MWnY/+GStD3fjP177mJ1Iz Z2aXZfr5J3BI5mhfTwDBGC3wDQgXDpym/BP3jWTbao4+cQaFQjRWJs3N+bE2SU9sZG77 /xYuxRaNmLMhNP0Z+R3Qwm3rB6ec0c4MbAANsPMB427eOTbhiWCImn1uQ2SEStU4F4M7 X4z+8jF8hc8PaXrroHNkX6jZnw04SbvfE8j2/+PYkzQAouB0NOYR8WMKuMPC6Lbgdpwd 20HS6cO/7iDa4TXWo1QYObGIHOQ26dFbUoO4uPy4CnEgWpqnuxTcTJwzE/yyUigdLTxT Vl+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714138713; x=1714743513; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uH+qHwJN2mCxyTFNfSJEDrH1StJ86nloa+of3UztIac=; b=M8EMFd7s8Yp5/9o7mIyPc56MnqorFFDPokj2mqAjTJSieIcyQR7A3Tu73OHdG/OvmZ Z1vbnLI8lmTxJB47XSgAMsRXf0ASBeVaD1xSqd1BHU/hxyrRtVJh8yo9zcmxGF2OuS8e GsxQOMa3do7csG7KKy4wWM9tvDtSSXH+eTKmjmCcF32ZQBnMvzO4pRoHvHq3/Xc5m4Cl E1BlN41TjHs3F7ySM2Ka9WMwVh/iHkqvGN/J2ZweVf4DHnbilCYNFhhG7qCwnLrzIvsC kjV3XE9elIbeRZr4N4dRxvo89l2sBaFv8oCBUwZAFckKPd1fedvLaTPssKz/0OnRaJks bWjQ== X-Forwarded-Encrypted: i=1; AJvYcCWZmY/ka1clnmjJb6gyO5QUE28ror+FyOwk5Zj5Bnds3YV18j4rTr7isIRjGkXEAvB8EyqUoXArcBBuasAkoCG8hbGhZ1TPl/0GuQh+WsyDylU= X-Gm-Message-State: AOJu0Ywb9zWq5rP71Ci3tidpYSgLgTAWkqGthVLqSFce+bzjmie3bwFO 4VQGE/g/gzAWrJm13ded8c/p0I1LzebLnbUpb9t/LpzJtpD4LQk6fwJLmccCdXM= X-Google-Smtp-Source: AGHT+IFm+sPiQDs7FxsoddzmGcb5i4tZc2v1N/h+hnpqJdNZnJd4NgTvZqKCbojGXOgRYrkPQiVqiQ== X-Received: by 2002:a5d:47a3:0:b0:346:41a7:2fc2 with SMTP id 3-20020a5d47a3000000b0034641a72fc2mr2953583wrb.32.1714138713599; Fri, 26 Apr 2024 06:38:33 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id p3-20020a5d6383000000b00341b451a31asm22327689wru.36.2024.04.26.06.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:38:33 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin Subject: [PATCH v3 3/4] arm64: dts: exynos: gs101: Add ufs and ufs-phy dt nodes Date: Fri, 26 Apr 2024 14:38:23 +0100 Message-ID: <20240426133824.2283144-4-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240426133824.2283144-1-peter.griffin@linaro.org> References: <20240426133824.2283144-1-peter.griffin@linaro.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the ufs controller node and phy node for gs101. Signed-off-by: Peter Griffin Acked-by: André Draszik --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 09044deede63..4679ca33c6a0 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1277,6 +1277,42 @@ pinctrl_hsi2: pinctrl@14440000 { interrupts = ; }; + ufs_0_phy: phy@17e04000 { + compatible = "google,gs101-ufs-phy"; + reg = <0x14704000 0x3000>; + reg-names = "phy-pma"; + samsung,pmu-syscon = <&pmu_system_controller>; + #phy-cells = <0>; + clocks = <&ext_24_5m>; + clock-names = "ref_clk"; + status = "disabled"; + }; + + ufs_0: ufs@14700000 { + compatible = "google,gs101-ufs"; + reg = <0x14700000 0x200>, + <0x14701100 0x200>, + <0x14780000 0xa000>, + <0x14600000 0x100>; + reg-names = "hci", "vs_hci", "unipro", "ufsp"; + interrupts = ; + clocks = <&cmu_hsi2 CLK_GOUT_HSI2_UFS_EMBD_I_ACLK>, + <&cmu_hsi2 CLK_GOUT_HSI2_UFS_EMBD_I_CLK_UNIPRO>, + <&cmu_hsi2 CLK_GOUT_HSI2_UFS_EMBD_I_FMP_CLK>, + <&cmu_hsi2 CLK_GOUT_HSI2_QE_UFS_EMBD_HSI2_ACLK>, + <&cmu_hsi2 CLK_GOUT_HSI2_QE_UFS_EMBD_HSI2_PCLK>, + <&cmu_hsi2 CLK_GOUT_HSI2_SYSREG_HSI2_PCLK>; + clock-names = "core_clk", "sclk_unipro_main", "fmp", + "aclk", "pclk", "sysreg"; + freq-table-hz = <0 0>, <0 0>, <0 0>, <0 0>, <0 0>, <0 0>; + pinctrl-0 = <&ufs_rst_n &ufs_refclk_out>; + pinctrl-names = "default"; + phys = <&ufs_0_phy>; + phy-names = "ufs-phy"; + samsung,sysreg = <&sysreg_hsi2 0x710>; + status = "disabled"; + }; + cmu_apm: clock-controller@17400000 { compatible = "google,gs101-cmu-apm"; reg = <0x17400000 0x8000>; From patchwork Fri Apr 26 13:38:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 792852 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 9FFEC1487D9 for ; Fri, 26 Apr 2024 13:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138718; cv=none; b=Jv7rsu11lhkkWyMuQYtunTfAfzvqsLdclRts8uam2qnl3OsPJ3r/h+bhWjfdVjKQrV5SbULGkNoG7njDjiN6R4pYjqw2aMJfQ5LjGDCSc5LyIVebaxYj5J4ouy9DO3UiunOF0TRxPxzmH+cEdE28YpgBZNBbfPy0o8Gfk/d5Fjc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714138718; c=relaxed/simple; bh=ZmIYYUt0QcbC0Veeq4Fmo5dE3JV8iq7sEVsLahwG0es=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fGvh3e2PiToav5Tg3sqqvyfCFzUwaq9BiTf/PrZpZaPS2akk5SpO0E1uLWBpYxO63Rtcb7omf5mY0b4uvJNUyfF8uMge4Ll9xHevMEaYOmLqeeUods6bsDU8XAqW76DMiIEGe34Ggnp/ul3fw16RRpcIekaLfGYstvZ+OIHlyx0= 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=D6K88qWU; arc=none smtp.client-ip=209.85.128.46 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="D6K88qWU" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-41b5e74fa83so11573915e9.0 for ; Fri, 26 Apr 2024 06:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714138715; x=1714743515; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AX1t+YE1cBl5MQLmH5bPrWGcz0Ebchp9QnAASzx5oG4=; b=D6K88qWUQqxBT2SQHLvY7BaEfoHioMxCa4hmYyR56N+mKgP0idkJZR72KjxG3YpymT 3rO5cr3GOyJTdtbyD8b9A//Wg+646WPKM/de4/c0ggLPHpfYnIA5I5P/fDaSnanwTwwz 0sxVZBcJnNTzYP48NAGXwfPHUsAkQmSiDGnQboqPzQ3bI/LUf843eyekZebmbxmQIFcy yMceTfxB/bxk9ftkVyeZiUoKei58uSWsekZVJhWBWknDS+bNgdWLx+pczrnGXmoGJY6R qunCMF+mNRDoHe+i1fChVZYKhY3c7FXfgCVay8Pr2NO6cYqbJfFQ2i3yu6Tv1/CJBxXA WpVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714138715; x=1714743515; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AX1t+YE1cBl5MQLmH5bPrWGcz0Ebchp9QnAASzx5oG4=; b=NZcG+9yAg8OSXcD+SV+7SqVhCjbAKDPJR1AoqMb7b9J99eJbU8lPD+eMCLAVHj6Da1 MH3MbqQnAKifbe0UzWOFww6rBLuUhKCUlfr3pAU2ZLaFHwYZ55Own+z0T1p1ytGV5+wd nNZu9EQ1oCLItf++ITQvR6SW0p/rMgdJHG1go3u97vlyUm/JdW92UWbBobLSCvzZ+rf3 toMEeWq/ICDTdD/zJuWpIPauDkLSnzd+ujB1iEVWuGcndha+ugksuTnKVmfc/zjV+nkp YEXSOAtu++gKRyguRaNn38Cb5Ex+6ufQgPps66qw8xDZXgvEk9W4+Lj3fIaPHZ+eO9TM r0ag== X-Forwarded-Encrypted: i=1; AJvYcCV7WMfIOuIfME5EmC1h5MINH/W9XC5IBr57cyCJIUeOLKhNq4fXTnPlVvl8m80tsKlx2C1PRcyltTkzZ1sHHsTVvApnsLrCKFduZLwYuhPQ380= X-Gm-Message-State: AOJu0Yx9WsBC6DCIORuZmnPLlHHxWLn5BF2vjifCTkxrv6CocvEJRWAl WkjmVa8btqNdJUqRjUJotxpG/KeRUjLg7XuJNf6R3Emu3Z3tyGV24HS0R2SpVOI= X-Google-Smtp-Source: AGHT+IFTTh4iakkkfqbFYU7oLhsNchB50w3aO7hEduSjteZTlE4Y7Y4KaHOlWbEsAZDxFgk08i6IsQ== X-Received: by 2002:adf:fcd2:0:b0:343:7fa6:4393 with SMTP id f18-20020adffcd2000000b003437fa64393mr1870301wrs.38.1714138715070; Fri, 26 Apr 2024 06:38:35 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id p3-20020a5d6383000000b00341b451a31asm22327689wru.36.2024.04.26.06.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:38:34 -0700 (PDT) From: Peter Griffin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin Subject: [PATCH v3 4/4] arm64: dts: exynos: gs101: enable ufs, phy on oriole & define ufs regulator Date: Fri, 26 Apr 2024 14:38:24 +0100 Message-ID: <20240426133824.2283144-5-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240426133824.2283144-1-peter.griffin@linaro.org> References: <20240426133824.2283144-1-peter.griffin@linaro.org> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Enable ufs & ufs phy nodes for Oriole. Also define the ufs regulator node. ufs regulator is a stub until full s2mpg11 slave pmic support is added. The gpio defined is for the BOOTLD0 (gs101) signal connected to UFS_EN(s2mpg11) gpio enabled voltage rail for UFS. Signed-off-by: Peter Griffin --- .../boot/dts/exynos/google/gs101-oriole.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 6be15e990b65..fb32f6ce2a4d 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -53,6 +53,15 @@ button-power { wakeup-source; }; }; + + /* TODO: Remove this once S2MPG11 slave PMIC is implemented */ + ufs_0_fixed_vcc_reg: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "ufs-vcc"; + gpio = <&gpp0 1 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + enable-active-high; + }; }; &ext_24_5m { @@ -106,6 +115,15 @@ &serial_0 { status = "okay"; }; +&ufs_0 { + status = "okay"; + vcc-supply = <&ufs_0_fixed_vcc_reg>; +}; + +&ufs_0_phy { + status = "okay"; +}; + &usi_uart { samsung,clkreq-on; /* needed for UART mode */ status = "okay";