summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2022-02-15 17:31:46 +0100
committerJoel Stanley <joel@jms.id.au>2022-02-16 06:07:23 +0100
commit53713d5ab91a08940f9d238aa926be56430b781f (patch)
tree9f90acdbfa52e706682c405342520a5526f61979 /arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
parentARM: dts: aspeed: bletchley: Update fmc configurations (diff)
downloadlinux-53713d5ab91a08940f9d238aa926be56430b781f.tar.xz
linux-53713d5ab91a08940f9d238aa926be56430b781f.zip
ARM: dts: aspeed: bletchley: Switch to spi-gpio for spi2
Switch spi2 to spi-gpio driver to avoid unstable signal issue with EVT HW. Remove spi2 node and create a new spi2_gpio node. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Patrick Williams <patrick@stwcx.xyz> Link: https://lore.kernel.org/r/20220215163151.32252-6-potin.lai@quantatw.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts')
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts35
1 files changed, 21 insertions, 14 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
index b01f1e7adb81..08fa4c7b5ed4 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
@@ -32,7 +32,7 @@
<&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>;
};
- spi_gpio: spi-gpio {
+ spi1_gpio: spi1-gpio {
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
@@ -50,6 +50,26 @@
};
};
+ spi2_gpio: spi2-gpio {
+ compatible = "spi-gpio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>;
+ gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>;
+ gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>;
+ num-chipselects = <1>;
+ cs-gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>;
+
+ flash@0 {
+ reg = <0>;
+ compatible = "jedec,spi-nor";
+ m25p,fast-read;
+ label = "pnor";
+ spi-max-frequency = <100000000>;
+ };
+ };
+
switchphy: ethernet-phy@0 {
// Fixed link
};
@@ -225,19 +245,6 @@
};
};
-&spi2 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_spi2_default>;
-
- flash@0 {
- status = "okay";
- m25p,fast-read;
- label = "pnor";
- spi-max-frequency = <100000000>;
- };
-};
-
&i2c0 {
status = "okay";
/* TODO: Add ADC INA230 */