diff --git a/config/boards/shields/corny/corny.dtsi b/config/boards/shields/corny/corny.dtsi index 665729d..f84c392 100644 --- a/config/boards/shields/corny/corny.dtsi +++ b/config/boards/shields/corny/corny.dtsi @@ -34,45 +34,6 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(3,5) RC(3,6) RC(2,6) RC(2,7) ; }; - &pinctrl { - spi0_default: spi0_default { - group1 { - psels = , - , - ; - }; - }; - spi0_sleep: spi0_sleep { - group1 { - psels = , - , - ; - low-power-enable; - }; - }; - }; - - display_spi: &spi0 { - compatible = "nordic,nrf-spim"; - pinctrl-0 = <&spi0_default>; - pinctrl-1 = <&spi0_sleep>; - pinctrl-names = "default", "sleep"; - cs-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - &display_spi { - status = "okay"; - sharp: ls0xx@0 { - compatible = "sharp,ls0xx"; - label = "DISPLAY"; - spi-max-frequency = <2000000>; - reg = <0>; - width = <160>; - height = <68>; - //disp-en-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; //testing setting this to 6 from 23 - }; - }; - right_encoder: encoder_right { compatible = "alps,ec11"; a-gpios = <&xiao_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; @@ -88,6 +49,45 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(3,5) RC(3,6) RC(2,6) RC(2,7) }; }; +&pinctrl { + spi0_default: spi0_default { + group1 { + psels = , + , + ; + }; + }; + spi0_sleep: spi0_sleep { + group1 { + psels = , + , + ; + low-power-enable; + }; + }; +}; + +display_spi: &spi0 { + compatible = "nordic,nrf-spim"; + pinctrl-0 = <&spi0_default>; + pinctrl-1 = <&spi0_sleep>; + pinctrl-names = "default", "sleep"; + cs-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; +}; + +&display_spi { + status = "okay"; + sharp: ls0xx@0 { + compatible = "sharp,ls0xx"; + label = "DISPLAY"; + spi-max-frequency = <2000000>; + reg = <0>; + width = <160>; + height = <68>; + //disp-en-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; //testing setting this to 6 from 23 + }; +}; + / { chosen { zephyr,display = ♯