1&pinctrl {
2	pio0_spi0_default: pio0_spi0_default {
3		/* gpio 13 is used for chip select, not assigned to the PIO */
4		group1 {
5			pinmux = <PIO0_P14>, <PIO0_P15>;
6		};
7		group2 {
8			pinmux = <PIO0_P12>;
9			input-enable;
10		};
11	};
12};
13
14&pio0 {
15	status = "okay";
16
17	pio0_spi0: pio0_spi0 {
18		pinctrl-0 = <&pio0_spi0_default>;
19		pinctrl-names = "default";
20
21		compatible = "raspberrypi,pico-spi-pio";
22		status = "okay";
23		#address-cells = <1>;
24		#size-cells = <0>;
25		clocks = < &system_clk >;
26		miso-gpios = <&gpio0 12 0>;
27		cs-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
28		clk-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
29		mosi-gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
30		bme280@0 {
31			compatible = "bosch,bme280";
32			reg = <0>;
33			spi-max-frequency = <1000000>; /* conservatively set to 1MHz */
34		};
35	};
36};
37